初始化项目
This commit is contained in:
319
comService/pom.xml
Normal file
319
comService/pom.xml
Normal file
@@ -0,0 +1,319 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>system</artifactId>
|
||||
<groupId>com.njcn</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>comService</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>comService</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<!-- spring用到的包 *********startTime********* -->
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-web</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpclient</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpcore</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-beans</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context-support</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-jdbc</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-tx</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-webmvc</artifactId>
|
||||
</dependency>
|
||||
<!-- spring用到的包 *********endTime********** -->
|
||||
<!--commons 必备*********startTime********** -->
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
</dependency>
|
||||
<!--commons 必备*********endTime********** -->
|
||||
<!--shiro依赖*********startTime********* -->
|
||||
<dependency>
|
||||
<groupId>org.apache.shiro</groupId>
|
||||
<artifactId>shiro-core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.shiro</groupId>
|
||||
<artifactId>shiro-spring</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.shiro</groupId>
|
||||
<artifactId>shiro-web</artifactId>
|
||||
</dependency>
|
||||
<!--shiro依赖*********endTime********* -->
|
||||
<!--redis客户端引入*****startTime***** -->
|
||||
<dependency>
|
||||
<groupId>redis.clients</groupId>
|
||||
<artifactId>jedis</artifactId>
|
||||
</dependency>
|
||||
<!--redis客户端引入*****endTime***** -->
|
||||
|
||||
<!-- 日志配置 *********startTime********** -->
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-log4j12</artifactId>
|
||||
</dependency>
|
||||
<!-- 日志配置 *********endTime********** -->
|
||||
|
||||
<!--oracle的驱动*********startTime********* -->
|
||||
<dependency>
|
||||
<groupId>com.oracle</groupId>
|
||||
<artifactId>ojdbc6</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mariadb.jdbc</groupId>
|
||||
<artifactId>mariadb-java-client</artifactId>
|
||||
</dependency>
|
||||
<!--oracle的驱动*********endTime********** -->
|
||||
<!-- mybatis用到的包 *********startTime********** -->
|
||||
<dependency>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis-spring</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis</artifactId>
|
||||
</dependency>
|
||||
<!-- mybatis用到的包 *********endTime********** -->
|
||||
<!--引入通用mapper******startTime******** -->
|
||||
<dependency>
|
||||
<groupId>tk.mybatis</groupId>
|
||||
<artifactId>mapper</artifactId>
|
||||
</dependency>
|
||||
<!--引入通用mapper******endTime******* -->
|
||||
<!--引入链接池的依赖*******startTime********* -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>druid</artifactId>
|
||||
</dependency>
|
||||
<!--引入链接池的依赖*******endTime********* -->
|
||||
<!--测试*******startTime********* -->
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-test</artifactId>
|
||||
</dependency>
|
||||
<!--测试*******endTime********* -->
|
||||
<!-- JSP相关*******startTime********* -->
|
||||
<dependency>
|
||||
<groupId>jstl</groupId>
|
||||
<artifactId>jstl</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>servlet-api</artifactId>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>jsp-api</artifactId>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<!-- JSP相关*******endTime********* -->
|
||||
<dependency>
|
||||
<groupId>net.sf.json-lib</groupId>
|
||||
<artifactId>json-lib</artifactId>
|
||||
<classifier>jdk15</classifier>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.aspectj</groupId>
|
||||
<artifactId>aspectjweaver</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- POI -->
|
||||
<dependency>
|
||||
<groupId>org.apache.poi</groupId>
|
||||
<artifactId>poi-ooxml</artifactId>
|
||||
<scope>compile</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xerces</groupId>
|
||||
<artifactId>xercesImpl</artifactId>
|
||||
<scope>compile</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jcifs</groupId>
|
||||
<artifactId>jcifs</artifactId>
|
||||
</dependency>
|
||||
<!-- 使用JNA调用C Lib库 -->
|
||||
<dependency>
|
||||
<groupId>com.sun.jna</groupId>
|
||||
<artifactId>jna</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax</groupId>
|
||||
<artifactId>javaee-api</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<!-- Jackson Json处理工具包*******startTime********* -->
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
</dependency>
|
||||
<!-- Jackson Json处理工具包*******endTime********* -->
|
||||
<dependency>
|
||||
<groupId>commons-codec</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
<version>1.8</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/org.apache.kafka/kafka_2.11 -->
|
||||
<dependency>
|
||||
<groupId>org.apache.kafka</groupId>
|
||||
<artifactId>kafka_2.12</artifactId>
|
||||
</dependency>
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>com.oracle</groupId>-->
|
||||
<!--<artifactId>ojdbc14</artifactId>-->
|
||||
<!--<version>10.2.0.4.0</version>-->
|
||||
<!--</dependency>-->
|
||||
<dependency>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
<artifactId>bcprov-jdk15on</artifactId>
|
||||
<version>1.65</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.kafka</groupId>
|
||||
<artifactId>kafka_2.12</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>easyexcel</artifactId>
|
||||
<version>1.1.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
<version>4.1.19</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.pagehelper</groupId>
|
||||
<artifactId>pagehelper</artifactId>
|
||||
<version>5.0.0</version>
|
||||
</dependency>
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>com.oracle</groupId>-->
|
||||
<!--<artifactId>ojdbc14</artifactId>-->
|
||||
<!--<version>10.2.0.4.0</version>-->
|
||||
<!--</dependency>-->
|
||||
<dependency>
|
||||
<groupId>org.owasp.encoder</groupId>
|
||||
<artifactId>encoder</artifactId>
|
||||
<version>1.2.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.freemarker</groupId>
|
||||
<artifactId>freemarker</artifactId>
|
||||
<version>2.3.28</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<excludes>
|
||||
<exclude>*.dll</exclude>
|
||||
<exclude>*.so</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<!--编译文件指定jdk-->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
<encoding>UTF-8</encoding>
|
||||
<compilerArguments>
|
||||
<verbose/>
|
||||
<bootclasspath>C:\JAVA\jdk\jre\lib\rt.jar;C:\JAVA\jre\lib\jce.jar</bootclasspath>
|
||||
</compilerArguments>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.14.1</version>
|
||||
<configuration>
|
||||
<skipTests>true</skipTests>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<phase>validate</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/classes/com/njcn/utils</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<defaultGoal>install</defaultGoal>
|
||||
</build>
|
||||
</project>
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.njcn.advice;
|
||||
|
||||
import com.njcn.pojo.commons.HttpResult;
|
||||
import com.njcn.service.log.UserLogDetailService;
|
||||
import com.njcn.utils.AppConfig;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.core.MethodParameter;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.converter.HttpMessageConverter;
|
||||
import org.springframework.http.server.ServerHttpRequest;
|
||||
import org.springframework.http.server.ServerHttpResponse;
|
||||
import org.springframework.web.bind.annotation.ControllerAdvice;
|
||||
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
|
||||
|
||||
import javax.security.auth.login.AccountException;
|
||||
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @Date: 2019/6/4 16:27
|
||||
*/
|
||||
@ControllerAdvice
|
||||
public class RecordLogByResultAdvice implements ResponseBodyAdvice<Object> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(RecordLogByResultAdvice.class);
|
||||
|
||||
@Autowired
|
||||
private UserLogDetailService userLogDetailService;
|
||||
|
||||
@Autowired
|
||||
private AppConfig appConfig;
|
||||
|
||||
@Override
|
||||
public boolean supports(MethodParameter returnType, Class<? extends HttpMessageConverter<?>> converterType) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object beforeBodyWrite(Object body, MethodParameter returnType, MediaType selectedContentType, Class<? extends HttpMessageConverter<?>> selectedConverterType, ServerHttpRequest request, ServerHttpResponse response) {
|
||||
if (body instanceof HttpResult) {
|
||||
HttpResult httpResult = new HttpResult();
|
||||
HttpResult result = (HttpResult) body;
|
||||
//操作不为空,进行日志录入
|
||||
if (!StringUtils.isEmpty(result.getOperate())) {
|
||||
int level = result.getLevel();
|
||||
String operate=result.getOperate();
|
||||
if(result.getOperate().equalsIgnoreCase("用户登录")){
|
||||
//将严重度调整为普通
|
||||
level=0;
|
||||
}else if(result.getOperate().equalsIgnoreCase("密码确认")&&result.getResult().equalsIgnoreCase("成功")){
|
||||
level=0;
|
||||
operate="密码确认成功";
|
||||
}else if(result.getOperate().equalsIgnoreCase("密码确认")&&result.getResult().equalsIgnoreCase("失败")){
|
||||
operate="密码确认失败";
|
||||
}
|
||||
try {
|
||||
userLogDetailService.saveUserLog(result.getUserIndex(), result.getUserName(), operate, result.getResult(), appConfig.getSystemFlag(), result.getIp(), result.getLogType(), level);
|
||||
} catch (AccountException e) {
|
||||
logger.error("保存用户操作日志记录异常,操作为:"+result.getOperate()+",结果:"+result.getResult()+",异常为:"+e.toString());
|
||||
}
|
||||
//只返回前台需要的信息 code / message / body
|
||||
httpResult.setCode(result.getCode());
|
||||
httpResult.setMessage(result.getMessage());
|
||||
httpResult.setBody(result.getBody());
|
||||
}else{
|
||||
httpResult=result;
|
||||
}
|
||||
return httpResult;
|
||||
}
|
||||
return body;
|
||||
}
|
||||
}
|
||||
21
comService/src/main/java/com/njcn/enums/CookieKeyEnum.java
Normal file
21
comService/src/main/java/com/njcn/enums/CookieKeyEnum.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package com.njcn.enums;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @Date: 2019/7/12 11:47
|
||||
* 各个系统的cookie的key的枚举
|
||||
*/
|
||||
public enum CookieKeyEnum {
|
||||
|
||||
SSOLOGIN("ssoToken"),SSO("sso"),PQS9200("pqs9200"),PQS9000("pqs9000"),PQS9900("pqs9900");
|
||||
|
||||
private String cookieKey;
|
||||
|
||||
CookieKeyEnum(String cookieKey){
|
||||
this.cookieKey=cookieKey;
|
||||
}
|
||||
|
||||
public String getCookieKey() {
|
||||
return cookieKey;
|
||||
}
|
||||
}
|
||||
97
comService/src/main/java/com/njcn/enums/DicDataEnum.java
Normal file
97
comService/src/main/java/com/njcn/enums/DicDataEnum.java
Normal file
@@ -0,0 +1,97 @@
|
||||
package com.njcn.enums;
|
||||
|
||||
/**
|
||||
* system
|
||||
* 字典
|
||||
* @author cdf
|
||||
* @date 2023/3/24
|
||||
*/
|
||||
|
||||
public enum DicDataEnum {
|
||||
|
||||
/**
|
||||
* 电压等级
|
||||
* @author cdf
|
||||
* @date 2023/3/24
|
||||
*/
|
||||
|
||||
/**
|
||||
* 电压等级
|
||||
* 此电压用于计算,真实code请使用上面枚举
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2023/3/24
|
||||
*/
|
||||
|
||||
V100("100V", "0.1",0.1f),
|
||||
V220("220V", "0.22",0.22f),
|
||||
KV038("0.38kV", "0.38",0.38f),
|
||||
V380("380V", "0.38",0.38f),
|
||||
KV04("0.4kV", "0.4",0.4f),
|
||||
KV06("0.6kV", "0.6",0.6f),
|
||||
V400("400V", "0.4",0.4f),
|
||||
KV1("1kV", "1",1.0f),
|
||||
KV6("6kV", "6",6.0f),
|
||||
KV10("10kV", "10",10.0f),
|
||||
KV20("20kV", "20",20.0f),
|
||||
KV30("30kV", "30",30.0f),
|
||||
KV35("35kV", "35",35.0f),
|
||||
KV50("50kV", "50",50.0f),
|
||||
KV66("66kV", "66",66.0f),
|
||||
KV72_5("72.5kV", "725",725.0f),
|
||||
KV110("110kV", "110",110.0f),
|
||||
KV120("120kV", "120",120.0f),
|
||||
KV125("125kV", "125",125.0f),
|
||||
KV200("200kV", "200",200.0f),
|
||||
KV220("220kV", "220",220.0f),
|
||||
KV320("320kV", "320",320.0f),
|
||||
KV330("330kV", "330",330.0f),
|
||||
KV400("400kV", "400",400.0f),
|
||||
KV500("500kV", "500",500.0f),
|
||||
KV600("600kV", "600",600.0f),
|
||||
KV660("660kV", "660",660.0f),
|
||||
KV750("750kV", "750",750.0f),
|
||||
KV1000("1000kV", "1000",1000.0f),
|
||||
KV1100("1100kV", "1100",1100.0f),
|
||||
;
|
||||
private String name;
|
||||
private String code;
|
||||
private Float value;
|
||||
|
||||
|
||||
DicDataEnum(String name, String code,Float value) {
|
||||
this.name = name;
|
||||
this.code = code;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
DicDataEnum(String name, String code) {
|
||||
this.name = name;
|
||||
this.code = code;
|
||||
this.value = null;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public Float getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(Float value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
37
comService/src/main/java/com/njcn/enums/DicDataTypeEnum.java
Normal file
37
comService/src/main/java/com/njcn/enums/DicDataTypeEnum.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package com.njcn.enums;
|
||||
|
||||
/**
|
||||
* @description: 数据字典类型枚举
|
||||
* @author: denghuajun
|
||||
* @time: 2019-09-27 09:55:07
|
||||
**/
|
||||
|
||||
public enum DicDataTypeEnum {
|
||||
areaEnum("行政区域"),resourceEnum("资源类目"),
|
||||
deviceFuncEnum("装置功能"),voltageEnum("电压等级"),
|
||||
serviceEnum("业务事件类型"),sagReasonEnum("暂降原因"),
|
||||
sagTypeEnum("暂降类型"),payloadEnum("干扰源类型"),
|
||||
industryEnum("行业类型"),deviceTypeEnum("装置类型"),
|
||||
systemEnum("系统事件类型"),transFormerEnum("变压器接线方式"),
|
||||
manufacturerEnum("制造厂商"),emergencyEnum("告警类型"),
|
||||
prepositionEnum("前置类型"),systemTypeEnum("系统版本"),
|
||||
modeConnectEnum("接线方式"), deviceStateEnum("装置状态类型"),
|
||||
terminalGrade("终端等级"),
|
||||
menuTypeEnum("菜单资源"),terminalEnum("运维日志");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private String name;
|
||||
|
||||
DicDataTypeEnum( String name){
|
||||
this.name=name;
|
||||
}
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
9
comService/src/main/java/com/njcn/enums/LogTypeEnum.java
Normal file
9
comService/src/main/java/com/njcn/enums/LogTypeEnum.java
Normal file
@@ -0,0 +1,9 @@
|
||||
package com.njcn.enums;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @Date: 2019/6/5 13:30
|
||||
*/
|
||||
public enum LogTypeEnum {
|
||||
BUSSINESS,SYSTEM;
|
||||
}
|
||||
30
comService/src/main/java/com/njcn/enums/PlateRateEnum.java
Normal file
30
comService/src/main/java/com/njcn/enums/PlateRateEnum.java
Normal file
@@ -0,0 +1,30 @@
|
||||
package com.njcn.enums;
|
||||
|
||||
/**
|
||||
* @Auther denghuajun
|
||||
* @Date 2021/8/26
|
||||
* @describe
|
||||
*/
|
||||
public enum PlateRateEnum {
|
||||
rateA("1","尖"),
|
||||
rateB("2","峰"),
|
||||
rateC("3","平"),
|
||||
rateD("4","谷");
|
||||
|
||||
private String ename;
|
||||
|
||||
private String name;
|
||||
|
||||
PlateRateEnum(String ename,String name){
|
||||
this.ename=ename;
|
||||
this.name=name;
|
||||
}
|
||||
|
||||
public String getEname() {
|
||||
return ename;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
89
comService/src/main/java/com/njcn/enums/ProjectEnum.java
Normal file
89
comService/src/main/java/com/njcn/enums/ProjectEnum.java
Normal file
@@ -0,0 +1,89 @@
|
||||
package com.njcn.enums;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date 2019/7/12 11:57
|
||||
* 系统项目的枚举
|
||||
*/
|
||||
public enum ProjectEnum {
|
||||
|
||||
/**
|
||||
* 单点登录系统信息
|
||||
*/
|
||||
SSO("sso", "3bba2471-7384-41de-800b-aed41c845b7b", "单点登录系统", "sso/login?item=", "", "sso/user/judgeLogin?item=sso"),
|
||||
/**
|
||||
* 灿能云系统信息
|
||||
*/
|
||||
APP("app", "3bba2471-9654-41de-12bf-aed476545b43", "灿能云APP", "", "", "sso/user/judgeLogin?item=sso"),
|
||||
/**
|
||||
* 谐波系统信息
|
||||
*/
|
||||
PQS9000("pqs9000", "983f9dfe-4f9a-4c96-89d8-7d425a1f1d6c", "谐波监测模块", "pqs9000/user/ssoRegister?token=", "sso/user/loginout?item=pqs9000", "sso/user/judgeLogin?item=pqs9000"),
|
||||
/**
|
||||
* 暂降系统信息
|
||||
*/
|
||||
PQS9200("pqs9200", "1cfcd6e2-c5fe-4b15-988a-32b90f1170c1", "电压暂降模块", "pqs9200/user/ssoRegister?token=", "sso/user/loginout?item=pqs9200", "sso/user/judgeLogin?item=pqs9200"),
|
||||
/**
|
||||
* 技术监督系统信息
|
||||
*/
|
||||
PQS9300("pqs9300", "2e5c5bda-f2c6-4b17-a73d-ee00f53401d5", "技术监督管理", "pqs9300/user/ssoRegister?token=", "sso/user/loginout?item=pqs9300", "sso/user/judgeLogin?item=pqs9300"),
|
||||
/**
|
||||
* 后台管理系统信息
|
||||
*/
|
||||
PQS9900("pqs9900", "82d51b5f-e0a7-49b2-908d-9cbf2ce1f0b3", "后台管理系统", "pqs9900/user/ssoRegister?token=", "sso/user/loginout?item=pqs9900", "sso/user/judgeLogin?item=pqs9900");
|
||||
|
||||
private String item;
|
||||
|
||||
private String key;
|
||||
|
||||
private String name;
|
||||
|
||||
private String loginUrl;
|
||||
|
||||
private String loginOut;
|
||||
|
||||
private String judgeUrl;
|
||||
|
||||
ProjectEnum(String item, String key, String name, String loginUrl, String loginOut, String judgeUrl) {
|
||||
this.item = item;
|
||||
this.key = key;
|
||||
this.name = name;
|
||||
this.loginUrl = loginUrl;
|
||||
this.loginOut = loginOut;
|
||||
this.judgeUrl = judgeUrl;
|
||||
}
|
||||
|
||||
public String getItem() {
|
||||
return item;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getLoginUrl() {
|
||||
return loginUrl;
|
||||
}
|
||||
|
||||
public String getLoginOut() {
|
||||
return loginOut;
|
||||
}
|
||||
|
||||
public String getJudgeUrl() {
|
||||
return judgeUrl;
|
||||
}
|
||||
|
||||
static public String getKeyByItem(String item) {
|
||||
for (ProjectEnum projectEnum : ProjectEnum.values()) {
|
||||
if (projectEnum.item.equals(item)) {
|
||||
return projectEnum.key;
|
||||
}
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.njcn.enums;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2021年12月07日 10:30
|
||||
*/
|
||||
public enum ResultStatusEnum {
|
||||
|
||||
/**
|
||||
* 响应枚举
|
||||
*/
|
||||
SUCCESS("成功"),
|
||||
FAIL("失败"),
|
||||
NO_DATA("无数据"),
|
||||
REPEAT_NODE_NAME("名称重复"),
|
||||
FILE_IS_MISSING("文件丢失"),
|
||||
NO_SVG_FILE("无内容"),
|
||||
EXIST_CHILD_NODES("存在子节点");
|
||||
|
||||
private final String message;
|
||||
|
||||
public String getMessage(){
|
||||
return this.message;
|
||||
}
|
||||
|
||||
ResultStatusEnum(String message){
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
30
comService/src/main/java/com/njcn/enums/RoleEnum.java
Normal file
30
comService/src/main/java/com/njcn/enums/RoleEnum.java
Normal file
@@ -0,0 +1,30 @@
|
||||
package com.njcn.enums;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @Date: 2019/7/11 15:29
|
||||
* 角色枚举
|
||||
*/
|
||||
public enum RoleEnum {
|
||||
|
||||
CASUAL("casual","非正式用户"),NORMAL("normal","正式用户"),
|
||||
SENIOR("senior","高级用户"),CHECK("check","审核管理员"),AUDIT("audit","审计管理员"),
|
||||
SYSTEM("system","系统管理员"),BUSINESS("business","业务管理员"),ROOT("root","超级管理员");
|
||||
|
||||
private String ename;
|
||||
|
||||
private String name;
|
||||
|
||||
RoleEnum(String ename,String name){
|
||||
this.ename=ename;
|
||||
this.name=name;
|
||||
}
|
||||
|
||||
public String getEname() {
|
||||
return ename;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
28
comService/src/main/java/com/njcn/enums/RoleGroupEnum.java
Normal file
28
comService/src/main/java/com/njcn/enums/RoleGroupEnum.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package com.njcn.enums;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/9/9 14:23
|
||||
*/
|
||||
public enum RoleGroupEnum {
|
||||
|
||||
CASUAL("casual","非正式用户"),NORMAL("normal","正式用户组"), SYSTEM("system","系统管理员")
|
||||
, AUDIT("audit","审计管理员"), CHECK("check","审核管理员"), BUSINESS("business","业务管理员"), ROOT("root","超级管理员");
|
||||
|
||||
private String ename;
|
||||
|
||||
private String name;
|
||||
|
||||
RoleGroupEnum(String ename,String name){
|
||||
this.ename=ename;
|
||||
this.name=name;
|
||||
}
|
||||
|
||||
public String getEname() {
|
||||
return ename;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
32
comService/src/main/java/com/njcn/enums/SeparatorEnum.java
Normal file
32
comService/src/main/java/com/njcn/enums/SeparatorEnum.java
Normal file
@@ -0,0 +1,32 @@
|
||||
package com.njcn.enums;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date 2021/2/3 09:01
|
||||
*
|
||||
* 统一项目中盘符、url路径等分隔符枚举
|
||||
*/
|
||||
public enum SeparatorEnum {
|
||||
|
||||
/**
|
||||
*文件盘符的分隔符
|
||||
*/
|
||||
PARTITION(File.separator),
|
||||
|
||||
/**
|
||||
* url路径的分隔符
|
||||
*/
|
||||
URL("/");
|
||||
|
||||
private final String spearator;
|
||||
|
||||
public String getSpearator() {
|
||||
return spearator;
|
||||
}
|
||||
|
||||
SeparatorEnum(String spearator) {
|
||||
this.spearator = spearator;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.njcn.enums;
|
||||
|
||||
/**
|
||||
* @Auther denghuajun
|
||||
* @Date 2021/8/27
|
||||
* @describe
|
||||
*/
|
||||
public enum TerminalLogsEnum {
|
||||
webUser("6de42219-1a0f-4ccc-891c-748c9215f4c6","web新增用户日志"),
|
||||
appUser("3eecef8d-3bcd-41f6-b487-83922b4bcdc8","app新增用户日志"),
|
||||
flowLogs("384b20f1-6374-4d75-b873-385b8c2e743f","流量日志"),
|
||||
deviceLogs("36512048-d98a-4d80-afaf-ca8b3618553a","终端状态日志"),
|
||||
lineLogs("3035bd96-69dd-42f2-a298-471c08d51c87","监测点参数日志"),
|
||||
constantValueOutLog("e33387f2-ad59-4af6-9318-2e40456bca27","外部定值下发日志"),
|
||||
constantValueInLog("1bbb8c65-60ff-4cd0-bb17-aa5dad4268d4","内部定值下发日志"),
|
||||
versonDevLog("7f65a99f-449a-47fa-9358-27334a535645","版本下装日志"),
|
||||
repairInteginte("8d94c745-d093-4588-9f81-86323397d110","监测点数据完整性补招")
|
||||
;
|
||||
private String terminalIndex;
|
||||
|
||||
private String name;
|
||||
|
||||
public String getTerminalIndex() {
|
||||
return terminalIndex;
|
||||
}
|
||||
|
||||
public void setTerminalIndex(String terminalIndex) {
|
||||
this.terminalIndex = terminalIndex;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
TerminalLogsEnum(String terminalIndex, String name){
|
||||
this.terminalIndex=terminalIndex;
|
||||
this.name=name;
|
||||
}
|
||||
|
||||
public static String getValue(String type) {
|
||||
TerminalLogsEnum[] carTypeEnums = values();
|
||||
for (TerminalLogsEnum carTypeEnum : carTypeEnums) {
|
||||
if (carTypeEnum.getTerminalIndex().equals(type)) {
|
||||
return carTypeEnum.getName();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String getType(String desc) {
|
||||
TerminalLogsEnum[] carTypeEnums = values();
|
||||
for (TerminalLogsEnum carTypeEnum : carTypeEnums) {
|
||||
if (carTypeEnum.getName().equals(desc)) {
|
||||
return carTypeEnum.getTerminalIndex();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
38
comService/src/main/java/com/njcn/enums/UserStatusEnum.java
Normal file
38
comService/src/main/java/com/njcn/enums/UserStatusEnum.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package com.njcn.enums;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @Date: 2019/7/25 09:36
|
||||
*/
|
||||
public enum UserStatusEnum {
|
||||
|
||||
DESTROY(0, "用户已注销"),
|
||||
NORMAL(1, "正常"),
|
||||
LOCKED(2, "用户已经被锁定"),
|
||||
UNCHECK(3, "用户未审核"),
|
||||
SLEEP(4, "用户已休眠"),
|
||||
OVERDUE(5, "用户密码已经过期"),
|
||||
FIRST_LOGIN(6, "用户首次登录"),
|
||||
ERROR_ACCOUNT(10, "用户名密码不匹配"),
|
||||
ERROR_IP(10, "IP地址异常"),
|
||||
ERROR_LOGIN_TIME(10, "用户不在规定时间范围内登录"),
|
||||
NO_SUB_SYSTEM(11, "联系管理员配置子系统"),
|
||||
;
|
||||
|
||||
private int code;
|
||||
|
||||
private String message;
|
||||
|
||||
UserStatusEnum(int code, String message) {
|
||||
this.code=code;
|
||||
this.message=message;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
}
|
||||
43
comService/src/main/java/com/njcn/enums/app/MessageEnum.java
Normal file
43
comService/src/main/java/com/njcn/enums/app/MessageEnum.java
Normal file
@@ -0,0 +1,43 @@
|
||||
package com.njcn.enums.app;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/10/22 14:05
|
||||
* 短信模板枚举
|
||||
*/
|
||||
public enum MessageEnum {
|
||||
/**
|
||||
* 阿里云短信模板编号
|
||||
*/
|
||||
LOGIN(0, "SMS_176180086"), REGISTER(1, "SMS_176200101"),
|
||||
RESET_PWD(2, "SMS_176195072"),
|
||||
FORGET_PWD(3, "SMS_176195072"), UPDATE_PHONE(4, "SMS_175583840"),
|
||||
JUDGE_OLD_PHONE(5, "SMS_176195072"),EVENT_MESSAGE_NOTICE(6,"SMS_212270827");
|
||||
|
||||
private int code;
|
||||
|
||||
private String templateCode;
|
||||
|
||||
MessageEnum(int code, String templateCode) {
|
||||
this.code = code;
|
||||
this.templateCode = templateCode;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getTemplateCode() {
|
||||
return templateCode;
|
||||
}
|
||||
|
||||
public static String getTemplateByCode(int code) {
|
||||
for (MessageEnum messageEnum : MessageEnum.values()) {
|
||||
if (messageEnum.code == code) {
|
||||
return messageEnum.templateCode;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
}
|
||||
14
comService/src/main/java/com/njcn/enums/app/ReturnCode.java
Normal file
14
comService/src/main/java/com/njcn/enums/app/ReturnCode.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package com.njcn.enums.app;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/10/25 10:49
|
||||
*/
|
||||
public class ReturnCode implements Serializable {
|
||||
|
||||
public static int RETURN_SUCCESS=10000;
|
||||
|
||||
public static int RETURN_FAIL=10001;
|
||||
}
|
||||
100
comService/src/main/java/com/njcn/enums/app/UserCodeEnum.java
Normal file
100
comService/src/main/java/com/njcn/enums/app/UserCodeEnum.java
Normal file
@@ -0,0 +1,100 @@
|
||||
package com.njcn.enums.app;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/10/17 14:07
|
||||
*
|
||||
* 用户返回标识枚举
|
||||
*/
|
||||
public enum UserCodeEnum {
|
||||
|
||||
|
||||
LOGIN_SUCCESS(10002,"登录成功"),
|
||||
LOGIN_FAIL(10003,"登录失败"),
|
||||
LOGIN_WRONG_PWD(10004,"用户名密码错误"),
|
||||
LOGIN_LOCKED(10005,"用户被锁定"),
|
||||
KEY_WRONG(10006,"登录密码/验证码为空"),
|
||||
PHONE_WRONG(10007,"手机号非法"),
|
||||
DEVCODE_WRONG(10008,"设备码非法"),
|
||||
CODE_WRONG(10009,"验证码为空"),
|
||||
USERID_WRONG(10010,"用户索引非法"),
|
||||
PASSWORD_WRONG(10011,"密码非法"),
|
||||
REGIST_SUCCESS(10012,"注册成功"),
|
||||
REGIST_FAIL(10013,"注册失败"),
|
||||
REGIST_PHONE_FAIL(10014,"该号码已注册"),
|
||||
SETPWD_SUCCESS(10015,"设置密码成功"),
|
||||
SETPWD_FAIL(10016,"设置密码失败"),
|
||||
RESETPWD_SUCCESS(10017,"重置密码成功"),
|
||||
RESETPWD_FAIL(10018,"重置密码失败"),
|
||||
REFERRAL_CODE_ERROR(10019,"推荐码非法"),
|
||||
UPDATE_ROLE_SUCCESS(10020,"角色升级成功"),
|
||||
UPDATE_ROLE_FAIL(10021,"角色升级失败"),
|
||||
CODE_TYPE_ERROR(10022,"验证码类型非法"),
|
||||
SEND_CODE_SUCCESS(10023,"验证码发送成功"),
|
||||
SEND_CODE_FAIL(10024,"验证码发送失败"),
|
||||
CODE_ERROR(10025,"验证码错误"),
|
||||
REST_PHONE_SUCCESS(10026,"重置手机号成功"),
|
||||
REST_PHONE_FAIL(10027,"重置手机号失败"),
|
||||
NO_APPINFOSET(10028,"用户无消息配置"),
|
||||
SET_INFO_SUCCESS(10029,"用户设置消息成功"),
|
||||
SET_INFO_FAIL(10030,"用户设置消息失败"),
|
||||
|
||||
NO_USER(10031,"用户不存在"),
|
||||
NO_MAIN_USER(10032,"用户缺失系统账户"),
|
||||
NO_USER_SETTING(10033,"用户缺失配置信息"),
|
||||
GET_MESSAGE_SUCCESS(10034,"获取消息配置成功"),
|
||||
GET_MESSAGE_FAIL(10035,"获取消息配置失败"),
|
||||
MESSAGE_CODE_RIGHT(10036,"验证码正确"),
|
||||
MESSAGE_CODE_WRONG(10037,"验证码错误"),
|
||||
|
||||
NO_USER_FOCUS(10038,"无用户关注"),
|
||||
EVENT_MSG_SUCCESS(10039,"暂态消息推送成功"),
|
||||
EVENT_MSG_FAIL(10040,"暂态消息推送失败"),
|
||||
REPEAT_EVENT_INFO(10041,"该事件已推送"),
|
||||
|
||||
STEADY_MSG_SUCCESS(10039,"稳态消息推送成功"),
|
||||
STEADY_MSG_FAIL(10040,"稳态消息推送失败"),
|
||||
|
||||
INVALID_PARAMETER(10041,"参数非法"),
|
||||
|
||||
DEVICE_MSG_SUCCESS(10039,"终端消息推送成功"),
|
||||
DEVICE_MSG_FAIL(10040,"终端消息推送失败"),
|
||||
|
||||
;
|
||||
|
||||
private int code;
|
||||
|
||||
private String msg;
|
||||
|
||||
UserCodeEnum(int code,String msg){
|
||||
this.code=code;
|
||||
this.msg=msg;
|
||||
}
|
||||
|
||||
public int getCode(){
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg(){
|
||||
return msg;
|
||||
}
|
||||
|
||||
public static String getMsgByCode(int code){
|
||||
for (UserCodeEnum userCodeEnum : UserCodeEnum.values()) {
|
||||
if (userCodeEnum.code==code) {
|
||||
return userCodeEnum.msg;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
public static int getCodeByMsg(String msg){
|
||||
for (UserCodeEnum userCodeEnum : UserCodeEnum.values()) {
|
||||
if (userCodeEnum.msg.equalsIgnoreCase(msg)) {
|
||||
return userCodeEnum.code;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.njcn.enums.app;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/10/28 15:11
|
||||
*/
|
||||
public enum UserLevelEnum {
|
||||
|
||||
HOST_USER("0","主用户"),NORMAL_USER("1","普通用户"),VIP1_USER("2","用户VIP1");
|
||||
|
||||
private String code;
|
||||
|
||||
private String msg;
|
||||
|
||||
UserLevelEnum(String code,String msg){
|
||||
this.code=code;
|
||||
this.msg=msg;
|
||||
}
|
||||
|
||||
public String getCode(){
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg(){
|
||||
return msg;
|
||||
}
|
||||
|
||||
public static String getMsgByCode(String code){
|
||||
for (UserLevelEnum userLevelEnum : UserLevelEnum.values()) {
|
||||
if (userLevelEnum.code.equalsIgnoreCase(code)) {
|
||||
return userLevelEnum.msg;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
public static String getCodeByMsg(String msg){
|
||||
for (UserLevelEnum userLevelEnum : UserLevelEnum.values()) {
|
||||
if (userLevelEnum.msg.equalsIgnoreCase(msg)) {
|
||||
return userLevelEnum.code;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.njcn.excelreport;
|
||||
|
||||
import com.njcn.mapper.configuration.OverLimitMapper;
|
||||
import com.njcn.pojo.commons.device.MachineAccount;
|
||||
import com.njcn.pojo.configuration.OverLimit;
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import com.njcn.pojo.excelreport.OverLimitInfoData;
|
||||
import com.njcn.service.configuration.LineService;
|
||||
import com.njcn.service.excelreport.GetOverLimitService;
|
||||
import com.njcn.utils.AppConfig;
|
||||
import com.njcn.utils.COverlimit;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Component
|
||||
public class GetOverlimitInfo {
|
||||
@Autowired
|
||||
LineService lineService;
|
||||
@Autowired
|
||||
OverLimitMapper overLimitMapper;
|
||||
@Autowired
|
||||
COverlimit cOverlimit;
|
||||
@Autowired
|
||||
AppConfig appConfig;
|
||||
@Autowired
|
||||
private GetOverLimitService getOverLimitService;
|
||||
|
||||
private ConditionData conditionData;
|
||||
|
||||
public ConditionData getConditionData() {
|
||||
this.conditionData = new ConditionData(appConfig);
|
||||
return this.conditionData;
|
||||
}
|
||||
|
||||
public void setConditionData(ConditionData conditionData) {
|
||||
this.conditionData = conditionData;
|
||||
}
|
||||
|
||||
public OverLimitInfoData getOverLimit(Integer lineId) {
|
||||
this.conditionData.setPointIndex(lineId);
|
||||
this.conditionData.setB();
|
||||
|
||||
OverLimit over = overLimitMapper.selectByPrimaryKey(lineId.longValue());
|
||||
MachineAccount machineAccount = lineService.getLineName(lineId);
|
||||
|
||||
if (over == null) {
|
||||
cOverlimit.addOverLimit(lineId, machineAccount.getScale());
|
||||
}
|
||||
|
||||
OverLimitInfoData overLimitInfoData = getOverLimitService.getOverLimitData(conditionData);
|
||||
conditionData.setCount(overLimitInfoData.getCount());
|
||||
conditionData.setPltCount(overLimitInfoData.getPltCount());
|
||||
conditionData.setPstCount(overLimitInfoData.getPstCount());
|
||||
overLimitInfoData.setMode(machineAccount.getPttype());
|
||||
|
||||
List<String> list;
|
||||
switch (machineAccount.getPttype()) {
|
||||
case 0:
|
||||
list = new ArrayList<>();
|
||||
list.add("A");
|
||||
list.add("B");
|
||||
list.add("C");
|
||||
overLimitInfoData.setList(list);
|
||||
break;
|
||||
case 1:
|
||||
list = new ArrayList<>();
|
||||
list.add("AB");
|
||||
list.add("BC");
|
||||
list.add("CA");
|
||||
overLimitInfoData.setList(list);
|
||||
break;
|
||||
case 2:
|
||||
list = new ArrayList<>();
|
||||
list.add("AB");
|
||||
list.add("BC");
|
||||
list.add("-");
|
||||
overLimitInfoData.setList(list);
|
||||
break;
|
||||
}
|
||||
|
||||
return overLimitInfoData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
package com.njcn.fliter;
|
||||
|
||||
import javax.servlet.http.HttpServletRequestWrapper;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Enumeration;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Vector;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @Date: 2019/6/3 13:08
|
||||
*/
|
||||
public class ParameterRequestWrapper extends HttpServletRequestWrapper {
|
||||
|
||||
private Map<String, String[]> params = new HashMap<>();
|
||||
|
||||
/**
|
||||
* Constructs a request object wrapping the given request.
|
||||
*
|
||||
* @param request
|
||||
* @throws IllegalArgumentException if the request is null
|
||||
*/
|
||||
public ParameterRequestWrapper(HttpServletRequest request) {
|
||||
super(request);
|
||||
//将参数表,赋予给当前的Map以便于持有request中的参数
|
||||
this.params.putAll(request.getParameterMap());
|
||||
}
|
||||
|
||||
/**
|
||||
* 重载构造方法
|
||||
*/
|
||||
|
||||
public ParameterRequestWrapper(HttpServletRequest request, Map<String, Object> extendParams) {
|
||||
this(request);
|
||||
//这里将扩展参数写入参数表
|
||||
addAllParameters(extendParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* 在获取所有的参数名,必须重写此方法,否则对象中参数值映射不上
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public Enumeration<String> getParameterNames() {
|
||||
return new Vector(params.keySet()).elements();
|
||||
}
|
||||
|
||||
/**
|
||||
* 重写getParameter方法
|
||||
*
|
||||
* @param name 参数名
|
||||
* @return 返回参数值
|
||||
*/
|
||||
@Override
|
||||
public String getParameter(String name) {
|
||||
String[] values = params.get(name);
|
||||
if (values == null || values.length == 0) {
|
||||
return null;
|
||||
}
|
||||
return values[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getParameterValues(String name) {
|
||||
String[] values = params.get(name);
|
||||
if (values == null || values.length == 0) {
|
||||
return null;
|
||||
}
|
||||
return values;
|
||||
}
|
||||
|
||||
/**
|
||||
* 增加多个参数
|
||||
*
|
||||
* @param otherParams 增加的多个参数
|
||||
*/
|
||||
public void addAllParameters(Map<String, Object> otherParams) {
|
||||
for (Map.Entry<String, Object> entry : otherParams.entrySet()) {
|
||||
addParameter(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 增加参数
|
||||
*
|
||||
* @param name 参数名
|
||||
* @param value 参数值
|
||||
*/
|
||||
public void addParameter(String name, Object value) {
|
||||
if (value != null) {
|
||||
if (value instanceof String[]) {
|
||||
params.put(name, (String[]) value);
|
||||
} else if (value instanceof String) {
|
||||
params.put(name, new String[]{(String) value});
|
||||
} else {
|
||||
params.put(name, new String[]{String.valueOf(value)});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
183
comService/src/main/java/com/njcn/fliter/XssFilter.java
Normal file
183
comService/src/main/java/com/njcn/fliter/XssFilter.java
Normal file
@@ -0,0 +1,183 @@
|
||||
package com.njcn.fliter;
|
||||
|
||||
import com.njcn.shiro.filter.ShiroFilterUtils;
|
||||
import com.njcn.utils.XssFilterUtil;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.shiro.web.util.WebUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.servlet.*;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @Date: 2019/2/13 10:39
|
||||
*/
|
||||
public class XssFilter implements Filter {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(XssFilter.class);
|
||||
|
||||
/**
|
||||
* 排除部分URL不做过滤
|
||||
*/
|
||||
private List<String> excludeUrls = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* 排除部分变量参数不做过滤
|
||||
*/
|
||||
private List<String> excludeParams = new ArrayList<>(Arrays.asList("series","key","reportName","charData", "deptspic", "deptsevent", "voltagepic", "voltageevent", "sagpic", "densityImage", "iticImage", "f47Image", "eventValueImage", "persisttimeImage", "timeImage", "causeImage", "typeImage", "devmapImage", "intervalImage", "districtImage", "voltageImage", "eventmapImage","password","xml","svg"));
|
||||
|
||||
/**
|
||||
* 公告新增、修改用到富文本,对标签进行转义
|
||||
*/
|
||||
private List<String> noticeUrls = new ArrayList<>();
|
||||
|
||||
@Override
|
||||
public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain filterChain)
|
||||
throws IOException, ServletException {
|
||||
HttpServletRequest req = (HttpServletRequest) arg0;
|
||||
HttpServletResponse response = (HttpServletResponse) arg1;
|
||||
String pathInfo = req.getPathInfo() == null ? "" : req.getPathInfo();
|
||||
String url = req.getServletPath() + pathInfo;
|
||||
// 获取请求所有参数,校验防止SQL注入,防止XSS漏洞
|
||||
Enumeration<?> params = req.getParameterNames();
|
||||
String paramN;
|
||||
Map paramter = new HashMap(16);
|
||||
while (params.hasMoreElements()) {
|
||||
paramN = (String) params.nextElement();
|
||||
if(paramN.contains("[]")){
|
||||
String[] index=req.getParameterValues(paramN);
|
||||
paramter.put(paramN, index);
|
||||
}else{
|
||||
String paramVale = req.getParameter(paramN);
|
||||
if (excludeParams.contains(paramN)) {
|
||||
logger.info("该参数不作校验:" + paramN);
|
||||
filterChain.doFilter(req, response);
|
||||
return;
|
||||
}
|
||||
//否则所有的参数的值都要进行参数值过滤
|
||||
paramVale =XssFilterUtil.xssEncode(paramVale);
|
||||
// 校验是否存在SQL或者script注入信息
|
||||
if (checkSQLInject(paramN, paramVale, url)) {
|
||||
errorResponse(req, response, paramN);
|
||||
return;
|
||||
}
|
||||
paramter.put(paramN, paramVale);
|
||||
}
|
||||
}
|
||||
ParameterRequestWrapper wrapper = new ParameterRequestWrapper(req, paramter);
|
||||
filterChain.doFilter(wrapper, response);
|
||||
//判断白名单参数名
|
||||
// 排除部分URL不做过滤。
|
||||
// for (String str : excludeUrls) {
|
||||
// if (uri.indexOf(str) >= 0) {
|
||||
// logger.info("该URL不作校验:" + url);
|
||||
// arg2.doFilter(req, response);
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// for (String st : noticeUrls) {
|
||||
// if (uri.indexOf(st) >= 0) {
|
||||
// isNoticeUrl = true;
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
private void errorResponse(HttpServletRequest request, HttpServletResponse response, String paramNm) throws IOException {
|
||||
if (ShiroFilterUtils.isAjax(request)) {
|
||||
response.sendError(501);
|
||||
ShiroFilterUtils.out(response, "输入项中不能包含非法字符");
|
||||
} else {
|
||||
String url = request.getRequestURL().toString();
|
||||
Integer port = request.getLocalPort();
|
||||
String addr = url.substring(0, url.indexOf(port.toString()));
|
||||
url = addr + port + "/sso/auth/urlXssError";
|
||||
WebUtils.issueRedirect(request, response, url);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
}
|
||||
|
||||
/***
|
||||
* 初始化
|
||||
*/
|
||||
@Override
|
||||
public void init(FilterConfig filterconfig1) throws ServletException {
|
||||
// 读取文件
|
||||
// String path = XssFilter.class.getResource("/").getFile();
|
||||
// excludeUrls = readFile(path + "xssWhite.txt");
|
||||
// noticeUrls.add("notice!saveNotice");
|
||||
// noticeUrls.add("notice!updateNoticeById");
|
||||
}
|
||||
|
||||
/**
|
||||
* 读取白名单
|
||||
*
|
||||
* @param fileName 文件名
|
||||
*/
|
||||
private List<String> readFile(String fileName) {
|
||||
List<String> list = new ArrayList<String>();
|
||||
BufferedReader reader = null;
|
||||
FileInputStream fis = null;
|
||||
try {
|
||||
File f = new File(fileName);
|
||||
if (f.isFile() && f.exists()) {
|
||||
fis = new FileInputStream(f);
|
||||
reader = new BufferedReader(new InputStreamReader(fis, "UTF-8"));
|
||||
String line;
|
||||
while ((line = reader.readLine()) != null) {
|
||||
if (!"".equals(line)) {
|
||||
list.add(line);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("readFile", e);
|
||||
} finally {
|
||||
try {
|
||||
if (reader != null) {
|
||||
reader.close();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
logger.error("InputStream关闭异常", e);
|
||||
}
|
||||
try {
|
||||
if (fis != null) {
|
||||
fis.close();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
logger.error("FileInputStream关闭异常", e);
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否存在非法字符,防止SQL注入
|
||||
*
|
||||
* @param str 被检查的字符串
|
||||
* @return ture-字符串中存在非法字符,false-不存在非法字符
|
||||
*/
|
||||
public static boolean checkSQLInject(String paramN, String str, String url) {
|
||||
if (StringUtils.isEmpty(str)) {
|
||||
return false;// 如果传入空串则认为不存在非法字符
|
||||
}
|
||||
str = str.toLowerCase(); // sql不区分大小写
|
||||
// 判断黑名单
|
||||
String[] inj_stra = {"script", "truncate", "insert", "select", "delete", "update", "declare", "iframe", "alert", "xss","onClick", "\\", "confirm", "prompt", "onload", "onmouseover", "onfocus", "onerror"};
|
||||
for (int i = 0; i < inj_stra.length; i++) {
|
||||
if (str.toUpperCase().contains(inj_stra[i].toUpperCase())) {
|
||||
logger.info("xss防攻击拦截url:" + url + ",原因:特殊字符,传入str=" + str + ",包含特殊字符:" + inj_stra[i]);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.njcn.interceptor;
|
||||
|
||||
import com.njcn.utils.AppConfig;
|
||||
import com.njcn.utils.PubUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.servlet.HandlerInterceptor;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.ServletRequest;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.File;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Properties;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2020/9/7 14:07
|
||||
*/
|
||||
public class CSRFInterceptor implements HandlerInterceptor {
|
||||
// 日志记录
|
||||
private static final Logger logger = LoggerFactory.getLogger(CSRFInterceptor.class);
|
||||
|
||||
@Resource
|
||||
private AppConfig appConfig;
|
||||
|
||||
@Override
|
||||
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
|
||||
//referer判断
|
||||
String referrer = request.getHeader("referer");
|
||||
logger.debug("referrer:{}",referrer);
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
String serverNameClientHost= request.getServerName();
|
||||
String serverNameIP = appConfig.getSystemHost();
|
||||
stringBuffer.append(request.getScheme()).append("://").append(serverNameClientHost);
|
||||
logger.debug("basePath:{}",stringBuffer);
|
||||
//过滤下127.0.0.1
|
||||
if(StringUtils.isEmpty(referrer) || referrer.lastIndexOf(String.valueOf(stringBuffer))==0 ){
|
||||
//当reffer和host一起乱改后,进来了,需要进行白名单处理,内部发布的时候,需要注释这块代码
|
||||
// if( !(referrer.lastIndexOf("127.0.0.1") < 0) && !(referrer.lastIndexOf("localhost") < 0) && !(referrer.lastIndexOf(serverNameIP)<0)){
|
||||
// return false;
|
||||
// }
|
||||
//token验证,只判断ajax请求
|
||||
boolean flag=isAjax(request);
|
||||
if(flag){
|
||||
//获取uri
|
||||
String requestURI = request.getRequestURI();
|
||||
String clientToken = request.getHeader("AuthToken");
|
||||
String timestamp = request.getHeader("cnsjt");
|
||||
if(clientToken.equalsIgnoreCase(PubUtils.getEncodSM3(requestURI+timestamp))){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
} else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否是Ajax请求
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
public static boolean isAjax(HttpServletRequest request){
|
||||
return "XMLHttpRequest".equalsIgnoreCase((request).getHeader("X-Requested-With"));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.mapper.advanced;
|
||||
|
||||
import com.njcn.utils.GetBalance.Sarifi;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
//统计的数据事件持续时间需小于60s
|
||||
public interface GetBalanceMapper {
|
||||
Float getSarfiValue(@Param("start") Date startTime, @Param("end") Date endTime, @Param("id") int lineId,
|
||||
@Param("fvalue") float value);
|
||||
|
||||
Integer getSarfiCount(@Param("start") Date startTime, @Param("end") Date endTime, @Param("id") int lineId,
|
||||
@Param("fvalue") float sarfi);
|
||||
|
||||
List<Sarifi> getSarifiList(@Param("start") Date startTime, @Param("end") Date endTime, @Param("id") int lineId,
|
||||
@Param("fvalue") float value);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.mapper.advanced;
|
||||
|
||||
import com.njcn.pojo.advanced.EventAssObj;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface RangeMapper {
|
||||
// 范围分析获取归一化处理的暂降事件
|
||||
List<EventAssObj> queryEventsByTime(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("list") List<String> list);
|
||||
|
||||
// 更新范围查看记录
|
||||
void updatebRangeByGUID(String indexEventAss);
|
||||
|
||||
List<String> getEventAssIndex(@Param("list") List<Integer> list, @Param("start") Date start, @Param("end") Date end);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.njcn.mapper.advanced;
|
||||
|
||||
import com.njcn.pojo.advanced.EntityPqsRelevance;
|
||||
import com.njcn.pojo.advanced.EventAssObj;
|
||||
import com.njcn.pojo.advanced.SagEvent;
|
||||
import com.njcn.pojo.advanced.SagEventsQueryCondition;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
||||
public interface RelevanceMapper {
|
||||
// 获取暂降事件描述
|
||||
List<SagEvent> querySagEvents(SagEventsQueryCondition sagEventsQueryCondition);
|
||||
|
||||
// 归一化事件插到数据库
|
||||
void insertEventAssData(List<EventAssObj> list);
|
||||
|
||||
//归一化事件策略表数据插入
|
||||
void insertRelevance(EntityPqsRelevance entityPqsRelevance);
|
||||
|
||||
// 更新暂降事件数据库
|
||||
void updateSagEventData(List<SagEvent> list);
|
||||
|
||||
// 查询监测点的线路ID
|
||||
Integer queryLineIdbyPointId(Integer pointId);
|
||||
|
||||
// 查询高级算法暂降类型对应编码
|
||||
Integer queryCodebyGuid(String guid);
|
||||
|
||||
List<EntityPqsRelevance> queryEvents();
|
||||
|
||||
void deleteEvent(Date date);
|
||||
|
||||
void updateEvent(Date date);
|
||||
|
||||
void updateFlag(Date date);
|
||||
|
||||
//获取未处理的事件个数
|
||||
Integer queryDealTotal(@Param("list") List<Integer> list);
|
||||
|
||||
//获取录波文件不存在的个数
|
||||
Integer queryFileTotal(@Param("list") List<Integer> list);
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.mapper.advanced;
|
||||
|
||||
import com.njcn.pojo.advanced.EventAssObj;
|
||||
import com.njcn.pojo.advanced.EventsQueryCondition;
|
||||
import com.njcn.pojo.advanced.SagEvent;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface WaveformMapper {
|
||||
List<SagEvent> queryEventsByGUID(@Param("eventsQueryCondition") EventsQueryCondition eventsQueryCondition, @Param("list") List<Integer> list);
|
||||
|
||||
void addNormalization(List<SagEvent> list);
|
||||
|
||||
List<SagEvent> queryDataByGuid(String indexEventAss);
|
||||
|
||||
void deleteDataByGuid(String indexEventAss);
|
||||
|
||||
void updateDataByGuid(List<EventAssObj> list);
|
||||
|
||||
void updateWaveForm(List<String> guidIndex);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.app;
|
||||
|
||||
import com.njcn.pojo.app.AppInfoSet;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/10/25 15:17
|
||||
*/
|
||||
public interface AppInfoSetMapper extends Mapper<AppInfoSet> {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.app;
|
||||
|
||||
import com.njcn.pojo.app.AppSendMsg;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/10/29 10:25
|
||||
*/
|
||||
public interface AppSendMsgMapper extends Mapper<AppSendMsg> {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.data.ComInformation;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ComInformationMapper extends Mapper<ComInformation> {
|
||||
int delByIndex(@Param(value = "lineIndex") Long lineIndex);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.ConstantValue;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/** @Author denghuajun
|
||||
* @Description //TODO 定值管理通用mapper
|
||||
* @Date 2018/10/15 21:30
|
||||
**/
|
||||
public interface ConstantValueMapper extends Mapper<ConstantValue> {
|
||||
List<ConstantValue> quarryOutValueBase(@Param("lineIndex")long lineIndex);
|
||||
List<ConstantValue> quarryInValueBase(@Param("devIndex")long devIndex);
|
||||
int quarryOutCount(@Param("devtype")String devtype,@Param("lineIndex")long lineIndex);
|
||||
int deleteWord(@Param("devtype")String devtype);
|
||||
int deleteValue(@Param("devtype")int devtype,@Param("type")String type);//删除内部定值
|
||||
int deleteOutValue(@Param("lineIndex")int lineIndex,@Param("type")String type);//删除外部定值
|
||||
int updateOut(@Param("cpuNo")int cpuNo,@Param("type")String type,@Param("sort")int sort,@Param("value")Float value);
|
||||
int updateIn(@Param("cpuNo")int cpuNo,@Param("type")String type,@Param("sort")int sort,@Param("value")int
|
||||
value);
|
||||
ConstantValue getConvId(@Param("cpuNo")int cpuNo,@Param("type")String type,@Param("sort")int sort);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.configuration.DevFunction;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface DevFunctionMapper extends Mapper<DevFunction>{
|
||||
int insertData(List<DevFunction> list);
|
||||
|
||||
List<DevFunction> queryByDevIndex(Long devIndex);
|
||||
|
||||
int deleteByIndex(Long devIndex);
|
||||
|
||||
int delNodeIp(@Param("nodeIp") String nodeIp);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.DeviceDetailInfo;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface DeviceDetailInfoMapper extends Mapper<DeviceDetailInfo>{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.commons.device.DeviceDetail;
|
||||
import com.njcn.pojo.excelBody.DeviceDetailExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DeviceDetailMapper extends Mapper<DeviceDetail> {
|
||||
List<DeviceDetail> getDevtype(@Param("list") List<Integer> list);
|
||||
List<DeviceDetail> getManufacturer(@Param("list") List<Integer> list);
|
||||
List<DeviceDetail> getScale(@Param("list") List<Integer> list);
|
||||
List<DeviceDetail> getDeviceDetail(@Param("status") String status, @Param("devflag") String devflag, @Param
|
||||
("list") List<Integer> list);
|
||||
List<DeviceDetail> getDeviceDetails(@Param("status") String status, @Param("devflag") String devflag,@Param
|
||||
("gdName")String gdName,@Param("manufacturer")String
|
||||
manufacturer, @Param("list") List<Integer> list);
|
||||
List<DeviceDetail> queryDeviceDetailById(@Param("devIndex") Long devIndex);
|
||||
DeviceDetail queryDeviceDetailByLineId(@Param("lineIndex") Long devIndex);
|
||||
List<DeviceDetail> getSelName(@Param("name") String name);
|
||||
List<DeviceDetail> getGdname(@Param("list") List<Integer> list);
|
||||
List<DeviceDetail> getManufacturers(@Param("list") List<Integer> list);
|
||||
List<DeviceDetail> getSbyc(@Param("list") List<Integer> list);
|
||||
List<DeviceDetail> getTj(@Param("list") List<Integer> list);
|
||||
|
||||
List<DeviceDetail> selState(@Param("devIndex")Integer devIndex,@Param("list")List<Integer> list);
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<DeviceDetailExcelBody> selectAllExcelData();
|
||||
|
||||
/**
|
||||
* 根据监测点ID获取各级名称
|
||||
*/
|
||||
DeviceDetail queryNameBylineId(Integer lineIndex);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.commons.device.LineInfo;
|
||||
import com.njcn.pojo.data.ComInformation;
|
||||
import com.njcn.pojo.pointInfo.PointInfo;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface DeviceInfoMapper extends Mapper<LineInfo> {
|
||||
LineInfo getDeviceInfo(Long line_index);
|
||||
|
||||
List<ComInformation> getRunInfo(@Param(value = "line_index") Long line_index, @Param(value = "startTime") Date startTime, @Param(value = "endTime") Date endTime);
|
||||
|
||||
LineInfo getFlowInfo(@Param("pointIndex") Long pointIndex);
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.commons.device.DeviceDetail;
|
||||
import com.njcn.pojo.commons.device.DeviceInfo;
|
||||
import com.njcn.pojo.commons.device.DeviceOnline;
|
||||
import com.njcn.pojo.commons.device.DeviceValue;
|
||||
import com.njcn.pojo.configuration.Device;
|
||||
import com.njcn.pojo.excelBody.DeviceExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface DeviceMapper extends Mapper<Device>{
|
||||
|
||||
|
||||
//获取指定终端的终端状态
|
||||
List<Device> getDevicesByDevIndexs(@Param("list") List<Integer> devIndex);
|
||||
|
||||
//根据供电公司获取终端索引
|
||||
List<Integer> getDeviceIndexs(@Param("list") List<Integer> gdIndexsTemp,@Param("devModel") Integer devModel,@Param("type")List<Integer> dataType);
|
||||
|
||||
//根据供电公司获取终端索引
|
||||
List<Integer> getDeviceIndex(@Param("list") List<Integer> gdIndexsTemp);
|
||||
|
||||
|
||||
//根据终端厂家获取合理的终端索引
|
||||
List<Integer> getDeviceIndexsByCompanyName(@Param("comIndex") String dicIndex, @Param("devModel") Integer devModel, @Param("type") List<Integer> dataType,@Param("list") List<Integer>devIndexs);
|
||||
|
||||
int updateDevice(@Param("name")Integer name,@Param("devflag")Integer devflag);
|
||||
|
||||
Long selectMaxIndex();
|
||||
|
||||
List<Device> testName(@Param("name")String name,@Param("subIndex")Long subIndex,@Param("devIndex")Long devIndex);
|
||||
|
||||
List<Device> testIP(@Param("ip")String ip,@Param("portid")Long portid,@Param("gdIndex")Long gdIndex,@Param("devIndex")Long devIndex);
|
||||
|
||||
Device devNameType(@Param("devName")String devName);
|
||||
|
||||
Device devIndexType(@Param("devIndex")Long devIndex);
|
||||
|
||||
Device devIndexsType(@Param("lineIndex")Long lineIndex);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<DeviceExcelBody> selectAllExcelData();
|
||||
|
||||
//根据事件索引获取装置IP
|
||||
String getIPByEventIndex(String index);
|
||||
|
||||
List<String> getPushNodes();
|
||||
|
||||
List<Integer> getRunDeviceIndex(@Param("list") List<Integer> deviceIndexs);
|
||||
|
||||
//根据监测点id查询装置ip
|
||||
String getIpByLineIndex(int index);
|
||||
|
||||
int getStates(@Param("devIndex") int devIndex,@Param("timeId") String timeId);
|
||||
|
||||
List<Integer> getDeviceIndexByLineIndex(@Param("list")List<Integer> lineIndex);
|
||||
|
||||
int getState(@Param("list") List<Integer> devIndex,@Param("timeId") String timeId);
|
||||
|
||||
//查询当前监测点的接线方式
|
||||
int getConnect(@Param("lineIndex") Long lineIndex);
|
||||
|
||||
//将终端的详细信息组合
|
||||
String deviceDescribe(@Param("devIndex") Integer devIndex);
|
||||
|
||||
List<Integer> getDevIndex(@Param("list") List<Integer> dataType);
|
||||
|
||||
DeviceDetail getDevAndParent(@Param("devIndex")String devIndex);
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.DicData;
|
||||
import com.njcn.pojo.excelBody.DicDataExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DicDataMapper extends Mapper<DicData> {
|
||||
// 删除
|
||||
int deleteData(DicData dic);
|
||||
|
||||
// 修改
|
||||
int updateData(DicData dic);
|
||||
|
||||
// 根據id查詢
|
||||
DicData selectId(String dicIndex);
|
||||
|
||||
// 查询区域
|
||||
List<DicData> setArea(@Param("sysType") String sysType,@Param("dicTypeName")String dicTypeName);
|
||||
|
||||
// 查询区域
|
||||
List<DicData> setAreaNo(@Param("deptIndex") String deptIndex, @Param("sysType") String sysType,@Param("dicTypeName")String dicTypeName);
|
||||
|
||||
// 查找接线方式
|
||||
List<DicData> selectWring(@Param("dicTypeName")String dicTypeName);
|
||||
|
||||
// 查询排序的最大
|
||||
int selNumMax();
|
||||
|
||||
// 查询除此之外的所有名称
|
||||
List<DicData> selectName(@Param(value = "dicIndex") String dicIndex, @Param(value = "dicType") String dicType);
|
||||
|
||||
// 查询总条数
|
||||
int selCount(String dicTypeIndex);
|
||||
|
||||
// 根据typeID查询所有
|
||||
List<DicData> selAll(@Param("typeId") String typeId);
|
||||
|
||||
// 查询省份区域
|
||||
List<DicData> queryDicPro(@Param("typeId") String typeId);
|
||||
|
||||
//根据字典名称查询省份区域index
|
||||
DicData queryProIdByname(String dicName);
|
||||
|
||||
// 查询所有
|
||||
List<DicData> seleAll(@Param("name") String name);
|
||||
|
||||
List<DicData> selAllId(@Param("typeId") String typeId);
|
||||
|
||||
List<DicData> selAllType(@Param("typeId")List<String> typeId);
|
||||
|
||||
List<DicData> selectDataName(@Param(value = "dicIndex") String dicIndex);
|
||||
|
||||
DicData getSelName(String name);
|
||||
|
||||
List<DicData> selectWiring(@Param(value = "typeId") String typeId,@Param("dicTypeName")String dicTypeName);
|
||||
|
||||
// 查询重复
|
||||
List<DicData> selectdicName(String dicName);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<DicDataExcelBody> selectAllExcelData();
|
||||
|
||||
//查询资源类目
|
||||
List<DicData> getMangType(@Param("dicTypeName")String dicTypeName);
|
||||
|
||||
//获取出字典表指定索引
|
||||
String getDicDataIndex(@Param("type") String type, @Param("temp")int temp);
|
||||
|
||||
List<DicData> getOffTreeType(List<Integer> index);
|
||||
|
||||
List<DicData> getTreeScale(List<Integer> index);
|
||||
List<DicData> getTreeManc(List<Integer> index);
|
||||
List<DicData> getTreeLoadType(List<Integer> index);
|
||||
|
||||
//更新字典表
|
||||
void updateByPrimaryKeyBySql(DicData dicDataTemp);
|
||||
|
||||
String getDicName(@Param("dicIndex")String dicIndex);
|
||||
|
||||
//根据类型获取所有类型数据
|
||||
List<DicData> getTartgetTypeForDic(String type);
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.DicType;
|
||||
import com.njcn.pojo.excelBody.DicTypeExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DicDataTypeMapper extends Mapper<DicType> {
|
||||
|
||||
// 查
|
||||
List<DicType> All(@Param(value = "typeId") String typeId);
|
||||
|
||||
// 查
|
||||
List<DicType> selectIndexAll();
|
||||
|
||||
// 添加
|
||||
int insertType(DicType dt);
|
||||
|
||||
//查询除此之外的名称
|
||||
List<DicType> selectName(@Param(value = "dicTypeIndex") String dicTypeIndex);
|
||||
|
||||
//删除
|
||||
int deleteType(DicType dt);
|
||||
|
||||
List<DicType> getLog(@Param("list")List<String> list);
|
||||
|
||||
//修改
|
||||
int updateType(DicType dt);
|
||||
|
||||
DicType selectTypeName(@Param(value = "typeId") String typeId);
|
||||
|
||||
// 查询最大的
|
||||
int selNumMax();
|
||||
|
||||
//根据dictype_name查询
|
||||
DicType querybyname(@Param(value = "dicTypename") String dicTypename);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<DicTypeExcelBody> selectAllExcelData();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.DicTypeTree;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DicTypeTreeMapper extends Mapper<DicTypeTree> {
|
||||
public List<DicTypeTree> getfirstData();
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.commons.device.EventDataList;
|
||||
import com.njcn.pojo.commons.device.EventTypeList;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface EventDataMapper extends Mapper<EventDataList> {
|
||||
List<EventDataList> getEventDataList(@Param("lineIndex") Integer lineIndex, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
Integer getCountsByInterval(@Param("lineIndex") Integer lineIndex, @Param("interTime") String interTime);
|
||||
|
||||
List<EventDataList> areaEventDataList(@Param("list") List<Integer> lineIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
Integer getCountByIndex(@Param("lineIndex") Integer lineindex, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
List<EventTypeList> getEventTypeCount(@Param("lineIndex") Integer lineindex, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
Integer getGdcounts(@Param("gdIndex") Integer gdIndex, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.EventPushLogsDetail;
|
||||
import com.njcn.pojo.configuration.TerminalLogs;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Auther denghuajun
|
||||
* @Date 2021/8/18
|
||||
* @describe 暂降事件推送记录日志Mapper
|
||||
*/
|
||||
public interface EventPushLogsDetailMapper extends Mapper<EventPushLogsDetail> {
|
||||
List<EventPushLogsDetail> getEventPushLogsDetail(@Param("result") int result, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
List<EventPushLogsDetail> getEventPushLogsDetails(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
int updatEventPushLog(@Param("eventDetailIndex") String eventDetailIndex, @Param("lineId") Integer lineId, @Param("userUpdateTime") Date userUpdateTime);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.commons.device.ExportDev;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ExportDevMapper extends Mapper<ExportDev> {
|
||||
List<ExportDev> getExportDev(@Param("systype")String systype,@Param("list")List<Integer> datatype);
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.GDInformation;
|
||||
import com.njcn.pojo.excelBody.GDExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface GDInforMapper extends Mapper<GDInformation> {
|
||||
|
||||
List<GDInformation> selectAll();
|
||||
/**
|
||||
* 根据供电公司索引获取供电公司名称
|
||||
*/
|
||||
String getGdName(Long gdIndex);
|
||||
|
||||
Long selectMaxIndex();
|
||||
|
||||
List<GDInformation> selectNoGd(@Param("sysType")String sysType);
|
||||
|
||||
List<GDInformation> selectOthersNoGd(@Param("deptsIndex")String deptsIndex,@Param("sysType")String sysType);
|
||||
|
||||
List<GDInformation> testName(@Param("name") String name, @Param("proIndex") Long proIndex);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<GDExcelBody> selectAllExcelData();
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.LineDetail;
|
||||
import com.njcn.pojo.excelBody.LineDetailExcelBody;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface LineDetailMapper extends Mapper<LineDetail> {
|
||||
|
||||
Integer getAmounts(String time);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<LineDetailExcelBody> selectAllExcelData();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,185 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import com.njcn.pojo.commons.device.LineDetailInfo;
|
||||
import com.njcn.pojo.commons.device.LineInfo;
|
||||
import com.njcn.pojo.configuration.LineDetail;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.commons.DeviceType;
|
||||
import com.njcn.pojo.commons.device.MachineAccount;
|
||||
import com.njcn.pojo.commons.device.Tree;
|
||||
import com.njcn.pojo.configuration.Line;
|
||||
import com.njcn.pojo.data.Detailed;
|
||||
import com.njcn.pojo.data.IndexsCount;
|
||||
import com.njcn.pojo.data.InfoData;
|
||||
import com.njcn.pojo.data.Legder;
|
||||
import com.njcn.pojo.excelBody.LineExcelBody;
|
||||
import com.njcn.pojo.responsibility.ResponsibilityData;
|
||||
import com.njcn.pojo.user.Depts;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface LineMapper extends Mapper<Line> {
|
||||
|
||||
|
||||
//根据终端索引获取所有的监测点索引
|
||||
List<Integer> getLineIndex(@Param("list") List<Integer> devIndexs);
|
||||
|
||||
//根据终端索引获取所有的监测点索引
|
||||
List<Integer> getLineIndexSingle(@Param("devIndexs") Integer devIndexs, @Param("lineIndex") List<Integer> lineIndex);
|
||||
|
||||
//根据电压等级,终端索引获取合理的监测点索引
|
||||
List<Integer> getLineIndexs(@Param("list") List<Integer> devLindexs, @Param("dicIndex") String dicIndex);
|
||||
|
||||
//根据电压等级,终端索引获取合理的终端索引
|
||||
List<Integer> getDeviceIndexs(@Param("list") List<Integer> devLindexs, @Param("dicIndex") String dicIndex);
|
||||
|
||||
//根据干扰源类型终,终端索引获取合理的监测点索引
|
||||
List<Integer> getLineIndexsByLoadType(@Param("list") List<Integer> devIndexs, @Param("dicIndex") String dicIndex);
|
||||
|
||||
//根据干扰源类型终,终端索引获取合理的终端索引
|
||||
List<Integer> getDeviceIndexsByLoadType(@Param("list") List<Integer> devIndexs, @Param("dicIndex") String dicIndex);
|
||||
|
||||
Line queryLineData(Long lineid);
|
||||
|
||||
int updateScale(@Param("scale") String scale,@Param("jzCmp") Float jzCmp,@Param("pt") Float pt, @Param("subvName") String subvName, @Param("subvIndex") Long subvIndex);
|
||||
|
||||
//根据现有的监测点筛选出国网监测点
|
||||
List<Integer> getGWLines(@Param("list") List<Integer> subList);
|
||||
|
||||
String selectLineName(String name);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<LineExcelBody> selectAllExcelData();
|
||||
|
||||
//根据事件获取监测点数据
|
||||
Line getLineByEventDetailIndex(String eventIndex);
|
||||
|
||||
String getNodeIpbylineIndex(@Param("lineIndex") Long lineIndex);
|
||||
|
||||
String getNodeIpbyDevIndex(@Param("lineIndex") Long lineIndex);
|
||||
|
||||
List<Line> testName(@Param("name") String name, @Param("subvIndex") Long subvIndex, @Param("lineIndex") Long lineIndex);
|
||||
|
||||
//根据监测点获取测量间隔
|
||||
int getIntervalByIndex(Integer lineIndex);
|
||||
|
||||
//根据监测点查询该监测点的所有信息,比如 供电公司名 变电站名 装置名 IP等
|
||||
ResponsibilityData queryByLineIndex(Integer lineIndex);
|
||||
|
||||
List<Line> getLinesByPro(@Param("proIndex") int proIndex);
|
||||
|
||||
//稳态离线管理监测点
|
||||
List<Integer> getOffLineIndexWT(String systype);
|
||||
|
||||
int getRole(@Param("url") String url, @Param("role") List<String> role);
|
||||
|
||||
List<Integer> listAllIndex();
|
||||
|
||||
MachineAccount getLineName(@Param("lineId") Integer lineId);
|
||||
|
||||
/**
|
||||
* 根据系统类型获取所有的国网监测点索引
|
||||
*/
|
||||
List<Integer> getGwLinesByDeviceType(@Param("type") List<Integer> dataType);
|
||||
|
||||
List<Integer> getDeptsLineIndex(@Param("deptsIndex") String deptsIndex, @Param("sysIndex") String sysIndex, @Param("flag") boolean flag);
|
||||
|
||||
List<Integer> getDeptsLineIndexs(@Param("deptsIndex") String deptsIndex, @Param("sysIndex") String sysIndex, @Param("flag") boolean flag);
|
||||
|
||||
List<Depts> getSubDeptsIndex(@Param("parentDeptsIndex") String parentDeptsIndex, @Param("listArea") List<String> listArea);
|
||||
|
||||
List<Legder.Data> getVoltageData(@Param("list") List<Integer> list, @Param("listVoltage") List<String> listVoltage, @Param("nature") Integer nature);
|
||||
|
||||
List<Legder.Data> getTypeData(@Param("list") List<Integer> list, @Param("listType") List<String> listType, @Param("nature") Integer nature);
|
||||
|
||||
List<Legder.Data> getFactoryData(@Param("list") List<Integer> list, @Param("listFactory") List<String> listFactory, @Param("nature") Integer nature);
|
||||
|
||||
List<Legder.Data> getMonitorData(@Param("list") List<Integer> list, @Param("appear") String appear, @Param("nature") Integer nature);
|
||||
|
||||
List<Integer> siftLineIndexs(@Param("list") List<Integer> list, @Param("scale") String scale, @Param("manc") String manc, @Param("loadtype") String loadtype);
|
||||
|
||||
List<Integer> siftLineIndexsByLineGrade(@Param("list") List<Integer> list, @Param("scale") String scale, @Param("manc") String manc, @Param("loadtype") String loadtype,@Param("lineGrade") Integer lineGrade);
|
||||
|
||||
List<IndexsCount> siftAllIndexs(@Param("list") List<Integer> list, @Param("scale") String scale, @Param("manc") String manc, @Param("loadtype") String loadtype);
|
||||
|
||||
List<IndexsCount> siftAllIndexsByLineGrade(@Param("list") List<Integer> list, @Param("scale") String scale, @Param("manc") String manc, @Param("loadtype") String loadtype,@Param("lineGrade") Integer lineGrade);
|
||||
|
||||
List<Integer> getPointIndexbyVoltage(@Param("deptsIndex") String deptsIndex, @Param("sysIndex") String sysType, @Param("guid") String guid);
|
||||
|
||||
List<Integer> getPointIndexbyType(@Param("deptsIndex") String deptsIndex, @Param("sysIndex") String sysType, @Param("guid") String guid);
|
||||
|
||||
List<Integer> getPointbyMonitor(@Param("deptsIndex") String deptsIndex, @Param("sysIndex") String sysType, @Param("guid") String guid);
|
||||
|
||||
List<Detailed> getDetailed(@Param("start") Date start, @Param("end") Date end, @Param("listLine") List<Integer> listLine, @Param("list") List<Integer> list);
|
||||
|
||||
List<Tree> getTreeBySubv(@Param("subvIndex") Long subvIndex, @Param("list") List<Integer> list);
|
||||
|
||||
List<InfoData> getAreaBytimeOne(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType, @Param("index") String index);
|
||||
|
||||
List<InfoData> getAreaBytimeZero(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType, @Param("index") String index);
|
||||
|
||||
List<InfoData> getVoltage(@Param("list") List<Integer> list);
|
||||
|
||||
List<InfoData> getLoadType(@Param("list") List<Integer> list);
|
||||
|
||||
List<InfoData> getVoltageBytimeOne(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType);
|
||||
|
||||
List<InfoData> getVoltageBytimeZero(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType);
|
||||
|
||||
List<InfoData> getLoadTypeBytimeOne(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType);
|
||||
|
||||
List<InfoData> getLoadTypeBytimeZero(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType);
|
||||
|
||||
List<InfoData> getMonitorBytimeOne(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType);
|
||||
|
||||
List<InfoData> getMonitorBytimeZero(@Param("list") List<Integer> list, @Param("typeName") String typName, @Param("start") Date start, @Param("end") Date end, @Param("sysType") Integer sysType);
|
||||
|
||||
//根据变电站id获取变电站名称
|
||||
String getSubNameById(@Param("id") Long id);
|
||||
|
||||
/**
|
||||
* 根据系统类型获取所有的国网监测点索引(电度)
|
||||
*/
|
||||
List<Integer> getGwLinesByDevicePlateType(@Param("type") List<Integer> dataType);
|
||||
|
||||
/**
|
||||
* 根据监测点id集合判断设备号是否重复
|
||||
* @author cdf
|
||||
* @date 2021/8/12
|
||||
*/
|
||||
Integer getDevSumForLine(@Param("list") Set<Integer> list);
|
||||
|
||||
LineInfo getLineObject(@Param("lineIndex")Integer lineIndex);
|
||||
|
||||
Integer getDeviceIndex(@Param("lineIndex")Integer lineIndex);
|
||||
|
||||
/**
|
||||
* 根据母线id获取母线下所有监测点
|
||||
* @author cdf
|
||||
* @date 2021/11/17
|
||||
*/
|
||||
List<Line> getLineListBySubVId(@Param("subVindex")Long subVindex);
|
||||
|
||||
/***
|
||||
* 获取监测点等级
|
||||
* @author hongawen
|
||||
* @date 2023/7/31 10:35
|
||||
*/
|
||||
String getLineGradeById(@Param("lineIndex") Long lineIndex);
|
||||
|
||||
/**
|
||||
* 装置调整状态时,将监测点状态也调整为装置状态
|
||||
* @param status 装置状态
|
||||
* @param devIndex 装置ID
|
||||
* @return
|
||||
*/
|
||||
int updateLineStatus(@Param("status") Integer status, @Param("devIndex") Long devIndex);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.commons.device.MachineAccount;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface MacAccountMapper extends Mapper<MachineAccount> {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
|
||||
import com.njcn.pojo.configuration.Monitor;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
|
||||
public interface MonitorMapper extends Mapper<Monitor> {
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.NodeInformation;
|
||||
import com.njcn.pojo.excelBody.NodeInformationExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface NodeInformationMapper extends Mapper<NodeInformation>{
|
||||
Long selectMaxIndex();
|
||||
|
||||
List<NodeInformation> testName(@Param("nodeName") String nodeName, @Param("nodeIndex") Long nodeIndex);
|
||||
|
||||
NodeInformation setIp(@Param("nodeIndex")int nodeIndex);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<NodeInformationExcelBody> selectAllExcelData();
|
||||
|
||||
NodeInformation selByName(@Param("nodeName")String nodeName);
|
||||
|
||||
//获取最大排序号
|
||||
Integer getMaxOrder();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.OverLimit;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface OverLimitMapper extends Mapper<OverLimit> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.configuration.Project;
|
||||
import com.njcn.pojo.configuration.Province;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ProjectMapper extends Mapper<Project> {
|
||||
List<Project> checkName(@Param("name")String name);
|
||||
|
||||
Long selectMaxIndex();
|
||||
|
||||
List<Project> testName(@Param("name")String name,@Param("projIndex")Long projIndex);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.ProtectControlWord;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ProtectControlWordMapper extends Mapper<ProtectControlWord> {
|
||||
List<ProtectControlWord> getAll(@Param("pvIndex")String pvIndex);
|
||||
int updateWord(@Param("pvIndex")String pvIndex,@Param("flag")int flag,@Param("typeNum")int typeNum);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.excelBody.ProvinceExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.configuration.Province;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ProvinceMapper extends Mapper<Province> {
|
||||
Long selectMaxIndex();
|
||||
|
||||
List<Province> testName(@Param("name")String name,@Param("proIndex")Long proIndex);
|
||||
|
||||
List<Province> checkName(@Param("name")String name,@Param("projectIndex")Long projectIndex);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<ProvinceExcelBody> selectAllExcelData();
|
||||
|
||||
|
||||
//根据area查询
|
||||
List<Province> getArea(@Param("area")String area);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.configuration.PushInfo;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface PushInfoMapper extends Mapper<PushInfo> {
|
||||
public List<PushInfo> selAll();
|
||||
|
||||
public int delByIP(@Param("nodeip")String nodeip);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.RPTree;
|
||||
import com.njcn.pojo.configuration.RptData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface RPTreeMapper extends Mapper<RPTree> {
|
||||
public List<RPTree> getfirstData(@Param("dataType") Integer dataType);
|
||||
|
||||
public List<RPTree> getsecondData(@Param("first") List<Integer> first,@Param("dataType") Integer dataType);
|
||||
|
||||
List<RptData> getExcelSetting();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.configuration.Report;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ReportMapper extends Mapper<Report> {
|
||||
List<Report> getAll();
|
||||
|
||||
int insertData(Report report);
|
||||
|
||||
int updateData(Report report);
|
||||
|
||||
Report testName(String name);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.ReportModel;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ReportModelMapper extends Mapper<ReportModel> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.RptAss;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface RptAssMapper extends Mapper<RptAss>{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.RptData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface RptDataMapper extends Mapper<RptData> {
|
||||
|
||||
int getMaxDesc();
|
||||
|
||||
List<RptData> testName(@Param("name") String name, @Param("rdIndex") String rdIndex);
|
||||
|
||||
List<RptData> getDatasByPloy(String rpIndex);
|
||||
|
||||
int deleteData(@Param("rdIndex") String rdIndex, @Param("updateTime") Date time);
|
||||
|
||||
int updateData(@Param("shortName") String shortName, @Param("fullName") String fullName, @Param("rdIndex") String rdIndex, @Param("updateTime") Date time);
|
||||
|
||||
List<RptData> getNodeData(@Param("parent") Integer parent,@Param("dataType") Integer dataType);
|
||||
|
||||
List<String> getTreeState(@Param("rpIndex") String rpIndex);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.RptPloy;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface RptPloyMapper extends Mapper<RptPloy>{
|
||||
List<RptPloy> testName(@Param("rpIndex") String rpIndex, @Param("name") String name);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.excelBody.SubStationExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.commons.device.SubInfo;
|
||||
import com.njcn.pojo.configuration.SubStation;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface SubStationMapper extends Mapper<SubStation>{
|
||||
|
||||
Long selectMaxIndex();
|
||||
|
||||
List<SubStation> testName(@Param("name") String name, @Param("subIndex") Long subIndex, @Param("gdIndex") Long gdIndex);
|
||||
|
||||
SubInfo getSubDetail(@Param("subIndex")Long subIndex);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<SubStationExcelBody> selectAllExcelData();
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.SubVoltage;
|
||||
import com.njcn.pojo.excelBody.DeviceDetailExcelBody;
|
||||
import com.njcn.pojo.excelBody.SubVoltageExcelBody;
|
||||
import com.njcn.pojo.user.LogicNext;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface SubVoltageMapper extends Mapper<SubVoltage> {
|
||||
public Long selectMaxSubvIndex();
|
||||
|
||||
List<SubVoltage> testName(@Param("name")String name,@Param("devIndex")Long devIndex,@Param("subvIndex")Long subvIndex);
|
||||
//查询所有
|
||||
List<SubVoltage> selectIndexAll(@Param("subIndex")int subIndex);
|
||||
//根据id查询除此之外的数据
|
||||
List<LogicNext> selectExAll(@Param("subvIndex")int subvIndex, @Param("subIndex")int subIndex, @Param(value = "tfIndex") String tfIndex);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<SubVoltageExcelBody> selectAllExcelData();
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.SysSet;
|
||||
import com.njcn.pojo.data.FunctionPloyEntity;
|
||||
import com.njcn.pojo.data.MenuEntity;
|
||||
import com.njcn.pojo.data.TimerManage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
public interface SysMapper extends Mapper<SysSet> {
|
||||
|
||||
int update(SysSet set);
|
||||
|
||||
List<MenuEntity> listMenu(@Param("systype") String systype);
|
||||
|
||||
List<MenuEntity> parentMenulist(@Param("systype") String systype);
|
||||
|
||||
List<MenuEntity> menuTypeList(@Param("name") String name);
|
||||
|
||||
void insertData(@Param("menuEntity") MenuEntity menuEntity, @Param("userIndex") String userIndex, @Param("sysType") String sysType);
|
||||
|
||||
void updateData(@Param("menuEntity") MenuEntity menuEntity, @Param("userIndex") String userIndex);
|
||||
|
||||
void deleteMenu(@Param("id") String id, @Param("userIndex") String userIndex, @Param("time") Date time);
|
||||
|
||||
List<FunctionPloyEntity> menuPloyList(@Param("sysType") String sysType);
|
||||
|
||||
List<MenuEntity> roleList();
|
||||
|
||||
void insertRoleMenuData(@Param("roleId") String roleId, @Param("list") List<String> list, @Param("uuid") String uuid);
|
||||
|
||||
void insertFunctionRoleData(@Param("uuid") String uuid, @Param("roleId") String roleId, @Param("name") String name, @Param("des") String des, @Param("date") Date date, @Param("userIndex") String userIndex, @Param("sysType") String sysType);
|
||||
|
||||
void deleteRoleMenuData(@Param("roleId") String roleId, @Param("id") String id);
|
||||
|
||||
void updateRoleMenuData(@Param("id") String id, @Param("name") String name, @Param("des") String des, @Param("date") Date date, @Param("userIndex") String userIndex);
|
||||
|
||||
void deleteFunctionRoleData(@Param("id") String id, @Param("date") Date date, @Param("userIndex") String userIndex);
|
||||
|
||||
List<String> roleStateList(@Param("sysType") String sysType);
|
||||
|
||||
List<String> getRoleFunction(@Param("roleId") String roleId, @Param("id") String id);
|
||||
|
||||
List<MenuEntity> getListMenu(@Param("list") List<String> list, @Param("sysType") String sysType);
|
||||
|
||||
List<TimerManage> getTimerManage();
|
||||
|
||||
Integer setTimerState(@Param("guid") String guid, @Param("state") Integer state);
|
||||
|
||||
String getTimerManageByGuid(@Param("guid") String guid);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import com.njcn.pojo.configuration.TerminalLogs;
|
||||
import com.njcn.pojo.data.Legder;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Auther denghuajun
|
||||
* @Date 2021/7/21
|
||||
* @describe 更改终端状态记录日志Mapper
|
||||
*/
|
||||
public interface TerminalLogsMapper extends Mapper<TerminalLogs> {
|
||||
List<TerminalLogs> selectLogs(@Param("startTime")Date startTime,@Param("endTime")Date endTime);
|
||||
List<TerminalLogs> selectLog(@Param("terminalType") String terminalType,@Param("startTime")Date startTime,@Param("endTime")Date endTime);
|
||||
List<TerminalLogs> selectLogByDevId(@Param("devId")String devId,@Param("terminalType") String terminalType,@Param("startTime")Date startTime,@Param("endTime")Date endTime);
|
||||
|
||||
Integer batchAddTerminalLogs(List<TerminalLogs> list);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface TerminalMapper {
|
||||
/**
|
||||
* @Author denghuajun
|
||||
* @Description 通过终端id判断是否有终端版本号
|
||||
* @Date 9:50 2020/12/25
|
||||
**/
|
||||
int getEdDataNumDev(@Param("devIndex")String devIndex);
|
||||
|
||||
/**
|
||||
* @Author denghuajun
|
||||
* @Description 通过监测点id判断是否有终端版本号
|
||||
* @Date 9:50 2020/12/25
|
||||
**/
|
||||
int getEdDataNumLine(@Param("lineIndex")String lineIndex);
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
package com.njcn.mapper.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.commons.device.Tree;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface TreeMapper extends Mapper<Tree> {
|
||||
|
||||
List<Tree> getProjInfo();
|
||||
|
||||
List<Tree> getProInfo();
|
||||
|
||||
//获取指定项目下的省份
|
||||
List<Tree> getProjInfoByName(String name);
|
||||
|
||||
List<Tree> getProByProj(List<Integer> index);
|
||||
|
||||
List<Tree> getGdInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getGdByPro(List<Integer> index);
|
||||
|
||||
List<Tree> getSubInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getTransInfo(List<Integer> suIndex);
|
||||
|
||||
List<Tree> getDevInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getLineInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getDevice(List<Integer> index);
|
||||
|
||||
List<Tree> getSubv(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeProInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeGdInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeSubInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getWTTreeDevInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getWTTreeDevInfoOffline(List<Integer> index);
|
||||
|
||||
List<Tree> getZTTreeDevInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeSubvInfo(List<Integer> index);
|
||||
//获取离线的装置,区分系统
|
||||
List<Tree> getOffLineDevice(@Param("list") List<Integer> index, @Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType);
|
||||
|
||||
List<Tree> getDeviceWT(List<Integer> index);
|
||||
|
||||
List<Tree> getDeviceZT(List<Integer> index);
|
||||
|
||||
List<Tree> getDeviceWTOnline(List<Integer> index);
|
||||
|
||||
List<Tree> getDeviceZTOnline(List<Integer> index);
|
||||
|
||||
|
||||
List<Tree> getOffTreeProJInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getOffTreeProVInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getOffTreeSubInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getOffTreeLineInfo(List<Integer> index);
|
||||
|
||||
List<Tree> getOffYearProJInfo(@Param("list") List<Integer> index, @Param("year") List<String> year);
|
||||
|
||||
List<Tree> getOffYearProVInfo(@Param("list") List<Integer> index, @Param("year") String year);
|
||||
|
||||
List<Tree> getOffYearSubInfo(@Param("list") List<Integer> index, @Param("year") String year);
|
||||
|
||||
List<Tree> getOffYearLineInfo(@Param("list") List<Integer> index, @Param("year") String year);
|
||||
|
||||
List<Tree> getOffTypeProJInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getOffTypeProVInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getOffTypeSubInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getOffTypeLineInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
//根据条件获取省会节点信息
|
||||
List<Tree> getProInfoByDevice(@Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType);
|
||||
|
||||
//根据条件获取供电公司节点信息
|
||||
List<Tree> getGDInfoByDevice(@Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType, @Param("nodeIndex") int nodeIndex);
|
||||
|
||||
//根据条件获取变电站节点信息
|
||||
List<Tree> getSubInfoByDevice(@Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType, @Param("nodeIndex") int nodeIndex);
|
||||
|
||||
//根据条件获取装置节点信息
|
||||
List<Tree> getDevInfoByDevice(@Param("devModel") Integer devModel, @Param("dataType") List<Integer> dataType, @Param("nodeIndex") int nodeIndex);
|
||||
|
||||
//根据条件获取母线节点信息
|
||||
List<Tree> getSubvInfoByDevice(int nodeIndex);
|
||||
|
||||
//根据条件获取监测点节点信息
|
||||
List<Tree> getLineInfoByDevice(int nodeIndex);
|
||||
|
||||
|
||||
List<Tree> getTreeGdInfoByGw(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeSubInfoByGw(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeSubvInfoByGw(List<Integer> index);
|
||||
|
||||
List<Tree> getLineInfoByGw(List<Integer> index);
|
||||
|
||||
List<Tree> getScaleProVInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getScaleGdInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getScaleSubInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getScaleDevInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getScaleSubvInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getMancProVInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getMancGdInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getMancSubInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getMancDevInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getMancSubvInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getLoadTypeProVInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getLoadTypeGdInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getLoadTypeSubInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getLoadTypeDevInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getLoadTypeSubvInfo(@Param("list") List<Integer> index, @Param("type") String type);
|
||||
|
||||
List<Tree> getNodeTreeSubvInfo(List<Integer> index);
|
||||
|
||||
/*pq9900webtool专用专用*/
|
||||
List<Tree> getTreeGdInfoToWebTool(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeSubInfoToWebTool(List<Integer> index);
|
||||
|
||||
List<Tree> getLineInfoToWebTool(List<Integer> index);
|
||||
|
||||
List<Tree> getTreeBySubv(@Param("subvIndex") Long subvIndex);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.data.Asses;
|
||||
import com.njcn.pojo.data.PqsComasses;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0
|
||||
* @Date 2018/6/12 16:15
|
||||
*/
|
||||
public interface AssesMapper extends Mapper<Asses> {
|
||||
|
||||
//获取时间范围内,对应监测点的电压偏差
|
||||
Asses getVol(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("list") List<Integer> lineIds);
|
||||
|
||||
//获取对应范围内综合质量
|
||||
List<PqsComasses> getSynData(@Param("list")List<Integer> temp,@Param("startTime")Date startTime,@Param("endTime")Date endTime);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.DataLoss;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DataLossMapper extends Mapper<DataLoss> {
|
||||
List<DataLoss> getDataLoss();//查询所有
|
||||
|
||||
List<DataLoss> getDataAll(@Param(value = "startTime") String start, @Param(value = "endTime") String end, @Param
|
||||
(value
|
||||
= "lineIndex") Long lineIndex);
|
||||
|
||||
List<DataLoss> getTj(@Param(value = "startTime") String start, @Param(value = "endTime") String end, @Param(value
|
||||
= "lineIndex") Long lineIndex);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.DatabaseRunning;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DatabaseRunningMapper extends Mapper<DatabaseRunning> {
|
||||
List<DatabaseRunning> getDatabaseRunning();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* system
|
||||
* 终端升级流水记录mapper
|
||||
* @author cdf
|
||||
* @date 2021/8/5
|
||||
*/
|
||||
public interface DevEdAssNapper{
|
||||
|
||||
Integer addUpDevAssDetail(@Param("devIndex") String devIndex, @Param("edIndex")String edIndex, @Param("updateTime")Date updateTime, @Param("updateUser")String updateUser, @Param("updateResult")Integer updateResult, @Param("state")Integer state);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.EventAss;
|
||||
import com.njcn.pojo.excelBody.EventAssExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface EventAssMapper extends Mapper<EventAss>{
|
||||
|
||||
Integer getCountsByInterval(@Param("interTime") String interTime);
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<EventAssExcelBody> selectAllExcelData();
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.advanced.SagEvent;
|
||||
import com.njcn.pojo.commons.EventInfoDetail;
|
||||
import com.njcn.pojo.commons.SimpleValue;
|
||||
import com.njcn.pojo.commons.area.StatisticsEventDetail;
|
||||
import com.njcn.pojo.data.EventDetail;
|
||||
import com.njcn.pojo.data.EventDetailExcelBody;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface EventDetailMapper extends Mapper<EventDetail> {
|
||||
|
||||
List<EventDetail> queryVoltageList(@Param("startTime") Date startTime, @Param("endTime") Date endTime,
|
||||
@Param("list") List<Integer> linesIndex,@Param("waveType") String waveType,
|
||||
@Param("minfuzhi") BigDecimal minfuzhi, @Param("maxfuzhi")BigDecimal maxfuzhi, @Param("mintime")BigDecimal mintime,
|
||||
@Param("maxtime")BigDecimal maxtime, @Param("minseverity")BigDecimal minseverity, @Param("maxseverity")BigDecimal maxseverity,
|
||||
@Param("eventType")List<String> eventType, @Param("eventReason")List<String> eventReason, @Param("triggerType")List<Integer> triggerType,@Param("fileflag")Integer fileflag);
|
||||
|
||||
|
||||
|
||||
Integer getCountsByInterval(@Param("interTime") String interTime, @Param("list") List<Integer> temp);
|
||||
|
||||
/**
|
||||
* 区域分析画图需要的
|
||||
*/
|
||||
List<StatisticsEventDetail> queryEventDetail(@Param("startTime") Date startTime, @Param("endTime") Date endTime,
|
||||
@Param("list") List<Integer> linesIndex);
|
||||
|
||||
List<EventDetail> queryZj(@Param("startTime") String startTime, @Param("endTime") String endTime,
|
||||
@Param("start") String start,
|
||||
@Param("end") String end, @Param("lineId") Long linesIndex);
|
||||
|
||||
List<EventDetail> getrunevent(@Param(value = "lineIndex") List<Integer> lineIndex);
|
||||
|
||||
SimpleValue querySubLevel(@Param("startTime") Date sTime, @Param("endTime") Date eTime,
|
||||
@Param("subIndex") Integer integer, @Param("lineIndex") List<Integer> lineIndexTemp);
|
||||
|
||||
List<SimpleValue> queryLineLevel(@Param("startTime") Date sTime, @Param("endTime") Date eTime,
|
||||
@Param("lineIndex") List<Integer> integer);
|
||||
|
||||
/**
|
||||
* @高级算法部分增加查库操作
|
||||
*/
|
||||
Integer queryDealFlag(String indexEvt);
|
||||
|
||||
void updateDealFlag(@Param("code") Integer code, @Param("indexEvt") String indexEvt);
|
||||
|
||||
void updateCause(@Param("code") Integer code, @Param("indexEvt") String indexEvt);
|
||||
|
||||
/*******************************
|
||||
* 根据ID查询暂降原因/暂降类型描述
|
||||
*******************************/
|
||||
String querySagDescriptionbyId(@Param("code") Integer code, @Param("typename") String typename);
|
||||
|
||||
String querySagDescriptionbyIndex(@Param("indexEvt") String indexEvt);
|
||||
|
||||
/**
|
||||
* @高级算法更新数据库操作
|
||||
*/
|
||||
void updateSagData(@Param("sagEvent") SagEvent sagEvent);
|
||||
|
||||
/**
|
||||
* 根据监测点查时间范围内发生了多少次暂降次数
|
||||
*/
|
||||
Integer queryVoltageCountsByLineIndexs(@Param("list") List<Integer> tempLineIndexs,
|
||||
@Param("startTime") Date stratTime, @Param("endTime") Date endTime);
|
||||
|
||||
/**
|
||||
* 根据条件查询出暂降事件列表
|
||||
*/
|
||||
List<EventDetailExcelBody> getEventDetailList(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("list") List<Integer> temp);
|
||||
|
||||
|
||||
void updateSeverity(@Param("index") String eventDetailIndex, @Param("severity") Float severity);
|
||||
|
||||
Integer getPtType(@Param("eventIndex") String index);
|
||||
|
||||
List<SimpleValue> queryLineEvents(@Param("list") List<Integer> lineIndexs,
|
||||
@Param("startTime") Date stratTime, @Param("endTime") Date endTime);
|
||||
|
||||
EventInfoDetail eventDetailBaseInfoByIndex(@Param("eventdetailIndex") String eventdetailIndex);
|
||||
|
||||
EventDetail selectByIndex(String eventIndex);
|
||||
|
||||
EventDetail selectByTimeIdAndLineIndex(@Param("timeId")Date timeId, @Param("ms")Long ms, @Param("lineId")Long lineId);
|
||||
|
||||
Integer getSuspendByMonitor(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("list") List<Integer> list);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.commons.area.EventPz;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface EventPzMapper extends Mapper<EventPz> {
|
||||
List<EventPz> getZjsj(@Param(value = "lineIndex") List<Integer> lineIndex);
|
||||
|
||||
|
||||
/**
|
||||
* 处理暂降
|
||||
* @author cdf
|
||||
* @date 2022/7/15
|
||||
*/
|
||||
int dealEventWarn(@Param("list")List<String> list);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.GridTop;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface GridTopMapper extends Mapper<GridTop> {
|
||||
|
||||
//获取所有网络拓扑图
|
||||
List<GridTop> queryGridTop();
|
||||
|
||||
List<GridTop> getGirdTop(@Param(value = "vollevel") String vollevel);
|
||||
//获取某电压等级的最大序号
|
||||
int getMaxSequen(@Param(value = "vollevel") int vollevel);
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.commons.HistoryData;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface HistoryDataMapper extends Mapper<HistoryData> {
|
||||
//相电压有效值
|
||||
List<HistoryData> getXVrValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday") int flagday);
|
||||
//线电压有效值
|
||||
List<HistoryData> getLVrValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//电压偏差
|
||||
List<HistoryData> getDypc(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//三相电压不平衡度
|
||||
List<HistoryData> getSxbphd(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//电压不平衡
|
||||
List<HistoryData> getBphdy(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//电压总谐波畸变率
|
||||
List<HistoryData> getDyzjbl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//电流有效值
|
||||
List<HistoryData> getDlyxz(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//负序电流
|
||||
List<HistoryData> getFxdl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//频率
|
||||
List<HistoryData> getPl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//谐波电压含有率(基波)
|
||||
List<HistoryData> getJbhyl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//谐波电压含有率(N次谐波)
|
||||
List<HistoryData> getXbhyl(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//谐波电流幅值
|
||||
List<HistoryData> getXbdlfz(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//间谐波电压含有率
|
||||
List<HistoryData> getJxbhyl(@Param("innumber")String innumber,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//有功功率
|
||||
List<HistoryData> getYggl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//无功功率
|
||||
List<HistoryData> getWggl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//视在功率
|
||||
List<HistoryData> getSzgl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//电流总谐波畸变率
|
||||
List<HistoryData> getDlzjbl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//长时闪变
|
||||
List<HistoryData> getCssb(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//短时闪变
|
||||
List<HistoryData> getDssb(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//电压波动
|
||||
List<HistoryData> getDybd(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//有功功率
|
||||
List<HistoryData> getYgzgl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//无功功率
|
||||
List<HistoryData> getWgzgl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//视在功率
|
||||
List<HistoryData> getSzzgl(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//视在功率因数
|
||||
List<HistoryData> getSzglys(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//位移功率因数
|
||||
List<HistoryData> getWyglys(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//视在功率因数
|
||||
List<HistoryData> getZSzglys(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//位移功率因数
|
||||
List<HistoryData> getZWyglys(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
|
||||
//谐波电压相角
|
||||
List<HistoryData> getXbVXj(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
//谐波电流相角
|
||||
List<HistoryData> getXbIXj(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
|
||||
//谐波有功功率
|
||||
List<HistoryData> getXbYGGl(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
|
||||
//谐波无功功率
|
||||
List<HistoryData> getXbWGGl(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
|
||||
//谐波视在功率
|
||||
List<HistoryData> getXbSZGl(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")String start,@Param("end")String end,@Param("flagday")int flagday);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.Relevance;
|
||||
import com.njcn.pojo.excelBody.RelevanceExcelBody;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @Date: 2018/11/13 10:27
|
||||
*/
|
||||
public interface IRelevanceMapper extends Mapper<Relevance> {
|
||||
|
||||
//获取该表所有数据,提供excel导出
|
||||
List<RelevanceExcelBody> selectAllExcelData();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.commons.SimpleValue;
|
||||
import com.njcn.pojo.commons.runmanage.IntergralityTable;
|
||||
import com.njcn.pojo.data.Integrity;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date 2018/4/11 15:53
|
||||
*/
|
||||
public interface IntegrityMapper extends Mapper<Integrity> {
|
||||
//根据监测点查询笼统的数据完整性
|
||||
SimpleValue selectIntegralityByLineIndexAndTime(@Param("list")List<Integer> temp, @Param("startTime")Date startTime, @Param("endTime")Date endTime);
|
||||
|
||||
//根据监测点查询笼统的数据完整性(国网)
|
||||
SimpleValue selectGwIntegralityByLineIndexAndTime(@Param("list")List<Integer> temp, @Param("startTime")Date startTime, @Param("endTime")Date endTime);
|
||||
|
||||
//根据监测点获取前20条数据,按完整性从低到高排序
|
||||
List<SimpleValue> selectGistIntegrality(@Param("list") List<Integer> temp, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//查询监测点时间范围内详细的数据完整性
|
||||
List<IntergralityTable> selectIntegrityData(@Param("list") List<Integer> tempIndexs,@Param("startTime")Date startTime,@Param("endTime") Date endTime);
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.advanced.HarmonicRateInfo;
|
||||
import com.njcn.pojo.commons.SimpleValue;
|
||||
import com.njcn.pojo.commons.SteadyData;
|
||||
import com.njcn.pojo.commons.runmanage.SteadyTable;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.commons.device.ValueOfTargetanaly;
|
||||
import com.njcn.pojo.data.LimitRate;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date 2018/4/13 12:15
|
||||
*/
|
||||
public interface LimitRateMapper extends Mapper<LimitRate> {
|
||||
|
||||
ValueOfTargetanaly getsteadyoutoflimit(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("lineIndex") Long lineIndex);
|
||||
|
||||
//根据监测点索引获取时间范围内的频率偏差
|
||||
SimpleValue getFrequencyDevitaion(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//根据监测点索引、时间获取电压不平衡数据合格率
|
||||
SimpleValue getUBalane(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//根据监测点索引、时间获取电压畸变率合格率
|
||||
SimpleValue getUAberrance(@Param("list") List<Integer> lineIndexTemp, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//根据监测点索引、时间获取电压偏差合格率
|
||||
SimpleValue getVoltageDeviation(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//根据监测点索引、时间获取闪变合格率
|
||||
SimpleValue getFlicker(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
// 根据监测点索引、时间获取奇次电压合格率
|
||||
SimpleValue getOddVoltage(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
// 根据监测点索引、时间获取偶次电压合格率
|
||||
SimpleValue getEventVoltage(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
// 根据监测点索引、时间获取奇次电流合格率
|
||||
SimpleValue getOddElectric(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
// 根据监测点索引、时间获取偶次电流合格率
|
||||
SimpleValue getEventElectric(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//根据时间获取所有监测点下的稳态各项指标的数据
|
||||
SteadyData getsteadData(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//获取时间范围内各监测点的电压不平衡/频率偏差/电压畸变率/电压偏差/闪变/奇次电压/偶次电压/奇次电流/偶次电流
|
||||
List<SteadyTable> getSteadyDataByT(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//获取时间范围内各监测点的电压不平衡/频率偏差/电压畸变率/电压偏差/闪变/奇次电压/偶次电压/奇次电流/偶次电流
|
||||
SteadyData getsteadDataByT(@Param("list") List<Integer> tempIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
List<HarmonicRateInfo> getHarmonicRate(@Param("start") Date startTime, @Param("end") Date endTime, @Param("list") List<Integer> list);
|
||||
|
||||
List<LimitRate> queryData(@Param("lineIndex") Integer lineIndex, @Param("startTime") String startTime, @Param("endTime") String endTime);
|
||||
|
||||
Long sumlimitRate(@Param("lineIndex") Integer lineIndex, @Param("timeId") Date timeId);
|
||||
|
||||
LimitRate selectLimitRate(@Param("lineIndex") Integer lineIndex, @Param("timeId") Date timeId);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.LineMaps;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface LineMapsMapper extends Mapper<LineMaps> {
|
||||
|
||||
//获取所有监测点的地里信息图(已绑定事件的剔除)
|
||||
List<LineMaps> queryLineMaps(@Param("lstGDsql") List<Integer> lstGDsql);
|
||||
|
||||
|
||||
/*******************************
|
||||
* 获取监测点的经纬度及相应的信息根据归一化GUID
|
||||
* *****************************/
|
||||
List<LineMaps> queryLineMapByAssID(String eventass_index);
|
||||
|
||||
/**
|
||||
* 获取所有监测点的地里信息图
|
||||
* @author cdf
|
||||
* @date 2021/6/2
|
||||
*/
|
||||
List<LineMaps> queryLineMapsForAll(@Param("lstGDsql") List<Integer> lstGDsql);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.LogBackUp;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/** @Author denghuajun
|
||||
* @Description //TODO 日志备份mapper
|
||||
* @Date 2018/9/26 10:26
|
||||
**/
|
||||
public interface LogBackUpMapper extends Mapper<LogBackUp> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.data.Maps;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface MapMapper extends Mapper<Maps> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.njcn.pojo.data.OfflLog;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface OfflLogMapper extends Mapper<OfflLog> {
|
||||
List<String> getYearByGd(List<Integer> index);
|
||||
List<OfflLog> getSETimeByIndex(Long lineIndex);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import com.njcn.pojo.commons.SimpleValue;
|
||||
import com.njcn.pojo.commons.runmanage.OnlineRateData;
|
||||
import com.njcn.pojo.data.OnlineRate;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface OnlineRateMapper extends Mapper<OnlineRate> {
|
||||
|
||||
SimpleValue selectOnlineRateByDeviceIndexAndTime(@Param("list") List<Integer> list, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
List<SimpleValue> selectCityOnlineRate(@Param("list") List<Integer> temp, @Param("startTime")Date startTime,@Param("endTime")Date endTime);
|
||||
|
||||
//运行管理--》终端在线率
|
||||
List<OnlineRateData> selectOnlineRate(@Param("list")List<Integer> deviceIndexs, @Param("startTime")Date startTime, @Param("endTime")Date endTime);
|
||||
|
||||
//根据监测点查询国网的在线率
|
||||
Float getGWOnlineRate(@Param("list")List<Integer> lineIndex, @Param("startTime")Date startTime, @Param("endTime")Date endTime);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.njcn.mapper.data;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.data.SynData;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface SynDataMapper extends Mapper<SynData> {
|
||||
void deleteByIndex(@Param("myIndex") int myIndex, @Param("node") Long node);
|
||||
|
||||
Float getSynData(@Param("myIndex") int myIndex, @Param("node") Long node);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import com.njcn.pojo.excelreport.ReportValueData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface GetDistortionMapper {
|
||||
List<ReportValueData> getDistortionData(@Param("conditionData") ConditionData conditionData, @Param("str") String str);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetFlickerMapper {
|
||||
List<Map<String, Object>> getFlickerData(@Param("conditionData") ConditionData conditionData);
|
||||
|
||||
List<Map<String, Object>> getLFlickerData(@Param("conditionData") ConditionData conditionData);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetFpyDataMapper {
|
||||
//flag标识查询方式
|
||||
List<Map<String, Object>> getFpy(@Param("conditionData") ConditionData conditionData, @Param("list") List<Integer> list, @Param("flag") int flag);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetFrequencyMapper {
|
||||
List<Map<String, Object>> getFrequencyData(@Param("conditionData") ConditionData conditionData);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetICurrentDataMapper {
|
||||
List<Map<String, Object>> getICurrent(@Param("conditionData") ConditionData conditionData, @Param("listValue") List<Integer> list);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetInICurrentDataMapper {
|
||||
List<Map<String, Object>> getICurrent(@Param("conditionData") ConditionData conditionData, @Param("listValue") List<Integer> list);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import com.njcn.pojo.excelreport.ReportValueData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetInVoltageRateDataMapper {
|
||||
List<Map<String, Object>> getInVoltageRate(@Param("conditionData") ConditionData conditionData, @Param("listValue") List<Integer> list);
|
||||
|
||||
List<ReportValueData> getInFirstHarmonic(@Param("conditionData") ConditionData conditionData);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import com.njcn.pojo.excelreport.ReportValueData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface GetPowerMapper {
|
||||
List<ReportValueData> getPower(@Param("conditionData") ConditionData conditionData, @Param("str") String str);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetThreephaseMapper {
|
||||
List<Map<String, Object>> getThreephase(@Param("conditionData") ConditionData conditionData, @Param("str") String str);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetVdeviationMapper {
|
||||
List<Map<String, Object>> getVdeviationData(@Param("conditionData") ConditionData conditionData);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import com.njcn.pojo.excelreport.ReportValueData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author: Sunwei 【sunW2016@163.com】
|
||||
* @Description:
|
||||
* @Date: Create in 10:46 2018/6/7
|
||||
* @Modified By:
|
||||
*/
|
||||
public interface GetVirtualMapper {
|
||||
Integer getTotalCP95(@Param("conditionData") ConditionData conditionData, @Param("tableName") String tableName);
|
||||
|
||||
Integer getTotalPltCP95(@Param("conditionData") ConditionData conditionData, @Param("tableName") String tableName);
|
||||
|
||||
Integer getTotalPstCP95(@Param("conditionData") ConditionData conditionData, @Param("tableName") String tableName);
|
||||
|
||||
List<ReportValueData> getVirtualData(@Param("conditionData") ConditionData conditionData, @Param("tableName") String tableName);
|
||||
|
||||
Map<String, Object> getVVirtualData(@Param("conditionData") ConditionData conditionData);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import com.njcn.pojo.excelreport.ReportValueData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface GetVoltageDataMapper {
|
||||
List<ReportValueData> getVoltageData(@Param("conditionData") ConditionData conditionData);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.excelreport.ConditionData;
|
||||
import com.njcn.pojo.excelreport.ReportValueData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface GetVoltageRateDataMapper {
|
||||
List<Map<String, Object>> getVoltageRate(@Param("conditionData") ConditionData conditionData, @Param("listValue") List<Integer> list);
|
||||
|
||||
List<ReportValueData> getFirstHarmonic(@Param("conditionData") ConditionData conditionData);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.njcn.mapper.excelreport;
|
||||
|
||||
import com.njcn.pojo.data.LimitRate;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface PercentMapper {
|
||||
LimitRate getFpy(@Param("list") List<Integer> list, @Param("pointIndex") Integer pointIndex, @Param("start") Date startTime, @Param("end") Date endTime);
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.njcn.mapper.log;
|
||||
|
||||
import com.njcn.pojo.log.UserLogDetail;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface UserLogDetailMapper extends Mapper<UserLogDetail> {
|
||||
List<UserLogDetail> getUserLog();
|
||||
|
||||
List<UserLogDetail> getWarnInfo();
|
||||
|
||||
Float getMemoInfo();
|
||||
|
||||
public void delExpireLog(@Param("endTime") Date endTime);//删除过期日志
|
||||
|
||||
List<UserLogDetail> getDangerInfo();
|
||||
|
||||
List<UserLogDetail> getUserLogId(@Param("username") String username, @Param("type") String type, @Param("name") String name, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//统计事件类型
|
||||
List<UserLogDetail> geteventtype(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//统计详细事件
|
||||
List<UserLogDetail> getdetailtype(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//统计用户
|
||||
List<UserLogDetail> getUserStatistics(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
//统计月份
|
||||
Integer getdetailmonth(@Param("month") String month);
|
||||
|
||||
void changeState(@Param("list") List<String> indexs);
|
||||
|
||||
List<UserLogDetail> getSjtj(@Param("username") String username, @Param("type") String type, @Param("name") String name, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.njcn.mapper.log;
|
||||
|
||||
import com.njcn.pojo.log.UserLog;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface UserLogMapper extends Mapper<UserLog> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.njcn.mapper.log;
|
||||
|
||||
import com.njcn.pojo.log.UserLogin;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface UserLoginMapper extends Mapper<UserLogin> {
|
||||
|
||||
List<UserLogin> getUserLogin(@Param(value = "startTime") String startTime, @Param(value = "endTime") String endTime);
|
||||
|
||||
//获取用户最近一次的登录信息
|
||||
UserLogin getLastedLogin(String userIndex);
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
package com.njcn.mapper.plate;
|
||||
|
||||
import com.njcn.pojo.plate.PlateData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface PlateDataMapper extends Mapper<PlateData> {
|
||||
//正向有功电能
|
||||
List<PlateData> getZYGDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//反向有功电能
|
||||
List<PlateData> getFYGDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合有功电能
|
||||
List<PlateData> getZHYGDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限1无功电能
|
||||
List<PlateData> getXOneWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限2无功电能
|
||||
List<PlateData> getXTwoWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限3无功电能
|
||||
List<PlateData> getXThreeWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限4无功电能
|
||||
List<PlateData> getXFourWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合1无功电能
|
||||
List<PlateData> getZHOneValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合2无功电能
|
||||
List<PlateData> getZHTwoValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总正向有功电能
|
||||
List<PlateData> getSXZYGDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总反向有功电能
|
||||
List<PlateData> getSXFYGDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合有功电能
|
||||
List<PlateData> getSXZHYGDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限1无功电能
|
||||
List<PlateData> getSXXOneWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限2无功电能
|
||||
List<PlateData> getSXXTwoWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限3无功电能
|
||||
List<PlateData> getSXXThreeWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限4无功电能
|
||||
List<PlateData> getSXXFourWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合1无功电能
|
||||
List<PlateData> getSXZHOneValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合2无功电能
|
||||
List<PlateData> getSXZHTwoValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//正向视在电能
|
||||
List<PlateData> getZSZDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//反向视在电能
|
||||
List<PlateData> getFSZDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总正向视在电能
|
||||
List<PlateData> getSXZSZDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总反向视在电能
|
||||
List<PlateData> getSXFSZDNValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//正向基波有功电能
|
||||
List<PlateData> getZJBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//反向基波有功电能
|
||||
List<PlateData> getFJBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合基波有功电能
|
||||
List<PlateData> getZHJBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限1基波无功电能
|
||||
List<PlateData> getXOneJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限2基波无功电能
|
||||
List<PlateData> getXTwoJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限3基波无功电能
|
||||
List<PlateData> getXThreeJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限4基波无功电能
|
||||
List<PlateData> getXFourJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合1基波无功电能
|
||||
List<PlateData> getZHOneJBValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合2基波无功电能
|
||||
List<PlateData> getZHTwoJBValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//正向总谐波有功电能
|
||||
List<PlateData> getZZXBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//向总谐波有功电能
|
||||
List<PlateData> getFZXBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合总谐波有功电能
|
||||
List<PlateData> getZHZXBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限2总谐波无功电能
|
||||
List<PlateData> getXOneZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限2总谐波无功电能
|
||||
List<PlateData> getXTwoZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限3总谐波无功电能
|
||||
List<PlateData> getXThreeZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限4总谐波无功电能
|
||||
List<PlateData> getXFourZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合1总谐波无功电能
|
||||
List<PlateData> getZHOneZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合2总谐波无功电能
|
||||
List<PlateData> getZHTwoZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总正向基波有功电能
|
||||
List<PlateData> getSXZJBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总反向基波有功电能
|
||||
List<PlateData> getSXFJBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合基波有功电能
|
||||
List<PlateData> getSXZHJBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限1基波无功电能
|
||||
List<PlateData> getSXXOneJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限2基波无功电能
|
||||
List<PlateData> getSXXTwoJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限3基波无功电能
|
||||
List<PlateData> getSXXThreeJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限4基波无功电能
|
||||
List<PlateData> getSXXFourJBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合1基波无功电能
|
||||
List<PlateData> getSXZHOneJBValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合2基波无功电能
|
||||
List<PlateData> getSXZHTwoJBValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总正向总谐波有功电能
|
||||
List<PlateData> getSXZZXBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总反向总谐波有功电能
|
||||
List<PlateData> getSXFZXBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合总谐波有功电能
|
||||
List<PlateData> getSXZHZXBYGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限2总谐波无功电能
|
||||
List<PlateData> getSXXOneZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限2总谐波无功电能
|
||||
List<PlateData> getSXXTwoZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限3总谐波无功电能
|
||||
List<PlateData> getSXXThreeZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总象限4总谐波无功电能
|
||||
List<PlateData> getSXXFourZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合1总谐波无功电能
|
||||
List<PlateData> getSXZHOneZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//三相总组合2总谐波无功电能
|
||||
List<PlateData> getSXZHTwoZXBWGValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//1-50次正向谐波有功电能
|
||||
List<PlateData> getZXBYGValue(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//1-50次反向谐波有功电能
|
||||
List<PlateData> getFXBYGValue(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//1-50次I象限谐波无功电能
|
||||
List<PlateData> getXOneXBWGValue(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//1-50次II象限谐波无功电能
|
||||
List<PlateData> getXTwoXBWGValue(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//1-50次III象限谐波无功电能
|
||||
List<PlateData> getXThreeXBWGValue(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//1-50次IV象限谐波无功电能
|
||||
List<PlateData> getXFourXBWGValue(@Param("number")String number,@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//正向总谐波有功需量
|
||||
List<PlateData> getZYGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//反向总谐波有功需量
|
||||
List<PlateData> getFYGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合总谐波有功需量
|
||||
List<PlateData> getZHYGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限2总谐波无功需量
|
||||
List<PlateData> getXOneWGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限2总谐波无功需量
|
||||
List<PlateData> getXTwoWGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限3总谐波无功需量
|
||||
List<PlateData> getXThreeWGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//象限4总谐波无功需量
|
||||
List<PlateData> getXFourWGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合1总谐波无功需量
|
||||
List<PlateData> getZHOneWGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
//组合2总谐波无功需量
|
||||
List<PlateData> getZHTwoWGXLValue(@Param("lineIndex")Long lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user