将终端台账拆分为pq&pms两类
This commit is contained in:
26
pqs-device/pq-device/pq-device-api/pom.xml
Normal file
26
pqs-device/pq-device/pq-device-api/pom.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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>pq-device</artifactId>
|
||||
<groupId>com.njcn</groupId>
|
||||
<version>1.0.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>pq-device-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-device-biz</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.njcn.device.pq.api;
|
||||
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.device.pq.api.fallback.DeviceTreeClientFallbackFactory;
|
||||
import com.njcn.device.pq.pojo.vo.AlarmStrategyVO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 告警管理Feign客户端
|
||||
* @author yzh
|
||||
* @date 2022/9/19
|
||||
*/
|
||||
@FeignClient(value = ServerInfo.DEVICE,path = "/Alarm",fallbackFactory = DeviceTreeClientFallbackFactory.class)
|
||||
public interface AlarmClient {
|
||||
|
||||
/**
|
||||
* 获取告警策略列表
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/getAlarmStrategyData")
|
||||
HttpResult<List<AlarmStrategyVO>> getAlarmStrategyData();
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.njcn.device.pq.api;
|
||||
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.device.pq.api.fallback.DeptLineFeignClientFallbackFactory;
|
||||
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 denghuajun
|
||||
* @date 2022/2/11
|
||||
*
|
||||
*/
|
||||
@FeignClient(value = ServerInfo.DEVICE,path = "/deptLine",fallbackFactory = DeptLineFeignClientFallbackFactory.class)
|
||||
public interface DeptLineFeignClient {
|
||||
@PostMapping("/getLineByDeptId")
|
||||
HttpResult<List<String>> getLineByDeptId(String id);
|
||||
|
||||
@PostMapping("/selectDeptBindLines")
|
||||
HttpResult<Boolean> selectDeptBindLines(@RequestParam("ids") List<String> ids);
|
||||
|
||||
@PostMapping("removeBind")
|
||||
HttpResult<Integer> removeBind(@RequestParam("id") String id);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.device.pq.api;
|
||||
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.device.pq.api.fallback.DeviceTreeClientFallbackFactory;
|
||||
import com.njcn.device.pq.pojo.vo.TerminalTree;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/1/13
|
||||
*/
|
||||
@FeignClient(value = ServerInfo.DEVICE,path = "/terminalTree",fallbackFactory = DeviceTreeClientFallbackFactory.class)
|
||||
public interface DeviceTreeClient {
|
||||
|
||||
/**
|
||||
* 获取5层终端树
|
||||
*/
|
||||
@GetMapping("/getTerminalTreeForFive")
|
||||
HttpResult<TerminalTree> getTerminalTreeForFive();
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.njcn.device.pq.api;
|
||||
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.device.pq.api.fallback.GeneralDeviceInfoClientFallbackFactory;
|
||||
import com.njcn.device.pq.pojo.bo.BaseLineInfo;
|
||||
import com.njcn.device.pq.pojo.dto.GeneralDeviceDTO;
|
||||
import com.njcn.device.pq.pojo.param.DeviceInfoParam;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2022年02月14日 14:02
|
||||
*/
|
||||
@FeignClient(value = ServerInfo.DEVICE, path = "/deviceInfo", fallbackFactory = GeneralDeviceInfoClientFallbackFactory.class)
|
||||
public interface GeneralDeviceInfoClient {
|
||||
|
||||
|
||||
/**
|
||||
* 获取按部门分类的实际运行终端综合信息
|
||||
*
|
||||
* @param deviceInfoParam 查询终端条件
|
||||
* @return 按部门分类的实际运行终端综合信息
|
||||
*/
|
||||
@PostMapping("/getPracticalRunDeviceInfoAsDept")
|
||||
HttpResult<List<GeneralDeviceDTO>> getPracticalRunDeviceInfoAsDept(@RequestBody DeviceInfoParam deviceInfoParam);
|
||||
|
||||
|
||||
/**
|
||||
* 获取按部门分类的实际便携式终端综合信息
|
||||
*
|
||||
* @param deviceInfoParam 查询终端条件
|
||||
* @return 按部门分类的实际便携式终端综合信息
|
||||
*/
|
||||
@PostMapping("/getOfflineRunDeviceInfoAsDept")
|
||||
HttpResult<List<GeneralDeviceDTO>> getOfflineRunDeviceInfoAsDept(@RequestBody DeviceInfoParam deviceInfoParam);
|
||||
|
||||
|
||||
/**
|
||||
* 获取按部门分类的实际所有终端综合信息
|
||||
*
|
||||
* @param deviceInfoParam 查询终端条件
|
||||
* @return 按部门分类的实际所有终端综合信息
|
||||
*/
|
||||
@PostMapping("/getPracticalAllDeviceInfoAsDept")
|
||||
HttpResult<List<GeneralDeviceDTO>> getPracticalAllDeviceInfoAsDept(@RequestBody DeviceInfoParam deviceInfoParam);
|
||||
|
||||
/**
|
||||
* 获取变电站分类的实际运行终端综合信息
|
||||
*
|
||||
* @param deviceInfoParam 查询终端条件
|
||||
* @return 按部门分类的实际所有终端综合信息
|
||||
*/
|
||||
@PostMapping("/getPracticalRunDeviceInfoAsSubstation")
|
||||
HttpResult<List<GeneralDeviceDTO>> getPracticalRunDeviceInfoAsSubstation(@RequestBody DeviceInfoParam deviceInfoParam);
|
||||
|
||||
|
||||
/**
|
||||
* 获取实际运行终端综合信息
|
||||
*
|
||||
* @param deviceInfoParam 查询终端条件
|
||||
* @return 按部门分类的实际运行终端综合信息
|
||||
*/
|
||||
@PostMapping("/getPracticalRunDeviceInfo")
|
||||
HttpResult<List<GeneralDeviceDTO>> getPracticalRunDeviceInfo(@RequestBody DeviceInfoParam deviceInfoParam);
|
||||
|
||||
|
||||
/**
|
||||
* 获取实际便携式终端综合信息
|
||||
*
|
||||
* @param deviceInfoParam 查询终端条件
|
||||
* @return 按部门分类的实际便携式终端综合信息
|
||||
*/
|
||||
@PostMapping("/getOfflineRunDeviceInfo")
|
||||
HttpResult<List<GeneralDeviceDTO>> getOfflineRunDeviceInfo(@RequestBody DeviceInfoParam deviceInfoParam);
|
||||
|
||||
|
||||
/**
|
||||
* 获取实际所有终端综合信息
|
||||
*
|
||||
* @param deviceInfoParam 查询终端条件
|
||||
* @return 按部门分类的实际所有终端综合信息
|
||||
*/
|
||||
@PostMapping("/getPracticalAllDeviceInfo")
|
||||
HttpResult<List<GeneralDeviceDTO>> getPracticalAllDeviceInfo(@RequestBody DeviceInfoParam deviceInfoParam);
|
||||
|
||||
/**
|
||||
* 获取监测点及以上层的基础信息
|
||||
*/
|
||||
@PostMapping("/getBaseLineInfo")
|
||||
HttpResult<List<BaseLineInfo>> getBaseLineInfo(@RequestBody List<String> lineIndex);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,258 @@
|
||||
package com.njcn.device.pq.api;
|
||||
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.device.pq.api.fallback.LineFeignClientFallbackFactory;
|
||||
import com.njcn.device.pq.pojo.dto.*;
|
||||
import com.njcn.device.pq.pojo.param.LineBaseQueryParam;
|
||||
import com.njcn.device.pq.pojo.po.Line;
|
||||
import com.njcn.device.pq.pojo.po.LineDetail;
|
||||
import com.njcn.device.pq.pojo.po.Overlimit;
|
||||
import com.njcn.device.pq.pojo.vo.*;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @date 2022/2/28
|
||||
*/
|
||||
@FeignClient(value = ServerInfo.DEVICE, path = "/line", fallbackFactory = LineFeignClientFallbackFactory.class)
|
||||
public interface LineFeignClient {
|
||||
|
||||
/**
|
||||
* 获取终端状态信息
|
||||
*
|
||||
* @param id 监测点id
|
||||
* @param searchBeginTime 起始时间
|
||||
* @param searchEndTime 结束时间
|
||||
* @return 终端状态信息
|
||||
*/
|
||||
@PostMapping("/getComFlagInfoData")
|
||||
HttpResult<CommunicateVO> getComFlagInfoData(@RequestParam("id") String id,
|
||||
@RequestParam("searchBeginTime") String searchBeginTime,
|
||||
@RequestParam("searchEndTime") String searchEndTime);
|
||||
|
||||
/**
|
||||
* 根据监测点id获取 终端id
|
||||
*
|
||||
* @param id 监测点id
|
||||
* @return 终端id
|
||||
*/
|
||||
@PostMapping("getLineIdByDevId")
|
||||
HttpResult<String> getLineIdByDevId(@RequestParam("id") String id);
|
||||
|
||||
/**
|
||||
* 根据监测点id获取限值
|
||||
*
|
||||
* @param id 监测点id
|
||||
* @return 获取限值
|
||||
*/
|
||||
@PostMapping("getOverLimitData")
|
||||
HttpResult<Overlimit> getOverLimitData(@RequestParam("id") String id);
|
||||
|
||||
/**
|
||||
* 根据监测点id获取监测点详情
|
||||
*
|
||||
* @param id 监测点id
|
||||
* @return 监测点详情
|
||||
*/
|
||||
@PostMapping("getLineDetailData")
|
||||
HttpResult<LineDetailDataVO> getLineDetailData(@RequestParam("id") String id);
|
||||
|
||||
/**
|
||||
* 根据监测点id获取监测点越限
|
||||
*
|
||||
* @param id 监测点id
|
||||
* @return 监测点越限详情
|
||||
*/
|
||||
@PostMapping("getLineOverLimitData")
|
||||
HttpResult<LineOverLimitVO> getLineOverLimitData(@RequestParam("id") String id);
|
||||
|
||||
|
||||
/**
|
||||
* 获取投运在线的监测点的限值
|
||||
*
|
||||
* @param serverName 服务名称
|
||||
* @param deptId 部门id
|
||||
* @return 监测点越限详情
|
||||
*/
|
||||
@PostMapping("/getAllLineOverLimit")
|
||||
HttpResult<List<Overlimit>> getAllLineOverLimit(@RequestParam("serverName") String serverName, @RequestParam(value = "deptId", required = false) String deptId);
|
||||
|
||||
/**
|
||||
* 获取变电站详情
|
||||
*
|
||||
* @param id 变电站id
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("getSubstationData")
|
||||
HttpResult<List<SubstationDetailVO>> getSubstationData(@RequestParam("id") List<String> id);
|
||||
|
||||
/**
|
||||
* 根据变电站id获取子节数据
|
||||
*
|
||||
* @param id 变电站id
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("getSubIndexLineDetail")
|
||||
HttpResult<List<Line>> getSubIndexLineDetail(@RequestParam("id") String id);
|
||||
|
||||
/**
|
||||
* 获取所有监测点
|
||||
* @param id 监测点集合
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("getAllLine")
|
||||
HttpResult<List<LineDeviceStateVO>> getAllLine(@RequestBody List<String> id);
|
||||
|
||||
/**
|
||||
* 获取终端状态
|
||||
* @param id id
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("getDeviceState")
|
||||
HttpResult<Integer> getDeviceState(@RequestParam("id") String id);
|
||||
|
||||
/**
|
||||
* 获取变电站信息
|
||||
* @param id id
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("getSubstationInfo")
|
||||
HttpResult<PollutionSubstationDTO> getSubstationInfo(@RequestParam("id") String id);
|
||||
|
||||
/**
|
||||
* 获取监测点信息
|
||||
* @param pollutionParamDTO 监测点对象
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("getLineInfo")
|
||||
HttpResult<List<PollutionLineDTO>> getLineInfo(@RequestBody PollutionParamDTO pollutionParamDTO);
|
||||
|
||||
/**
|
||||
* 获取所有监测点
|
||||
* @param id 监测点集合
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("getLineSubGdDetail")
|
||||
HttpResult<LineDetailVO> getLineSubGdDetail(@RequestParam("id") String id);
|
||||
|
||||
/**
|
||||
* 获取告警变电站信息
|
||||
* @param list 变电站集合
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("getWarningSub")
|
||||
HttpResult<List<WarningSubstationDTO>> getWarningSub(@RequestParam("list") List<String> list);
|
||||
|
||||
/**
|
||||
* 获取监测点信息
|
||||
* @param pollutionParamDTO 实体
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("getOverLimitLineInfo")
|
||||
HttpResult<List<OverLimitLineDTO>> getOverLimitLineInfo(@RequestBody PollutionParamDTO pollutionParamDTO);
|
||||
|
||||
/**
|
||||
* 获取生成limitRate的监测点
|
||||
* @return 监测点id集合
|
||||
*/
|
||||
@PostMapping("getLineList")
|
||||
HttpResult<List<String>> getLineList();
|
||||
|
||||
/**
|
||||
* 获取监测点限值
|
||||
* @param pollutionParamDTO 监测点id集合
|
||||
* @return 监测点限值信息
|
||||
*/
|
||||
@PostMapping("getOverLimitByList")
|
||||
HttpResult<List<Overlimit>> getOverLimitByList(@RequestBody PollutionParamDTO pollutionParamDTO);
|
||||
|
||||
|
||||
/**
|
||||
* 区域监测点以及上级一些信息
|
||||
* @param list 监测点id集合
|
||||
* @return AreaLineInfoVO
|
||||
*/
|
||||
@PostMapping("getBaseLineAreaInfo")
|
||||
HttpResult<List<AreaLineInfoVO>> getBaseLineAreaInfo(@RequestBody List<String> list);
|
||||
|
||||
/**
|
||||
* 获取丰富的监测点信息(扩展模糊查询)
|
||||
* @param lineBaseQueryParam 监测点参数
|
||||
* @return AreaLineInfoVO
|
||||
*/
|
||||
@PostMapping("getRichLineInfo")
|
||||
HttpResult<List<AreaLineInfoVO>> getRichLineInfo(@RequestBody LineBaseQueryParam lineBaseQueryParam);
|
||||
|
||||
/**
|
||||
* 获取监测点基本信息
|
||||
* @param list 监测点id集合
|
||||
* @return Line
|
||||
*/
|
||||
@PostMapping("getBaseLineList")
|
||||
HttpResult<List<Line>> getBaseLineList(@RequestBody List<String> list);
|
||||
|
||||
/**
|
||||
* 功能描述: 获取指定条件的监测点信息
|
||||
* @param list 监测点id集合
|
||||
* @author xy
|
||||
* @date 2022/7/8 14:24
|
||||
* @return 监测点详情集合
|
||||
*/
|
||||
@PostMapping("getLineDetail")
|
||||
HttpResult<List<LineDetail>> getLineDetail(@RequestParam(required = false,value = "list") List<String> list);
|
||||
|
||||
/**
|
||||
* 功能描述: 获取指定条件的装置id(实际装置、投运、稳态或者双系统)
|
||||
* @author xy
|
||||
* @date 2022/7/8 14:24
|
||||
* @return 装置id集合
|
||||
*/
|
||||
@PostMapping("getDeviceList")
|
||||
HttpResult<List<String>> getDeviceList();
|
||||
|
||||
/**
|
||||
* 功能描述: 获取指定条件的监测点id(实际装置、投运、稳态或者双系统)
|
||||
* @author xy
|
||||
* @date 2022/7/8 14:24
|
||||
* @return 装置id集合
|
||||
*/
|
||||
@PostMapping("getRunLineIdsList")
|
||||
HttpResult<List<String>> getRunLineIdsList();
|
||||
|
||||
/**
|
||||
* 获取当前状态在线的监测点数量
|
||||
* @param lineIds 监测点集合
|
||||
* @return 在线的监测点数量
|
||||
* @author cdf
|
||||
* @date 2022/8/1
|
||||
*/
|
||||
@PostMapping("getOnLineCount")
|
||||
HttpResult<Integer> getOnLineCount(@RequestBody List<String> lineIds);
|
||||
|
||||
|
||||
/**
|
||||
* 获取当前状态在线和离线的监测点
|
||||
* @param lineBaseQueryParam 监测点查询参数
|
||||
* @return 在线的监测点id集
|
||||
* @author cdf
|
||||
* @date 2022/8/1
|
||||
*/
|
||||
@PostMapping("getOnOrUnLine")
|
||||
HttpResult<List<String>> getOnOrUnLine(@RequestBody LineBaseQueryParam lineBaseQueryParam);
|
||||
|
||||
/**
|
||||
* 获取监测点设备id
|
||||
* @param lineIds 监测点集合
|
||||
* @return 监测点设备id
|
||||
* @author cdf
|
||||
* @date 2022/8/1
|
||||
*/
|
||||
@PostMapping("getOnLineDevLine")
|
||||
HttpResult<List<OnlineLineDTO>> getOnLineDevLine(@RequestBody List<String> lineIds);
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.njcn.device.pq.api;
|
||||
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.device.pq.api.fallback.TerminalBaseClientFallbackFactory;
|
||||
import com.njcn.device.pq.pojo.po.Line;
|
||||
import com.njcn.device.pq.pojo.vo.TerminalBaseVO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2022年02月14日 14:02
|
||||
*/
|
||||
@FeignClient(value = ServerInfo.DEVICE,path = "/device",fallbackFactory = TerminalBaseClientFallbackFactory.class)
|
||||
public interface TerminalBaseClient {
|
||||
|
||||
|
||||
/**
|
||||
* 功能描述:根据变电站id获取变电站详情
|
||||
*
|
||||
* @param list
|
||||
* @return
|
||||
* @author xy
|
||||
* @date 2022/2/21 18:53
|
||||
*/
|
||||
@GetMapping("/getSubstationById")
|
||||
HttpResult<List<Line>> getSubstationById(@RequestParam("list") List<String> list);
|
||||
|
||||
|
||||
/**
|
||||
* 获取监测点限值
|
||||
* @param list 设备id集合
|
||||
* @return 监测点限值信息
|
||||
*/
|
||||
@PostMapping("getDevInfoByIds")
|
||||
HttpResult<List<TerminalBaseVO>> getDeviceByIdOnOrOff(@RequestBody List<String> list);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.njcn.device.pq.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.device.pq.api.AlarmClient;
|
||||
import com.njcn.device.pq.pojo.vo.AlarmStrategyVO;
|
||||
import com.njcn.device.pq.utils.DeviceEnumUtil;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 告警管理熔断降级
|
||||
* @author yzh
|
||||
* @date 2022/9/19
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class AlarmClientFallbackFactory implements FallbackFactory<AlarmClient> {
|
||||
@Override
|
||||
public AlarmClient create(Throwable throwable) {
|
||||
//判断抛出异常是否为解码器抛出的业务异常
|
||||
Enum<?> exceptionEnum = CommonResponseEnum.SERVICE_FALLBACK;
|
||||
if (throwable.getCause() instanceof BusinessException) {
|
||||
BusinessException businessException = (BusinessException) throwable.getCause();
|
||||
exceptionEnum = DeviceEnumUtil.getExceptionEnum(businessException.getResult());
|
||||
}
|
||||
Enum<?> finalExceptionEnum = exceptionEnum;
|
||||
return new AlarmClient() {
|
||||
@Override
|
||||
public HttpResult<List<AlarmStrategyVO>> getAlarmStrategyData() {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取终获取告警策略列表", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.njcn.device.pq.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.device.pq.api.DeptLineFeignClient;
|
||||
import com.njcn.device.pq.utils.DeviceEnumUtil;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @date 2022/1/13
|
||||
*
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class DeptLineFeignClientFallbackFactory implements FallbackFactory<DeptLineFeignClient> {
|
||||
@Override
|
||||
public DeptLineFeignClient create(Throwable throwable) {
|
||||
//判断抛出异常是否为解码器抛出的业务异常
|
||||
Enum<?> exceptionEnum = CommonResponseEnum.SERVICE_FALLBACK;
|
||||
if (throwable.getCause() instanceof BusinessException) {
|
||||
BusinessException businessException = (BusinessException) throwable.getCause();
|
||||
exceptionEnum = DeviceEnumUtil.getExceptionEnum(businessException.getResult());
|
||||
}
|
||||
Enum<?> finalExceptionEnum = exceptionEnum;
|
||||
return new DeptLineFeignClient()
|
||||
{
|
||||
|
||||
@Override
|
||||
public HttpResult<List<String>> getLineByDeptId(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "部门Id获取绑定监测点", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Boolean> selectDeptBindLines(List<String> ids) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "部门Ids集合查询是否绑定", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Integer> removeBind(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "部门解除绑定", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.njcn.device.pq.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.device.pq.api.DeviceTreeClient;
|
||||
import com.njcn.device.pq.pojo.vo.TerminalTree;
|
||||
import com.njcn.device.pq.utils.DeviceEnumUtil;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/1/13
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class DeviceTreeClientFallbackFactory implements FallbackFactory<DeviceTreeClient> {
|
||||
|
||||
@Override
|
||||
public DeviceTreeClient create(Throwable cause) {
|
||||
//判断抛出异常是否为解码器抛出的业务异常
|
||||
Enum<?> exceptionEnum = CommonResponseEnum.SERVICE_FALLBACK;
|
||||
if(cause.getCause() instanceof BusinessException){
|
||||
BusinessException businessException = (BusinessException) cause.getCause();
|
||||
exceptionEnum = DeviceEnumUtil.getExceptionEnum(businessException.getResult());
|
||||
}
|
||||
Enum<?> finalExceptionEnum = exceptionEnum;
|
||||
return new DeviceTreeClient() {
|
||||
@Override
|
||||
public HttpResult<TerminalTree> getTerminalTreeForFive() {
|
||||
log.error("{}异常,降级处理,异常为:{}","获取终端五层树失败",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
package com.njcn.device.pq.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.device.pq.api.GeneralDeviceInfoClient;
|
||||
import com.njcn.device.pq.pojo.bo.BaseLineInfo;
|
||||
import com.njcn.device.pq.pojo.dto.GeneralDeviceDTO;
|
||||
import com.njcn.device.pq.pojo.param.DeviceInfoParam;
|
||||
import com.njcn.device.pq.utils.DeviceEnumUtil;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2022年02月14日 14:03
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class GeneralDeviceInfoClientFallbackFactory implements FallbackFactory<GeneralDeviceInfoClient> {
|
||||
@Override
|
||||
public GeneralDeviceInfoClient create(Throwable throwable) {
|
||||
//判断抛出异常是否为解码器抛出的业务异常
|
||||
Enum<?> exceptionEnum = CommonResponseEnum.SERVICE_FALLBACK;
|
||||
if (throwable.getCause() instanceof BusinessException) {
|
||||
BusinessException businessException = (BusinessException) throwable.getCause();
|
||||
exceptionEnum = DeviceEnumUtil.getExceptionEnum(businessException.getResult());
|
||||
}
|
||||
Enum<?> finalExceptionEnum = exceptionEnum;
|
||||
return new GeneralDeviceInfoClient()
|
||||
{
|
||||
@Override
|
||||
public HttpResult<List<GeneralDeviceDTO>> getPracticalRunDeviceInfoAsDept(DeviceInfoParam deviceInfoParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取按部门分类的实际运行终端综合信息", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
@Override
|
||||
public HttpResult<List<GeneralDeviceDTO>> getOfflineRunDeviceInfoAsDept(DeviceInfoParam deviceInfoParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取按部门分类的实际便携式终端综合信息", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
@Override
|
||||
public HttpResult<List<GeneralDeviceDTO>> getPracticalAllDeviceInfoAsDept(DeviceInfoParam deviceInfoParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取按部门分类的实际所有终端综合信息", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<GeneralDeviceDTO>> getPracticalRunDeviceInfoAsSubstation(DeviceInfoParam deviceInfoParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取按变电站分类的实际运行终端综合信息", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<GeneralDeviceDTO>> getPracticalRunDeviceInfo(DeviceInfoParam deviceInfoParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取实际运行终端综合信息", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<GeneralDeviceDTO>> getOfflineRunDeviceInfo(DeviceInfoParam deviceInfoParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取实际便携式终端综合信息", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<GeneralDeviceDTO>> getPracticalAllDeviceInfo(DeviceInfoParam deviceInfoParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取实际所有终端综合信息", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<BaseLineInfo>> getBaseLineInfo(List<String> lineIndex) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取监测点及以上层的基础信息", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,198 @@
|
||||
package com.njcn.device.pq.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.device.pq.api.LineFeignClient;
|
||||
import com.njcn.device.pq.pojo.dto.*;
|
||||
import com.njcn.device.pq.pojo.param.LineBaseQueryParam;
|
||||
import com.njcn.device.pq.pojo.po.Line;
|
||||
import com.njcn.device.pq.pojo.po.LineDetail;
|
||||
import com.njcn.device.pq.pojo.po.Overlimit;
|
||||
import com.njcn.device.pq.pojo.vo.*;
|
||||
import com.njcn.device.pq.utils.DeviceEnumUtil;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @date 2022/2/28
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class LineFeignClientFallbackFactory implements FallbackFactory<LineFeignClient> {
|
||||
@Override
|
||||
public LineFeignClient create(Throwable throwable) {
|
||||
//判断抛出异常是否为解码器抛出的业务异常
|
||||
Enum<?> exceptionEnum = CommonResponseEnum.SERVICE_FALLBACK;
|
||||
if (throwable.getCause() instanceof BusinessException) {
|
||||
BusinessException businessException = (BusinessException) throwable.getCause();
|
||||
exceptionEnum = DeviceEnumUtil.getExceptionEnum(businessException.getResult());
|
||||
}
|
||||
Enum<?> finalExceptionEnum = exceptionEnum;
|
||||
return new LineFeignClient() {
|
||||
|
||||
@Override
|
||||
public HttpResult<CommunicateVO> getComFlagInfoData(String id, String searchBeginTime, String searchEndTime) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "根据监测点Id获取终端状态统计", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<String> getLineIdByDevId(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "根据监测点Id获取终端id", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Overlimit> getOverLimitData(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "根据监测点Id获取限值 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<LineDetailDataVO> getLineDetailData(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "根据监测点Id获取监测点详情 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<LineOverLimitVO> getLineOverLimitData(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "根据监测点Id获取监测点越限 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<Overlimit>> getAllLineOverLimit(String serverName, String deptId) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取投运在线的监测点的限值 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<SubstationDetailVO>> getSubstationData(List<String> id) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取变电站信息 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<Line>> getSubIndexLineDetail(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取所有信息 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<LineDeviceStateVO>> getAllLine(List<String> id) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取终端信息 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Integer> getDeviceState(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取终端状态 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<PollutionSubstationDTO> getSubstationInfo(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "变电站信息 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<PollutionLineDTO>> getLineInfo(PollutionParamDTO pollutionParamDTO) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "监测点信息 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<LineDetailVO> getLineSubGdDetail(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "监测点详细信息 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<WarningSubstationDTO>> getWarningSub(List<String> list) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "变电站集合为 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<OverLimitLineDTO>> getOverLimitLineInfo(PollutionParamDTO pollutionParamDTO) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "监测点集合为 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<String>> getLineList() {
|
||||
log.error("{}异常,降级处理,异常为:{}", "监测点集合为 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<Overlimit>> getOverLimitByList(PollutionParamDTO pollutionParamDTO) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "监测点集合为 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<AreaLineInfoVO>> getBaseLineAreaInfo(List<String> list) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取监测点详情异常 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<AreaLineInfoVO>> getRichLineInfo(LineBaseQueryParam lineBaseQueryParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取监测点详情异常 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<Line>> getBaseLineList(List<String> list) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取监测点详情 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<LineDetail>> getLineDetail(List<String> list) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取监测点详情 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<String>> getDeviceList() {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取装置Id集合: ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<String>> getRunLineIdsList() {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取监测点Id集合: ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Integer> getOnLineCount(List<String> lineIds) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取在线监测点数量异常: ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<String>> getOnOrUnLine( LineBaseQueryParam lineBaseQueryParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取当前状态在线和离线的监测点异常: ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public HttpResult<List<OnlineLineDTO>> getOnLineDevLine(List<String> lineIds) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取监测点设备id异常: ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.njcn.device.pq.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.device.pq.api.TerminalBaseClient;
|
||||
import com.njcn.device.pq.pojo.po.Line;
|
||||
import com.njcn.device.pq.pojo.vo.TerminalBaseVO;
|
||||
import com.njcn.device.pq.utils.DeviceEnumUtil;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2022年02月14日 14:03
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class TerminalBaseClientFallbackFactory implements FallbackFactory<TerminalBaseClient> {
|
||||
@Override
|
||||
public TerminalBaseClient create(Throwable throwable) {
|
||||
//判断抛出异常是否为解码器抛出的业务异常
|
||||
Enum<?> exceptionEnum = CommonResponseEnum.SERVICE_FALLBACK;
|
||||
if (throwable.getCause() instanceof BusinessException) {
|
||||
BusinessException businessException = (BusinessException) throwable.getCause();
|
||||
exceptionEnum = DeviceEnumUtil.getExceptionEnum(businessException.getResult());
|
||||
}
|
||||
Enum<?> finalExceptionEnum = exceptionEnum;
|
||||
return new TerminalBaseClient()
|
||||
{
|
||||
@Override
|
||||
public HttpResult<List<Line>> getSubstationById(List<String> list) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "根据变电站id获取变电站详情", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<TerminalBaseVO>> getDeviceByIdOnOrOff(List<String> list) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "根据设备ids获取设备详情", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.njcn.device.pq.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
* 终端枚举
|
||||
* @author cdf
|
||||
* @date 2021/6/21
|
||||
*/
|
||||
@Getter
|
||||
public enum DeviceResponseEnum {
|
||||
|
||||
/**
|
||||
* A0250 ~ A0349 用于终端模块的枚举
|
||||
*/
|
||||
DEVICE_COMMON_ERROR("A00349","终端模块异常"),
|
||||
|
||||
PROJECT_SAME_NAME("A0250","项目名称已存在"),
|
||||
PROJECT_NO("A0251","项目为空"),
|
||||
|
||||
PROVINCE_SAME_NAME("A0260","省份不可重复"),
|
||||
PROVINCE_GET_ERROR("A0261","未知区域"),
|
||||
PROVINCE_EMPTY("A0262","省份为空"),
|
||||
|
||||
GD_SAME_NAME("A0270","供电公司名称已存在"),
|
||||
GD_NO("A0271","未知供电公司"),
|
||||
GD_EMPTY("A0272","公司为空"),
|
||||
|
||||
SUB_SAME_NAME("A0280","变电站名称已存在"),
|
||||
SUB_NO("A0281","变电站为空"),
|
||||
|
||||
DEVICE_SAME_NAME("A0290","设备名称已存在"),
|
||||
DEVICE_REPETITION("A0291","设备名称重复"),
|
||||
DEVICE_IP_REPETITION("A0292","设备IP重复"),
|
||||
DEVICE_SAME_IP("A0293","当前设备ip已存在"),
|
||||
DEVICE_EMPTY("A0294","设备为空"),
|
||||
|
||||
NODE_SAME_NAME("A0259","前置机名称已存在"),
|
||||
NODE_IP_SAME("A0260","前置机ip已存在"),
|
||||
NODE_INFO_FAIL("A0261","前置机服务器为空"),
|
||||
|
||||
|
||||
SUBV_NAME_REPETITION("A0262","同一变电站下母线名称重复"),
|
||||
SUBV_NAME_SAME("A0263","母线名称已存在"),
|
||||
SUBV_NO("A0264","母线不存在"),
|
||||
|
||||
LINE_NAME_REPETITION("A0264","监测点名称重复"),
|
||||
LINE_NUM_USE("A0266","监测点序号已存在"),
|
||||
LINE_NUM_REPETITION("A0267","监测点序号重复"),
|
||||
LINE_NO("A0268","监测点不存在"),
|
||||
|
||||
DEVICE_LINE_BIG("A0268","每台装置下监测点数量最多6个"),
|
||||
|
||||
|
||||
DEVICE_UNKNOWN_ERROR("A0269","终端服务未知异常"),
|
||||
|
||||
PARENT_INDEX_LACK("A0270","索引和实体同时存在"),
|
||||
DEVICE_VOLTAGE_BIG("A0271","每台装置下母线数量最多6个"),
|
||||
VOLTAGE_NUM_USE("A0272","母线序号已存在"),
|
||||
REQUEST_DATA_ERROR("A2071","请求体格式有误"),
|
||||
DEPT_LINE_EMPTY("A2072","当前用户部门未有监测点绑定"),
|
||||
DIC_GET_EMPTY("A2073","字典获取为空"),
|
||||
|
||||
|
||||
|
||||
INVALID_LEVEL("A2074","非法拓扑等级"),
|
||||
LINE_EMPTY("A2075","监测点为空"),
|
||||
|
||||
/*excel相关*/
|
||||
Excel_ERROR("A2080","excel解析异常"),
|
||||
|
||||
FLOW_SAME_NAME("A0350","当前名称已存在"),
|
||||
FLOW_FLAG("A0351","默认类型已存在"),
|
||||
FLOW_ERROR("A0352","占比参数异常"),
|
||||
|
||||
IMPORT_ORACLE_EXCEPTION("A0353","导入旧库台账异常"),
|
||||
PARAM_VAL_ERR("A0354","参数校验异常"),
|
||||
QUERY_LINE_DATA_EMPTY("A0355","查询监测点数据为空"),
|
||||
QUERY_SUB_DATA_EMPTY("A0356","查询变电站数据为空"),
|
||||
QUERY_GD_DATA_EMPTY("A0357","查询供电公司数据为空"),
|
||||
QUERY_PROVINCE_DATA_EMPTY("A0358","查询区域数据为空"),
|
||||
QUERY_ALARMSTRATEGY_DATA_EMPTY("A0359","查询告警策略数据为空"),
|
||||
QUERY_DEVICELEVELANDID_DATA_EMPTY("A0360","查询终端等级和id数据为空"),
|
||||
QUERY_DEVICE_DATA_EMPTY("A0360","查询终端数据数据为空")
|
||||
|
||||
|
||||
|
||||
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private final String code;
|
||||
|
||||
private final String message;
|
||||
|
||||
DeviceResponseEnum(String code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.njcn.device.pq.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/1/4
|
||||
*/
|
||||
@Getter
|
||||
public enum LineBaseEnum {
|
||||
|
||||
/**
|
||||
* 系统拓扑各层级描述
|
||||
*/
|
||||
PROJECT_LEVEL(0, "项目"),
|
||||
PROVINCE_LEVEL(1, "省份"),
|
||||
GD_LEVEL(2, "供电公司"),
|
||||
SUB_LEVEL(3, "变电站"),
|
||||
DEVICE_LEVEL(4, "设备"),
|
||||
SUB_V_LEVEL(5, "母线"),
|
||||
LINE_LEVEL(6, "监测点"),
|
||||
INVALID_LEVEL(-1, "非法拓扑等级"),
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 分布式光伏树层级
|
||||
*/
|
||||
PV_UNIT_LEVEL(0,"单位"),
|
||||
PV_SUB_LEVEL(1,"变电站"),
|
||||
PV_SUB_AREA_LEVEL(2,"台区")
|
||||
|
||||
|
||||
|
||||
;
|
||||
|
||||
private final Integer code;
|
||||
private final String message;
|
||||
|
||||
LineBaseEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static LineBaseEnum getLineBaseEnumByCode(Integer code) {
|
||||
return Arrays.stream(LineBaseEnum.values())
|
||||
.filter(lineBaseEnum -> lineBaseEnum.getCode().equals(code))
|
||||
.findAny()
|
||||
.orElse(INVALID_LEVEL);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.njcn.device.pq.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
* 终端枚举
|
||||
* @author cdf
|
||||
* @date 2021/6/21
|
||||
*/
|
||||
@Getter
|
||||
public enum PvDeviceResponseEnum {
|
||||
|
||||
/**
|
||||
* A0350 ~ A0450 用于pv终端模块的枚举
|
||||
*/
|
||||
UNIT_REPEAT("A0350","单位名称重复"),
|
||||
SUBSTATION_REPEAT("A0351","变电站名称重复"),
|
||||
TEN_VOLTAGE_REPEAT("A0352","10kV线路名称重复"),
|
||||
VOLTAGE_REPEAT("A0352","母线名称重复"),
|
||||
SUB_AREA_REPEAT("A0353","台区名称重复"),
|
||||
SUB_NUM_REPEAT("A0354","母线号重复"),
|
||||
DVE_CODE_REPEAT("A0355","终端编号重复"),
|
||||
USER_CODE_REPEAT("A0356","用户编号重复"),
|
||||
SUB_AREA_EMPTY("A0357","台区不能为空"),
|
||||
VOLTAGE_PARAM_EMPTY("A0358","所属母线不可为空"),
|
||||
VOLTAGE_PARAM_EMPTY_MUST("A0359","所属母线必须为空"),
|
||||
LV_USER_REPEAT("A0360","低压用户名称重复"),
|
||||
SUBSTATION_CODE_REPEAT("A0351","变电站编号重复"),
|
||||
|
||||
|
||||
TEN_VOLTAGE_NULL("A0360","未查询到指定10kV线路"),
|
||||
UNIT_NULL("A0361","未查询到指定单位"),
|
||||
SUB_AREA_NULL("A0362","未查询到指定台区"),
|
||||
DEV_NULL("A0363","未查询到指定终端"),
|
||||
SUBSTATION_NULL("A0364","未查询到指定变电站"),
|
||||
SUBSTATION_EMPTY("A0364","变电站不可为空"),
|
||||
VOLTAGE_NULL("A0365","未查询到指定母线"),
|
||||
DEV_NUM_NULL("A0366","当前装置监测点序号已存在"),
|
||||
ONE_SUB_VOLTAGE_EMPTY("A0367","I类监测点变电站母线不可为空"),
|
||||
TWO_SUB_VOLTAGE_EMPTY_MUST("A0368","II类监测点变电站母线必须为空"),
|
||||
LINE_DEVICE_NO_MATCH("A0369","监测点所属装置型号不匹配"),
|
||||
NO_SUB("A0370","当前单位下不存在台区或变电站"),
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private final String code;
|
||||
|
||||
private final String message;
|
||||
|
||||
PvDeviceResponseEnum(String code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.njcn.device.pq.pojo.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2022年03月31日 20:02
|
||||
*/
|
||||
@Data
|
||||
public class BaseLineInfo implements Serializable {
|
||||
|
||||
private String id;
|
||||
|
||||
private String provincialName;
|
||||
|
||||
private String gdName;
|
||||
|
||||
private String subName;
|
||||
|
||||
private String subScale;
|
||||
|
||||
private String deviceName;
|
||||
|
||||
private String networkParam;
|
||||
|
||||
private String comState;
|
||||
|
||||
private String factoryName;
|
||||
|
||||
private LocalDateTime time;
|
||||
|
||||
private String subvName;
|
||||
|
||||
private String subvScale;
|
||||
|
||||
private String lineName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.njcn.device.pq.pojo.bo;
|
||||
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 设备状态类
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2022年02月11日 14:54
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class DeviceType implements Serializable {
|
||||
|
||||
/**
|
||||
* 终端模型(0:虚拟设备;1:实际设备;2:离线设备;)默认是实际设备
|
||||
*/
|
||||
private List<Integer> devModel;
|
||||
|
||||
/**
|
||||
* 终端状态(0:投运;1:热备用;2:停运)
|
||||
*/
|
||||
private List<Integer> runFlag;
|
||||
|
||||
/**
|
||||
* 数据类型(0:暂态系统;1:稳态系统;2:两个系统)
|
||||
*/
|
||||
private List<Integer> dataType ;
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.njcn.device.pq.pojo.bo.excel;
|
||||
|
||||
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/5/10
|
||||
*/
|
||||
@Data
|
||||
public class LineMark implements Serializable {
|
||||
|
||||
@Excel(name = "省份", width = 15)
|
||||
@NotBlank(message = "省份不可为空")
|
||||
private String province;
|
||||
@Excel(name = "供电公司", width = 15)
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "供电公司名称违规")
|
||||
@NotBlank(message = "公司不可为空")
|
||||
private String gdName;
|
||||
@Excel(name = "所属变电站", width = 45)
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "变电站名称违规")
|
||||
@NotBlank(message = "变电站不可为空")
|
||||
private String subName;
|
||||
@Excel(name = "装置名称", width = 35)
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "设备名称违规")
|
||||
@NotBlank(message = "装置不可为空")
|
||||
private String devName;
|
||||
@Excel(name = "监测点名称", width = 25)
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "监测点名称违规")
|
||||
@NotBlank(message = "监测点不可为空")
|
||||
private String lineName;
|
||||
@Excel(name = "监测点评级", width = 15)
|
||||
@NotBlank(message = "评分等级不可为空")
|
||||
private String mark;
|
||||
|
||||
@ExcelIgnore
|
||||
private String devIndex;
|
||||
@ExcelIgnore
|
||||
private String lineIndex;
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.njcn.device.pq.pojo.bo.excel;
|
||||
|
||||
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2022年04月12日 14:42
|
||||
*/
|
||||
@Data
|
||||
public class NodeExcel implements Serializable {
|
||||
|
||||
@Excel(name = "前置名称", width = 15)
|
||||
private String name;
|
||||
|
||||
@Excel(name = "IP", width = 15)
|
||||
private String ip;
|
||||
|
||||
@Excel(name = "描述", width = 15)
|
||||
private String remark;
|
||||
|
||||
@Excel(name = "等级", replace = {"极重要_0","普通_1","备用_2"}, width = 15)
|
||||
private Integer nodeGrade;
|
||||
|
||||
@Excel(name = "支持最大装置数量", width = 15)
|
||||
private Integer nodeDevNum;
|
||||
|
||||
@Excel(name = "排序", width = 15)
|
||||
private Integer sort;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,245 @@
|
||||
package com.njcn.device.pq.pojo.bo.excel;
|
||||
|
||||
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.device.pq.pojo.constant.DeviceValidMessage;
|
||||
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;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2022年04月12日 09:15
|
||||
*/
|
||||
@Data
|
||||
public class OracleTerminalExcel implements Serializable {
|
||||
|
||||
|
||||
@Excel(name = "项目", width = 15)
|
||||
@NotBlank(message = DeviceValidMessage.PROJECT_NAME_NOT)
|
||||
@Pattern(regexp = PatternRegex.DEPT_NAME_REGEX, message = DeviceValidMessage.PROJECT_NAME_RULE)
|
||||
private String projectName;
|
||||
|
||||
@Excel(name = "工程", width = 15)
|
||||
@NotBlank(message = DeviceValidMessage.PROVINCE_NAME_NOT)
|
||||
private String provinceName;
|
||||
|
||||
@Excel(name = "单位", width = 15)
|
||||
@NotBlank(message = "供电公司名称")
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "供电公司名称违规")
|
||||
private String gdName;
|
||||
|
||||
@Excel(name = "部门", width = 15)
|
||||
@NotBlank(message = "变电站名称不可为空")
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "变电站名称违规")
|
||||
private String substationName;
|
||||
|
||||
@Excel(name = "部门电压等级", width = 15)
|
||||
@NotBlank(message = "电压等级不可为空")
|
||||
private String subStationScale;
|
||||
|
||||
@Excel(name = "经度", width = 15)
|
||||
private BigDecimal lng;
|
||||
|
||||
@Excel(name = "纬度", width = 15)
|
||||
private BigDecimal lat;
|
||||
|
||||
@Excel(name = "终端", width = 15)
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "设备名称违规")
|
||||
private String deviceName;
|
||||
|
||||
@Excel(name = "终端索引")
|
||||
@NotNull(message = "终端索引不能为空")
|
||||
private Integer deviceId;
|
||||
|
||||
@Excel(name = "终端模型", replace = {"虚拟设备_0", "实际设备_1", "离线设备_2"}, width = 15)
|
||||
@NotNull(message = "设备模型不能为空")
|
||||
private Integer devModel;
|
||||
|
||||
@Excel(name = "数据类型", replace = {"暂态系统_0", "稳态系统_1", "双系统_2"}, width = 15)
|
||||
@NotNull(message = "数据类型不能为空")
|
||||
private Integer devDataType;
|
||||
|
||||
@Excel(name = "运行状态", replace = {"投运_0", "热备用_1", "停运_2"}, width = 15)
|
||||
@NotNull(message = "运行状态不能为空")
|
||||
private Integer runFlag;
|
||||
|
||||
@Excel(name = "通讯状态", replace = {"中断_0", "正常_1"}, width = 15)
|
||||
@NotNull(message = "通讯状态不能为空")
|
||||
private Integer comFlag;
|
||||
|
||||
@Excel(name = "终端厂家", width = 15)
|
||||
@NotBlank(message = "终端厂家不能为空")
|
||||
private String manufacturer;
|
||||
|
||||
@Excel(name = "定检状态", replace = {"未检_0", "已检_1"}, width = 15)
|
||||
@NotNull(message = "定检状态不能为空")
|
||||
private Integer checkFlag;
|
||||
|
||||
@Excel(name = "终端型号", width = 15)
|
||||
@NotBlank(message = "设备型号不能为空")
|
||||
private String devType;
|
||||
|
||||
@Excel(name = "网络参数", width = 15)
|
||||
@NotBlank(message = "设备ip不能为空")
|
||||
private String ip;
|
||||
|
||||
@Excel(name = "召唤标志", replace = {"周期触发_0", "人为触发_1"}, width = 15)
|
||||
@NotNull(message = "召唤标志不能为空")
|
||||
private Integer callFlag;
|
||||
|
||||
@Excel(name = "端口", width = 15)
|
||||
@Range(min = 1, max = 100000, message = "端口号违规")
|
||||
@NotNull(message = "设备端口号不能为空")
|
||||
private Integer port;
|
||||
|
||||
@Excel(name = "终端识别码", width = 15)
|
||||
private String series;
|
||||
|
||||
@Excel(name = "终端秘钥", width = 15)
|
||||
private String devKey;
|
||||
|
||||
@Excel(name = "前置名称", width = 15)
|
||||
@NotBlank(message = "前置名称引不能为空")
|
||||
private String nodeName;
|
||||
|
||||
@Excel(name = "投运时间", format = "yyyy-MM-dd", width = 15)
|
||||
@NotNull(message = "投运时间不为空")
|
||||
private LocalDate loginTime;
|
||||
|
||||
@Excel(name = "数据更新时间", format = "yyyy-MM-dd HH:mm:ss", width = 15)
|
||||
@NotNull(message = "数据更新时间不为空")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@Excel(name = "本次定检时间", format = "yyyy-MM-dd", width = 15)
|
||||
@NotNull(message = "本次定检时间不为空")
|
||||
private LocalDate thisTimeCheck;
|
||||
|
||||
@Excel(name = "下次定检时间", format = "yyyy-MM-dd", width = 15)
|
||||
@NotNull(message = "下次定检时间不为空")
|
||||
private LocalDate nextTimeCheck;
|
||||
|
||||
@Excel(name = "对时功能", replace = {"关闭_0", "开启_1"}, width = 15)
|
||||
private Integer onTime;
|
||||
|
||||
@Excel(name = "合同号", width = 15)
|
||||
private String contract;
|
||||
|
||||
@Excel(name = "电度功能", replace = {"关闭_0", "开启_1"}, width = 15)
|
||||
private Integer electroplate;
|
||||
|
||||
@Excel(name = "母线", width = 15)
|
||||
@NotBlank(message = "母线名称不可为空")
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "设备名称违规")
|
||||
private String subvName;
|
||||
|
||||
@Excel(name = "母线号", width = 15)
|
||||
@NotNull(message = "母线号不可为空")
|
||||
@Range(min = 1, max = 6, message = "请选择母线号1-6")
|
||||
private Integer subvNum;
|
||||
|
||||
@Excel(name = "母线电压等级", width = 15)
|
||||
@NotBlank(message = "母线电压等级")
|
||||
private String subvScale;
|
||||
|
||||
@Excel(name = "母线模型", replace = {"虚拟母线_0", "实际母线_1"}, width = 15)
|
||||
private Integer subvModel;
|
||||
|
||||
@Excel(name = "监测点索引", width = 15)
|
||||
@NotNull(message = "监测点索引不能为空")
|
||||
private Integer id;
|
||||
|
||||
@Excel(name = "监测点名称", width = 15)
|
||||
@NotBlank(message = "监测点名称不可为空")
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "监测点名称违规")
|
||||
private String lineName;
|
||||
|
||||
@Excel(name = "监测点线路号", width = 15)
|
||||
@NotNull(message = "监测点序号不可为空")
|
||||
private Integer lineNum;
|
||||
|
||||
@Excel(name = "pt1", width = 15)
|
||||
@NotNull(message = "PT一次变比不可为空")
|
||||
private Float pt1;
|
||||
|
||||
@Excel(name = "pt2", width = 15)
|
||||
@NotNull(message = "PT二次变比不可为空")
|
||||
private Float pt2;
|
||||
|
||||
@Excel(name = "ct1", width = 15)
|
||||
@NotNull(message = "CT一次变比不可为空")
|
||||
private Float ct1;
|
||||
|
||||
@Excel(name = "ct2", width = 15)
|
||||
@NotNull(message = "CT二次变比不可为空")
|
||||
private Float ct2;
|
||||
|
||||
@Excel(name = "设备容量", width = 15)
|
||||
@NotNull(message = "设备容量不可为空")
|
||||
private Float devCapacity;
|
||||
|
||||
@Excel(name = "短路容量", width = 15)
|
||||
@NotNull(message = "短路容量不可为空")
|
||||
private Float shortCapacity;
|
||||
|
||||
@Excel(name = "基准容量", width = 15)
|
||||
@NotNull(message = "基准容量不可为空")
|
||||
private Float standardCapacity;
|
||||
|
||||
@Excel(name = "协议容量", width = 15)
|
||||
@NotNull(message = "协议容量不可为空")
|
||||
private Float dealCapacity;
|
||||
|
||||
@Excel(name = "接线方式", replace = {"星型接法_0", "三角型接法_1", "开口三角型接法_2"}, width = 15)
|
||||
@NotNull(message = "接线类型不可为空")
|
||||
private Integer ptType;
|
||||
|
||||
@Excel(name = "测量间隔", width = 15)
|
||||
@NotNull(message = "监测点测量间隔不可为空")
|
||||
@Range(min = 1, max = 30, message = "取值范围1到30分钟")
|
||||
private Integer timeInterval;
|
||||
|
||||
@Excel(name = "干扰源类型", width = 15)
|
||||
@NotBlank(message = "干扰源类型不为空")
|
||||
private String loadType;
|
||||
|
||||
@Excel(name = "行业类型", width = 15)
|
||||
@NotBlank(message = "行业类型不为空")
|
||||
private String businessType;
|
||||
|
||||
@Excel(name = "国网监测点号", width = 15)
|
||||
private String monitorId;
|
||||
|
||||
@Excel(name = "电网标志", replace = {"电网侧_0", "非电网侧_1"}, width = 15)
|
||||
@NotNull(message = "电网标志不为空")
|
||||
private Integer powerFlag;
|
||||
|
||||
@Excel(name = "监测点对象名称", width = 15)
|
||||
private String objName;
|
||||
|
||||
@Excel(name = "人为干预统计", replace = {"不参与统计_0", "参与统计_1"}, width = 15)
|
||||
@NotNull(message = "统计标志不为空")
|
||||
private Integer statFlag;
|
||||
|
||||
@Excel(name = "终端等级", width = 15)
|
||||
private String lineGrade;
|
||||
|
||||
@Excel(name = "备注", width = 15)
|
||||
private String remark;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class OracleTerminalExcelMsg extends OracleTerminalExcel implements Serializable {
|
||||
@Excel(name = "错误信息描述", width = 30)
|
||||
private String msg;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,511 @@
|
||||
package com.njcn.device.pq.pojo.bo.excel;
|
||||
|
||||
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
@Data
|
||||
public class OverLimitExcel implements Serializable {
|
||||
|
||||
|
||||
/**
|
||||
* 监测点序号
|
||||
*/
|
||||
@Excel(name = "监测点索引", width = 15)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 频率限值
|
||||
*/
|
||||
@Excel(name = "频率限值", width = 15)
|
||||
private Float freqDev;
|
||||
|
||||
/**
|
||||
* 电压上偏差限值
|
||||
*/
|
||||
@Excel(name = "电压上偏差限值", width = 15)
|
||||
private Float voltageDev;
|
||||
|
||||
/**
|
||||
* 电压下偏差限值
|
||||
*/
|
||||
@Excel(name = "电压下偏差限值", width = 15)
|
||||
private Float uvoltageDev;
|
||||
|
||||
/**
|
||||
* 三相电压不平衡度限值
|
||||
*/
|
||||
@Excel(name = "三相电压不平衡度限值", width = 15)
|
||||
private Float ubalance;
|
||||
|
||||
/**
|
||||
* 闪变限值
|
||||
*/
|
||||
@Excel(name = "闪变限值", width = 15)
|
||||
private Float flicker;
|
||||
|
||||
/**
|
||||
* 电压总谐波畸变率限值
|
||||
*/
|
||||
@Excel(name = "电压总谐波畸变率限值", width = 15)
|
||||
private Float uaberrance;
|
||||
|
||||
/**
|
||||
* 负序电流限值
|
||||
*/
|
||||
@Excel(name = "负序电流限值", width = 15)
|
||||
private Float iNeg;
|
||||
|
||||
/**
|
||||
* 2次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_2")
|
||||
@Excel(name = "2次谐波电压限值", width = 15)
|
||||
private Float uharm2;
|
||||
|
||||
/**
|
||||
* 3次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_3")
|
||||
@Excel(name = "3次谐波电压限值", width = 15)
|
||||
private Float uharm3;
|
||||
|
||||
/**
|
||||
* 4次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_4")
|
||||
@Excel(name = "4次谐波电压限值", width = 15)
|
||||
private Float uharm4;
|
||||
|
||||
/**
|
||||
* 5次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_5")
|
||||
@Excel(name = "5次谐波电压限值", width = 15)
|
||||
private Float uharm5;
|
||||
|
||||
/**
|
||||
* 6次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_6")
|
||||
@Excel(name = "6次谐波电压限值", width = 15)
|
||||
private Float uharm6;
|
||||
|
||||
/**
|
||||
* 7次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_7")
|
||||
@Excel(name = "7次谐波电压限值", width = 15)
|
||||
private Float uharm7;
|
||||
|
||||
/**
|
||||
* 8次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_8")
|
||||
@Excel(name = "8次谐波电压限值", width = 15)
|
||||
private Float uharm8;
|
||||
|
||||
/**
|
||||
* 9次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_9")
|
||||
@Excel(name = "9次谐波电压限值", width = 15)
|
||||
private Float uharm9;
|
||||
|
||||
/**
|
||||
* 10次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_10")
|
||||
@Excel(name = "10次谐波电压限值", width = 15)
|
||||
private Float uharm10;
|
||||
|
||||
/**
|
||||
* 11次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_11")
|
||||
@Excel(name = "11次谐波电压限值", width = 15)
|
||||
private Float uharm11;
|
||||
|
||||
/**
|
||||
* 12次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_12")
|
||||
@Excel(name = "12次谐波电压限值", width = 15)
|
||||
private Float uharm12;
|
||||
|
||||
/**
|
||||
* 13次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_13")
|
||||
@Excel(name = "13次谐波电压限值", width = 15)
|
||||
private Float uharm13;
|
||||
|
||||
/**
|
||||
* 14次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_14")
|
||||
@Excel(name = "14次谐波电压限值", width = 15)
|
||||
private Float uharm14;
|
||||
|
||||
/**
|
||||
* 15次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_15")
|
||||
@Excel(name = "15次谐波电压限值", width = 15)
|
||||
private Float uharm15;
|
||||
|
||||
/**
|
||||
* 16次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_16")
|
||||
@Excel(name = "16次谐波电压限值", width = 15)
|
||||
private Float uharm16;
|
||||
|
||||
/**
|
||||
* 17次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_17")
|
||||
@Excel(name = "17次谐波电压限值", width = 15)
|
||||
private Float uharm17;
|
||||
|
||||
/**
|
||||
* 18次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_18")
|
||||
@Excel(name = "18次谐波电压限值", width = 15)
|
||||
private Float uharm18;
|
||||
|
||||
/**
|
||||
* 19次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_19")
|
||||
@Excel(name = "19次谐波电压限值", width = 15)
|
||||
private Float uharm19;
|
||||
|
||||
/**
|
||||
* 20次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_20")
|
||||
@Excel(name = "20次谐波电压限值", width = 15)
|
||||
private Float uharm20;
|
||||
|
||||
/**
|
||||
* 21次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_21")
|
||||
@Excel(name = "21次谐波电压限值", width = 15)
|
||||
private Float uharm21;
|
||||
|
||||
/**
|
||||
* 22次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_22")
|
||||
@Excel(name = "22次谐波电压限值", width = 15)
|
||||
private Float uharm22;
|
||||
|
||||
/**
|
||||
* 23次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_23")
|
||||
@Excel(name = "23次谐波电压限值", width = 15)
|
||||
private Float uharm23;
|
||||
|
||||
/**
|
||||
* 24次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_24")
|
||||
@Excel(name = "24次谐波电压限值", width = 15)
|
||||
private Float uharm24;
|
||||
|
||||
/**
|
||||
* 25次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_25")
|
||||
@Excel(name = "25次谐波电压限值", width = 15)
|
||||
private Float uharm25;
|
||||
|
||||
/**
|
||||
* 2次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_2")
|
||||
@Excel(name = "2次谐波电流限值", width = 15)
|
||||
private Float iharm2;
|
||||
|
||||
/**
|
||||
* 3次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_3")
|
||||
@Excel(name = "3次谐波电流限值", width = 15)
|
||||
private Float iharm3;
|
||||
|
||||
/**
|
||||
* 4次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_4")
|
||||
@Excel(name = "4次谐波电流限值", width = 15)
|
||||
private Float iharm4;
|
||||
|
||||
/**
|
||||
* 5次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_5")
|
||||
@Excel(name = "5次谐波电流限值", width = 15)
|
||||
private Float iharm5;
|
||||
|
||||
/**
|
||||
* 6次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_6")
|
||||
@Excel(name = "6次谐波电流限值", width = 15)
|
||||
private Float iharm6;
|
||||
|
||||
/**
|
||||
* 7次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_7")
|
||||
@Excel(name = "7次谐波电流限值", width = 15)
|
||||
private Float iharm7;
|
||||
|
||||
/**
|
||||
* 8次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_8")
|
||||
@Excel(name = "8次谐波电流限值", width = 15)
|
||||
private Float iharm8;
|
||||
|
||||
/**
|
||||
* 9次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_9")
|
||||
@Excel(name = "9次谐波电流限值", width = 15)
|
||||
private Float iharm9;
|
||||
|
||||
/**
|
||||
* 10次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_10")
|
||||
@Excel(name = "10次谐波电流限值", width = 15)
|
||||
private Float iharm10;
|
||||
|
||||
/**
|
||||
* 11次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_11")
|
||||
@Excel(name = "11次谐波电流限值", width = 15)
|
||||
private Float iharm11;
|
||||
|
||||
/**
|
||||
* 12次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_12")
|
||||
@Excel(name = "12次谐波电流限值", width = 15)
|
||||
private Float iharm12;
|
||||
|
||||
/**
|
||||
* 13次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_13")
|
||||
@Excel(name = "13次谐波电流限值", width = 15)
|
||||
private Float iharm13;
|
||||
|
||||
/**
|
||||
* 14次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_14")
|
||||
@Excel(name = "14次谐波电流限值", width = 15)
|
||||
private Float iharm14;
|
||||
|
||||
/**
|
||||
* 15次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_15")
|
||||
@Excel(name = "15次谐波电流限值", width = 15)
|
||||
private Float iharm15;
|
||||
|
||||
/**
|
||||
* 16次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_16")
|
||||
@Excel(name = "16次谐波电流限值", width = 15)
|
||||
private Float iharm16;
|
||||
|
||||
/**
|
||||
* 17次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_17")
|
||||
@Excel(name = "17次谐波电流限值", width = 15)
|
||||
private Float iharm17;
|
||||
|
||||
/**
|
||||
* 18次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_18")
|
||||
@Excel(name = "18次谐波电流限值", width = 15)
|
||||
private Float iharm18;
|
||||
|
||||
/**
|
||||
* 19次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_19")
|
||||
@Excel(name = "19次谐波电流限值", width = 15)
|
||||
private Float iharm19;
|
||||
|
||||
/**
|
||||
* 20次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_20")
|
||||
@Excel(name = "20次谐波电流限值", width = 15)
|
||||
private Float iharm20;
|
||||
|
||||
/**
|
||||
* 21次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_21")
|
||||
@Excel(name = "21次谐波电流限值", width = 15)
|
||||
private Float iharm21;
|
||||
|
||||
/**
|
||||
* 22次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_22")
|
||||
@Excel(name = "22次谐波电流限值", width = 15)
|
||||
private Float iharm22;
|
||||
|
||||
/**
|
||||
* 23次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_23")
|
||||
@Excel(name = "23次谐波电流限值", width = 15)
|
||||
private Float iharm23;
|
||||
|
||||
/**
|
||||
* 24次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_24")
|
||||
@Excel(name = "24次谐波电流限值", width = 15)
|
||||
private Float iharm24;
|
||||
|
||||
/**
|
||||
* 25次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_25")
|
||||
@Excel(name = "25次谐波电流限值", width = 15)
|
||||
private Float iharm25;
|
||||
|
||||
/**
|
||||
* 0.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_1")
|
||||
@Excel(name = "0.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm1;
|
||||
|
||||
/**
|
||||
* 1.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_2")
|
||||
@Excel(name = "1.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm2;
|
||||
|
||||
/**
|
||||
* 2.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_3")
|
||||
@Excel(name = "2.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm3;
|
||||
|
||||
/**
|
||||
* 3.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_4")
|
||||
@Excel(name = "3.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm4;
|
||||
|
||||
/**
|
||||
* 4.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_5")
|
||||
@Excel(name = "4.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm5;
|
||||
|
||||
/**
|
||||
* 5.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_6")
|
||||
@Excel(name = "5.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm6;
|
||||
|
||||
/**
|
||||
* 6.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_7")
|
||||
@Excel(name = "6.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm7;
|
||||
|
||||
/**
|
||||
* 7.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_8")
|
||||
@Excel(name = "7.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm8;
|
||||
|
||||
/**
|
||||
* 8.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_9")
|
||||
@Excel(name = "8.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm9;
|
||||
|
||||
/**
|
||||
* 9.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_10")
|
||||
@Excel(name = "9.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm10;
|
||||
|
||||
/**
|
||||
* 10.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_11")
|
||||
@Excel(name = "10.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm11;
|
||||
|
||||
/**
|
||||
* 11.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_12")
|
||||
@Excel(name = "11.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm12;
|
||||
|
||||
/**
|
||||
* 12.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_13")
|
||||
@Excel(name = "12.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm13;
|
||||
|
||||
/**
|
||||
* 13.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_14")
|
||||
@Excel(name = "13.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm14;
|
||||
|
||||
/**
|
||||
* 14.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_15")
|
||||
@Excel(name = "14.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm15;
|
||||
|
||||
/**
|
||||
* 15.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_16")
|
||||
@Excel(name = "15.5次间谐波电压限值", width = 15)
|
||||
private Float inuharm16;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,203 @@
|
||||
package com.njcn.device.pq.pojo.bo.excel;
|
||||
|
||||
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.device.pq.pojo.constant.DeviceValidMessage;
|
||||
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;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 终端台账导入
|
||||
* @author cdf
|
||||
* @date 2022/5/17
|
||||
*/
|
||||
@Data
|
||||
public class TerminalBaseExcel implements Serializable {
|
||||
|
||||
|
||||
@Excel(name = "项目", width = 15)
|
||||
@NotBlank(message = DeviceValidMessage.PROJECT_NAME_NOT)
|
||||
@Pattern(regexp = PatternRegex.DEPT_NAME_REGEX, message = DeviceValidMessage.PROJECT_NAME_RULE)
|
||||
private String projectName;
|
||||
|
||||
@Excel(name = "工程", width = 15)
|
||||
@NotBlank(message = DeviceValidMessage.PROVINCE_NAME_NOT)
|
||||
private String provinceName;
|
||||
|
||||
@Excel(name = "单位", width = 15)
|
||||
@NotBlank(message = "供电公司名称")
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "供电公司名称违规")
|
||||
private String gdName;
|
||||
|
||||
@Excel(name = "部门", width = 15)
|
||||
@NotBlank(message = "变电站名称不可为空")
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "变电站名称违规")
|
||||
private String substationName;
|
||||
|
||||
@Excel(name = "部门电压等级", width = 15)
|
||||
@NotBlank(message = "电压等级不可为空")
|
||||
private String subStationScale;
|
||||
|
||||
@Excel(name = "经度", width = 15)
|
||||
private BigDecimal lng;
|
||||
|
||||
@Excel(name = "纬度", width = 15)
|
||||
private BigDecimal lat;
|
||||
|
||||
@Excel(name = "终端", width = 15)
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = "设备名称违规")
|
||||
private String deviceName;
|
||||
|
||||
@Excel(name = "终端模型", replace = {"虚拟设备_0", "实际设备_1", "离线设备_2"}, width = 15)
|
||||
@NotNull(message = "设备模型不能为空")
|
||||
private Integer devModel;
|
||||
|
||||
@Excel(name = "数据类型", replace = {"暂态系统_0", "稳态系统_1", "双系统_2"}, width = 15)
|
||||
@NotNull(message = "数据类型不能为空")
|
||||
private Integer devDataType;
|
||||
|
||||
@Excel(name = "运行状态", replace = {"投运_0", "热备用_1", "停运_2"}, width = 15)
|
||||
@NotNull(message = "运行状态不能为空")
|
||||
private Integer runFlag;
|
||||
|
||||
|
||||
@Excel(name = "终端厂家", width = 15)
|
||||
@NotBlank(message = "终端厂家不能为空")
|
||||
private String manufacturer;
|
||||
|
||||
@Excel(name = "设备型号", width = 15)
|
||||
@NotBlank(message = "设备型号不能为空")
|
||||
private String devType;
|
||||
|
||||
@Excel(name = "网络参数", width = 15)
|
||||
@NotBlank(message = "设备网络参数不能为空")
|
||||
private String ip;
|
||||
|
||||
@Excel(name = "端口", width = 15)
|
||||
@Range(min = 1, max = 100000, message = "端口号违规")
|
||||
@NotNull(message = "设备端口号不能为空")
|
||||
private Integer port;
|
||||
|
||||
@Excel(name = "终端识别码", width = 15)
|
||||
private String series;
|
||||
|
||||
@Excel(name = "终端秘钥", width = 15)
|
||||
private String devKey;
|
||||
|
||||
@Excel(name = "召唤标志",replace = {"周期触发_0", "变为触发_1"}, width = 15)
|
||||
@NotNull(message = "召唤标志不为空")
|
||||
private Integer callFlag;
|
||||
|
||||
@Excel(name = "前置名称", width = 15)
|
||||
@NotBlank(message = "前置名称不能为空")
|
||||
private String nodeName;
|
||||
|
||||
@Excel(name = "前置类型", width = 15)
|
||||
@NotBlank(message = "前置类型不能为空")
|
||||
private String frontType;
|
||||
|
||||
@Excel(name = "合同号", width = 15)
|
||||
private String contract;
|
||||
|
||||
@Excel(name = "SIM卡号", width = 15)
|
||||
private String sim;
|
||||
|
||||
@Excel(name = "母线", width = 15)
|
||||
@NotBlank(message = "母线名称不能为空")
|
||||
private String subvName;
|
||||
|
||||
@Excel(name = "母线号", width = 15)
|
||||
@NotNull(message = "母线号不为空")
|
||||
private Integer subvNum;
|
||||
|
||||
@Excel(name = "母线电压等级", width = 15)
|
||||
@NotBlank(message = "母线电压等级不能为空")
|
||||
private String subvScale;
|
||||
|
||||
@Excel(name = "母线模型", replace = {"虚拟母线_0", "实际母线_1"}, width = 15)
|
||||
@NotNull(message = "母线模型不为空")
|
||||
private Integer subvModel;
|
||||
|
||||
|
||||
@Excel(name = "监测点名称", width = 15)
|
||||
@NotBlank(message = "监测点名称不能为空")
|
||||
private String lineName;
|
||||
|
||||
@Excel(name = "监测点线路号", width = 15)
|
||||
@NotNull(message = "监测点线路号不为空")
|
||||
private Integer lineNum;
|
||||
|
||||
@Excel(name = "监测点等级", width = 15)
|
||||
private String lineGrade;
|
||||
|
||||
@Excel(name = "pt", width = 20)
|
||||
@NotBlank(message = "pt不能为空")
|
||||
private String pt;
|
||||
|
||||
@Excel(name = "ct", width = 20)
|
||||
@NotBlank(message = "ct不能为空")
|
||||
private String ct;
|
||||
|
||||
@Excel(name = "设备容量", width = 15)
|
||||
@NotNull(message = "设备容量不为空")
|
||||
private Float devCapacity;
|
||||
|
||||
@Excel(name = "短路容量", width = 15)
|
||||
@NotNull(message = "短路容量不为空")
|
||||
private Float shortCapacity;
|
||||
|
||||
@Excel(name = "基准容量", width = 15)
|
||||
@NotNull(message = "基准容量不为空")
|
||||
private Float standardCapacity;
|
||||
|
||||
@Excel(name = "协议容量", width = 15)
|
||||
@NotNull(message = "协议容量不为空")
|
||||
private Float dealCapacity;
|
||||
|
||||
@Excel(name = "接线方式", replace = {"星型接法_0", "三角型接法_1", "开口三角型接法_2"}, width = 15)
|
||||
@NotNull(message = "接线方式不为空")
|
||||
private Integer ptType;
|
||||
|
||||
@Excel(name = "测量间隔", width = 15)
|
||||
@NotNull(message = "测量间隔不为空")
|
||||
private Integer timeInterval;
|
||||
|
||||
@Excel(name = "干扰源类型", width = 15)
|
||||
@NotBlank(message = "干扰源类型不为空")
|
||||
private String loadType;
|
||||
|
||||
@Excel(name = "行业类型", width = 15)
|
||||
@NotBlank(message = "行业类型不为空")
|
||||
private String businessType;
|
||||
|
||||
@Excel(name = "国网监测点号", width = 15)
|
||||
private String monitorId;
|
||||
|
||||
@Excel(name = "监测点对象名称", width = 15)
|
||||
private String objName;
|
||||
|
||||
@Excel(name = "电网侧标志", replace = {"电网侧_0", "非电网侧_1"}, width = 15)
|
||||
@NotNull(message = "电网侧标志不为空")
|
||||
private Integer powerFlag;
|
||||
|
||||
@Excel(name = "人为干预统计", replace = {"不参与统计_0", "参与统计_1"}, width = 15)
|
||||
@NotNull(message = "统计标志不为空")
|
||||
private Integer statFlag;
|
||||
|
||||
@Excel(name = "备注", width = 15)
|
||||
private String remark;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class TerminalBaseExcelMsg extends TerminalBaseExcel implements Serializable {
|
||||
@Excel(name = "错误信息描述", width = 30)
|
||||
private String msg;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.njcn.device.pq.pojo.constant;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/1/11
|
||||
*/
|
||||
public interface DeviceValidMessage {
|
||||
|
||||
String ID_NOT_BLANK = "id不能为空,请检查id参数";
|
||||
|
||||
String PROJECT_NAME_NOT = "项目名称不能为空";
|
||||
String PROJECT_NAME_RULE = "项目名称违规";
|
||||
String PROVINCE_NAME_NOT = "省份不可为空";
|
||||
|
||||
|
||||
String TIME = "time";
|
||||
String START_TIME = " 00:00:00";
|
||||
String END_TIME = " 23:59:59";
|
||||
String LINE_ID = "line_id";
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.njcn.device.pq.pojo.dto;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/2/25
|
||||
*/
|
||||
@Data
|
||||
public class DeviceLineDTO {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 父级Id
|
||||
*/
|
||||
private String pid;
|
||||
|
||||
/**
|
||||
* 等级
|
||||
*/
|
||||
private Integer level;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 设备状态
|
||||
*/
|
||||
private Integer comFlag;
|
||||
|
||||
/**
|
||||
* 终端厂家
|
||||
*/
|
||||
private String manufacturer;
|
||||
|
||||
/**
|
||||
* 电压等级Id,字典表
|
||||
*/
|
||||
private String scale;
|
||||
|
||||
/**
|
||||
* 干扰源类型,字典表
|
||||
*/
|
||||
private String loadType;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.device.pq.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/08/17 16:02
|
||||
*/
|
||||
@Data
|
||||
public class DeviceOnlineDataDTO {
|
||||
|
||||
private String deviceId;
|
||||
private String lineGrade;
|
||||
private String levelName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.njcn.device.pq.pojo.dto;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2021年09月07日 10:48
|
||||
* name对应统计名称:如 区域:南京市、苏州市;电压等级:10kV、220kV...
|
||||
* index对应统计索引:如 区域:南京市索引、苏州市索引;电压等级:10kV索引、220kV索引...
|
||||
* gdIndexes:供电公司索引集合
|
||||
* subIndexes:变电站索引集合
|
||||
* deviceIndexes:终端索引集合
|
||||
* voltageIndexes:母线索引集合
|
||||
* lineIndexes:监测点索引集合
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class GeneralDeviceDTO implements Serializable {
|
||||
|
||||
/**
|
||||
* name对应统计名称:如 区域:南京市、苏州市;电压等级:10kV、220kV...
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* index对应统计索引:如 区域:南京市索引、苏州市索引;电压等级:10kV索引、220kV索引...
|
||||
*/
|
||||
private String index;
|
||||
|
||||
/**
|
||||
* gdIndexes:供电公司索引集合
|
||||
*/
|
||||
private List<String> gdIndexes = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* subIndexes:变电站索引集合
|
||||
*/
|
||||
private List<String> subIndexes = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* deviceIndexes:终端索引集合
|
||||
*/
|
||||
private List<String> deviceIndexes = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* voltageIndexes:母线索引集合
|
||||
*/
|
||||
private List<String> voltageIndexes = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* lineIndexes:监测点索引集合
|
||||
*/
|
||||
private List<String> lineIndexes = new ArrayList<>();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.device.pq.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/9/23
|
||||
*/
|
||||
@Data
|
||||
public class OnlineLineDTO {
|
||||
|
||||
private String lineId;
|
||||
|
||||
private String devId;
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.njcn.device.pq.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/5/9 15:31
|
||||
*/
|
||||
@Data
|
||||
public class OverLimitLineDTO {
|
||||
|
||||
private String id;
|
||||
|
||||
private String lineName;
|
||||
|
||||
private String lineScale;
|
||||
|
||||
private String loadType;
|
||||
|
||||
private String lineObjectName;
|
||||
|
||||
private String monitorNumber;
|
||||
|
||||
private String subName;
|
||||
|
||||
private String subScale;
|
||||
|
||||
private String cityCompany;
|
||||
|
||||
private String provinceCompany;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.njcn.device.pq.pojo.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/4/25 11:02
|
||||
*/
|
||||
@Data
|
||||
public class PollutionLineDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("id")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty("名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty("供电公司")
|
||||
private String powerCompany;
|
||||
|
||||
@ApiModelProperty("变电站")
|
||||
private String substation;
|
||||
|
||||
@ApiModelProperty("变电站id")
|
||||
private String substationId;
|
||||
|
||||
@ApiModelProperty("母线")
|
||||
private String busBar;
|
||||
|
||||
@ApiModelProperty("数据")
|
||||
private Double data = -1.0;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.device.pq.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 类的介绍:这个类是因为list长度太长,导致不同模块调用openFeign的时候会报错,目前解决办法是传递一个实体过来
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/4/25 13:23
|
||||
*/
|
||||
@Data
|
||||
public class PollutionParamDTO {
|
||||
|
||||
List<String> lineList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.njcn.device.pq.pojo.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/4/25 10:40
|
||||
*/
|
||||
@Data
|
||||
public class PollutionSubstationDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("id")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty("名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty("电压等级")
|
||||
private String voltageLevel;
|
||||
|
||||
@ApiModelProperty("数据")
|
||||
private Double data = -1.0;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.device.pq.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/5/9 9:31
|
||||
*/
|
||||
@Data
|
||||
public class WarningSubstationDTO {
|
||||
|
||||
private String id;
|
||||
|
||||
private String subName;
|
||||
|
||||
private String scale;
|
||||
|
||||
private String city;
|
||||
|
||||
private String province;
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
* 终端新增操作bo
|
||||
* @author cdf
|
||||
* @date 2021/7/2
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class AddTerminalParam {
|
||||
|
||||
@ApiModelProperty(name = "projectIndex",value = "项目索引")
|
||||
private String projectIndex;
|
||||
|
||||
@ApiModelProperty(name = "provinceIndex",value = "省份索引")
|
||||
private String provinceIndex;
|
||||
|
||||
@ApiModelProperty(name = "gdIndex",value = "供电索引")
|
||||
private String gdIndex;
|
||||
|
||||
@ApiModelProperty(name = "subIndex",value = "变电站索引")
|
||||
private String subIndex;
|
||||
|
||||
@Valid
|
||||
@ApiModelProperty(name = "projectParam",value = "项目实体")
|
||||
private ProjectParam projectParam;
|
||||
|
||||
@Valid
|
||||
@ApiModelProperty(name = "provinceParam",value = "省份实体")
|
||||
private ProvinceParam provinceParam;
|
||||
|
||||
@Valid
|
||||
@ApiModelProperty(name = "gdInformationParam",value = "供电公司")
|
||||
private GdInformationParam gdInformationParam;
|
||||
|
||||
@Valid
|
||||
@ApiModelProperty(name = "subStationParam",value = "变电站")
|
||||
private SubStationParam subStationParam;
|
||||
|
||||
@Valid
|
||||
@ApiModelProperty(name = "deviceParam",value = "设备集合")
|
||||
private List<DeviceParam> deviceParam;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
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 javax.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/6/10
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class AlarmParam extends BaseParam {
|
||||
|
||||
@NotBlank(message = "起始时间不可为空")
|
||||
@DateTimeStrValid
|
||||
@ApiModelProperty(name = "startTime",value = "起始时间")
|
||||
private String startTime;
|
||||
|
||||
@NotBlank(message = "结束时间不可为空")
|
||||
@DateTimeStrValid
|
||||
@ApiModelProperty(name = "endTime",value = "结束时间")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(name = "type",value = "告警类型")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(name = "flag",value = "是否处理 0.未处理 1.处理")
|
||||
private Integer flag;
|
||||
|
||||
@ApiModelProperty(name = "alarmLevel",value = "告警等级")
|
||||
private Integer alarmLevel;
|
||||
|
||||
@ApiModelProperty(name = "alarmLevel",value = "监测点等级")
|
||||
private String lineGrade;
|
||||
|
||||
@ApiModelProperty(name = "devLineId",value = "监测点装置id")
|
||||
private String devLineId;
|
||||
|
||||
@ApiModelProperty(name = "processTime",value = "处理时间")
|
||||
private String processTime;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.device.pq.pojo.constant.DeviceValidMessage;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/06/23 14:54
|
||||
*/
|
||||
@Data
|
||||
public class AlarmStrategyParam {
|
||||
|
||||
@ApiModelProperty(value = "告警策略Id 关联字典表id", required = true)
|
||||
@NotBlank(message = DeviceValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "数据完整性标准", required = true)
|
||||
private Integer integrityValue;
|
||||
|
||||
@ApiModelProperty(value = "在线率标准", required = true)
|
||||
private Integer onlineValue;
|
||||
|
||||
@ApiModelProperty(value = "离线持续时间", required = true)
|
||||
private Integer offTimeValue;
|
||||
|
||||
@ApiModelProperty(value = "告警次数", required = true)
|
||||
private Integer warnValue;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/08/11 21:05
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel
|
||||
public class AreaCensusParam extends DeviceInfoParam.BusinessParam {
|
||||
|
||||
/**
|
||||
* 监测点等级
|
||||
*/
|
||||
@ApiModelProperty("监测点等级:0-全部;1-极重要;2-重要;3-普通;4-不重要;")
|
||||
@NotNull(message = "监测点等级不可为空")
|
||||
@Max(value = 4)
|
||||
@Min(value = 0)
|
||||
private Integer lineLevel;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 区域点数据完整性接收前端类
|
||||
*
|
||||
* @author yzh
|
||||
* @date 2022/9/22
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class AreaIntegrityDataParam extends DeviceInfoParam.BusinessParam {
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.common.pojo.dto.SimpleDTO;
|
||||
import com.njcn.device.biz.enums.LineFlagEnum;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.hibernate.validator.constraints.Range;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2022年02月23日 19:04
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
@NoArgsConstructor
|
||||
public class DeviceInfoParam implements Serializable {
|
||||
|
||||
/**
|
||||
* 统计类型
|
||||
*/
|
||||
@ApiModelProperty(name = "statisticalType", value = "统计类型",required = true)
|
||||
@NotNull(message = "统计类型不可为空")
|
||||
private SimpleDTO statisticalType;
|
||||
|
||||
@ApiModelProperty(name = "deptIndex", value = "部门索引",required = true)
|
||||
@NotBlank(message = "部门索引不可为空")
|
||||
private String deptIndex;
|
||||
|
||||
@ApiModelProperty(name = "serverName", value = "服务名称")
|
||||
private String serverName;
|
||||
|
||||
|
||||
@ApiModelProperty(name = "scale", value = "电压等级")
|
||||
private List<SimpleDTO> scale;
|
||||
|
||||
|
||||
@ApiModelProperty(name = "manufacturer", value = "终端厂家")
|
||||
private List<SimpleDTO> manufacturer;
|
||||
|
||||
|
||||
@ApiModelProperty(name = "loadType", value = "干扰源类型")
|
||||
private List<SimpleDTO> loadType;
|
||||
|
||||
/**
|
||||
* xy添加
|
||||
* 默认true
|
||||
* true statFlag = 1
|
||||
* false statFlag = 0 or 1
|
||||
*/
|
||||
@ApiModelProperty(name = "statFlag", value = "人为干预是否参与统计")
|
||||
private Boolean statFlag;
|
||||
|
||||
/**
|
||||
* 0-非网公司
|
||||
* 1-网公司
|
||||
* 2-全部数据
|
||||
*/
|
||||
@ApiModelProperty("网公司标识")
|
||||
@Range(min = 0, max = 2, message = "网公司标识" + ValidMessage.PARAM_FORMAT_ERROR)
|
||||
private Integer monitorFlag;
|
||||
|
||||
/**
|
||||
* 0-电网侧
|
||||
* 1-非电网侧
|
||||
*/
|
||||
@ApiModelProperty("电网侧标识")
|
||||
@Range(min = 0, max = 2, message = "电网侧标识" + ValidMessage.PARAM_FORMAT_ERROR)
|
||||
private Integer powerFlag;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 默认全部监测点
|
||||
* @param deptIndex 部门索引
|
||||
* @param serverName 服务名
|
||||
*/
|
||||
public DeviceInfoParam(String deptIndex, String serverName) {
|
||||
this.deptIndex = deptIndex;
|
||||
this.serverName = serverName;
|
||||
monitorFlag = LineFlagEnum.LINE_MONITOR_ALL.getFlag();
|
||||
powerFlag = LineFlagEnum.LINE_POWER_ALL.getFlag();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 默认全部监测点
|
||||
* @param deptIndex 部门索引
|
||||
* @param serverName 服务名
|
||||
*/
|
||||
public DeviceInfoParam(SimpleDTO statisticalType, String deptIndex, String serverName, List<SimpleDTO> scale, List<SimpleDTO> manufacturer, List<SimpleDTO> loadType) {
|
||||
this.statisticalType = statisticalType;
|
||||
this.deptIndex = deptIndex;
|
||||
this.serverName = serverName;
|
||||
this.scale = scale;
|
||||
this.manufacturer = manufacturer;
|
||||
this.loadType = loadType;
|
||||
monitorFlag = LineFlagEnum.LINE_MONITOR_ALL.getFlag();
|
||||
powerFlag = LineFlagEnum.LINE_POWER_ALL.getFlag();
|
||||
}
|
||||
|
||||
/**
|
||||
* 自定义上报方式、电网侧方式的统计
|
||||
*/
|
||||
public DeviceInfoParam(SimpleDTO statisticalType, String deptIndex, String serverName, List<SimpleDTO> scale, List<SimpleDTO> manufacturer, List<SimpleDTO> loadType, int monitorFlag, int powerFlag) {
|
||||
this.statisticalType = statisticalType;
|
||||
this.deptIndex = deptIndex;
|
||||
this.serverName = serverName;
|
||||
this.scale = scale;
|
||||
this.manufacturer = manufacturer;
|
||||
this.loadType = loadType;
|
||||
this.monitorFlag = monitorFlag;
|
||||
this.powerFlag = powerFlag;
|
||||
}
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class BusinessParam extends DeviceInfoParam{
|
||||
|
||||
@ApiModelProperty("开始时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String searchBeginTime;
|
||||
|
||||
@ApiModelProperty("结束时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String searchEndTime;
|
||||
|
||||
@ApiModelProperty("时间范围标志 0.查询展示天 1.查询展示月")
|
||||
private Integer timeFlag;
|
||||
|
||||
}
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class CompareBusinessParam extends BusinessParam{
|
||||
|
||||
@ApiModelProperty("比较开始时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String periodBeginTime;
|
||||
|
||||
@ApiModelProperty("比较结束时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String periodEndTime;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Range;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/05/26 16:28
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class DeviceLogParam {
|
||||
|
||||
/**
|
||||
* 套餐类型
|
||||
*/
|
||||
@ApiModelProperty("套餐类型,为空表示查询所有")
|
||||
private String type;
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@ApiModelProperty("开始时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String searchBeginTime;
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@ApiModelProperty("结束时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String searchEndTime;
|
||||
/**
|
||||
* 页码
|
||||
*/
|
||||
@ApiModelProperty("页码")
|
||||
@NotNull(message = "页码不可为空")
|
||||
@Range(min = 1,message = "页码必须大于0")
|
||||
private Integer pageNum;
|
||||
/**
|
||||
* 条数
|
||||
*/
|
||||
@ApiModelProperty("条数")
|
||||
@NotNull(message = "条数不可为空")
|
||||
@Range(min = 1,message = "条数必须大于0")
|
||||
private Integer pageSize;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.web.pojo.annotation.DateTimeStrValid;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Range;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2021/6/23
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class DeviceParam {
|
||||
|
||||
@ApiModelProperty(name = "devIndex",value = "设备索引")
|
||||
private String devIndex;
|
||||
|
||||
@ApiModelProperty(name = "name",value = "设备名称",required = true)
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX,message = "设备名称违规")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(name = "devType",value = "设备型号",required = true)
|
||||
@NotBlank(message = "设备型号不能为空")
|
||||
private String devType;
|
||||
|
||||
/**
|
||||
* 通讯类型(MMS、CLD)字典表
|
||||
*/
|
||||
@ApiModelProperty(name = "frontType",value = "通讯类型",required = true)
|
||||
@NotBlank(message = "通讯类型不能为空")
|
||||
private String frontType;
|
||||
|
||||
@ApiModelProperty(name = "ip",value = "装置ip",required = true)
|
||||
@NotBlank(message = "设备ip不能为空")
|
||||
private String ip;
|
||||
|
||||
@ApiModelProperty(name = "port",value = "端口号",required = true)
|
||||
@Range(min=1,max=100000,message="端口号违规")
|
||||
@NotNull(message = "设备端口号不能为空")
|
||||
private Integer port;
|
||||
|
||||
@ApiModelProperty(name = "nodeId",value = "前置服务器索引",required = true)
|
||||
@NotNull(message = "前置机索引不能为空")
|
||||
private String nodeId;
|
||||
|
||||
@ApiModelProperty(name = "series",value = "装置识别码,采用3ds加密")
|
||||
private String series;
|
||||
|
||||
/**
|
||||
* 装置秘钥,采用3ds加密
|
||||
*/
|
||||
@ApiModelProperty(name = "devKey",value = "设备秘钥")
|
||||
private String devKey;
|
||||
|
||||
/**
|
||||
* 装置模型(0:虚拟设备;1:实际设备;2:离线设备;)默认是实际设备
|
||||
*/
|
||||
@ApiModelProperty(name = "devModel",value = "设备模型",required = true)
|
||||
@NotNull(message = "设备模型不能为空")
|
||||
private Integer devModel;
|
||||
|
||||
/**
|
||||
* 系统数据类型(0:暂态系统;1:稳态系统;2:两个系统)
|
||||
*/
|
||||
@ApiModelProperty(name = "devDataType",value = "系统数据类型(0:暂态系统;1:稳态系统;2:两个系统)",required = true)
|
||||
@NotNull(message = "数据类型不能为空")
|
||||
private Integer devDataType;
|
||||
/**
|
||||
* 已召唤标志(0:周期触发;1:变为触发)
|
||||
*/
|
||||
@ApiModelProperty(name = "callFlag",value = "已召唤标志(0:周期触发;1:变为触发)",required = true)
|
||||
@NotNull(message = "召唤标志不能为空")
|
||||
private Integer callFlag;
|
||||
|
||||
@ApiModelProperty(name = "manufacturer",value = "设备制造商Guid",required = true)
|
||||
@NotBlank(message = "设备制造商不能为空")
|
||||
private String manufacturer;
|
||||
|
||||
@ApiModelProperty(name = "electroplate",value = "电镀功能",required = true)
|
||||
@NotNull(message = "电镀标识不能为空")
|
||||
private Integer electroplate;
|
||||
|
||||
/**
|
||||
* 投运时间
|
||||
*/
|
||||
@ApiModelProperty(name = "loginTime",value = "投运时间",required = true)
|
||||
@NotBlank(message = "投运时间不为空")
|
||||
@DateTimeStrValid(message = "投运时间格式错误")
|
||||
private String loginTime;
|
||||
|
||||
@ApiModelProperty(name = "thisTimeCheck",value = "本次定检时间")
|
||||
@DateTimeStrValid(message = "本次定检时间格式错误")
|
||||
@NotBlank(message = "本次定检时间不为空")
|
||||
private String thisTimeCheck;
|
||||
|
||||
@ApiModelProperty(name = "nextTimeCheck",value = "下次定检时间")
|
||||
@DateTimeStrValid(message = "下次定检时间格式错误")
|
||||
@NotBlank(message = "下次定检时间不为空")
|
||||
private String nextTimeCheck;
|
||||
|
||||
@ApiModelProperty(name = "contract",value = "合同号")
|
||||
private String contract;
|
||||
|
||||
@ApiModelProperty(name = "sim",value = "装置sim卡号")
|
||||
private String sim;
|
||||
|
||||
@ApiModelProperty(name = "sort",value = "排序",required = true)
|
||||
@NotNull(message = "排序不可为空")
|
||||
private Integer sort;
|
||||
|
||||
|
||||
@ApiModelProperty(name = "subVoltageParam",value = "母线集合")
|
||||
@Valid
|
||||
private List<SubVoltageParam> subVoltageParam;
|
||||
|
||||
/**
|
||||
* 修改标识
|
||||
*/
|
||||
@ApiModelProperty(name = "updateFlag",value = "修改标识")
|
||||
private Integer updateFlag;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* 设备异常统计接收前端参数
|
||||
*
|
||||
* @author yzh
|
||||
* @date 2022/9/27
|
||||
*/
|
||||
|
||||
@Data
|
||||
@ApiModel
|
||||
@NoArgsConstructor
|
||||
public class DeviceRunExceptionParam {
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@ApiModelProperty(name = "searchBeginTime", value = "开始时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String searchBeginTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@ApiModelProperty(name = "searchEndTime", value = "结束时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String searchEndTime;
|
||||
|
||||
/**
|
||||
* 时间范围标志
|
||||
*/
|
||||
@ApiModelProperty(name = "timeFlag", value = "时间范围标志 0.查询展示年或季 1.查询展示月或周")
|
||||
private Integer timeFlag;
|
||||
|
||||
/**
|
||||
* 终端等级
|
||||
*/
|
||||
@ApiModelProperty(name = "algoDescribe", value = "终端等级,0:极重要 1:重要 2:普通 3:不重要")
|
||||
@NotNull(message = "终端等级不可为空")
|
||||
@Max(value = 4)
|
||||
@Min(value = 0)
|
||||
private Integer algoDescribe;
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Range;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/06/01 11:24
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class EventLogParam {
|
||||
|
||||
/**
|
||||
* 推送状态
|
||||
*/
|
||||
@ApiModelProperty("推送状态(0.全部1.成功2.失败)")
|
||||
private Integer result;
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@ApiModelProperty("开始时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String searchBeginTime;
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@ApiModelProperty("结束时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String searchEndTime;
|
||||
|
||||
@ApiModelProperty("页码")
|
||||
@NotNull(message = "页码不可为空")
|
||||
@Range(min = 1,message = "页码必须大于0")
|
||||
private Integer pageNum;
|
||||
|
||||
@ApiModelProperty("条数")
|
||||
@NotNull(message = "条数不可为空")
|
||||
@Range(min = 1,message = "条数必须大于0")
|
||||
private Integer pageSize;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
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.Pattern;
|
||||
|
||||
/**
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/05/12 15:17
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class FlowMealParam {
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty("套餐名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 套餐流量(MB)
|
||||
*/
|
||||
@ApiModelProperty("套餐流量")
|
||||
private Float flow;
|
||||
|
||||
/**
|
||||
* 套餐类型(0-基础套餐 1-扩展套餐)
|
||||
*/
|
||||
@ApiModelProperty("套餐类型")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 是否默认(0:不是默认 1:默认)只有一条默认
|
||||
*/
|
||||
@ApiModelProperty("是否默认")
|
||||
private Integer flag;
|
||||
|
||||
/**
|
||||
* 扩展套餐( 0-当月生效 1-连续生效)
|
||||
*/
|
||||
@ApiModelProperty("扩展套餐")
|
||||
private Integer comboType;
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class FlowMealUpdateParam extends FlowMealParam {
|
||||
/**
|
||||
* 表Id
|
||||
*/
|
||||
@ApiModelProperty("id")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String id;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
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.Pattern;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/05/18 10:00
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class FlowStrategyParam {
|
||||
|
||||
/**
|
||||
* 策略名称
|
||||
*/
|
||||
@ApiModelProperty("策略名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 是否通用(0:定制 1:通用) 只有一条通用数据
|
||||
*/
|
||||
@ApiModelProperty("是否通用(0:定制 1:通用)")
|
||||
private Integer flag;
|
||||
|
||||
/**
|
||||
* 普通占比值
|
||||
*/
|
||||
@ApiModelProperty("普通占比值")
|
||||
private String comPerData;
|
||||
|
||||
/**
|
||||
* 普通占比绑定类型
|
||||
*/
|
||||
@ApiModelProperty("普通占比绑定类型")
|
||||
private List<String> comList;
|
||||
|
||||
/**
|
||||
* 预警占比值
|
||||
*/
|
||||
@ApiModelProperty("预警占比值")
|
||||
private String warnPerData;
|
||||
|
||||
/**
|
||||
* 预警占比绑定类型
|
||||
*/
|
||||
@ApiModelProperty("预警占比绑定类型")
|
||||
private List<String> warnList;
|
||||
|
||||
/**
|
||||
* 告警占比值
|
||||
*/
|
||||
@ApiModelProperty("告警占比值")
|
||||
private String alertPerData;
|
||||
|
||||
/**
|
||||
* 告警占比绑定类型
|
||||
*/
|
||||
@ApiModelProperty("告警占比绑定类型")
|
||||
private List<String> alertList;
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class FlowStrategyUpdateParam extends FlowStrategyParam {
|
||||
|
||||
/**
|
||||
* 表Id
|
||||
*/
|
||||
@ApiModelProperty("id")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String id;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
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.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* 供电公司信息表
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2021-04-09
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class GdInformationParam {
|
||||
|
||||
|
||||
@ApiModelProperty(name = "name",value = "供电公司名称",required = true)
|
||||
@NotBlank(message = "供电公司名称")
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX,message = "供电公司名称违规")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(name = "sort",value = "排序",required = true)
|
||||
@NotNull(message = "排序不可为空")
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class GdInformationUpdateParam extends GdInformationParam {
|
||||
|
||||
/**
|
||||
* 表Id
|
||||
*/
|
||||
@ApiModelProperty("gdIndex")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String gdIndex;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/8/9
|
||||
*/
|
||||
@Data
|
||||
public class LineBaseQueryParam {
|
||||
|
||||
@NotEmpty(message = "监测点索引集合不可为空")
|
||||
@ApiModelProperty(name = "lineIds",value = "监测点索引集合")
|
||||
private List<String> lineIds;
|
||||
|
||||
|
||||
@ApiModelProperty(name = "comFlag",value = "通讯状态 0.离线 1.在线")
|
||||
private Integer comFlag;
|
||||
|
||||
@ApiModelProperty(name = "searchValue",value = "关键字搜索值")
|
||||
private String searchValue;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 监测点数据完整性接收前端类
|
||||
* @author yzh
|
||||
* @date 2022/9/15
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class LineIntegrityDataParam extends DeviceInfoParam.BusinessParam {
|
||||
|
||||
/**
|
||||
* 终端等级
|
||||
*/
|
||||
@ApiModelProperty(name = "lineGrade",value = "终端等级")
|
||||
private String lineGrade;
|
||||
|
||||
/**
|
||||
* 监测点合格率
|
||||
*/
|
||||
@ApiModelProperty(name = "LinePassRate",value = "监测点合格率 0:不合格 1:合格")
|
||||
private Double linePassRate;
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Range;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* 线路信息表
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2021-04-09
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class LineParam {
|
||||
|
||||
@ApiModelProperty(name = "lineIndex",value = "监测点索引")
|
||||
private String lineIndex;
|
||||
|
||||
@ApiModelProperty(name = "name",value = "监测点名称",required = true)
|
||||
@NotBlank(message = "监测点名称不可为空")
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX,message = "监测点名称违规")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* PT一次变比
|
||||
*/
|
||||
@ApiModelProperty(name = "pt1",value = "PT一次变比",required = true)
|
||||
@NotNull(message = "PT一次变比不可为空")
|
||||
private Float pt1;
|
||||
|
||||
/**
|
||||
* PT二次变比
|
||||
*/
|
||||
@ApiModelProperty(name = "pt2",value = "PT二次变比",required = true)
|
||||
@NotNull(message = "PT二次变比不可为空")
|
||||
private Float pt2;
|
||||
|
||||
/**
|
||||
* CT一次变比
|
||||
*/
|
||||
@ApiModelProperty(name = "ct1",value = "CT一次变比",required = true)
|
||||
@NotNull(message = "CT一次变比不可为空")
|
||||
private Float ct1;
|
||||
|
||||
/**
|
||||
* CT二次变比
|
||||
*/
|
||||
@ApiModelProperty(name = "ct2",value = "CT二次变比",required = true)
|
||||
@NotNull(message = "CT二次变比不可为空")
|
||||
private Float ct2;
|
||||
|
||||
/**
|
||||
* 设备容量
|
||||
*/
|
||||
@ApiModelProperty(name = "devCapacity",value = "设备容量",required = true)
|
||||
@NotNull(message = "设备容量不可为空")
|
||||
private Float devCapacity;
|
||||
|
||||
/**
|
||||
* 短路容量
|
||||
*/
|
||||
@ApiModelProperty(name = "shortCapacity",value = "短路容量",required = true)
|
||||
@NotNull(message = "短路容量不可为空")
|
||||
private Float shortCapacity;
|
||||
|
||||
/**
|
||||
* 协议容量
|
||||
*/
|
||||
@ApiModelProperty(name = "dealCapacity",value = "协议容量",required = true)
|
||||
@NotNull(message = "协议容量不可为空")
|
||||
private Float dealCapacity;
|
||||
|
||||
/**
|
||||
* 基准容量
|
||||
*/
|
||||
@ApiModelProperty(name = "standardCapacity",value = "基准容量新增时候可为空",required = true)
|
||||
@NotNull(message = "基准容量不可为空")
|
||||
private Float standardCapacity;
|
||||
|
||||
|
||||
@ApiModelProperty(name = "timeInterval",value = "测量间隔",required = true)
|
||||
@NotNull(message = "监测点测量间隔不可为空")
|
||||
@Range(min = 1,max = 30,message = "取值范围1到30分钟")
|
||||
private Integer timeInterval;
|
||||
|
||||
@ApiModelProperty(name = "loadType",value = "(关联PQS_Dicdata表)负荷类型Guid",required = true)
|
||||
@NotBlank(message = "负荷类型不为空")
|
||||
private String loadType;
|
||||
|
||||
@ApiModelProperty(name = "businessType",value = "(关联PQS_Dicdata表)行业类型Guid",required = true)
|
||||
@NotBlank(message = "行业类型不为空")
|
||||
private String businessType;
|
||||
|
||||
@ApiModelProperty(name = "remark",value = "备注")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty(name = "monitorId",value = "国网谐波监测平台监测点号")
|
||||
private String monitorId;
|
||||
|
||||
|
||||
@ApiModelProperty(name = "powerFlag",value = "监测点性质 0-电网侧,1-非电网侧",required = true)
|
||||
@NotNull(message = "监测点性质不为空")
|
||||
private Integer powerFlag;
|
||||
|
||||
@ApiModelProperty(name = "objName",value = "监测点对象名称")
|
||||
private String objName;
|
||||
|
||||
/**
|
||||
* 接线类型(0:星型接法;1:三角型接法;2:开口三角型接法)
|
||||
*/
|
||||
@ApiModelProperty(name = "ptType",value = "接线类型(0:星型接法;1:三角型接法;2:开口三角型接法)",required = true)
|
||||
@NotNull(message = "接线类型不可为空")
|
||||
private Integer ptType;
|
||||
|
||||
@ApiModelProperty(name = "num",value = "监测点序列",required = true)
|
||||
@NotNull(message = "监测点序号不可为空")
|
||||
private Integer num;
|
||||
|
||||
@ApiModelProperty(name = "sort",value = "排序",required = true)
|
||||
@NotNull(message = "排序不可为空")
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 电压上偏差限值
|
||||
*/
|
||||
@ApiModelProperty(name = "voltageDev",value = "电压上偏差限值",required = true)
|
||||
@NotNull(message = "电压上偏差限值不能为空")
|
||||
private Float voltageDev;
|
||||
|
||||
/**
|
||||
* 电压下偏差限值
|
||||
*/
|
||||
@ApiModelProperty(name = "uvoltageDev",value = "电压下偏差限值",required = true)
|
||||
@NotNull(message = "电压下偏差限值不能为空")
|
||||
private Float uvoltageDev;
|
||||
|
||||
/**
|
||||
* 修改标识
|
||||
*/
|
||||
@ApiModelProperty(name = "updateFlag",value = "修改标识")
|
||||
private Integer updateFlag;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* 前置机信息表
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2021-04-09
|
||||
*/
|
||||
@ApiModel
|
||||
@Data
|
||||
public class NodeInformationParam {
|
||||
|
||||
/**
|
||||
* 服务器名称
|
||||
*/
|
||||
@ApiModelProperty(name = "nodeName",value = "服务器名称",required = true)
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX,message = "服务器名称违规")
|
||||
private String nodeName;
|
||||
|
||||
/**
|
||||
* 服务器描述
|
||||
*/
|
||||
@Pattern(regexp = PatternRegex.DES64_REGEX)
|
||||
private String nodeDesc;
|
||||
|
||||
/**
|
||||
* 服务器IP(IP唯一判断)
|
||||
*/
|
||||
@Pattern(regexp =PatternRegex.IP_REGEX ,message = "服务器IP违规")
|
||||
private String nodeIp;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.njcn.device.pq.pojo.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.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/1/14
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class NodeParam {
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty(name = "name",value = "前置服务器名称")
|
||||
@NotBlank(message = "前置机名称不能为空")
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX, message = ValidMessage.NAME_FORMAT_ERROR)
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 服务器IP
|
||||
*/
|
||||
@ApiModelProperty(name = "ip",value = "服务器IP")
|
||||
@NotBlank(message = "前置机IP不能为空")
|
||||
@Pattern(regexp = PatternRegex.IP_REGEX, message = ValidMessage.IP_FORMAT_ERROR)
|
||||
private String ip;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@ApiModelProperty(name = "remark",value = "描述")
|
||||
private String remark;
|
||||
|
||||
|
||||
/**
|
||||
* 状态 前置等级
|
||||
*/
|
||||
@ApiModelProperty(name = "nodeGrade",value = "前置等级")
|
||||
@NotNull(message = "前置机等级不可为空")
|
||||
private Integer nodeGrade;
|
||||
|
||||
/**
|
||||
* 前置机支持最大装置数
|
||||
*/
|
||||
@ApiModelProperty(name = "nodeDevNum",value = "前置机支持最大装置数")
|
||||
@NotNull(message = "前置机支持最大装置数不可为空")
|
||||
private Integer nodeDevNum;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
@ApiModelProperty(name = "sort",value = "排序")
|
||||
@NotNull(message = "排序不可为空")
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class NodeUpdateParam extends NodeParam {
|
||||
|
||||
/**
|
||||
* 表Id
|
||||
*/
|
||||
@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 NodeQueryParam extends BaseParam {
|
||||
@ApiModelProperty("前置等级")
|
||||
private Integer nodeGrade;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.device.pq.pojo.constant.DeviceValidMessage;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
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.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* 项目信息表,层次高于省级。
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2021-04-09
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class ProjectParam {
|
||||
|
||||
/**
|
||||
* 项目名称(唯一性判断)
|
||||
*/
|
||||
@ApiModelProperty(name = "name",value = "项目名称",required = true)
|
||||
@NotBlank(message= DeviceValidMessage.PROJECT_NAME_NOT)
|
||||
@Pattern(regexp = PatternRegex.DEPT_NAME_REGEX,message = DeviceValidMessage.PROJECT_NAME_RULE)
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(name = "sort",value = "排序",required = true)
|
||||
@NotNull(message = "排序不可为空")
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class ProjectUpdateParam extends ProjectParam {
|
||||
|
||||
/**
|
||||
* 表Id
|
||||
*/
|
||||
@ApiModelProperty("projectIndex")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String projectIndex;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.device.pq.pojo.constant.DeviceValidMessage;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
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.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2021/6/24
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class ProvinceParam {
|
||||
|
||||
|
||||
@ApiModelProperty(name ="name",value = "省份",required = true)
|
||||
@NotBlank(message = DeviceValidMessage.PROVINCE_NAME_NOT)
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(name = "sort",value = "排序",required = true)
|
||||
@NotNull(message = "排序不可为空")
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class ProvinceUpdateParam extends ProvinceParam {
|
||||
|
||||
/**
|
||||
* 表Id
|
||||
*/
|
||||
@ApiModelProperty("provinceIndex")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String provinceIndex;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @date 2022/2/28
|
||||
*
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class PulicTimeParam {
|
||||
|
||||
@ApiModelProperty("监测点id")
|
||||
private String id;
|
||||
@ApiModelProperty("开始时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String searchBeginTime;
|
||||
|
||||
@ApiModelProperty("结束时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String searchEndTime;
|
||||
|
||||
@ApiModelProperty("时间标识:0--年/季度;1--月")
|
||||
private Integer timeFlag;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @date 2022/3/1
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
public class PulicTimeStatisParam extends PulicTimeParam {
|
||||
@ApiModelProperty("比较开始时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String periodBeginTime;
|
||||
|
||||
@ApiModelProperty("比较结束时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String periodEndTime;
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.dto.SimpleDTO;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
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 java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @version 1.0.0
|
||||
* @date 2022/3/30
|
||||
*/
|
||||
|
||||
/**
|
||||
* 分页查询实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel
|
||||
public class RunManageParam extends BaseParam implements Serializable {
|
||||
|
||||
@ApiModelProperty(name = "statisticalType", value = "统计类型")
|
||||
@NotNull(message = "统计类型不可为空")
|
||||
private SimpleDTO statisticalType;
|
||||
|
||||
@ApiModelProperty(name = "deptIndex", value = "部门索引")
|
||||
@NotBlank(message = "部门索引不可为空")
|
||||
private String deptIndex;
|
||||
|
||||
@ApiModelProperty(name = "serverName", value = "服务名称")
|
||||
@NotBlank(message = "服务名称不可为空")
|
||||
private String serverName;
|
||||
|
||||
@ApiModelProperty(name = "scale", value = "电压等级")
|
||||
private List<SimpleDTO> scale;
|
||||
|
||||
@ApiModelProperty(name = "loadType", value = "干扰源类型")
|
||||
private List<SimpleDTO> loadType;
|
||||
|
||||
@ApiModelProperty(name = "manufacturer", value = "终端厂家")
|
||||
private List<SimpleDTO> manufacturer;
|
||||
|
||||
/**
|
||||
* 0-非网公司
|
||||
* 1-网公司
|
||||
* 2-全部数据
|
||||
*/
|
||||
@ApiModelProperty("网公司标识")
|
||||
@Range(min = 0, max = 2, message = "网公司标识" + ValidMessage.PARAM_FORMAT_ERROR)
|
||||
private Integer monitorFlag;
|
||||
|
||||
/**
|
||||
* 0-电网侧
|
||||
* 1-非电网侧
|
||||
*/
|
||||
@ApiModelProperty("电网侧标识")
|
||||
@Range(min = 0, max = 2, message = "电网侧标识" + ValidMessage.PARAM_FORMAT_ERROR)
|
||||
private Integer powerFlag;
|
||||
|
||||
@ApiModelProperty(name = "comFlag", value = "通讯状态")
|
||||
private List<Integer> comFlag;
|
||||
|
||||
@ApiModelProperty(name = "runFlag", value = "终端状态")
|
||||
private List<Integer> runFlag;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
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.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
|
||||
/**
|
||||
* pqs
|
||||
* 变电站bo
|
||||
* @author cdf
|
||||
* @date 2021/7/1
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class SubStationParam {
|
||||
|
||||
|
||||
@ApiModelProperty(name ="name",value = "变电站名称",required = true)
|
||||
@NotBlank(message = "变电站名称不可为空")
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX,message = "变电站名称违规")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(name = "sort",value = "排序",required = true)
|
||||
@NotNull(message = "排序不可为空")
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* (关联PQS_Dictionary表)电压等级Guid
|
||||
*/
|
||||
@NotBlank(message = "电压等级不可为空")
|
||||
@ApiModelProperty(name ="scale",value = "电压等级",required = true)
|
||||
private String scale;
|
||||
|
||||
/**
|
||||
* 变电站经度longitude
|
||||
* @author cdf
|
||||
* @date 2021/7/16
|
||||
*/
|
||||
@ApiModelProperty(name ="longitude",value = "变电站经度")
|
||||
private BigDecimal lng;
|
||||
|
||||
/**
|
||||
* 变电站纬度
|
||||
* @author cdf
|
||||
* @date 2021/7/16
|
||||
*/
|
||||
@ApiModelProperty(name ="scale",value = "变电站纬度")
|
||||
private BigDecimal lat;
|
||||
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class SubStationUpdateParam extends SubStationParam {
|
||||
|
||||
/**
|
||||
* 表Id
|
||||
*/
|
||||
@ApiModelProperty("subIndex")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String subIndex;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Range;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 母线信息表
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2021-04-09
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class SubVoltageParam {
|
||||
|
||||
@ApiModelProperty(name = "subvIndex",value = "母线索引")
|
||||
private String subvIndex;
|
||||
|
||||
@ApiModelProperty(name = "name",value = "母线名称",required = true)
|
||||
@NotBlank(message = "母线名称不可为空")
|
||||
@Pattern(regexp = PatternRegex.DEV_NAME_REGEX,message = "设备名称违规")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 母线号(在同一台设备中的电压通道号)
|
||||
*/
|
||||
@NotNull(message = "母线号不可为空")
|
||||
@Range(min = 1,max = 6,message = "请选择母线号1-6")
|
||||
@ApiModelProperty(name = "num",value = "母线号",required = true)
|
||||
private Integer num;
|
||||
|
||||
@ApiModelProperty(name = "scale",value = "电压等级",required = true)
|
||||
@NotBlank(message = "母线电压等级")
|
||||
private String scale;
|
||||
|
||||
/**
|
||||
* 母线模型(0:虚拟母线;1:实际母线)
|
||||
* 默认是实际母线
|
||||
*/
|
||||
@ApiModelProperty(name = "model",value = "母线模型",required = true)
|
||||
@NotNull(message = "母线模型不可为空")
|
||||
private Integer model;
|
||||
|
||||
@ApiModelProperty(name = "sort",value = "排序",required = true)
|
||||
@NotNull(message = "排序不可为空")
|
||||
private Integer sort;
|
||||
|
||||
@ApiModelProperty(name = "lineParam",value = "监测点集合")
|
||||
@Valid
|
||||
private List<LineParam> lineParam;
|
||||
|
||||
|
||||
/**
|
||||
* 修改标识
|
||||
*/
|
||||
@ApiModelProperty(name = "updateFlag",value = "修改标识")
|
||||
private Integer updateFlag;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/08/16 14:30
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class TabCensusParam {
|
||||
|
||||
@ApiModelProperty("开始时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String searchBeginTime;
|
||||
|
||||
@ApiModelProperty("结束时间")
|
||||
@Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
|
||||
private String searchEndTime;
|
||||
|
||||
/**
|
||||
* (监测点、终端)等级
|
||||
*/
|
||||
@ApiModelProperty("(监测点、终端)等级:0-全部;1-极重要;2-重要;3-普通;4-不重要;")
|
||||
@NotNull(message = "(监测点、终端)等级不可为空")
|
||||
@Max(value = 4)
|
||||
@Min(value = 0)
|
||||
private Integer level;
|
||||
|
||||
/**
|
||||
* 是否合格
|
||||
*/
|
||||
@ApiModelProperty("是否合格:0-全部;1-不合格;2-合格;")
|
||||
@NotNull(message = "是否合格不可为空")
|
||||
@Max(value = 2)
|
||||
@Min(value = 0)
|
||||
private Integer qualify;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
* 终端台账统计
|
||||
* @author cdf
|
||||
* @date 2022/3/31
|
||||
*/
|
||||
@Data
|
||||
public class TerminalLedgerParam {
|
||||
|
||||
private List<String> areaIds;
|
||||
|
||||
private List<String> voltageIds;
|
||||
|
||||
private List<String> factoryIds;
|
||||
|
||||
private List<String> loadTypeIds;
|
||||
|
||||
private List<String> appearIds;
|
||||
|
||||
private List<String> natureIds;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/5/11
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class TerminalMainQueryParam extends BaseParam {
|
||||
@ApiModelProperty(name = "通讯状态 0:中断;1:正常")
|
||||
private Integer comFlag;
|
||||
@ApiModelProperty(name = "运行状态 0:投运;1:热备用;2:停运")
|
||||
private Integer runFlag;
|
||||
@ApiModelProperty(name = "装置型号")
|
||||
private String devType;
|
||||
@ApiModelProperty(name = "装置版本协议")
|
||||
private String version;
|
||||
@ApiModelProperty(name = "监测点等级")
|
||||
private String lineGrade;
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 终端在线率接收前端参数实体类
|
||||
* @author yzh
|
||||
* @date 2022/9/20
|
||||
*/
|
||||
|
||||
@Data
|
||||
@ApiModel
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class TerminalOnlineRateDataParam extends DeviceInfoParam.BusinessParam{
|
||||
|
||||
// 监测点合格率
|
||||
// @ApiModelProperty(name = "devicePassRate",value = "终端在线率合格率")
|
||||
// private Integer devicePassRate;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 字段表监测点等级
|
||||
*/
|
||||
@ApiModelProperty(name = "algoDescribe",value = "字段表监测点等级,0:极重要 1:重要 2:普通 3:不重要")
|
||||
private Integer algoDescribe;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/6/14
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
@Valid
|
||||
public class TerminalParam {
|
||||
|
||||
@ApiModelProperty(name = "ids",value = "id集合",required = true)
|
||||
@NotEmpty(message = "索引集合不可为空")
|
||||
private List<String> ids;
|
||||
@ApiModelProperty(name = "runFlag",value = "终端运行状态")
|
||||
private Integer runFlag;
|
||||
@ApiModelProperty(name = "baseMealId",value = "基础套餐")
|
||||
private String baseMealId;
|
||||
@ApiModelProperty(name = "extendMealId",value = "扩展套餐")
|
||||
private String extendMealId;
|
||||
@ApiModelProperty(name = "flowStrategyId",value = "流量策略")
|
||||
private String flowStrategyId;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
* 终端修改操作bo
|
||||
* @author cdf
|
||||
* @date 2021/7/2
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class UpdateTerminalParam {
|
||||
|
||||
@ApiModelProperty(name = "projectUpdateParam",value = "项目体")
|
||||
@Valid
|
||||
private ProjectParam.ProjectUpdateParam projectUpdateParam;
|
||||
|
||||
@ApiModelProperty(name = "provinceUpdateParam",value = "省份")
|
||||
@Valid
|
||||
private ProvinceParam.ProvinceUpdateParam provinceUpdateParam;
|
||||
|
||||
@ApiModelProperty(name = "gdInformationUpdateParam",value = "供电公司")
|
||||
@Valid
|
||||
private GdInformationParam.GdInformationUpdateParam gdInformationUpdateParam;
|
||||
|
||||
@ApiModelProperty(name = "subStationUpdateParam",value = "变电站")
|
||||
@Valid
|
||||
private SubStationParam.SubStationUpdateParam subStationUpdateParam;
|
||||
|
||||
@ApiModelProperty(name = "deviceUpdateParamList",value = "设备")
|
||||
@Valid
|
||||
private List<DeviceParam> deviceUpdateParamList;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
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.Pattern;
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/05/23 16:44
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class VersionParam {
|
||||
|
||||
/**
|
||||
* 程序版本号
|
||||
*/
|
||||
@ApiModelProperty("程序版本号")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 版本协议
|
||||
*/
|
||||
@ApiModelProperty("版本协议")
|
||||
private String protocol;
|
||||
|
||||
/**
|
||||
* 版本日期
|
||||
*/
|
||||
@ApiModelProperty("版本日期")
|
||||
private LocalDate date;
|
||||
|
||||
/**
|
||||
* 装置系列(终端型号),字典表
|
||||
*/
|
||||
@ApiModelProperty("装置系列(终端类型)")
|
||||
private String devType;
|
||||
|
||||
/**
|
||||
* 版本类型,Null为通用类型,not null为特殊类型
|
||||
*/
|
||||
@ApiModelProperty("版本类型,Null为通用类型,not null为特殊类型")
|
||||
private String versionType;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@ApiModelProperty("描述")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 版本文件信息
|
||||
*/
|
||||
@ApiModelProperty("版本文件信息")
|
||||
private byte[] file;
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class VersionUpdateParam extends VersionParam {
|
||||
/**
|
||||
* 表Id
|
||||
*/
|
||||
@ApiModelProperty("id")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String id;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("cld_alarm")
|
||||
public class Alarm extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 告警信息表序号
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 告警类型序号
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 告警对应的装置或者监测点
|
||||
*/
|
||||
private String lineId;
|
||||
|
||||
private Integer devLineType;
|
||||
|
||||
private LocalDateTime processTime;
|
||||
|
||||
/**
|
||||
* 是否处理(0-未处理 1-已处理)
|
||||
*/
|
||||
private Integer flag;
|
||||
|
||||
/**
|
||||
* 告警的详细描述
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/06/23 16:43
|
||||
*/
|
||||
@Data
|
||||
@TableName("pqs_alarm_strategy")
|
||||
public class AlarmStrategy {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String id;
|
||||
|
||||
private Integer integrityValue;
|
||||
|
||||
private Integer onlineValue;
|
||||
|
||||
private Integer offtimeValue;
|
||||
|
||||
private Integer warnValue;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
private Integer state;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import lombok.Data;
|
||||
import org.influxdb.annotation.Column;
|
||||
import org.influxdb.annotation.Measurement;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Data
|
||||
@Measurement(name = "pqs_communicate")
|
||||
public class Communicate {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 终端Id
|
||||
*/
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Column(name = "time")
|
||||
private Instant updateTime;
|
||||
|
||||
@Column(name = "line_id")
|
||||
private String id;
|
||||
|
||||
|
||||
/**
|
||||
* 事件类型(0:中断;1:正常;2:退出)
|
||||
*/
|
||||
@Column(name = "type")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@Column(name = "description")
|
||||
private String remark;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-04
|
||||
*/
|
||||
@Data
|
||||
@TableName("pq_dept_line")
|
||||
public class DeptLine {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 部门Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 监测点Id
|
||||
*/
|
||||
private String lineId;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Data
|
||||
@TableName("cld_dev_fuction")
|
||||
public class DevFuction {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 装置功能Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 装置序号
|
||||
*/
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 功能码,字典表
|
||||
*/
|
||||
private String fucName;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Data
|
||||
@TableName("cld_dev_meal")
|
||||
public class DevMeal {
|
||||
|
||||
/**
|
||||
* 装置序号
|
||||
*/
|
||||
@TableId
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 基础流量套餐序号
|
||||
*/
|
||||
private String baseMealId;
|
||||
|
||||
/**
|
||||
* 扩展流量套餐序号
|
||||
*/
|
||||
private String reamMealId;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("cld_dev_state")
|
||||
public class DevState extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 终端状态运行Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 装置序号
|
||||
*/
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 装置状态类型1:剩余内存(单位MB)2:剩余存储空间(单位GB)3:CPU版本 4:CPU1的负荷(单位%)5:CPU2的负荷(单位%) 装置状态类型1:剩余内存(单位MB)2:剩余存储空间(单位GB)3:CPU版本 4:CPU1的负荷(单位%)5:CPU2的负荷(单位%) 装置状态类型1:剩余内存(单位MB)2:剩余存储空间(单位GB)3:CPU版本 4:CPU1的负荷(单位%)5:CPU2的负荷(单位%) 装置状态类型1:剩余内存(单位MB)2:剩余存储空间(单位GB)3:CPU版本 4:CPU1的负荷(单位%)5:CPU2的负荷(单位%) 装置状态类型1:剩余内存(单位MB)2:剩余存储空间(单位GB)3:CPU版本4:CPU1的负荷(单位%)5:CPU2的负荷(单位%)
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 时间
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 值
|
||||
*/
|
||||
private Float value;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Data
|
||||
@TableName("cld_dev_strategy")
|
||||
public class DevStrategy {
|
||||
/**
|
||||
* 装置序号
|
||||
*/
|
||||
@TableId
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 流量策略Id
|
||||
*/
|
||||
private String strategyId;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("cld_dev_version")
|
||||
public class DevVersion extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 装置序号
|
||||
*/
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 版本序号
|
||||
*/
|
||||
private String versionId;
|
||||
|
||||
/**
|
||||
* 版本状态(0-前期版本;1-当前版本)
|
||||
*/
|
||||
private Boolean flag;
|
||||
|
||||
/**
|
||||
* 操作结果(0-升级失败;1-升级成功)
|
||||
*/
|
||||
private Boolean result;
|
||||
|
||||
/**
|
||||
* 状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Boolean state;
|
||||
|
||||
/**
|
||||
* 创建用户
|
||||
*/
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 更新用户
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-04
|
||||
*/
|
||||
@Data
|
||||
@TableName("pq_device")
|
||||
public class Device implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 装置序号
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 装置模型(0:虚拟设备;1:实际设备;2:离线设备;)默认是实际设备
|
||||
*/
|
||||
private Integer devModel;
|
||||
|
||||
/**
|
||||
* 数据类型(0:暂态系统;1:稳态系统;2:两个系统)
|
||||
*/
|
||||
private Integer devDataType;
|
||||
|
||||
/**
|
||||
* 终端运行状态(0:投运;1:热备用;2:停运)
|
||||
*/
|
||||
private Integer runFlag;
|
||||
|
||||
/**
|
||||
* 通讯状态(0:中断;1:正常)
|
||||
*/
|
||||
private Integer comFlag;
|
||||
|
||||
/**
|
||||
* 设备制造商,字典表
|
||||
*/
|
||||
private String manufacturer;
|
||||
|
||||
/**
|
||||
* 定检状态(0:未检 1:已检)
|
||||
*/
|
||||
private Integer checkFlag;
|
||||
|
||||
/**
|
||||
* 前置类型(MMS、CLD)字典表
|
||||
*/
|
||||
private String frontType;
|
||||
|
||||
/**
|
||||
* 终端型号(570、580……)字典表
|
||||
*/
|
||||
private String devType;
|
||||
|
||||
/**
|
||||
* 网络参数
|
||||
*/
|
||||
private String ip;
|
||||
|
||||
/**
|
||||
* 召唤标志(0:周期触发;1:变为触发)
|
||||
*/
|
||||
private Integer callFlag;
|
||||
|
||||
/**
|
||||
* 端口
|
||||
*/
|
||||
private Integer port;
|
||||
|
||||
/**
|
||||
* 装置识别码(3ds加密)
|
||||
*/
|
||||
private String series;
|
||||
|
||||
/**
|
||||
* 装置秘钥(3ds加密)
|
||||
*/
|
||||
private String devKey;
|
||||
|
||||
/**
|
||||
* 前置序号Id,前置表
|
||||
*/
|
||||
private String nodeId;
|
||||
|
||||
/**
|
||||
* 投运时间
|
||||
*/
|
||||
private LocalDate loginTime;
|
||||
|
||||
/**
|
||||
* 数据更新时间
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 本次定检时间,默认等于投运时间
|
||||
*/
|
||||
private LocalDate thisTimeCheck;
|
||||
|
||||
/**
|
||||
* 下次定检时间,默认为投运时间后推3年,假如时间小于3个月则为待检
|
||||
*/
|
||||
private LocalDate nextTimeCheck;
|
||||
|
||||
/**
|
||||
* 电度功能 0 关闭 1开启
|
||||
*/
|
||||
private Integer electroplate;
|
||||
|
||||
/**
|
||||
* 对时功能 0 关闭, 1开启
|
||||
*/
|
||||
private Integer onTime;
|
||||
|
||||
/**
|
||||
* 合同号
|
||||
*/
|
||||
private String contract;
|
||||
|
||||
/**
|
||||
* 设备sim卡号
|
||||
*/
|
||||
private String sim;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*/
|
||||
@Data
|
||||
@TableName("pq_device_bak")
|
||||
public class DeviceBak {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 终端Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
|
||||
/**
|
||||
* 原始终端Id
|
||||
*/
|
||||
private Integer devId;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import lombok.Data;
|
||||
import org.influxdb.annotation.Column;
|
||||
import org.influxdb.annotation.Measurement;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 接收查询influxdb数据(终端异常统计业务)
|
||||
*
|
||||
* @author yzh
|
||||
* @date 2022/9/27
|
||||
*/
|
||||
@Data
|
||||
@Measurement(name = "pqs_top_msg")
|
||||
public class DeviceRunException implements Serializable {
|
||||
|
||||
/**
|
||||
* 时间
|
||||
*/
|
||||
@Column(name = "time")
|
||||
private String time;
|
||||
|
||||
/**
|
||||
* 告警描述
|
||||
*/
|
||||
@Column(name = "alarm_desc")
|
||||
private String alarmDesc;
|
||||
|
||||
/**
|
||||
* 告警统计
|
||||
*/
|
||||
@Column(name = "alarm_num")
|
||||
private Long alarmNum;
|
||||
|
||||
/**
|
||||
* 中断描述
|
||||
*/
|
||||
@Column(name = "com_out_desc")
|
||||
private String comOutDesc;
|
||||
|
||||
/**
|
||||
* 中断统计
|
||||
*/
|
||||
@Column(name = "com_out_num")
|
||||
private Long comOutNum;
|
||||
|
||||
/**
|
||||
* 终端id
|
||||
*/
|
||||
@Column(name = "dev_id")
|
||||
private String devId;
|
||||
|
||||
/**
|
||||
* 终端流量使用量
|
||||
*/
|
||||
@Column(name = "flow_num")
|
||||
private Long flowNum;
|
||||
|
||||
/**
|
||||
* 流量是否超标
|
||||
*/
|
||||
@Column(name = "flow_stand")
|
||||
private Long flowStand;
|
||||
|
||||
/**
|
||||
* 数据数据完整性标识
|
||||
*/
|
||||
@Column(name = "over_limit")
|
||||
private Long overLimit;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@Column(name = "state")
|
||||
private Integer state;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import lombok.Data;
|
||||
import org.influxdb.annotation.Column;
|
||||
import org.influxdb.annotation.Measurement;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
/**
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/06/09 11:00
|
||||
*/
|
||||
@Data
|
||||
@Measurement(name = "pqs_event_push_logs")
|
||||
public class EventPushLogs {
|
||||
|
||||
@Column(name = "time")
|
||||
private Instant timeId;
|
||||
|
||||
@Column(name = "line_id")
|
||||
private String lineId;
|
||||
|
||||
@Column(name = "create_time")
|
||||
private String createTime;
|
||||
|
||||
@Column(name = "update_time")
|
||||
private String updateTime;
|
||||
|
||||
@Column(name = "push_failed")
|
||||
private Integer pushFailed;
|
||||
|
||||
@Column(name = "result")
|
||||
private Integer result;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("cld_flow_meal")
|
||||
public class FlowMeal extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 流量套餐序号Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 套餐名
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 套餐类型(0-基础套餐 1-扩展套餐)
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 是否默认(0:不是默认 1:默认) 只有一条默认 是否默认(0:不是默认 1:默认)只有一条默认
|
||||
*/
|
||||
private Integer flag;
|
||||
|
||||
/**
|
||||
* 扩展套餐( 0-当月生效 1-连续生效)
|
||||
*/
|
||||
private Integer comboType;
|
||||
|
||||
/**
|
||||
* 套餐流量(MB)
|
||||
*/
|
||||
private Float flow;
|
||||
|
||||
/**
|
||||
* 状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("cld_flow_strategy")
|
||||
public class FlowStrategy extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 流量策略字典序号Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 流量策略名
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 是否通用(0:定制 1:通用) 只有一条通用数据
|
||||
*/
|
||||
private Integer flag;
|
||||
|
||||
/**
|
||||
* 普通, 流量策略字典表
|
||||
*/
|
||||
private String comPer;
|
||||
|
||||
/**
|
||||
* 预警,流量策略字典表
|
||||
*/
|
||||
private String warnPer;
|
||||
|
||||
/**
|
||||
* 告警, 流量策略字典表
|
||||
*/
|
||||
private String alertPer;
|
||||
|
||||
/**
|
||||
* 状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Data
|
||||
@TableName("cld_flow_strategy_dic")
|
||||
public class FlowStrategyDic {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 流量策略字典序号Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 流量策略类型(0-普通 1-预警 2-告警)
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 占比
|
||||
*/
|
||||
private Float value;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-04
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("pq_line")
|
||||
public class Line extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 监测点Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 父节点(0为根节点)
|
||||
*/
|
||||
private String pid;
|
||||
|
||||
/**
|
||||
* 上层所有节点
|
||||
*/
|
||||
private String pids;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 等级:0-项目名称;1- 工程名称;2-单位;3-部门;4-终端;5-母线;6-监测点
|
||||
*/
|
||||
private Integer level;
|
||||
|
||||
/**
|
||||
* 排序(默认为0,有特殊排序需要时候人为输入)
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-04
|
||||
*/
|
||||
@Data
|
||||
@TableName("pq_line_bak")
|
||||
public class LineBak {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 监测点Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
|
||||
/**
|
||||
* 原始监测点Id
|
||||
*/
|
||||
private Integer lineId;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import lombok.Data;
|
||||
import org.influxdb.annotation.Column;
|
||||
import org.influxdb.annotation.Measurement;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 接收查询influxdb数据(数据完整性业务)
|
||||
* @author yzh
|
||||
* @date 2022/9/15
|
||||
*/
|
||||
|
||||
@Data
|
||||
@Measurement(name = "pqs_integrity")
|
||||
public class LineDataIntegrity implements Serializable {
|
||||
|
||||
/**
|
||||
* 监测点id
|
||||
*/
|
||||
@Column(name = "line_id")
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 实际值
|
||||
*/
|
||||
@Column(name = "real")
|
||||
private Double real;
|
||||
|
||||
/**
|
||||
* 期望值
|
||||
*/
|
||||
@Column(name = "due")
|
||||
private Double due;
|
||||
|
||||
/**
|
||||
* 时间
|
||||
*/
|
||||
@Column(name = "time")
|
||||
private String time;
|
||||
|
||||
/**
|
||||
* 监测点数据完整性
|
||||
*/
|
||||
private Double integrityData;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-04
|
||||
*/
|
||||
@Data
|
||||
@TableName("pq_line_detail")
|
||||
public class LineDetail{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 监测点序号
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 线路号(在同一台设备中的监测点号)
|
||||
*/
|
||||
private Integer num;
|
||||
|
||||
/**
|
||||
* PT一次变比
|
||||
*/
|
||||
private Float pt1;
|
||||
|
||||
/**
|
||||
* PT二次变比
|
||||
*/
|
||||
private Float pt2;
|
||||
|
||||
/**
|
||||
* CT一次变比
|
||||
*/
|
||||
private Float ct1;
|
||||
|
||||
/**
|
||||
* CT二次变比
|
||||
*/
|
||||
private Float ct2;
|
||||
|
||||
/**
|
||||
* 设备容量
|
||||
*/
|
||||
private Float devCapacity;
|
||||
|
||||
/**
|
||||
* 短路容量
|
||||
*/
|
||||
private Float shortCapacity;
|
||||
|
||||
/**
|
||||
* 基准容量
|
||||
*/
|
||||
private Float standardCapacity;
|
||||
|
||||
/**
|
||||
* 协议容量
|
||||
*/
|
||||
private Float dealCapacity;
|
||||
|
||||
/**
|
||||
* 接线类型(0:星型接法;1:三角型接法;2:开口三角型接法)
|
||||
*/
|
||||
private Integer ptType;
|
||||
|
||||
/**
|
||||
* 测量间隔(1-10分钟)
|
||||
*/
|
||||
private Integer timeInterval;
|
||||
|
||||
/**
|
||||
* 干扰源类型,字典表
|
||||
*/
|
||||
private String loadType;
|
||||
|
||||
/**
|
||||
* 行业类型,字典表
|
||||
*/
|
||||
private String businessType;
|
||||
|
||||
/**
|
||||
* 网公司谐波监测平台标志(0-否;1-是),默认否
|
||||
*/
|
||||
private Integer monitorFlag;
|
||||
|
||||
/**
|
||||
* 电网标志(0-电网侧;1-非电网侧)
|
||||
*/
|
||||
private Integer powerFlag;
|
||||
|
||||
/**
|
||||
* 国网谐波监测平台监测点号
|
||||
*/
|
||||
private String monitorId;
|
||||
|
||||
/**
|
||||
* 监测点对象名称
|
||||
*/
|
||||
private String objName;
|
||||
|
||||
/**
|
||||
* 人为干预 0 不参与统计 1 参与统计
|
||||
*/
|
||||
private Integer statFlag;
|
||||
|
||||
/**
|
||||
* 关联字典的终端等级
|
||||
*/
|
||||
private String lineGrade;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("cld_month_flow")
|
||||
public class MonthFlow extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 装置序号
|
||||
*/
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 统计时间
|
||||
*/
|
||||
private LocalDateTime timeId;
|
||||
|
||||
/**
|
||||
* 统计流量,由前置提供
|
||||
*/
|
||||
private Float statisValue;
|
||||
|
||||
/**
|
||||
* 实际流量,定时查询
|
||||
*/
|
||||
private Float actualValue;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-04
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("pq_node")
|
||||
public class Node extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 前置序号
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 服务器IP
|
||||
*/
|
||||
private String ip;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
/**
|
||||
* 状态 前置等级
|
||||
*/
|
||||
private Integer nodeGrade;
|
||||
|
||||
/**
|
||||
* 前置机支持最大装置数
|
||||
*/
|
||||
private Integer nodeDevNum;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,526 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.device.pq.utils.COverlimit;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-04
|
||||
*/
|
||||
@Data
|
||||
@TableName("pq_overlimit")
|
||||
public class Overlimit {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 监测点序号
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 频率限值
|
||||
*/
|
||||
private Float freqDev;
|
||||
|
||||
/**
|
||||
* 电压上偏差限值
|
||||
*/
|
||||
private Float voltageDev;
|
||||
|
||||
/**
|
||||
* 电压下偏差限值
|
||||
*/
|
||||
private Float uvoltageDev;
|
||||
|
||||
/**
|
||||
* 三相电压不平衡度限值
|
||||
*/
|
||||
private Float ubalance;
|
||||
|
||||
/**
|
||||
* 闪变限值
|
||||
*/
|
||||
private Float flicker;
|
||||
|
||||
/**
|
||||
* 电压总谐波畸变率限值
|
||||
*/
|
||||
private Float uaberrance;
|
||||
|
||||
/**
|
||||
* 负序电流限值
|
||||
*/
|
||||
private Float iNeg;
|
||||
|
||||
/**
|
||||
* 2次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_2")
|
||||
private Float uharm2;
|
||||
|
||||
/**
|
||||
* 3次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_3")
|
||||
private Float uharm3;
|
||||
|
||||
/**
|
||||
* 4次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_4")
|
||||
private Float uharm4;
|
||||
|
||||
/**
|
||||
* 5次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_5")
|
||||
private Float uharm5;
|
||||
|
||||
/**
|
||||
* 6次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_6")
|
||||
private Float uharm6;
|
||||
|
||||
/**
|
||||
* 7次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_7")
|
||||
private Float uharm7;
|
||||
|
||||
/**
|
||||
* 8次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_8")
|
||||
private Float uharm8;
|
||||
|
||||
/**
|
||||
* 9次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_9")
|
||||
private Float uharm9;
|
||||
|
||||
/**
|
||||
* 10次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_10")
|
||||
private Float uharm10;
|
||||
|
||||
/**
|
||||
* 11次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_11")
|
||||
private Float uharm11;
|
||||
|
||||
/**
|
||||
* 12次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_12")
|
||||
private Float uharm12;
|
||||
|
||||
/**
|
||||
* 13次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_13")
|
||||
private Float uharm13;
|
||||
|
||||
/**
|
||||
* 14次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_14")
|
||||
private Float uharm14;
|
||||
|
||||
/**
|
||||
* 15次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_15")
|
||||
private Float uharm15;
|
||||
|
||||
/**
|
||||
* 16次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_16")
|
||||
private Float uharm16;
|
||||
|
||||
/**
|
||||
* 17次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_17")
|
||||
private Float uharm17;
|
||||
|
||||
/**
|
||||
* 18次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_18")
|
||||
private Float uharm18;
|
||||
|
||||
/**
|
||||
* 19次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_19")
|
||||
private Float uharm19;
|
||||
|
||||
/**
|
||||
* 20次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_20")
|
||||
private Float uharm20;
|
||||
|
||||
/**
|
||||
* 21次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_21")
|
||||
private Float uharm21;
|
||||
|
||||
/**
|
||||
* 22次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_22")
|
||||
private Float uharm22;
|
||||
|
||||
/**
|
||||
* 23次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_23")
|
||||
private Float uharm23;
|
||||
|
||||
/**
|
||||
* 24次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_24")
|
||||
private Float uharm24;
|
||||
|
||||
/**
|
||||
* 25次谐波电压限值
|
||||
*/
|
||||
@TableField("uharm_25")
|
||||
private Float uharm25;
|
||||
|
||||
/**
|
||||
* 2次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_2")
|
||||
private Float iharm2;
|
||||
|
||||
/**
|
||||
* 3次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_3")
|
||||
private Float iharm3;
|
||||
|
||||
/**
|
||||
* 4次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_4")
|
||||
private Float iharm4;
|
||||
|
||||
/**
|
||||
* 5次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_5")
|
||||
private Float iharm5;
|
||||
|
||||
/**
|
||||
* 6次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_6")
|
||||
private Float iharm6;
|
||||
|
||||
/**
|
||||
* 7次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_7")
|
||||
private Float iharm7;
|
||||
|
||||
/**
|
||||
* 8次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_8")
|
||||
private Float iharm8;
|
||||
|
||||
/**
|
||||
* 9次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_9")
|
||||
private Float iharm9;
|
||||
|
||||
/**
|
||||
* 10次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_10")
|
||||
private Float iharm10;
|
||||
|
||||
/**
|
||||
* 11次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_11")
|
||||
private Float iharm11;
|
||||
|
||||
/**
|
||||
* 12次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_12")
|
||||
private Float iharm12;
|
||||
|
||||
/**
|
||||
* 13次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_13")
|
||||
private Float iharm13;
|
||||
|
||||
/**
|
||||
* 14次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_14")
|
||||
private Float iharm14;
|
||||
|
||||
/**
|
||||
* 15次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_15")
|
||||
private Float iharm15;
|
||||
|
||||
/**
|
||||
* 16次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_16")
|
||||
private Float iharm16;
|
||||
|
||||
/**
|
||||
* 17次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_17")
|
||||
private Float iharm17;
|
||||
|
||||
/**
|
||||
* 18次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_18")
|
||||
private Float iharm18;
|
||||
|
||||
/**
|
||||
* 19次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_19")
|
||||
private Float iharm19;
|
||||
|
||||
/**
|
||||
* 20次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_20")
|
||||
private Float iharm20;
|
||||
|
||||
/**
|
||||
* 21次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_21")
|
||||
private Float iharm21;
|
||||
|
||||
/**
|
||||
* 22次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_22")
|
||||
private Float iharm22;
|
||||
|
||||
/**
|
||||
* 23次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_23")
|
||||
private Float iharm23;
|
||||
|
||||
/**
|
||||
* 24次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_24")
|
||||
private Float iharm24;
|
||||
|
||||
/**
|
||||
* 25次谐波电流限值
|
||||
*/
|
||||
@TableField("iharm_25")
|
||||
private Float iharm25;
|
||||
|
||||
/**
|
||||
* 0.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_1")
|
||||
private Float inuharm1;
|
||||
|
||||
/**
|
||||
* 1.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_2")
|
||||
private Float inuharm2;
|
||||
|
||||
/**
|
||||
* 2.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_3")
|
||||
private Float inuharm3;
|
||||
|
||||
/**
|
||||
* 3.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_4")
|
||||
private Float inuharm4;
|
||||
|
||||
/**
|
||||
* 4.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_5")
|
||||
private Float inuharm5;
|
||||
|
||||
/**
|
||||
* 5.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_6")
|
||||
private Float inuharm6;
|
||||
|
||||
/**
|
||||
* 6.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_7")
|
||||
private Float inuharm7;
|
||||
|
||||
/**
|
||||
* 7.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_8")
|
||||
private Float inuharm8;
|
||||
|
||||
/**
|
||||
* 8.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_9")
|
||||
private Float inuharm9;
|
||||
|
||||
/**
|
||||
* 9.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_10")
|
||||
private Float inuharm10;
|
||||
|
||||
/**
|
||||
* 10.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_11")
|
||||
private Float inuharm11;
|
||||
|
||||
/**
|
||||
* 11.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_12")
|
||||
private Float inuharm12;
|
||||
|
||||
/**
|
||||
* 12.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_13")
|
||||
private Float inuharm13;
|
||||
|
||||
/**
|
||||
* 13.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_14")
|
||||
private Float inuharm14;
|
||||
|
||||
/**
|
||||
* 14.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_15")
|
||||
private Float inuharm15;
|
||||
|
||||
/**
|
||||
* 15.5次间谐波电压限值
|
||||
*/
|
||||
@TableField("inuharm_16")
|
||||
private Float inuharm16;
|
||||
|
||||
public Overlimit(){}
|
||||
|
||||
|
||||
public Overlimit(String lineId, String scaTmp, float fDLRL, float fJZRL, float fXYRL, float fSBRL){
|
||||
float[] fLimit = COverlimit.GetOverLimit(scaTmp, fDLRL, fJZRL, fXYRL, fSBRL);
|
||||
this.id=lineId;
|
||||
this.freqDev=fLimit[0];
|
||||
this.voltageDev=fLimit[1];
|
||||
this.ubalance=fLimit[2];
|
||||
this.flicker=fLimit[3];
|
||||
this.uaberrance=fLimit[4];
|
||||
this.uharm2=fLimit[5];
|
||||
this.uharm3=fLimit[6];
|
||||
this.uharm4=fLimit[7];
|
||||
this.uharm5=fLimit[8];
|
||||
this.uharm6=fLimit[9];
|
||||
this.uharm7=fLimit[10];
|
||||
this.uharm8=fLimit[11];
|
||||
this.uharm9=fLimit[12];
|
||||
this.uharm10=fLimit[13];
|
||||
this.uharm11=fLimit[14];
|
||||
this.uharm12=fLimit[15];
|
||||
this.uharm13=fLimit[16];
|
||||
this.uharm14=fLimit[17];
|
||||
this.uharm15=fLimit[18];
|
||||
this.uharm16=fLimit[19];
|
||||
this.uharm17=fLimit[20];
|
||||
this.uharm18=fLimit[21];
|
||||
this.uharm19=fLimit[22];
|
||||
this.uharm20=fLimit[23];
|
||||
this.uharm21=fLimit[24];
|
||||
this.uharm22=fLimit[25];
|
||||
this.uharm23=fLimit[26];
|
||||
this.uharm24=fLimit[27];
|
||||
this.uharm25=fLimit[28];
|
||||
this.iharm2=fLimit[29];
|
||||
this.iharm3=fLimit[30];
|
||||
this.iharm4=fLimit[31];
|
||||
this.iharm5=fLimit[32];
|
||||
this.iharm6=fLimit[33];
|
||||
this.iharm7=fLimit[34];
|
||||
this.iharm8=fLimit[35];
|
||||
this.iharm9=fLimit[36];
|
||||
this.iharm10=fLimit[37];
|
||||
this.iharm11=fLimit[38];
|
||||
this.iharm12=fLimit[39];
|
||||
this.iharm13=fLimit[40];
|
||||
this.iharm14=fLimit[41];
|
||||
this.iharm15=fLimit[42];
|
||||
this.iharm16=fLimit[43];
|
||||
this.iharm17=fLimit[44];
|
||||
this.iharm18=fLimit[45];
|
||||
this.iharm19=fLimit[46];
|
||||
this.iharm20=fLimit[47];
|
||||
this.iharm21=fLimit[48];
|
||||
this.iharm22=fLimit[49];
|
||||
this.iharm23=fLimit[50];
|
||||
this.iharm24=fLimit[51];
|
||||
this.iharm25=fLimit[52];
|
||||
this.uvoltageDev=fLimit[53];
|
||||
this.iNeg=fLimit[54];
|
||||
this.inuharm1=fLimit[55];
|
||||
this.inuharm2=fLimit[56];
|
||||
this.inuharm3=fLimit[57];
|
||||
this.inuharm4=fLimit[58];
|
||||
this.inuharm5=fLimit[59];
|
||||
this.inuharm6=fLimit[60];
|
||||
this.inuharm7=fLimit[61];
|
||||
this.inuharm8=fLimit[62];
|
||||
this.inuharm9=fLimit[63];
|
||||
this.inuharm10=fLimit[64];
|
||||
this.inuharm11=fLimit[65];
|
||||
this.inuharm12=fLimit[66];
|
||||
this.inuharm13=fLimit[67];
|
||||
this.inuharm14=fLimit[68];
|
||||
this.inuharm15=fLimit[69];
|
||||
this.inuharm16=fLimit[70];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("cld_protect_value")
|
||||
public class ProtectValue extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 定值序号
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 内部定值时是终端Id,外部定值时是监测点Id
|
||||
*/
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 装置型号,字典表
|
||||
*/
|
||||
private String devType;
|
||||
|
||||
/**
|
||||
* 类型 80-外部定值 十进制类型 81-外部定值的十六进制类型 90-内部定值 十进制类型 91-内部定制 十六进制类型
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 定值类型(1:基本定值 2:谐波电压定值 3:谐波电流定值 4:间谐波电压定值)
|
||||
*/
|
||||
private Integer dzType;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
private String unit;
|
||||
|
||||
/**
|
||||
* 最大值
|
||||
*/
|
||||
private Float maxValue;
|
||||
|
||||
/**
|
||||
* 最小值
|
||||
*/
|
||||
private Float minValue;
|
||||
|
||||
/**
|
||||
* 默认值
|
||||
*/
|
||||
private Float defaulValue;
|
||||
|
||||
/**
|
||||
* 设定值
|
||||
*/
|
||||
private String setValue;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("cld_protect_word")
|
||||
public class ProtectWord extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 控制字序号
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 是否选中(0-否,1-是)
|
||||
*/
|
||||
private Boolean flag;
|
||||
|
||||
/**
|
||||
* 控制位序号0,1,2,3,……,15
|
||||
*/
|
||||
private Integer typeNum;
|
||||
|
||||
/**
|
||||
* 控制位为0时表达意义
|
||||
*/
|
||||
private String bit0;
|
||||
|
||||
/**
|
||||
* 控制位为1时表达意义
|
||||
*/
|
||||
private String bit1;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("pq_push")
|
||||
public class Push extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 终端变更记录Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 前置服务器Id
|
||||
*/
|
||||
private String nodeId;
|
||||
|
||||
/**
|
||||
* 目标类型(0:终端;1:监测点)
|
||||
*/
|
||||
private Boolean objType;
|
||||
|
||||
/**
|
||||
* 操作类型(0:新增;1:修改;2:删除)
|
||||
*/
|
||||
private Boolean handleType;
|
||||
|
||||
/**
|
||||
* 目标Id,可能是终端,监测点Id
|
||||
*/
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 数据状态(0:删除;1:未推送;2:已推送)默认未推送
|
||||
*/
|
||||
private Boolean state;
|
||||
|
||||
/**
|
||||
* 创建用户
|
||||
*/
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 更新用户
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("cld_statis_flow")
|
||||
public class StatisFlow extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 装置序号
|
||||
*/
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 统计时间
|
||||
*/
|
||||
private LocalDateTime timeId;
|
||||
|
||||
/**
|
||||
* 统计流量,由前置提供
|
||||
*/
|
||||
private Float statisValue;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/5/20
|
||||
*/
|
||||
@Data
|
||||
@TableName("cld_strategydic_fun")
|
||||
public class StrategydicFun {
|
||||
/**
|
||||
* 流量策略基础字典表序号
|
||||
*/
|
||||
private String strategyDicId;
|
||||
|
||||
/**
|
||||
* 功能码序号
|
||||
*/
|
||||
private String fuctionId;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-04
|
||||
*/
|
||||
@Data
|
||||
@TableName("pq_substation")
|
||||
public class Substation {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 变电站序号
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 电压等级Id,字典表
|
||||
*/
|
||||
private String scale;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
private BigDecimal lng;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
private BigDecimal lat;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import lombok.Data;
|
||||
import org.influxdb.annotation.Column;
|
||||
import org.influxdb.annotation.Measurement;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
/**
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/06/22 19:03
|
||||
*/
|
||||
@Data
|
||||
@Measurement(name = "pqs_terminal_logs")
|
||||
public class TerminalLogs {
|
||||
|
||||
@Column(name = "time")
|
||||
private Instant timeId;
|
||||
|
||||
@Column(name = "line_id")
|
||||
private String lineId;
|
||||
|
||||
@Column(name = "terminal_type")
|
||||
private String terminalType;
|
||||
|
||||
@Column(name = "update_by")
|
||||
private String updateBy;
|
||||
|
||||
@Column(name = "terminal_describe")
|
||||
private String terminalDescribe;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import lombok.Data;
|
||||
import org.influxdb.annotation.Column;
|
||||
import org.influxdb.annotation.Measurement;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 接收查询influxdb数据(终端在线率业务)
|
||||
*
|
||||
* @author yzh
|
||||
* @date 2022/9/22
|
||||
*/
|
||||
|
||||
@Data
|
||||
@Measurement(name = "pqs_onlinerate")
|
||||
public class TerminalOnlineRateData implements Serializable {
|
||||
|
||||
/**
|
||||
* 时间
|
||||
*/
|
||||
@Column(name = "time")
|
||||
private String time;
|
||||
|
||||
/**
|
||||
* 终端id
|
||||
*/
|
||||
@Column(name = "dev_id")
|
||||
private String devId;
|
||||
|
||||
/**
|
||||
* 终端在线率
|
||||
*/
|
||||
@Column(name = "online_rate")
|
||||
private Double onlineRate;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import lombok.Data;
|
||||
import org.influxdb.annotation.Column;
|
||||
import org.influxdb.annotation.Measurement;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
/**
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/08/16 16:13
|
||||
*/
|
||||
@Data
|
||||
@Measurement(name = "pqs_top_msg")
|
||||
public class TopMsg {
|
||||
|
||||
@Column(name = "time")
|
||||
private Instant timeId;
|
||||
|
||||
@Column(name = "dev_id")
|
||||
private String deviceId;
|
||||
|
||||
@Column(name = "alarm_num")
|
||||
private Integer alarmNum;
|
||||
|
||||
@Column(name = "com_out_num")
|
||||
private Integer comOutNum;
|
||||
|
||||
@Column(name = "flow_num")
|
||||
private Integer flowNum;
|
||||
|
||||
@Column(name = "over_limit")
|
||||
private Integer overLimit;
|
||||
|
||||
@Column(name = "flow_stand")
|
||||
private Integer flowStand;
|
||||
|
||||
@Column(name = "state")
|
||||
private Integer state;
|
||||
|
||||
@Column(name = "com_out_desc")
|
||||
private String comOutDesc;
|
||||
|
||||
@Column(name = "alarm_desc")
|
||||
private String alarmDesc;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-07
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("cld_version")
|
||||
public class Version extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 终端程序版本Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 程序版本号(汉字,字母,数字,特殊字符(.))
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 协议版本(汉字,字母,数字,特殊字符(.))
|
||||
*/
|
||||
private String protocol;
|
||||
|
||||
/**
|
||||
* 应用程序版本日期
|
||||
*/
|
||||
private LocalDate date;
|
||||
|
||||
/**
|
||||
* 装置系列,字典表
|
||||
*/
|
||||
private String devType;
|
||||
|
||||
/**
|
||||
* 版本类型,Null为通用类型,not null为特殊类型
|
||||
*/
|
||||
private String versionType;
|
||||
|
||||
/**
|
||||
* 版本文件信息
|
||||
*/
|
||||
private byte[] file;
|
||||
|
||||
/**
|
||||
* 终端程序版本状态(0-停用 1-启用)
|
||||
*/
|
||||
private Integer versionFlag;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2022-01-04
|
||||
*/
|
||||
@Data
|
||||
@TableName("pq_voltage")
|
||||
public class Voltage {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 母线序号
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 母线号(在同一台设备中的电压通道号)
|
||||
*/
|
||||
private Integer num;
|
||||
|
||||
/**
|
||||
* 电压等级Id,字典表
|
||||
*/
|
||||
private String scale;
|
||||
|
||||
/**
|
||||
* 母线模型(0:虚拟母线;1:实际母线)默认是实际母线
|
||||
*/
|
||||
private Integer model;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.njcn.device.pq.pojo.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @version 1.0.0
|
||||
* @date 2022年08月15日 14:03
|
||||
*/
|
||||
@Data
|
||||
public class AbnomalCommuncateVO implements Serializable {
|
||||
|
||||
@ApiModelProperty("年份")
|
||||
private String year;
|
||||
|
||||
@ApiModelProperty("月份")
|
||||
private String month;
|
||||
|
||||
@ApiModelProperty("日期")
|
||||
private String day;
|
||||
|
||||
@ApiModelProperty("异常次数")
|
||||
private String abnormalTimes;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user