补充新更新

This commit is contained in:
2022-06-22 09:14:52 +08:00
parent 59da3376c1
commit 6870c2ccc3
323 changed files with 18518 additions and 441 deletions

View File

@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>pqs-quality</artifactId>
<groupId>com.njcn</groupId>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>quality-api</artifactId>
<name>电能质量模块对外接口</name>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>com.njcn</groupId>
<artifactId>common-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.njcn</groupId>
<artifactId>common-db</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.njcn</groupId>
<artifactId>common-microservice</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.njcn</groupId>
<artifactId>common-poi</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.influxdb</groupId>
<artifactId>influxdb-java</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,27 @@
package com.njcn.quality.api;
import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.quality.api.fallback.EleOnlineRateFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
* pqs
*
* @author cdf
* @date 2022/4/22
*/
@FeignClient(value = ServerInfo.ENERGY,path = "/air",fallbackFactory = EleOnlineRateFallbackFactory.class)
public interface EleAirStrategyFeignClient {
/**
* 获取策略下的监测点
* @author cdf
* @date 2022/4/22
*/
@GetMapping("dealAirStrategyId")
HttpResult<Boolean> dealAirStrategyId(@RequestParam("id") String id,@RequestParam("operation") String operation);
}

View File

@@ -0,0 +1,27 @@
package com.njcn.quality.api;
import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.quality.api.fallback.EleIntegrityFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/4/20 15:08
*/
@FeignClient(value = ServerInfo.ENERGY,path = "/integrity",fallbackFactory = EleIntegrityFallbackFactory.class)
public interface EleIntegrityFeignClient {
@PostMapping("/getPowerLineId")
HttpResult<List<String>> getPowerLineId();
@PostMapping("/getAirLineId")
HttpResult<List<String>> getAirLineId();
}

View File

@@ -0,0 +1,26 @@
package com.njcn.quality.api;
import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.quality.api.fallback.EleOnlineRateFallbackFactory;
import com.njcn.quality.pojo.dto.OnlineRateDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/4/20 15:08
*/
@FeignClient(value = ServerInfo.ENERGY,path = "/onlineRate",fallbackFactory = EleOnlineRateFallbackFactory.class)
public interface EleOnlineRateFeignClient {
@PostMapping("/getDeviceTime")
HttpResult<List<OnlineRateDTO>> getDeviceTime(@RequestParam("startTime") String startTime, @RequestParam("endTime") String endTime);
}

View File

@@ -0,0 +1,41 @@
package com.njcn.quality.api.fallback;
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
import com.njcn.common.pojo.exception.BusinessException;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.quality.api.EleAirStrategyFeignClient;
import com.njcn.quality.utils.EnergyEnumUtil;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/4/20 15:09
*/
@Slf4j
@Component
public class EleAirStrategyFallbackFactory implements FallbackFactory<EleAirStrategyFeignClient> {
@Override
public EleAirStrategyFeignClient create(Throwable cause) {
//判断抛出异常是否为解码器抛出的业务异常
Enum<?> exceptionEnum = CommonResponseEnum.SERVICE_FALLBACK;
if(cause.getCause() instanceof BusinessException){
BusinessException businessException = (BusinessException) cause.getCause();
exceptionEnum = EnergyEnumUtil.getExceptionEnum(businessException.getResult());
}
Enum<?> finalExceptionEnum = exceptionEnum;
return new EleAirStrategyFeignClient() {
@Override
public HttpResult<Boolean> dealAirStrategyId(String id,String operation) {
log.error("{}异常,降级处理,异常为:{}","空调控制策略数据",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
};
}
}

View File

@@ -0,0 +1,48 @@
package com.njcn.quality.api.fallback;
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
import com.njcn.common.pojo.exception.BusinessException;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.quality.api.EleIntegrityFeignClient;
import com.njcn.quality.utils.EnergyEnumUtil;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/4/20 15:09
*/
@Slf4j
@Component
public class EleIntegrityFallbackFactory implements FallbackFactory<EleIntegrityFeignClient> {
@Override
public EleIntegrityFeignClient create(Throwable cause) {
//判断抛出异常是否为解码器抛出的业务异常
Enum<?> exceptionEnum = CommonResponseEnum.SERVICE_FALLBACK;
if(cause.getCause() instanceof BusinessException){
BusinessException businessException = (BusinessException) cause.getCause();
exceptionEnum = EnergyEnumUtil.getExceptionEnum(businessException.getResult());
}
Enum<?> finalExceptionEnum = exceptionEnum;
return new EleIntegrityFeignClient() {
@Override
public HttpResult<List<String>> getPowerLineId() {
log.error("{}异常,降级处理,异常为:{}","获取在线用采监测点",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<String>> getAirLineId() {
log.error("{}异常,降级处理,异常为:{}","获取在线空调监测点",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
};
}
}

View File

@@ -0,0 +1,44 @@
package com.njcn.quality.api.fallback;
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
import com.njcn.common.pojo.exception.BusinessException;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.quality.api.EleOnlineRateFeignClient;
import com.njcn.quality.pojo.dto.OnlineRateDTO;
import com.njcn.quality.utils.EnergyEnumUtil;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/4/20 15:09
*/
@Slf4j
@Component
public class EleOnlineRateFallbackFactory implements FallbackFactory<EleOnlineRateFeignClient> {
@Override
public EleOnlineRateFeignClient create(Throwable cause) {
//判断抛出异常是否为解码器抛出的业务异常
Enum<?> exceptionEnum = CommonResponseEnum.SERVICE_FALLBACK;
if(cause.getCause() instanceof BusinessException){
BusinessException businessException = (BusinessException) cause.getCause();
exceptionEnum = EnergyEnumUtil.getExceptionEnum(businessException.getResult());
}
Enum<?> finalExceptionEnum = exceptionEnum;
return new EleOnlineRateFeignClient() {
@Override
public HttpResult<List<OnlineRateDTO>> getDeviceTime(String startTime, String endTime) {
log.error("{}异常,降级处理,异常为:{}","装置在线率数据",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
};
}
}

View File

@@ -0,0 +1,26 @@
package com.njcn.quality.enums;
import lombok.Getter;
/**
* 用能费率配置
* @author denghuajun
* @version 1.0.0
* @date 2022年04月14日 15:04
*/
@Getter
public enum EleStatisticalSetEnum {
/**
* 枚举配置
*/
LOAD_STATISTICS("负荷统计"),
ELETRIC_DEGREE("电度统计");
private final String name;
EleStatisticalSetEnum(String name) {
this.name = name;
}
}

View File

@@ -0,0 +1,79 @@
package com.njcn.quality.enums;
import lombok.Getter;
/**
* @author cdf
* @version 1.0.0
* @date 2022年02月23日 09:56
*/
@Getter
public enum EnergyResponseEnum {
/**
* 用能模块异常响应码的范围:
* A00450 ~ A00549
*/
ENERGY_COMMON_ERROR("A00450","用能模块异常"),
NET_DEV_NAME_REPEAT("A00451", "网关设备名称重复"),
DEV_VERSION_REPEAT("A00451", "设备版本信息重复"),
/**
* 用能模板交互应答code
*/
SUCCESS("200","success"),
PROCESSING("202","请求处理中"),
AUTO_OFFLINE("300","设备有异常,主动下线"),
FAIL("400","请求失败"),
PARAM_FAIL_TIMESTAMP("400","请求失败,时间戳不能为空,请检查timestamp字段"),
PARAM_ERROR_TIMESTAMP("400","请求失败,时间戳格式错误,请检查timestamp字段"),
PARAM_FAIL_TYPE("400","请求失败,消息类型不能为空,请检查type字段"),
TYPE_ERROR("400","请求失败,接口名称不匹配,请检查type字段"),
REGISTER_ERROR("400","注册失败,注册的联网设备不存在,请先平台录入"),
REPEAT_ERROR("400","注册失败,有重复装置注册"),
EXIST_ERROR("400","注册失败,存在已注册的装置"),
CANCEL_ERROR("400","取消注册失败,存在未注册或者接入的装置,无法取消注册"),
NO_MODEL_FIND("402","接入失败,模板未找到"),
MISSING_MODEL("402","接入失败,模板数据缺失"),
MISSING_TOPIC("402","接入失败,缺少网关主题相关信息"),
NO_DID_FIND("400","接入失败,需要接入的装置未找到"),
MODULE_MATCH_ERROR("400","接入失败,接入的装置和模板数量不匹配"),
SAME_DEV_ERROR("400","模板数据错误,存在重复的装置信息"),
MODEL_ERROR("400","模板数据错误,模板未找到"),
NET_DEV_MODEL_ERROR("400","网关模板解析错误,平台未找到此网关"),
LINE_REPEAT_ERROR("400","网关模板解析错误库中存在相同的监测点id"),
CERTIFICATION_ERROR("401","请求未认证/认证错误"),
REQUEST_REFUSE("403","请求被拒绝"),
FUNCTION_MISSING("404","请求的资源不存在"),
OVER_WAITING_TIME("408","请求超时"),
OTHER_ERROR("500","其他错误"),
NO_DICT("501","字典表无此数据"),
NO_TABLE("501","字典表无influxDB表名数据"),
DEV_LINE_EMPTY("501","设备监测点不可为空"),
DIC_NAME_REPEAT("502","字典名称不可重复"),
CHILDREN_EXIT("503","存在子节点,不可删除"),
CAI_BIND("504","用能负荷未绑定监测点"),
LOAD_VAL_CONFLICT("505","负荷类型与值类型冲突"),
ENERGY_EMPTY("506","用能查询数据为空"),
TASK_CREATE_ERROR("507","定时任务创建失败"),
TASK_HAS_START("508","任务已经执行完毕"),
TASK_DEL_ERROR("509","定时任务删除失败,请联系管理员"),
TASK_RUNING("510","任务正在执行无法操作,请先停止任务")
;
private final String code;
private final String message;
EnergyResponseEnum(String code, String message) {
this.code = code;
this.message = message;
}
}

View File

@@ -0,0 +1,33 @@
package com.njcn.quality.enums;
import lombok.Getter;
/**
* pqs
*
* @author cdf
* @date 2022/4/18
*/
@Getter
public enum LoadEnum {
AIR_LOAD("空调负荷"),
WORK_LOAD("办公负荷"),
EAT_LOAD("厨房负荷"),
SLEEP_LOAD("宿舍负荷"),
SUN_LOAD("光伏发电"),
HIGH_LINE("高压进线")
;
private final String name;
LoadEnum(String name){
this.name=name;
}
}

View File

@@ -0,0 +1,90 @@
package com.njcn.quality.param;
import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.web.constant.ValidMessage;
import com.njcn.web.pojo.annotation.DateTimeStrValid;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.List;
/**
* pqs
* 空调策略
* @author cdf
* @date 2022/4/21
*/
@Data
@ApiModel
public class AirStrategyParam{
@ApiModelProperty(name = "策略名称",required = true)
@NotBlank(message = "名称不可为空")
private String name;
@ApiModelProperty(name = "开始时间",required = true)
@NotBlank(message = "开始时间不可为空")
@DateTimeStrValid(format = "yyyy-MM-dd HH:mm:ss",message = "开始时间格式有误")
private String startTime;
@ApiModelProperty(name = "开始时间",required = true)
@NotBlank(message = "开始时间不可为空")
@DateTimeStrValid(format = "yyyy-MM-dd HH:mm:ss",message = "结束时间格式有误")
private String endTime;
@ApiModelProperty(name = "空调模式",required = true)
@NotBlank(message = "模式不可为空")
private String mode;
@ApiModelProperty(name = "空调温度",required = true)
@NotNull(message = "空调温度不可为空")
private Integer temperature;
@ApiModelProperty(name = "空调风速",required = true)
@NotBlank(message = "空调风速不可为空")
private String wind;
@ApiModelProperty(name = "排序",required = true)
@NotNull(message = "排序不可为空")
private Integer sort;
@ApiModelProperty(name = "监测点集",required = true)
@NotEmpty(message = "监测点集不可为空")
private List<String> lineIds;
/**
* 更新操作实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class AirUpdateParam extends AirStrategyParam {
@ApiModelProperty("id")
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
private String id;
}
/**
* 分页查询实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class AirStrategyQueryParam extends BaseParam {
}
}

View File

@@ -0,0 +1,57 @@
package com.njcn.quality.param;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
* 类的介绍:详细数据
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/9 13:36
*/
@Data
public class DataArrayParam {
@ApiModelProperty(value = "数据集表Id")
@NotEmpty(message = "数据集表Id不可为空")
private String pid;
@ApiModelProperty(value = "数据类型表id")
@NotEmpty(message = "数据类型表id不可为空")
private String dataId;
@ApiModelProperty(value = "数据分类")
private String className;
@ApiModelProperty(value = "排序")
private Integer sort;
@ApiModelProperty(value = "数据名称")
@NotEmpty(message = "数据名称不可为空")
private String name;
@ApiModelProperty(value = "数据名称别名")
@NotEmpty(message = "数据名称别名不可为空")
private String anotherName;
@ApiModelProperty(value = "数据编号")
@NotNull(message = "数据编号不可为空")
private Integer idx;
@ApiModelProperty(value = "数据类型")
private String type;
@ApiModelProperty(value = "相别")
private String phase;
@ApiModelProperty(value = "统计类型")
private String statMethod;
@ApiModelProperty(value = "influxDB表名")
private String classId;
}

View File

@@ -0,0 +1,28 @@
package com.njcn.quality.param;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/16 9:14
*/
@Data
public class DataGroupParam {
@ApiModelProperty(value = "数据集表Id")
@NotEmpty(message = "数据集表Id不可为空")
private String pid;
@ApiModelProperty(value = "分组名称")
private String name;
@ApiModelProperty(value = "排序")
private Integer sort;
}

View File

@@ -0,0 +1,33 @@
package com.njcn.quality.param;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* pqs
* 通过字段表名获取统计趋势和历史趋势实体
* @author cdf
* @date 2022/3/28
*/
@Data
@ApiModel
public class DataHisParam {
@ApiModelProperty(name = "监测点id",required = true)
private String lineId;
@ApiModelProperty(name = "指标id集",required = true)
private List<String> arrName;
private String classId;
@ApiModelProperty(name = "起始时间",required = true)
private String startTime;
@ApiModelProperty(name = "结束时间",required = true)
private String endTime;
}

View File

@@ -0,0 +1,71 @@
package com.njcn.quality.param;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.web.constant.ValidMessage;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.time.LocalDateTime;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/8 20:19
*/
@Data
public class DataModelParam {
@ApiModelProperty(value = "数据模板名称")
@NotEmpty(message = "数据模板名称不可为空")
private String name;
@ApiModelProperty(value = "设备模板编号")
@NotNull(message = "设备模板编号不可为空")
private Integer idx;
@ApiModelProperty(value = "版本号")
private String version;
/**
* 创建或最后修改时间
*/
@ApiModelProperty(value = "创建或最后修改时间",required = true)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime time;
@ApiModelProperty(value = "创建时间",required = true)
private LocalDateTime createTime;
/**
* 更新操作实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class DataModelUpdateParam extends DataModelParam {
@ApiModelProperty("id")
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
private String id;
}
/**
* 分页查询实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class DataModelQueryParam extends BaseParam {
}
}

View File

@@ -0,0 +1,72 @@
package com.njcn.quality.param;
import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.web.constant.ValidMessage;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/9 10:08
*/
@Data
public class DataSetParam {
@ApiModelProperty(value = "数据模板表Id")
@NotEmpty(message = "数据模板表Id不可为空")
private String pid;
@ApiModelProperty(value = "数据集名称")
@NotEmpty(message = "数据集名称不可为空")
private String name;
@ApiModelProperty(value = "数据集序号")
@NotNull(message = "数据集序号不可为空")
private Integer idx;
@ApiModelProperty(value = "数据集别名")
private String anotherName;
/**
* 0 不存储
* 1 存储
*/
@ApiModelProperty(value = "是否存储")
@NotNull(message = "数据集序号不可为空")
private Integer storeFlag;
/**
* 更新操作实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class DataSetUpdateParam extends DataSetParam {
@ApiModelProperty("id")
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
private String id;
}
/**
* 分页查询实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class DataSetQueryParam extends BaseParam {
}
}

View File

@@ -0,0 +1,117 @@
package com.njcn.quality.param;
import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.web.constant.ValidMessage;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/8 13:30
*/
@Data
public class DevCfgParam {
@ApiModelProperty(value = "联网设备表Id")
@NotEmpty(message = "联网设备表Id不可为空")
private String pid;
@ApiModelProperty(value = "设备Id")
@NotEmpty(message = "设备Id不可为空")
private String did;
@ApiModelProperty(value = "版本信息表Id")
private String versionId;
@ApiModelProperty(value = "设备数据模板Id")
private String idx;
@ApiModelProperty(value = "设备名称")
private String name;
@ApiModelProperty(value = "设备型号")
private String type;
@ApiModelProperty(value = "设备类别")
private String devApp;
@ApiModelProperty(value = "设备和联网装置通讯协议")
private String protocol;
/**
* 设备和联网装置通讯接口 Lora、RS485、Eth、Bus内部总线方式
*/
@ApiModelProperty(value = "设备和联网装置通讯接口")
private String ci;
/**
* 内部时钟源 Rtc、None
*/
@ApiModelProperty(value = "内部时钟源")
private String iclk;
/**
* 外部时钟源 BCode、Sntp、MasterStation
*/
@ApiModelProperty(value = "内部时钟源")
private String eclk;
/**
* 数据上送周期(单位秒)
*/
@ApiModelProperty(value = "数据上送周期")
private Integer period;
@ApiModelProperty(value = "安装区域省")
private String province;
@ApiModelProperty(value = "安装区域市")
private String city;
@ApiModelProperty(value = "安装区域县或区")
private String county;
@ApiModelProperty(value = "安装地址(厂区或变电站)")
private String address;
@ApiModelProperty(value = "安装位置")
private String position;
@ApiModelProperty(value = "设备总线路")
private Integer allNum;
@ApiModelProperty(value = "监测点数目")
private Integer lineNum;
/**
* 更新操作实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class DevCfgUpdateParam extends DevCfgParam {
@ApiModelProperty("id")
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
private String id;
}
/**
* 分页查询实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class DevCfgQueryParam extends BaseParam {
}
}

View File

@@ -0,0 +1,33 @@
package com.njcn.quality.param;
import com.njcn.web.pojo.annotation.DateTimeStrValid;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.NotBlank;
/**
* pqs
*
* @author cdf
* @date 2022/3/14
*/
@Data
@Validated
public class DevLineQueryParam {
@NotBlank(message = "id不可为空")
@ApiModelProperty("id")
private String id;
@DateTimeStrValid
private String beginTime;
@DateTimeStrValid
private String endTime;
@ApiModelProperty("页码")
private Integer page;
@ApiModelProperty("页面尺寸")
private Integer pageSize;
}

View File

@@ -0,0 +1,87 @@
package com.njcn.quality.param;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.web.constant.ValidMessage;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.time.LocalDateTime;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/7 19:02
*/
@Data
public class DevVersionParam{
/**
* 网关id
*/
@ApiModelProperty(value = "网关id",required = true)
@NotBlank(message = "网关id不可为空")
private String ndid;
/**
* 设备类型0联网设备1逻辑设备
*/
@ApiModelProperty(value = "设备类型",required = true)
@NotEmpty(message = "设备类型不可为空")
private Integer type;
/**
* 版本号
*/
@ApiModelProperty(value = "版本号",required = true)
@NotBlank(message = "版本号不可为空")
private String version;
/**
* 创建或最后修改时间
*/
@ApiModelProperty(value = "创建或最后修改时间",required = true)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime time;
/**
* 创建或最后修改时间
*/
@ApiModelProperty(value = "创建时间",required = true)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime createTime;
/**
* 更新操作实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class DevVersionUpdateParam extends DevVersionParam {
@ApiModelProperty("id")
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
private String id;
}
/**
* 分页查询实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class DevVersionQueryParam extends BaseParam {
}
}

View File

@@ -0,0 +1,67 @@
package com.njcn.quality.param;
import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.web.constant.ValidMessage;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
/**
* pqs
*
* @author cdf
* @date 2022/3/22
*/
@Data
public class DictParam {
/**
* 父级id
*/
@ApiModelProperty(value = "父级id")
private String pid;
/**
* 字典表字段名
*/
@ApiModelProperty(value = "字典表字段名")
private String name;
/**
* 字典表别名
*/
@ApiModelProperty(value = "字典表别名")
private String anotherName;
/**
* 更新操作实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class DictUpdateParam extends DictParam {
@ApiModelProperty("id")
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
private String id;
}
/**
* 分页查询实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class DictQueryParam extends BaseParam {
@ApiModelProperty("pid")
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
private String pid;
}
}

View File

@@ -0,0 +1,18 @@
package com.njcn.quality.param;
import com.njcn.quality.pojo.po.EleBind;
import lombok.Data;
import java.util.List;
/**
* pqs
*
* @author cdf
* @date 2022/3/30
*/
@Data
public class ElDataBindParam {
private List<EleBind> list;
}

View File

@@ -0,0 +1,25 @@
package com.njcn.quality.param;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;
/**
* @author denghuajun
* @version 1.0.0
* @date 2022年04月15日 13:38
*/
@Data
public class EleParam {
@ApiModelProperty("统计类型配置id")
@NotBlank(message = "id不可为空")
private String id;
@ApiModelProperty("指标类型集合ids")
@NotEmpty(message = "id数组")
private List<String> ids;
}

View File

@@ -0,0 +1,58 @@
package com.njcn.quality.param;
import com.njcn.web.pojo.annotation.DateTimeStrValid;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* pqs
*
* @author cdf
* @date 2022/4/18
*/
@Data
@ApiModel
public class ElectComparaParam {
@ApiModelProperty(value = "统计指标")
@NotBlank(message = "统计指标不可为空")
private String tagType;
@ApiModelProperty(value = "负荷类型")
@NotEmpty(message = "负荷类型不可为空")
private List<String> loadType;
@ApiModelProperty(value = "值类型")
private String valType;
@ApiModelProperty(value = "开始时间")
@NotBlank(message = "开始时间不可为空")
@DateTimeStrValid
private String startTime;
@ApiModelProperty(value = "结束时间")
@NotBlank(message = "结束时间不可为空")
@DateTimeStrValid
private String endTime;
@ApiModelProperty(value = "同比环比起始时间")
@NotBlank(message = "同比环比起始时间不可为空")
private String startTimeBi;
@ApiModelProperty(value = "同比环比结束时间")
@NotBlank(message = "同比环比结束时间不可为空")
@DateTimeStrValid
private String endTimeBi;
@ApiModelProperty(value = "统计类型")
@NotNull(message = "0.电度 1.电费")
private Integer statisticType;
}

View File

@@ -0,0 +1,45 @@
package com.njcn.quality.param;
import com.njcn.web.constant.ValidMessage;
import com.njcn.web.pojo.annotation.DateTimeStrValid;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
/**
* pqs
*
* @author cdf
* @date 2022/4/1
*/
@Data
public class EnergyBaseParam implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty("id")
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
private String id;
@ApiModelProperty("lineId")
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
private String lineId;
@ApiModelProperty("pageNum")
private Integer pageNum;
@ApiModelProperty("pageSize")
private Integer pageSize;
@ApiModelProperty("startTime")
@DateTimeStrValid
private String startTime;
@ApiModelProperty("endTime")
@DateTimeStrValid
private String endTime;
}

View File

@@ -0,0 +1,36 @@
package com.njcn.quality.param;
import com.njcn.web.constant.ValidMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;
/**
* pqs
* 重新分组
*
* @author cdf
* @date 2022/3/16
*/
@Data
public class GroupArrParam {
@ApiModelProperty("setId")
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
private String setId;
@ApiModelProperty("data")
@NotEmpty(message = "数据不能为空")
private List<ArrItem> data;
@Data
public static class ArrItem {
private String id;
private String name;
private List<String> children;
}
}

View File

@@ -0,0 +1,107 @@
package com.njcn.quality.param;
import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.web.constant.ValidMessage;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Range;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
/**
* @author 徐扬
*/
@Data
public class HardwareParam {
@ApiModelProperty("id")
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
private String id;
@ApiModelProperty(value = "设备类型区分")
@NotNull()
@Range(min = 0, max = 1)
private Integer type;
@ApiModelProperty(value = "设备类型")
private String devType;
@ApiModelProperty(value = "设备名称")
private String devName;
@ApiModelProperty(value = "设备厂商信息")
private String msgInfo;
@ApiModelProperty(value = "设备状态")
private String devStatus;
@ApiModelProperty(value = "设备硬件版本号")
private String hardVer;
@ApiModelProperty(value = "CPU核心数")
private Integer cpuCore;
@ApiModelProperty(value = "CPU主频单位GHz")
private Float cpuFreq;
@ApiModelProperty(value = "CPU架构")
private String arch;
@ApiModelProperty(value = "CPU监控阈值单位%")
private Float cpuLmt;
@ApiModelProperty(value = "物理内存单位MB")
private Float memPhy;
@ApiModelProperty(value = "虚拟内存单位MB")
private Float memVirt;
@ApiModelProperty(value = "内存监控阈值(单位%")
private Float memLmt;
@ApiModelProperty(value = "磁盘空间单位MB")
private Float diskPhy;
@ApiModelProperty(value = "存储监控阈值(单位%")
private Float diskLmt;
@ApiModelProperty(value = "已使用磁盘空间单位MB")
private Float diskUsePhy;
@ApiModelProperty(value = "操作系统名称裸机系统填None")
private String osName;
@ApiModelProperty(value = "操作系统版本裸机系统填None")
private String osVersion;
@ApiModelProperty(value = "应用程序版本号")
private String appVersion;
@ApiModelProperty(value = "应用程序发布日期")
private String appDate;
@ApiModelProperty(value = "应用程序校验码")
private String appCheck;
@ApiModelProperty(value = "是否支持远程升级程序")
private String softUpdate;
/**
* 分页查询实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class HardwareQueryParam extends BaseParam {
}
}

View File

@@ -0,0 +1,21 @@
package com.njcn.quality.param;
import lombok.Data;
import java.io.Serializable;
/**
* @author hongawen
* @version 1.0.0
* @date 2022年04月18日 15:37
*/
@Data
public class JobInfoParam implements Serializable {
private String strategyId;
private String startTime;
private String endTime;
}

View File

@@ -0,0 +1,87 @@
package com.njcn.quality.param;
import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.web.constant.ValidMessage;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/8 13:52
*/
@Data
public class LineParam {
@ApiModelProperty(value = "监测点id")
@NotEmpty(message = "监测点id不可为空")
private String lineId;
@ApiModelProperty(value = "逻辑设备表Id")
@NotEmpty(message = "逻辑设备表Id不可为空")
private String pid;
@ApiModelProperty(value = "监测点名称")
@NotEmpty(message = "监测点名称不可为空")
private String name;
@ApiModelProperty(value = "监测点编号")
@NotNull(message = "监测点编号不可为空")
private Integer idx;
@ApiModelProperty(value = "安装区域省")
private String province;
@ApiModelProperty(value = "安装区域市")
private String city;
@ApiModelProperty(value = "安装区域县或区")
private String county;
@ApiModelProperty(value = "安装地址(厂区或变电站)")
private String address;
@ApiModelProperty(value = "安装位置")
private String position;
@ApiModelProperty(value = "电压等级")
private String volGrade;
@ApiModelProperty(value = "PT变比")
private String ptRatio;
@ApiModelProperty(value = "CT变比")
private String ctRatio;
/**
* 更新操作实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class LineUpdateParam extends LineParam {
@ApiModelProperty("id")
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
private String id;
}
/**
* 分页查询实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class LineQueryParam extends BaseParam {
}
}

View File

@@ -0,0 +1,54 @@
package com.njcn.quality.param;
import com.njcn.web.pojo.annotation.DateTimeStrValid;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;
/**
* pqs
*
* @author cdf
* @date 2022/4/18
*/
@Data
@ApiModel
public class LoadStatisticParam {
@ApiModelProperty(value = "统计指标",required = true)
@NotBlank(message = "统计指标不可为空")
private String tagType;
@ApiModelProperty(value = "负荷类型",required = true)
@NotEmpty(message = "负荷类型不可为空")
private List<String> loadType;
@ApiModelProperty(value = "值类型 0.最大值 1.最小值",required = true)
@NotEmpty(message = "值类型不可为空")
private List<Integer> valType;
@ApiModelProperty(value = "开始时间",required = true)
@NotBlank(message = "开始时间不可为空")
@DateTimeStrValid
private String startTime;
@ApiModelProperty(value = "结束时间",required = true)
@NotBlank(message = "结束时间不可为空")
@DateTimeStrValid
private String endTime;
@ApiModelProperty(value = "同比环比开始时间",required = true)
@NotBlank(message = "同比环比开始时间不可为空")
private String startTimeBi;
@ApiModelProperty(value = "同比环比结束时间",required = true)
@NotBlank(message = "同比环比结束时间不可为空")
@DateTimeStrValid
private String endTimeBi;
}

View File

@@ -0,0 +1,108 @@
package com.njcn.quality.param;
import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.web.constant.ValidMessage;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
/**
* <p>
*
* </p>
*
* @author cdf
* @since 2022-02-22
*/
@Data
public class NetDevParam {
/**
* 联网设备名称
*/
@ApiModelProperty(value = "名称",required = true)
@NotBlank(message = "网关设备名称不可为空")
private String name;
/**
* 联网设备ID
*/
@ApiModelProperty(value = "联网设备ID",required = true)
@NotBlank(message = "网关设备ID不可为空")
private String ndid;
/**
* 关联版本信息表Id
*/
private String versionId;
/**
* 联网设备型号(字典表)
*/
private String type;
/**
* 联网设备接入网络方式 “4G” “WIFI” (字典表)
*/
private String netType;
/**
* 用户ID
*/
private String uid;
/**
* 子用户信息
*/
private String cUid;
/**
* 硬件信息表Id
*/
private String info;
/**
* 状态
*/
private Integer state;
/**
* 排序字段
* @author cdf
* @date 2022/4/20
*/
@ApiModelProperty(value = "排序字段",required = true)
@NotBlank(message = "排序字段不可为空")
private Integer sort;
/**
* 更新操作实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class NetDevUpdateParam extends NetDevParam {
@ApiModelProperty("id")
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
private String id;
}
/**
* 分页查询实体
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class NetDevQueryParam extends BaseParam {
}
}

View File

@@ -0,0 +1,59 @@
package com.njcn.quality.pojo.constant;
/**
* @author 徐扬
*/
public interface ApiParam {
/**
* 设备接入网络设备注册申请
*/
String CMD_DEV_REGISTER = "CMD_DEV_REGISTER";
/**
* 平台对接入网络设备注册应答
*/
String REP_DEV_REGISTER = "REP_DEV_REGISTER";
/**
* 设备接入请求
*/
String CMD_LINKUP = "CMD_LINKUP";
/**
* 设备接入应答
*/
String REP_LINKUP = "REP_LINKUP";
/**
* 设备主动断开上报
*/
String ACT_LINK_DOWN = "ACT_LINK_DOWN";
/**
* 设备心跳请求
*/
String CMD_HEARTBEAT = "CMD_HEARTBEAT";
/**
* 设备心跳应答
*/
String REP_HEARTBEAT = "REP_HEARTBEAT";
/**
* 联网装置主题信息上送
*/
String ACT_DEV_TOPIC = "ACT_DEV_TOPIC";
/**
* 设备数据询问
*/
String CMD_DEV_DATA = "CMD_DEV_DATA";
/**
* 联网装置主题信息上送
*/
String REP_DEV_DATA = "REP_DEV_DATA";
}

View File

@@ -0,0 +1,68 @@
package com.njcn.quality.pojo.constant;
/**
* @author 徐扬
*/
public interface DataType {
/**
* 电度数据
*/
String EPD = "EPD";
/**
* 电能质量数据
*/
String PQD = "PQD";
/**
* 事件
*/
String EVT = "EVT";
/**
* 告警
*/
String ALM = "ALM";
/**
* 通用测量
*/
String MD = "MD";
/**
* 通用测量
*/
String STS = "STS";
/**
* 开入信号量
*/
String DI = "DI";
/**
* 开入信号量
*/
String DO = "DO";
/**
* 参数
*/
String PARM = "PARM";
/**
* 控制
*/
String CTRL = "CTRL";
/**
* 自动控制
*/
String ACTRL = "ACTRL";
/**
* 模板
*/
String TEMPLATE = "TEMPLATE";
}

View File

@@ -0,0 +1,58 @@
package com.njcn.quality.pojo.constant;
/**
* @author 徐扬
*/
public interface ModelState {
/**
* 注册成功状态
*/
Integer SUCCESS = 1;
Integer FAIL = 0;
/**
* DID操作
*/
Integer REGISTER = 1;
Integer UNREGISTER = 0;
Integer ACCESS = 2;
/**
* 报文处理优先级
*/
Integer PRIORITY_FIRST = 1;
Integer PRIORITY_SECOND = 2;
Integer PRIORITY_THIRD = 3;
Integer PRIORITY_FORTH = 4;
Integer PRIORITY_FIFTH = 5;
/**
* 报文过期的相对时间 -1表示永不过期
*/
Integer EXPIRE = -1;
/**
* 设备类型0联网设备1逻辑设备
*/
Integer NET_DEV = 0;
Integer LOGIC_DEV = 1;
/**
* 操作类型
*/
String WRITE = "write";
String READ = "read";
Integer online = 1;
Integer offline = 0;
}

View File

@@ -0,0 +1,21 @@
package com.njcn.quality.pojo.constant;
/**
* pqs
*
* @author cdf
* @date 2022/3/25
*/
public interface TableName {
String eleEpdPqd = "ele_epd_pqd";
String eleMd = "ele_md";
String eleCtrl = "ele_ctrl";
String eleSts = "ele_sts";
String powerData = "power_data";
String powerDataReal = "power_data_Real";
String powerQuality = "power_quality_data";
String powerQualityReal = "power_quality_data_Real";
}

View File

@@ -0,0 +1,42 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 15:10
*/
@Data
public class ACtrlDTO implements Serializable {
@SerializedName("Name")
private String name;
@SerializedName("IDX")
private Integer idx;
@SerializedName("Enable")
private Integer enable;
@SerializedName("Number")
private Integer number;
@SerializedName("StartTime")
private String startTime;
@SerializedName("EndTime")
private String endTime;
@SerializedName("Condition")
private List<String> condition;
@SerializedName("OutRes")
private List<String> outRes;
}

View File

@@ -0,0 +1,53 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/12 17:04
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class AccessDTO extends PublicParamDTO implements Serializable {
/**
* 请求参数
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class AccessRequest extends AccessDTO implements Serializable{
@SerializedName("expire")
private Integer expire;
@SerializedName("param")
private AccessParamDTO param;
}
/**
* 应答参数
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class AccessResponse extends AccessDTO implements Serializable{
@SerializedName("code")
private Integer code;
@SerializedName("msg")
private String msg;
@SerializedName("param")
private AccessParamDTO param;
}
}

View File

@@ -0,0 +1,25 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/12 17:08
*/
@Data
public class AccessParamDTO implements Serializable {
@SerializedName("DID")
List<String> did;
@SerializedName("TpList")
List<TpListDTO> tpList;
}

View File

@@ -0,0 +1,29 @@
package com.njcn.quality.pojo.dto;
import lombok.Data;
/**
* pqs
*
* @author cdf
* @date 2022/4/22
*/
@Data
public class AirStrategyDTO {
private Integer mid;
private String deviceId;
private Long timestamp;
private Integer expire;
private String type;
private Param param;
@Data
public static class Param{
private String lineId;
private String action;
private String parm;
}
}

View File

@@ -0,0 +1,28 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 14:45
*/
@Data
public class AlmDTO implements Serializable {
@SerializedName("Name")
private String name;
@SerializedName("IDX")
private Integer idx;
@SerializedName("Type")
private String type;
}

View File

@@ -0,0 +1,47 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/12 21:28
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class AskDataDTO extends PublicParamDTO implements Serializable {
/**
* 请求参数
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class AskDataRequest extends AskDataDTO implements Serializable{
@SerializedName("param")
private AskDataParamDTO param;
}
/**
* 响应参数
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class AskDataResponse extends AskDataDTO implements Serializable{
@SerializedName("code")
private Integer code;
@SerializedName("msg")
private String msg;
@SerializedName("param")
private TemplateDataArrayDTO param;
}
}

View File

@@ -0,0 +1,25 @@
package com.njcn.quality.pojo.dto;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/12 21:30
*/
@Data
public class AskDataParamDTO implements Serializable {
private String dataType;
private String operate;
private String startTime;
private String endTime;
}

View File

@@ -0,0 +1,29 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 12:09
*/
@Data
public class CpuInfoDTO implements Serializable {
@SerializedName("CpuCore")
private Integer cpuCore;
@SerializedName("CpuFreq")
private Float cpuFreq;
@SerializedName("Arch")
private String arch;
@SerializedName("CpuLmt")
private Float cpuLmt;
}

View File

@@ -0,0 +1,48 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 15:06
*/
@Data
public class CtrlDTO implements Serializable {
@SerializedName("Name")
private String name;
@SerializedName("IDX")
private Integer idx;
@SerializedName("Type")
private String type;
@SerializedName("Check")
private Integer remoteCheck;
@SerializedName("Auto")
private Integer auto;
@SerializedName("MaxNum")
private Integer maxNum;
@SerializedName("MinNum")
private Integer minNum;
@SerializedName("Ctlvalue")
private List<String> ctlValue;
@SerializedName("Strlen")
private Integer strLen;
@SerializedName("Encode")
private Integer encode;
}

View File

@@ -0,0 +1,25 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/6/20 13:53
*/
@Data
public class CuDevDTO implements Serializable {
@SerializedName("IDX")
private String idx;
@SerializedName("DevIDList")
private List<String> devIdList;
}

View File

@@ -0,0 +1,27 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/6/20 13:56
*/
@Data
public class CuIdDTO implements Serializable {
@SerializedName("ID")
private String id;
@SerializedName("IDX")
private String idx;
@SerializedName("Permissions")
private List<String> permissions;
}

View File

@@ -0,0 +1,24 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 15:18
*/
@Data
public class DataArrayDTO implements Serializable {
@SerializedName("Type")
private String type;
@SerializedName("IDX")
private Integer idx;
}

View File

@@ -0,0 +1,21 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/21 18:57
*/
@Data
public class DataArrayListDTO {
@SerializedName("TEMPLATE")
private TemplateDTO template;
}

View File

@@ -0,0 +1,40 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 14:21
*/
@Data
public class DataSetDTO implements Serializable {
@SerializedName("Name")
private String name;
@SerializedName("IDX")
private Integer idx;
@SerializedName("DataType")
private String dataType;
@SerializedName("StartTime")
private String startTime;
@SerializedName("Period")
private Integer period;
@SerializedName("StoreFlag")
private Integer storeFlag;
@SerializedName("DataArray")
private List<DataArrayDTO> dataArray;
}

View File

@@ -0,0 +1,27 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 13:03
*/
@Data
public class DevCfgDTO implements Serializable {
@SerializedName("Version")
private String version;
@SerializedName("Time")
private String time;
@SerializedName("Cfg")
private List<DeviceDTO> cfg;
}

View File

@@ -0,0 +1,79 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 13:04
*/
@Data
public class DevDTO implements Serializable {
@SerializedName("Name")
private String name;
@SerializedName("Version")
private String version;
@SerializedName("Time")
private String time;
@SerializedName("IDX")
private Integer idx;
@SerializedName("DevType")
private String devType;
@SerializedName("DataList")
private List<String> dataList;
@SerializedName("DataSet")
private List<DataSetDTO> dataSet;
@SerializedName("IClk")
private String iclk;
@SerializedName("EClk")
private String eclk;
@SerializedName("LineNum")
private Integer lineNum;
@SerializedName("EPD")
private List<EpdPqdDTO> epd;
@SerializedName("PQD")
private List<EpdPqdDTO> pqd;
@SerializedName("EVT")
private List<EvtDTO> evt;
@SerializedName("ALM")
private List<AlmDTO> alm;
@SerializedName("MD")
private List<MdDTO> md;
@SerializedName("STS")
private List<StsDTO> sts;
@SerializedName("DI")
private List<DiDTO> di;
@SerializedName("DO")
private List<DoDTO> doDTO;
@SerializedName("Param")
private List<ParamDTO> param;
@SerializedName("CTRL")
private List<CtrlDTO> ctrl;
}

View File

@@ -0,0 +1,32 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 12:08
*/
@Data
public class DevInfoDTO implements Serializable {
@SerializedName("DevType")
private String devType;
@SerializedName("DevName")
private String devName;
@SerializedName("MsgInfo")
private String msgInfo;
@SerializedName("DevStatus")
private String devStatus;
@SerializedName("HardVer")
private String hardVer;
}

View File

@@ -0,0 +1,67 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 13:38
*/
@Data
public class DeviceDTO implements Serializable {
@SerializedName("DevModName")
private String name;
@SerializedName("DevModVersion")
private String version;
@SerializedName("DevModTime")
private String time;
@SerializedName("ID")
private String id;
@SerializedName("DevType")
private String type;
@SerializedName("DevApp")
private String devApp;
@SerializedName("DevInfo")
private DevInfoDTO devInfo;
@SerializedName("Province")
private String province;
@SerializedName("City")
private String city;
@SerializedName("County")
private String county;
@SerializedName("Address")
private String address;
@SerializedName("Position")
private String position;
@SerializedName("LineNum")
private Integer lineNum;
@SerializedName("LineInfo")
private List<LineDTO> lineInfo;
@SerializedName("FileFrameLength")
private Integer fileFrameLength;
@SerializedName("FileFrameTimeout")
private Integer fileFrameTimeout;
}

View File

@@ -0,0 +1,28 @@
package com.njcn.quality.pojo.dto;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/24 18:40
*/
@Data
public class DeviceOperateDTO implements Serializable {
private String ndid;
private List<String> did;
private String type;
private String message;
private String time;
}

View File

@@ -0,0 +1,21 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 14:57
*/
@Data
public class DiDTO extends StsDTO implements Serializable {
@SerializedName("TranFlag")
private Integer tranFlag;
}

View File

@@ -0,0 +1,27 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 12:09
*/
@Data
public class DiskInfoDTO implements Serializable {
@SerializedName("DiskPhy")
private Float diskPhy;
@SerializedName("DiskUsePhy")
private Float diskUsePhy;
@SerializedName("DiskLmt")
private Float diskLmt;
}

View File

@@ -0,0 +1,29 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 14:59
*/
@Data
public class DoDTO implements Serializable {
@SerializedName("Name")
private String name;
@SerializedName("IDX")
private Integer idx;
@SerializedName("CurSts")
private Integer curSts;
@SerializedName("CtlSts")
private Integer ctlSts;
}

View File

@@ -0,0 +1,20 @@
package com.njcn.quality.pojo.dto;
import lombok.Data;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/4/15 8:58
*/
@Data
public class ElePublicDTO {
private String lineId;
private Double data;
}

View File

@@ -0,0 +1,46 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 14:27
*/
@Data
public class EpdPqdDTO implements Serializable {
@SerializedName("Name")
private String name;
@SerializedName("IDX")
private Integer idx;
@SerializedName("Type")
private String type;
@SerializedName("Phase")
private String phase;
@SerializedName("Unit")
private String unit;
@SerializedName("HarmStart")
private String harmStart;
@SerializedName("HarmEnd")
private String harmEnd;
@SerializedName("ClassID")
private String classId;
@SerializedName("StatMethod")
private List<String> statMethod;
}

View File

@@ -0,0 +1,30 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 14:40
*/
@Data
public class EvtDTO implements Serializable {
@SerializedName("Name")
private String name;
@SerializedName("IDX")
private Integer idx;
@SerializedName("Type")
private String type;
@SerializedName("Parm")
private List<EvtParam> param;
}

View File

@@ -0,0 +1,31 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 14:41
*/
@Data
public class EvtParam implements Serializable {
@SerializedName("Name")
private String name;
@SerializedName("Type")
private String type;
@SerializedName("Unit")
private String unit;
@SerializedName("Data")
private String data;
}

View File

@@ -0,0 +1,50 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 13:38
*/
@Data
public class LineDTO implements Serializable {
@SerializedName("Name")
private String name;
@SerializedName("lineId")
private String lineId;
@SerializedName("IDX")
private Integer idx;
@SerializedName("Province")
private String province;
@SerializedName("City")
private String city;
@SerializedName("County")
private String county;
@SerializedName("Address")
private String address;
@SerializedName("Position")
private String position;
@SerializedName("VolGrade")
private String volGrade;
@SerializedName("PtRatio")
private String ptRatio;
@SerializedName("CtRatio")
private String ctRatio;
}

View File

@@ -0,0 +1,43 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 14:48
*/
@Data
public class MdDTO implements Serializable {
@SerializedName("Name")
private String name;
@SerializedName("IDX")
private Integer idx;
@SerializedName("Type")
private String type;
@SerializedName("Unit")
private String unit;
@SerializedName("Phase")
private String phase;
@SerializedName("ClassID")
private String classId;
@SerializedName("StatMethod")
private List<String> statMethod;
@SerializedName("TranRule")
private String tranRule;
}

View File

@@ -0,0 +1,26 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 12:09
*/
@Data
public class MemInfoDTO implements Serializable {
@SerializedName("MemPhy")
private Float memPhy;
@SerializedName("MemVirt")
private Float memVirt;
@SerializedName("MemLmt")
private Float memLmt;
}

View File

@@ -0,0 +1,18 @@
package com.njcn.quality.pojo.dto;
import lombok.Data;
/**
* pqs
*
* @author cdf
* @date 2022/4/22
*/
@Data
public class NetAndDevByLineDTO {
private String ndid;
private String devId;
private String lineId;
private String lineName;
}

View File

@@ -0,0 +1,60 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 12:03
*/
@Data
public class NetDevDTO implements Serializable {
@SerializedName("Version")
private String version;
@SerializedName("Time")
private String time;
@SerializedName("DevName")
private String devName;
@SerializedName("DevType")
private String devType;
@SerializedName("NetType")
private String netType;
@SerializedName("NDID")
private String nDid;
@SerializedName("DevTopicVer")
private String devTopicVer;
@SerializedName("Uid")
private String uid;
@SerializedName("CUid")
private List<String> cUid;
@SerializedName("DevInfo")
private DevInfoDTO devInfoDTO;
@SerializedName("CpuInfo")
private CpuInfoDTO cpuInfoDTO;
@SerializedName("MemInfo")
private MemInfoDTO memInfoDTO;
@SerializedName("DiskInfo")
private DiskInfoDTO diskInfoDTO;
@SerializedName("SoftInfo")
private SoftInfoDTO softInfoDTO;
}

View File

@@ -0,0 +1,27 @@
package com.njcn.quality.pojo.dto;
import lombok.Data;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/4/18 20:36
*/
@Data
public class OnlineRateDTO {
private Long time;
private String deviceId;
private Double onlineRate;
private Integer onlineTime;
private Integer offlineTime;
}

View File

@@ -0,0 +1,49 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 15:02
*/
@Data
public class ParamDTO implements Serializable {
@SerializedName("Name")
private String name;
@SerializedName("IDX")
private Integer idx;
@SerializedName("Type")
private String type;
@SerializedName("DataType")
private String dataType;
@SerializedName("ModifyFlag")
private Integer modifyFlag;
@SerializedName("MaxNum")
private Integer maxNum;
@SerializedName("MinNum")
private Integer minNum;
@SerializedName("SetValue")
private List<String> setValue;
@SerializedName("Strlen")
private Integer strLen;
@SerializedName("DefaultValue")
private String defaultValue;
}

View File

@@ -0,0 +1,42 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/12 19:18
*/
@Data
public class PublicParamDTO implements Serializable {
/**
* 在请求报文中该值为请求 ID在设备主动上报数据的报文中该字段可不填写
*/
@SerializedName("mid")
private Integer mid;
@SerializedName("userId")
private String userId;
@SerializedName("deviceId")
private String deviceId;
@SerializedName("timestamp")
private String timestamp;
/**
* 报文处理的优先级
*/
@SerializedName("level")
private Integer level;
@SerializedName("type")
private String type;
}

View File

@@ -0,0 +1,51 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/11 14:36
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class RegisterDTO extends PublicParamDTO implements Serializable {
/**
* 请求参数
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class RegisterRequest extends RegisterDTO implements Serializable{
@SerializedName("expire")
private Integer expire;
@SerializedName("param")
private RegisterParamDTO.RegisterParamRequest param;
}
/**
* 应答参数
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class RegisterResponse extends RegisterDTO implements Serializable{
@SerializedName("code")
private Integer code;
@SerializedName("msg")
private String msg;
@SerializedName("param")
private RegisterParamDTO.RegisterParamResponse param;
}
}

View File

@@ -0,0 +1,50 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/11 14:58
*/
@Data
public class RegisterParamDTO implements Serializable {
@SerializedName("NDID")
private String nDid;
@SerializedName("DID")
private List<String> did;
/**
* 请求参数
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class RegisterParamRequest extends RegisterParamDTO implements Serializable{
@SerializedName("type")
private Integer type;
}
/**
* 应答参数
*/
@Data
@EqualsAndHashCode(callSuper = true)
public static class RegisterParamResponse extends RegisterParamDTO implements Serializable{
@SerializedName("res")
private Integer res;
@SerializedName("type")
private Integer resType;
}
}

View File

@@ -0,0 +1,36 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 12:09
*/
@Data
public class SoftInfoDTO implements Serializable {
@SerializedName("OsName")
private String osName;
@SerializedName("OsVersion")
private String osVersion;
@SerializedName("AppVersion")
private String appVersion;
@SerializedName("AppDate")
private String appDate;
@SerializedName("AppCheck")
private String appCheck;
@SerializedName("Softupdate")
private String softUpdate;
}

View File

@@ -0,0 +1,36 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 14:52
*/
@Data
public class StsDTO implements Serializable {
@SerializedName("Name")
private String name;
@SerializedName("IDX")
private Integer idx;
@SerializedName("StoreFlag")
private Integer storeFlag;
@SerializedName("CurSts")
private Integer curSts;
@SerializedName("ClassID")
private String classId;
@SerializedName("TranRule")
private String tranRule;
}

View File

@@ -0,0 +1,30 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 11:36
*/
@Data
public class TemplateDTO implements Serializable {
@SerializedName("NetDevMod")
private NetDevDTO netDev;
@SerializedName("DevCfg")
private DevCfgDTO devCfg;
@SerializedName("DevMod")
private List<DevDTO> dev;
@SerializedName("UserCfg")
private UserCfgDTO userCfg;
}

View File

@@ -0,0 +1,32 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 13:01
*/
@Data
public class TemplateDataArrayDTO implements Serializable {
@SerializedName("Data_Type")
private String dataType;
@SerializedName("DsName")
private String dsName;
@SerializedName("Data_Array")
private List<DataArrayListDTO> dataArray;
@SerializedName("Res")
private String res;
}

View File

@@ -0,0 +1,21 @@
package com.njcn.quality.pojo.dto;
import lombok.Data;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/4/1 10:17
*/
@Data
public class ThreadDTO {
public static Map<String,CompletableFuture<String>> list = new HashMap<>();
}

View File

@@ -0,0 +1,22 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/24 14:28
*/
@Data
public class TopicDTO implements Serializable {
@SerializedName("topic")
private List<String> topic;
}

View File

@@ -0,0 +1,21 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/24 14:38
*/
@Data
public class TopicParamDTO extends PublicParamDTO implements Serializable {
@SerializedName("param")
private TopicDTO param;
}

View File

@@ -0,0 +1,31 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/12 17:03
*/
@Data
public class TpListDTO implements Serializable {
@SerializedName("name")
private String name;
@SerializedName("IDX")
private String idx;
@SerializedName("version")
private String version;
@SerializedName("time")
private String time;
}

View File

@@ -0,0 +1,33 @@
package com.njcn.quality.pojo.dto;
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/13 13:05
*/
@Data
public class UserCfgDTO implements Serializable {
@SerializedName("Version")
private String version;
@SerializedName("Time")
private String time;
@SerializedName("Uid")
private String uid;
@SerializedName("CUid")
private List<CuIdDTO> cuId;
@SerializedName("CuDev")
private List<CuDevDTO> cuDev;
}

View File

@@ -0,0 +1,19 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
* pqs
*
* @author cdf
* @date 2022/4/21
*/
@TableName(value = "ele_air_set")
@Data
@AllArgsConstructor
public class AirSet {
private String id;
private String lineId;
}

View File

@@ -0,0 +1,28 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.db.bo.BaseEntity;
import lombok.Data;
/**
* pqs
* 空调策略
* @author cdf
* @date 2022/4/21
*/
@TableName(value = "ele_air_strategy")
@Data
public class AirStrategy extends BaseEntity {
private String id;
private String name;
private String startTime;
private String endTime;
private String mode;
private Integer temperature;
private String wind;
private Integer state;
private Integer sort;
private Integer status;
private String xxlId;
}

View File

@@ -0,0 +1,83 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
*
* </p>
*
* @author cdf
* @since 2022-03-03
*/
@Getter
@Setter
@TableName("ele_data_array")
public class DataArray {
private static final long serialVersionUID = 1L;
/**
* 详细数据表Id
*/
private String id;
/**
* 数据集表Id
*/
private String pid;
/**
* 数据类型表Id
*/
private String dataId;
/**
* 数据分类,同一个类型的数据存储到同一个表上(数据表名)
*/
private String className;
/**
* 排序
*/
private Integer sort;
/**
* 数据名称
*/
private String name;
/**
* 数据名称别名
*/
private String anotherName;
/**
* 数据编号
*/
private Integer idx;
/**
* 数据类型
*/
private String type;
/**
* 相别
*/
private String phase;
/**
* 统计类型
*/
private String statMethod;
/**
* influxDB表名
*/
private String classId;
}

View File

@@ -0,0 +1,36 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
*
* </p>
*
* @author cdf
* @since 2022-03-03
*/
@Getter
@Setter
@TableName("ele_data_group")
public class DataGroup {
private static final long serialVersionUID = 1L;
private String id;
/**
* 关联数据集表id
*/
private String pid;
/**
* 分组名称
*/
private String name;
private Integer sort;
}

View File

@@ -0,0 +1,52 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
/**
* <p>
*
* </p>
*
* @author cdf
* @since 2022-03-03
*/
@Getter
@Setter
@TableName("ele_data_mould")
public class DataMould {
private static final long serialVersionUID = 1L;
private String id;
/**
* 数据模板名称
*/
private String name;
/**
* 设备模板编号
*/
private Integer idx;
/**
* 版本号从V1.00开始)
*/
private String version;
/**
* 创建或最后修改时间
*/
private LocalDateTime time;
private Integer state;
private LocalDateTime createTime;
}

View File

@@ -0,0 +1,46 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
*
* </p>
*
* @author cdf
* @since 2022-03-03
*/
@Getter
@Setter
@TableName("ele_data_set")
public class DataSet {
private static final long serialVersionUID = 1L;
private String id;
/**
* 数据模板表Id
*/
private String pid;
/**
* 数据集名称
*/
private String name;
/**
* 数据集序号
*/
private Integer idx;
/**
* 是否存储“1”“0”
*/
private Integer storeFlag;
private String anotherName;
}

View File

@@ -0,0 +1,53 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/7 9:20
*/
@Data
@TableName("ele_dev_version")
public class DevVersion {
private static final long serialVersionUID = 1L;
/**
* 设备配置模板表Id
*/
private String id;
/**
* 网关id
*/
private String ndid;
/**
* 设备类型0联网设备1逻辑设备
*/
private Integer type;
/**
* 版本号从V1.00开始)
*/
private String version;
/**
* 创建或最后修改时间
*/
private LocalDateTime time;
/**
* 状态 0-删除1-正常
*/
private Integer state;
private LocalDateTime createTime;
}

View File

@@ -0,0 +1,29 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/14 20:29
*/
@Data
@TableName("ele_alm")
public class EleALM {
private static final long serialVersionUID = 1L;
private String id;
private String name;
private String anotherName;
private Integer idx;
private String type;
}

View File

@@ -0,0 +1,41 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/14 21:32
*/
@Data
@TableName("ele_actrl")
public class EleActrl {
private static final long serialVersionUID = 1L;
private String id;
private String name;
private String anotherName;
private Integer idx;
private Integer enable;
private Integer autoIdx;
private LocalDateTime startTime;
private LocalDateTime endTime;
private String condition;
private String outRes;
}

View File

@@ -0,0 +1,22 @@
package com.njcn.quality.pojo.po;
import lombok.Data;
/**
* pqs
*
* @author cdf
* @date 2022/3/29
*/
@Data
public class EleBind {
private static final long serialVersionUID = 1L;
private String lineId;
private String tagId;
private String ndid;
}

View File

@@ -0,0 +1,45 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/14 21:26
*/
@Data
@TableName("ele_ctrl")
public class EleCtrl {
private static final long serialVersionUID = 1L;
private String id;
private String name;
private String anotherName;
private Integer idx;
private String type;
private Integer remoteCheck;
private Integer auto;
private Integer maxNum;
private Integer minNum;
private String ctlValue;
private Integer strLen;
private String encode;
private String classId;
}

View File

@@ -0,0 +1,37 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/14 20:57
*/
@Data
@TableName("ele_di")
public class EleDi {
private static final long serialVersionUID = 1L;
private String id;
private String name;
private String anotherName;
private Integer idx;
private Integer storeFlag;
private Integer curSts;
private String classId;
private String tranRule;
private Integer tranFlag;
}

View File

@@ -0,0 +1,32 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.db.bo.BaseEntity;
import lombok.Data;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/24 11:00
*/
@Data
@TableName("ele_dict")
public class EleDict extends BaseEntity {
private static final long serialVersionUID = 1L;
private String id;
private String pid;
private String name;
private String anotherName;
private Integer state;
private Integer sort;
}

View File

@@ -0,0 +1,39 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/14 20:59
*/
@Data
@TableName("ele_do")
public class EleDo {
private static final long serialVersionUID = 1L;
private String id;
private String name;
private String anotherName;
private Integer idx;
private Integer storeFlag;
private Integer curSts;
private String classId;
private String statMethod;
private String tranRule;
private Integer tranFlag;
}

View File

@@ -0,0 +1,40 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/14 19:57
*/
@Data
@TableName("ele_epd_pqd")
public class EleEpdPqd {
private static final long serialVersionUID = 1L;
private String id;
private String name;
private String anotherName;
private Integer idx;
private String type;
private String phase;
private String unit;
private Integer harmStart;
private Integer harmEnd;
private String classId;
private String statMethod;
}

View File

@@ -0,0 +1,28 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/14 20:06
*/
@Data
@TableName("ele_evt")
public class EleEvt {
private static final long serialVersionUID = 1L;
private String id;
private String name;
private String anotherName;
private Integer idx;
private String type;
}

View File

@@ -0,0 +1,29 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/3/14 20:26
*/
@Data
@TableName("ele_evt_parm")
public class EleEvtParm {
private static final long serialVersionUID = 1L;
private String id;
private String pid;
private String name;
private String type;
private String data;
}

View File

@@ -0,0 +1,41 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/4/19 10:43
*/
@Data
@TableName("ele_information")
public class EleInformation {
private static final long serialVersionUID = 1L;
/**
* 数据更新时间
*/
private LocalDateTime updateTime;
/**
* 装置id
*/
private String did;
/**
* 类型
*/
private Integer type;
/**
* 描述
*/
private String description;
}

View File

@@ -0,0 +1,31 @@
package com.njcn.quality.pojo.po;
import lombok.Data;
import org.influxdb.annotation.Column;
import org.influxdb.annotation.Measurement;
import java.time.Instant;
/**
* 类的介绍:
*
* @author xuyang
* @version 1.0.0
* @createTime 2022/4/13 10:28
*/
@Data
@Measurement(name = "ele_integrity")
public class EleIntegrity {
@Column(name = "time")
private Instant time;
@Column(name = "line_id")
private String lineId;
@Column(name = "real")
private Integer real;
@Column(name = "due")
private Integer due;
}

View File

@@ -0,0 +1,91 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* <p>
*
* </p>
*
* @author cdf
* @since 2022-02-24
*/
@Data
@TableName("ele_line")
public class EleLine{
private static final long serialVersionUID = 1L;
/**
* 监测点信息表Id
*/
private String id;
/**
* 逻辑设备表Id
*/
private String pid;
/**
* 监测点Id
*/
private String lineId;
/**
* 监测点名称
*/
private String name;
/**
* 监测点编号
*/
private Integer idx;
/**
* 安装区域省
*/
private String province;
/**
* 安装区域市
*/
private String city;
/**
* 安装区域县或区
*/
private String county;
/**
* 安装地址(厂区或变电站)
*/
private String address;
/**
* 安装位置
*/
private String position;
/**
* 电压等级
*/
private String volGrade;
/**
* PT变比
*/
private String ptRatio;
/**
* CT变比
*/
private String ctRatio;
/**
* 状态
*/
private Integer state;
}

View File

@@ -0,0 +1,18 @@
package com.njcn.quality.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* 负荷配置
* @author denghuajun
* @version 1.0.0
* @date 2022年04月13日 14:46
*/
@Data
@TableName("ele_load_set")
public class EleLoadSet {
private String id;
private String lineId;
}

Some files were not shown because too many files have changed in this diff Show More