diff --git a/pom.xml b/pom.xml index adff767d3..72634fdfa 100644 --- a/pom.xml +++ b/pom.xml @@ -47,7 +47,8 @@ ${middle.server.url}:18848 - + + f6df4a49-39cb-4355-a8fd-8aeb0c537eb1 @@ -60,7 +61,7 @@ ${docker.server.url}:8090 njcn - site + deploy 1.8 8 8 @@ -76,6 +77,7 @@ 1.2.5 8.0.19 3.4.2 + 1.5.1-RELEASE 3.5.1 2.3 0.9.1 @@ -197,6 +199,11 @@ mybatis-plus-generator ${mybatis-plus-generator.version} + + com.github.jeffreyning + mybatisplus-plus + ${mybatis-plus.jeffreyning.version} + org.apache.velocity velocity-engine-core diff --git a/pqs-common/common-db/pom.xml b/pqs-common/common-db/pom.xml index 55e7a2db8..c160a2fd6 100644 --- a/pqs-common/common-db/pom.xml +++ b/pqs-common/common-db/pom.xml @@ -53,6 +53,11 @@ com.baomidou mybatis-plus-boot-starter + + + + + diff --git a/pqs-common/common-swagger/src/main/java/com/njcn/swagger/config/Knife4jSwaggerConfig.java b/pqs-common/common-swagger/src/main/java/com/njcn/swagger/config/Knife4jSwaggerConfig.java index 7b68ff6af..e138686e5 100644 --- a/pqs-common/common-swagger/src/main/java/com/njcn/swagger/config/Knife4jSwaggerConfig.java +++ b/pqs-common/common-swagger/src/main/java/com/njcn/swagger/config/Knife4jSwaggerConfig.java @@ -53,6 +53,8 @@ public class Knife4jSwaggerConfig { public Docket defaultApi() { List controllerPath = Stream.of( "com.njcn.user.controller", + "com.njcn.prepare.harmonic.controller", + "com.njcn.prepare.event.controller", "com.njcn.device.pq.controller", "com.njcn.device.pms.controller", "com.njcn.auth.controller", diff --git a/pqs-device/pms-device/pms-device-api/pom.xml b/pqs-device/pms-device/pms-device-api/pom.xml index 18864dfb5..7ffaf2a15 100644 --- a/pqs-device/pms-device/pms-device-api/pom.xml +++ b/pqs-device/pms-device/pms-device-api/pom.xml @@ -22,5 +22,11 @@ common-device-biz ${project.version} + + com.njcn + pq-device-api + 1.0.0 + compile + \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/MonitorClient.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/MonitorClient.java new file mode 100644 index 000000000..ac99e4e09 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/MonitorClient.java @@ -0,0 +1,69 @@ +package com.njcn.device.pms.api; + +import com.njcn.common.pojo.constant.ServerInfo; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.device.pms.api.fallback.MonitorClientFallbackFactory; +import com.njcn.device.pms.pojo.dto.PmsMonitorDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorInfoDTO; +import com.njcn.device.pms.pojo.dto.PwPmsMonitorDTO; +import com.njcn.device.pms.pojo.param.PmsMonitorInfoParam; +import com.njcn.device.pms.pojo.param.PmsMonitorParam; +import com.njcn.device.pms.pojo.param.PwPmsMonitorParam; +import com.njcn.device.pq.pojo.po.Overlimit; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.validation.annotation.Validated; +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 yzh + * @date 2022/10/18 + */ +@FeignClient( + value = ServerInfo.DEVICE, + path = "/pms/monitor", + fallbackFactory = MonitorClientFallbackFactory.class) +public interface MonitorClient { + + /** + * 获取指定的监测点信息 + * + * @param pmsMonitorInfoParam 获取监测点详情数据入参 + * @return 指定的监测点信息 + */ + @PostMapping("/getMonitorInfo") + HttpResult> getMonitorInfo(@RequestBody PmsMonitorInfoParam pmsMonitorInfoParam); + + /*** + * 根据条件获取监测点信息列表 + * @author jianghaifei + * @date 2022-10-20 22:53 + * @param pmsMonitorParam + * @return com.njcn.common.pojo.response.HttpResult> + */ + @PostMapping("/getMonitorInfoListByCond") + public HttpResult> getMonitorInfoListByCond(@RequestBody PmsMonitorParam pmsMonitorParam); + + + /** + * 根据监测点id获取限值 + * + * @param id 监测点id + * @return 获取限值 + */ + @PostMapping("getOverLimitData") + HttpResult getOverLimitData(@RequestParam("id") String id); + + /** + * 获取配网所有监测点信息 + * + * @param pwPmsMonitorParam 参数条件 + * @return 配网所有监测点信息 + */ + @PostMapping("/getPwMonitorList") + HttpResult> getPwMonitorList(@RequestBody PwPmsMonitorParam pwPmsMonitorParam); + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/PmsGeneralDeviceInfoClient.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/PmsGeneralDeviceInfoClient.java new file mode 100644 index 000000000..a761a681c --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/PmsGeneralDeviceInfoClient.java @@ -0,0 +1,42 @@ +package com.njcn.device.pms.api; + +import com.njcn.common.pojo.constant.ServerInfo; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.device.pms.api.fallback.PmsGeneralDeviceInfoClientFallbackFactory; +import com.njcn.device.pms.pojo.dto.PmsGeneralDeviceDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +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 = "/pmsDeviceInfo", fallbackFactory = PmsGeneralDeviceInfoClientFallbackFactory.class) +public interface PmsGeneralDeviceInfoClient { + + + /*** + * 获取指定组织下台账综合信息 + * @author hongawen + * @date 2022/10/18 10:12 + * @param pmsDeviceInfoParam 查询条件 + * @return HttpResult> 统计结果 + */ + @PostMapping("/getPmsDeviceInfoWithInOrg") + HttpResult> getPmsDeviceInfoWithInOrg(@RequestBody PmsDeviceInfoParam pmsDeviceInfoParam); + + /*** + * 获取指定组织下台账综合信息 + * @author cdf + * @date 2022/10/18 10:12 + * @param pmsDeviceInfoParam 查询条件 + * @return HttpResult> 统计结果 + */ + @PostMapping("/getPwPmsDeviceInfoWithOrgId") + HttpResult> getPwPmsDeviceInfoWithOrgId(@RequestBody PmsDeviceInfoParam pmsDeviceInfoParam); +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/PmsGeneratrixClient.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/PmsGeneratrixClient.java new file mode 100644 index 000000000..2c07625b9 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/PmsGeneratrixClient.java @@ -0,0 +1,33 @@ +package com.njcn.device.pms.api; + +import com.njcn.common.pojo.constant.ServerInfo; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.device.pms.api.fallback.PmsGeneratrixClientFallbackFactory; +import com.njcn.device.pms.api.fallback.StatationStatClientFallbackFactory; +import com.njcn.device.pms.pojo.dto.PmsGeneratrixDTO; +import com.njcn.device.pms.pojo.param.PmsGeneratrixParam; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +import java.util.List; + +/** + * @author yzh + * @date 2022/10/18 + */ +@FeignClient(value = ServerInfo.DEVICE, + path = "/pmsGeneratrix", + fallbackFactory = PmsGeneratrixClientFallbackFactory.class) +public interface PmsGeneratrixClient { + + /** + * 获取母线信息 + * + * @param pmsGeneratrixParam 入参 + * @return 母线信息 + */ + @PostMapping("/getGeneratrixInfo") + HttpResult> getGeneratrixInfo(@RequestBody PmsGeneratrixParam pmsGeneratrixParam); +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/PwMonitorClient.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/PwMonitorClient.java new file mode 100644 index 000000000..1e67fd790 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/PwMonitorClient.java @@ -0,0 +1,34 @@ +package com.njcn.device.pms.api; + +import com.njcn.common.pojo.constant.ServerInfo; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.device.pms.api.fallback.MonitorClientFallbackFactory; +import com.njcn.device.pms.api.fallback.PwMonitorClientFallbackFactory; +import com.njcn.device.pms.pojo.dto.PwPmsMonitorDTO; +import com.njcn.device.pms.pojo.param.PwPmsMonitorParam; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +import java.util.List; + +/** + * @author yzh + * @date 2022/10/28 + */ + +@FeignClient( + value = ServerInfo.DEVICE, + path = "/pms/pwMonitor", + fallbackFactory = PwMonitorClientFallbackFactory.class) +public interface PwMonitorClient { + + /** + * 获取配网所有监测点信息 + * @param pwPmsMonitorParam 参数条件 + * @return 配网所有监测点信息 + */ + @PostMapping("/getPwMonitorList") + HttpResult> getPwMonitorList(@RequestBody PwPmsMonitorParam pwPmsMonitorParam); +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/StatationStatClient.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/StatationStatClient.java new file mode 100644 index 000000000..e372fa81a --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/StatationStatClient.java @@ -0,0 +1,34 @@ +package com.njcn.device.pms.api; + +import com.njcn.common.pojo.constant.ServerInfo; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.device.pms.api.fallback.StatationStatClientFallbackFactory; +import com.njcn.device.pms.pojo.dto.PmsStatationStatInfoDTO; + +import com.njcn.device.pms.pojo.param.PmsStatationStatInfoParam; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +import java.util.List; + +/** + * @author yzh + * @date 2022/10/18 + */ +@FeignClient(value = ServerInfo.DEVICE, + path = "/pms/statationStat", + fallbackFactory = StatationStatClientFallbackFactory.class) +public interface StatationStatClient { + + /** + * 获取指定的变电站信息 + * + * @param pmsStatationStatInfoParam 变电站详情数据入参 + * @return 指定的变电站信息 + */ + @PostMapping("/getStatationStat") + HttpResult> getStatationStatInfo(@RequestBody PmsStatationStatInfoParam pmsStatationStatInfoParam); + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/fallback/MonitorClientFallbackFactory.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/fallback/MonitorClientFallbackFactory.java new file mode 100644 index 000000000..dca7c1cac --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/fallback/MonitorClientFallbackFactory.java @@ -0,0 +1,64 @@ +package com.njcn.device.pms.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.pms.api.MonitorClient; +import com.njcn.device.pms.pojo.dto.PmsMonitorDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorInfoDTO; +import com.njcn.device.pms.pojo.dto.PwPmsMonitorDTO; +import com.njcn.device.pms.pojo.param.PmsMonitorInfoParam; +import com.njcn.device.pms.pojo.param.PmsMonitorParam; +import com.njcn.device.pms.pojo.param.PwPmsMonitorParam; +import com.njcn.device.pms.utils.PmsDeviceEnumUtil; +import com.njcn.device.pq.pojo.po.Overlimit; +import feign.hystrix.FallbackFactory; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * @author yzh + * @date 2022/10/18 + */ +@Slf4j +@Component +public class MonitorClientFallbackFactory implements FallbackFactory { + + @Override + public MonitorClient create(Throwable throwable) { + //判断抛出异常是否为解码器抛出的业务异常 + Enum exceptionEnum = CommonResponseEnum.SERVICE_FALLBACK; + if (throwable.getCause() instanceof BusinessException) { + BusinessException businessException = (BusinessException) throwable.getCause(); + exceptionEnum = PmsDeviceEnumUtil.getExceptionEnum(businessException.getResult()); + } + Enum finalExceptionEnum = exceptionEnum; + return new MonitorClient() + { + @Override + public HttpResult> getMonitorInfo(PmsMonitorInfoParam pmsMonitorInfoParam) { + log.error("{}异常,降级处理,异常为:{}", "获取指定的监测点信息", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + + @Override + public HttpResult> getMonitorInfoListByCond(PmsMonitorParam pmsMonitorParam) { + log.error("{}异常,降级处理,异常为:{}", "根据条件获取监测点信息列表", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + @Override + public HttpResult> getPwMonitorList(PwPmsMonitorParam pwPmsMonitorParam) { + log.error("{}异常,降级处理,异常为:{}", "获取配网所有监测点信息", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + + @Override + public HttpResult getOverLimitData(String id) { + log.error("{}异常,降级处理,异常为:{}", "根据监测点Id获取限值 ", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + }; + } +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/fallback/PmsGeneralDeviceInfoClientFallbackFactory.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/fallback/PmsGeneralDeviceInfoClientFallbackFactory.java new file mode 100644 index 000000000..33ee43349 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/fallback/PmsGeneralDeviceInfoClientFallbackFactory.java @@ -0,0 +1,51 @@ +package com.njcn.device.pms.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.pms.api.PmsGeneralDeviceInfoClient; +import com.njcn.device.pms.pojo.dto.PmsGeneralDeviceDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.utils.PmsDeviceEnumUtil; +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年10月18日 10:09 + */ +@Slf4j +@Component +public class PmsGeneralDeviceInfoClientFallbackFactory implements FallbackFactory { + + + @Override + public PmsGeneralDeviceInfoClient create(Throwable throwable) { + //判断抛出异常是否为解码器抛出的业务异常 + Enum exceptionEnum = CommonResponseEnum.SERVICE_FALLBACK; + if (throwable.getCause() instanceof BusinessException) { + BusinessException businessException = (BusinessException) throwable.getCause(); + exceptionEnum = PmsDeviceEnumUtil.getExceptionEnum(businessException.getResult()); + } + Enum finalExceptionEnum = exceptionEnum; + return new PmsGeneralDeviceInfoClient() + { + @Override + public HttpResult> getPmsDeviceInfoWithInOrg(PmsDeviceInfoParam pmsDeviceInfoParam) { + log.error("{}异常,降级处理,异常为:{}", "获取指定组织下台账综合信息", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + + @Override + public HttpResult> getPwPmsDeviceInfoWithOrgId(PmsDeviceInfoParam pmsDeviceInfoParam) { + log.error("{}异常,降级处理,异常为:{}", "获取指定组织下配网台账综合信息", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + }; + } +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/fallback/PmsGeneratrixClientFallbackFactory.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/fallback/PmsGeneratrixClientFallbackFactory.java new file mode 100644 index 000000000..851ae2fbc --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/fallback/PmsGeneratrixClientFallbackFactory.java @@ -0,0 +1,43 @@ +package com.njcn.device.pms.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.pms.api.PmsGeneralDeviceInfoClient; +import com.njcn.device.pms.api.PmsGeneratrixClient; +import com.njcn.device.pms.pojo.dto.PmsGeneralDeviceDTO; +import com.njcn.device.pms.pojo.dto.PmsGeneratrixDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.pojo.param.PmsGeneratrixParam; +import com.njcn.device.pms.utils.PmsDeviceEnumUtil; +import feign.hystrix.FallbackFactory; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * @author yzh + * @date 2022/10/18 + */ +@Slf4j +@Component +public class PmsGeneratrixClientFallbackFactory implements FallbackFactory { + @Override + public PmsGeneratrixClient create(Throwable throwable) { + //判断抛出异常是否为解码器抛出的业务异常 + Enum exceptionEnum = CommonResponseEnum.SERVICE_FALLBACK; + if (throwable.getCause() instanceof BusinessException) { + BusinessException businessException = (BusinessException) throwable.getCause(); + exceptionEnum = PmsDeviceEnumUtil.getExceptionEnum(businessException.getResult()); + } + Enum finalExceptionEnum = exceptionEnum; + return new PmsGeneratrixClient() { + @Override + public HttpResult> getGeneratrixInfo(PmsGeneratrixParam pmsGeneratrixParam) { + log.error("{}异常,降级处理,异常为:{}", "获取母线信息", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + }; + } +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/fallback/PwMonitorClientFallbackFactory.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/fallback/PwMonitorClientFallbackFactory.java new file mode 100644 index 000000000..786d59feb --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/fallback/PwMonitorClientFallbackFactory.java @@ -0,0 +1,43 @@ +package com.njcn.device.pms.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.pms.api.MonitorClient; +import com.njcn.device.pms.api.PwMonitorClient; +import com.njcn.device.pms.pojo.dto.PwPmsMonitorDTO; +import com.njcn.device.pms.pojo.param.PwPmsMonitorParam; +import com.njcn.device.pms.utils.PmsDeviceEnumUtil; +import feign.hystrix.FallbackFactory; +import lombok.extern.slf4j.Slf4j; +import org.checkerframework.checker.units.qual.C; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * @author yzh + * @date 2022/10/28 + */ + +@Slf4j +@Component +public class PwMonitorClientFallbackFactory implements FallbackFactory { + @Override + public PwMonitorClient create(Throwable throwable) { + //判断抛出异常是否为解码器抛出的业务异常 + Enum exceptionEnum = CommonResponseEnum.SERVICE_FALLBACK; + if (throwable.getCause() instanceof BusinessException) { + BusinessException businessException = (BusinessException) throwable.getCause(); + exceptionEnum = PmsDeviceEnumUtil.getExceptionEnum(businessException.getResult()); + } + Enum finalExceptionEnum = exceptionEnum; + return new PwMonitorClient() { + @Override + public HttpResult> getPwMonitorList(PwPmsMonitorParam pwPmsMonitorParam) { + log.error("{}异常,降级处理,异常为:{}", "获取配网所有监测点信息", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + }; + } +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/fallback/StatationStatClientFallbackFactory.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/fallback/StatationStatClientFallbackFactory.java new file mode 100644 index 000000000..57ca95961 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/api/fallback/StatationStatClientFallbackFactory.java @@ -0,0 +1,42 @@ +package com.njcn.device.pms.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.pms.api.StatationStatClient; +import com.njcn.device.pms.pojo.dto.PmsStatationStatInfoDTO; +import com.njcn.device.pms.pojo.param.PmsStatationStatInfoParam; +import com.njcn.device.pms.utils.PmsDeviceEnumUtil; +import feign.hystrix.FallbackFactory; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * @author yzh + * @date 2022/10/18 + */ + +@Slf4j +@Component +public class StatationStatClientFallbackFactory implements FallbackFactory { + + @Override + public StatationStatClient create(Throwable throwable) { + //判断抛出异常是否为解码器抛出的业务异常 + Enum exceptionEnum = CommonResponseEnum.SERVICE_FALLBACK; + if (throwable.getCause() instanceof BusinessException) { + BusinessException businessException = (BusinessException) throwable.getCause(); + exceptionEnum = PmsDeviceEnumUtil.getExceptionEnum(businessException.getResult()); + } + Enum finalExceptionEnum = exceptionEnum; + return new StatationStatClient() { + @Override + public HttpResult> getStatationStatInfo(PmsStatationStatInfoParam pmsStatationStatInfoParam) { + log.error("{}异常,降级处理,异常为:{}", "获取指定的变电站信息", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + }; + } +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/enums/PmsDeviceResponseEnum.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/enums/PmsDeviceResponseEnum.java new file mode 100644 index 000000000..79f82a374 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/enums/PmsDeviceResponseEnum.java @@ -0,0 +1,33 @@ +package com.njcn.device.pms.enums; + +import lombok.Getter; + +/** + * pqs + * 终端枚举 + * @author cdf + * @date 2021/6/21 + */ +@Getter +public enum PmsDeviceResponseEnum { + + /** + * A0250 ~ A0349 用于终端模块的枚举 + */ + DEVICE_COMMON_ERROR("A00349","终端模块异常"), + ORG_ITEM_EMPTY("A00360","未查询到指定组织机构"), + Operation_ITEM_EMPTY("A00361","未查询到指定运维单位"), + VOLTAGE_EMPTY("A00362","未查询到指定母线"), + LINE_EMPTY("A00363","未查询到指定线路"), + MODEL_NAME_REPEAT("A00350","名称不可重复"); + + + private final String code; + + private final String message; + + PmsDeviceResponseEnum(String code, String message) { + this.code = code; + this.message = message; + } +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/bo/DeviceRunExBO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/bo/DeviceRunExBO.java deleted file mode 100644 index b5dfa5b8b..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/bo/DeviceRunExBO.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.njcn.device.pms.pojo.bo; - -import com.fasterxml.jackson.annotation.JsonFormat; -import com.njcn.device.pms.pojo.vo.DeviceRunExVO; -import lombok.Data; - -import java.io.Serializable; -import java.util.Date; -import java.util.List; - -/** - * 终端异常信息类 - * @author yangj - * @date 2022/09/14 - */ -@Data -public class DeviceRunExBO extends DeviceRunExVO implements Serializable { - - private String id; - - private String pid; - - private String pidS; - - private String name; - - private Integer level; - - private Integer sort; - - private String remark; - - private Integer state; - - private String createBy; - - @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd",timezone = "GMT+8") - private Date createTime; - - private String updateBy; - - @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd",timezone = "GMT+8") - private Date updateTime; - - private List children; - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/bo/DeviceRunExVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/bo/DeviceRunExVO.java new file mode 100644 index 000000000..215febdc0 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/bo/DeviceRunExVO.java @@ -0,0 +1,4 @@ +package com.njcn.device.pms.pojo.bo; + +public class DeviceRunExVO { +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsGeneralDeviceDTO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsGeneralDeviceDTO.java new file mode 100644 index 000000000..b95ca6310 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsGeneralDeviceDTO.java @@ -0,0 +1,63 @@ +package com.njcn.device.pms.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 PmsGeneralDeviceDTO implements Serializable { + + /** + * name对应统计名称:如 区域:南京市、苏州市;电压等级:10kV、220kV... + */ + private String name; + + /** + * index对应统计索引:如 区域:南京市索引、苏州市索引;电压等级:10kV索引、220kV索引... + */ + private String index; + + /** + * subIndexes:变电站索引集合 + */ + private List powerrIdList = new ArrayList<>(); + + /** + * deviceIndexes:终端索引集合 + */ + private List terminalIdList = new ArrayList<>(); + + /** + * voltageIndexes:母线索引集合 + */ + private List generatrixIdList = new ArrayList<>(); + + /** + * lineIndexes:监测点索引集合 + */ + private List monitorIdList = new ArrayList<>(); + + /** + * lineIndexes:监测线路集合 + */ + private List lineIdList = new ArrayList<>(); + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsGeneratrixDTO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsGeneratrixDTO.java new file mode 100644 index 000000000..af5e41e32 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsGeneratrixDTO.java @@ -0,0 +1,63 @@ +package com.njcn.device.pms.pojo.dto; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotNull; +import java.io.Serializable; +import java.util.List; + +/** + * 母线信息 + * + * @author yzh + * @date 2022/10/18 + */ + +@Data +public class PmsGeneratrixDTO implements Serializable { + + /** + * 单位id + */ + private String orgId; + + /** + * 单位名称 + */ + private String orgName; + + /** + * 电站编号 + */ + private String powerId; + /** + * 电站名称 + */ + private String powerName; + + /** + * 母线id + */ + private String generatrixId; + + /** + * 母线名称 + */ + private String generatrixName; + + /** + * 监测点id + */ + private String monitorId; + + /** + * 监测点名称 + */ + private String monitorName; + + /** + * 母线电压等级 + */ + private String generatrixVoltageLevel; +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsMonitorBaseDTO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsMonitorBaseDTO.java new file mode 100644 index 000000000..0d810d7a6 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsMonitorBaseDTO.java @@ -0,0 +1,50 @@ +package com.njcn.device.pms.pojo.dto; + +import lombok.Data; + +import java.io.Serializable; + +/** + * @author hongawen + * @version 1.0.0 + * @date 2022年10月17日 16:44 + */ +@Data +public class PmsMonitorBaseDTO implements Serializable { + + /*** + * 监测点ID + */ + private String monitorId; + + /*** + * 运维单位ID + */ + private String operationId; + + /*** + * 电站ID + */ + private String powerrId; + + /*** + * 终端ID + */ + private String terminalId; + + /*** + * 母线ID + */ + private String generatrixId; + + /*** + * 监测线路名称 + */ + private String lineName; + + /*** + * 监测线路ID + */ + private String lineId; + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsMonitorDTO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsMonitorDTO.java new file mode 100644 index 000000000..f518376f2 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsMonitorDTO.java @@ -0,0 +1,199 @@ +package com.njcn.device.pms.pojo.dto; + +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + * @Title PmsMonitorDTO + * @Package com.njcn.device.pms.pojo.dto + * @Author jianghaifei + * @Date 2022-10-20 20:14 + * @Version V1.0 + */ +@Data +public class PmsMonitorDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 监测点ID + */ + private String id; + + /** + * 监测点名称 + */ + private String name; + + /** + * 组织机构名称 + */ + private String orgName; + + /** + * 组织机构ID(外键) + */ + private String orgId; + + /** + * 运维单位名称 + */ + private String operationName; + + /** + * 运维单位ID(外键) + */ + private String operationId; + + /** + * 变电站名称 + */ + private String powerrName; + + /** + * 电站ID(外键) + */ + private String powerrId; + + /** + * 母线名称 + */ + private String generatrixName; + + /** + * 母线ID(外键) + */ + private String generatrixId; + + /** + * 监测线路名称 + */ + private String lineName; + + /** + * 监测线路ID + */ + private String lineId; + + /** + * 电压等级(字典) + */ + private String voltageLevel; + + /** + * 监测点状态(字典) + */ + private String monitorState; + + /** + * 监测点类型(字典) + */ + private String monitorType; + + /** + * 最小短路容量 + */ + private Float minShortCircuitCapacity; + + /** + * 供电设备容量 + */ + private Float powerSupplyEqCapacity; + + /** + * 用户协议容量 + */ + private Float userAgreementCapacity; + + /** + * 电压偏差限值(上) + */ + private Float voltageDeviationUpperLimit; + + /** + * 电压偏差限值(下) + */ + private Float voltageDeviationLowerLimit; + + /** + * 电压互感器类型(字典) + */ + private String potentialTransFormerType; + + /** + * 中性点接地方式(字典) + */ + private String neutralGroundingMode; + + /** + * 是否用户专线(字典) + */ + private String isSpecialSupplyElectricity; + + /** + * 监测点标签 + */ + private String monitorTag; + + /** + * 监测对象类型(字典) + */ + private String monitorObjectType; + + /** + * 监测对象编号 + */ + private String monitorObjectId; + + /** + * 监测对象名称 + */ + private String monitorObjectName; + + /** + * 统计间隔 + */ + private Integer statisticalInterval; + + /** + * 关联的监测终端编号(外键) + */ + private String terminalId; + + /** + * 监测终端接线方式(字典) + */ + private String terminalWiringMethod; + + /** + * 是否是上送国网监测点,0-否 1-是 + */ + private Boolean isUpToGrid; + + /** + * 数据状态:0-删除;1-正常; + */ + private Boolean status; + + /** + * 创建用户 + */ + private String createBy; + + /** + * 创建时间 + */ + private LocalDateTime createTime; + + /** + * 更新用户 + */ + private String updateBy; + + /** + * 更新时间 + */ + private LocalDateTime updateTime; +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsMonitorInfoDTO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsMonitorInfoDTO.java new file mode 100644 index 000000000..e53e87314 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsMonitorInfoDTO.java @@ -0,0 +1,71 @@ +package com.njcn.device.pms.pojo.dto; + +import lombok.Data; + +import java.io.Serializable; + +/** + * 监测点详情数据dto + * + * @author yzh + * @date 2022/10/18 + */ + +@Data +public class PmsMonitorInfoDTO implements Serializable { + + /** + * 单位id + */ + private String orgId; + + /** + * 单位名称 + */ + private String orgName; + + /** + * 电站编号 + */ + private String powerId; + /** + * 电站名称 + */ + private String powerName; + + /** + * 母线id + */ + private String generatrixId; + + /** + * 母线名称 + */ + private String generatrixName; + + /** + * 监测点id + */ + private String monitorId; + + /** + * 监测点名称 + */ + private String monitorName; + + /** + * 监测点电压等级 + */ + private String monitorVoltageLevel; + + /** + * 监测点类型 + */ + private String monitorType; + + /** + * 监测点状态 + */ + private String monitorState; + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsStatationStatInfoDTO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsStatationStatInfoDTO.java new file mode 100644 index 000000000..cc2490942 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PmsStatationStatInfoDTO.java @@ -0,0 +1,66 @@ +package com.njcn.device.pms.pojo.dto; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.apache.commons.lang3.builder.HashCodeExclude; + +import java.util.Date; +import java.io.Serializable; + +/** + * 变电站详情数据dto + * + * @author yzh + * @since 2022-10-18 14:58:24 + */ +@Data +public class PmsStatationStatInfoDTO implements Serializable { + private static final long serialVersionUID = 852679416130821111L; + + + /** + * 单位id + */ + private String orgId; + + /** + * 单位名称 + */ + private String orgName; + + /** + * 母线id + */ + private String generatrixId; + + /** + * 母线名称 + */ + private String generatrixName; + + /** + * 监测点id + */ + private String monitorId; + + /** + * 监测点名称 + */ + private String monitorName; + + /** + * 电站编号 + */ + private String powerId; + /** + * 电站名称 + */ + private String powerName; + + /** + * 变电站电压等级 + */ + private String powerVoltageLevel; + +} + diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PwPmsMonitorDTO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PwPmsMonitorDTO.java new file mode 100644 index 000000000..b6f59b631 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/dto/PwPmsMonitorDTO.java @@ -0,0 +1,104 @@ +package com.njcn.device.pms.pojo.dto; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; + +/** + * 配网监测点信息 + * + * @author yzh + * @date 2022/10/27 + */ + +@Data +public class PwPmsMonitorDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 单位id + */ + @ApiModelProperty(name = "orgId",value = "单位id") + private String orgId; + + /** + * 单位名称 + */ + @ApiModelProperty(name = "orgName",value = "单位名称") + private String orgName; + + /** + * 监测点类别(字典) + */ + @ApiModelProperty(name = "monitorSort", value = "监测点类别(字典)") + private String monitorSort; + + /** + * 监测点id + */ + @ApiModelProperty(name = "monitorId", value = "监测点id") + private String monitorId; + + /** + * 监测点名称 + */ + @ApiModelProperty(name = "monitorName", value = "监测点名称") + private String monitorName; + + /** + * 电压等级(字典) + */ + @ApiModelProperty(name = "voltageLevel", value = "电压等级(字典)") + private String voltageLevel; + + /** + * 是否发电用户:0-否;1-是 + */ + @ApiModelProperty(name = "ifPowerUser", value = "是否发电用户:0-否;1-是") + private String ifPowerUser; + + /** + * 监测点状态(字典) + */ + @ApiModelProperty(name = "monitorState", value = "监测点状态(字典)") + private String monitorState; + + /** + * 创建日期 + */ + @ApiModelProperty(name = "createdDate", value = "创建日期") + private String createdDate; + + /** + * 数据状态:0-删除;1-正常 + */ + @ApiModelProperty(name = "status", value = "数据状态:0-删除;1-正常") + private String status; + + /** + * 创建用户 + */ + @ApiModelProperty(name = "createBy", value = "创建用户") + private String createBy; + + /** + * 创建时间 + */ + @ApiModelProperty(name = "createTime", value = "创建时间") + private String createTime; + + /** + * 更新用户 + */ + @ApiModelProperty(name = "updateBy", value = "更新用户") + private String updateBy; + + /** + * 更新时间 + */ + @ApiModelProperty(name = "updateTime", value = "更新时间") + private String updateTime; + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/DeviceQueryParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/DeviceQueryParam.java deleted file mode 100644 index 79e6ec3c7..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/DeviceQueryParam.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.web.pojo.param.BaseParam; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.util.List; - -/** - * pqs - * - * @author cdf - * @date 2022/7/6 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class DeviceQueryParam extends BaseParam { - - - @ApiModelProperty(value = "manufacturer",name = "制造厂商") - private List manufacturer; - - @ApiModelProperty(value = "type",name = "设备类型") - private List type; -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/DistributedQueryParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/DistributedQueryParam.java deleted file mode 100644 index 81f08676c..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/DistributedQueryParam.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.web.pojo.param.BaseParam; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.util.List; - -/** - * pqs - * - * @author cdf - * @date 2022/7/6 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class DistributedQueryParam extends BaseParam { - - @ApiModelProperty(value = "name",name = "分布式光伏台账名称") - private String name; - - @ApiModelProperty(value = "scale",name = "电压等级") - private List scale; -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/DistributionMonitorParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/DistributionMonitorParam.java new file mode 100644 index 000000000..6ee6e28a3 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/DistributionMonitorParam.java @@ -0,0 +1,50 @@ +package com.njcn.device.pms.pojo.param; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotBlank; +import java.time.LocalDateTime; + +/** + * pms-device + * + * @author cdf + * @date 2022/10/26 + */ +@Data +public class DistributionMonitorParam { + + /** + * 监测点类别(字典) + */ + @ApiModelProperty(value = "监测点类别(字典)") + @NotBlank(message = "监测点类别不能为空") + private String monitorSort; + + /** + * 监测点ID + */ + + private String monitorId; + + /** + * 电压等级(字典) + */ + private String voltageLevel; + + /** + * 是否发电用户:0-否;1-是; + */ + private Boolean ifPowerUser; + + /** + * 监测点状态(字典) + */ + private String monitorState; + + /** + * 创建日期 + */ + private LocalDateTime createdDate; +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/GeneratrixParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/GeneratrixParam.java new file mode 100644 index 000000000..808bae39d --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/GeneratrixParam.java @@ -0,0 +1,37 @@ +package com.njcn.device.pms.pojo.param; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import javax.validation.constraints.NotBlank; + +/** + * pms-device + * + * @author cdf + * @date 2022/10/26 + */ +@Data +public class GeneratrixParam { + @ApiModelProperty(value = "母线名称",required = true) + @NotBlank(message = "母线名称不可为空") + private String generatrixName; + + @ApiModelProperty(value = "电站id",required = true) + @NotBlank(message = "电站id不可为空") + private String statationId; + + @ApiModelProperty(value = "母线电压等级",required = true) + @NotBlank(message = "母线电压等级不可为空") + private String scale; + + @Data + @EqualsAndHashCode(callSuper = true) + public static class UpdateGeneratrixParam extends GeneratrixParam { + + @ApiModelProperty(value = "母线id",required = true) + @NotBlank(message = "母线id不可为空") + private String generatrixId; + } +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/GeneratrixWireParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/GeneratrixWireParam.java new file mode 100644 index 000000000..42ffa2966 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/GeneratrixWireParam.java @@ -0,0 +1,36 @@ +package com.njcn.device.pms.pojo.param; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import javax.validation.constraints.NotBlank; + +/** + * pms-device + * + * @author cdf + * @date 2022/10/26 + */ +@Data +public class GeneratrixWireParam { + + @ApiModelProperty(value = "线路名称",required = true) + @NotBlank(message = "线路名称不可为空") + private String wireName; + + @ApiModelProperty(value = "母线id",required = true) + @NotBlank(message = "母线id不可为空") + private String generatrixId; + + + + @Data + @EqualsAndHashCode(callSuper = true) + public static class UpdateGeneratrixWireParam extends GeneratrixWireParam { + + @ApiModelProperty(value = "线路id",required = true) + @NotBlank(message = "线路id不可为空") + private String wireId; + } +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/LineDetailQueryParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/LineDetailQueryParam.java deleted file mode 100644 index 7e13ef521..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/LineDetailQueryParam.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.web.pojo.param.BaseParam; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - * pqs - * - * @author cdf - * @date 2022/7/6 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class LineDetailQueryParam extends BaseParam { - - @ApiModelProperty(value = "scale",name = "分布式光伏台账名称",required = true) - private String name; - - @ApiModelProperty(value = "scale",name = "电压等级") - private String scale; -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/LvUserQueryParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/LvUserQueryParam.java deleted file mode 100644 index db7aa986e..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/LvUserQueryParam.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.web.pojo.param.BaseParam; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.util.List; - -/** - * pqs - * - * @author cdf - * @date 2022/7/6 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class LvUserQueryParam extends BaseParam { - - @ApiModelProperty(value = "scale",name = "低压侧台账名称") - private String name; - - @ApiModelProperty(value = "userCode",name = "用户编号") - private String userCode; - - @ApiModelProperty(value = "scale",name = "电压等级") - private List scale; -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/MonitorParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/MonitorParam.java new file mode 100644 index 000000000..e3e17c1d8 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/MonitorParam.java @@ -0,0 +1,218 @@ +package com.njcn.device.pms.pojo.param; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; +import java.time.LocalDateTime; + +/** + * pms-device + * + * @author cdf + * @date 2022/10/25 + */ +@Data +public class MonitorParam { + + /** + * 监测点名称 + */ + @ApiModelProperty(value = "监测点名称") + @NotBlank(message = "监测点名称不能为空") + private String name; + + + /** + * 组织机构ID(外键) + */ + @ApiModelProperty(value = "组织机构ID(外键)") + @NotBlank(message = "组织机构ID不能为空") + private String orgId; + + + /** + * 运维单位ID(外键) + */ + @ApiModelProperty(value = "运维单位ID") + @NotBlank(message = "运维单位ID不能为空") + private String operationId; + + + /** + * 电站ID(外键) + */ + @ApiModelProperty(value = "电站ID(外键)") + @NotBlank(message = "电站ID不能为空") + private String powerrId; + + /** + * 母线ID(外键) + */ + @ApiModelProperty(value = "母线ID(外键)") + @NotBlank(message = "母线ID不能为空") + private String generatrixId; + + /** + * 监测线路名称 + */ + @ApiModelProperty(value = "监测点名称") + @NotBlank(message = "监测线路名称不能为空") + private String lineName; + + /** + * 监测线路ID + */ + @ApiModelProperty(value = "监测线路ID") + @NotBlank(message = "监测线路ID不可为空") + private String lineId; + + /** + * 电压等级(字典) + */ + @ApiModelProperty(value = "电压等级(字典)") + @NotBlank(message = "电压等级不能为空") + private String voltageLevel; + + /** + * 监测点状态(字典) + */ + @ApiModelProperty(value = "监测点状态(字典)") + @NotBlank(message = "监测点状态不能为空") + private String monitorState; + + /** + * 监测点类型(字典) + */ + @ApiModelProperty(value = "监测点类型(字典)") + @NotBlank(message = "监测点类型不能为空") + private String monitorType; + + /** + * 最小短路容量 + */ + @ApiModelProperty(value = "最小短路容量") + @NotNull(message = "最小短路容量不可为空") + private Float minShortCircuitCapacity; + + /** + * 供电设备容量 + */ + @ApiModelProperty(value = "供电设备容量") + @NotNull(message = "供电设备容量不可为空") + private Float powerSupplyEqCapacity; + + /** + * 用户协议容量 + */ + @ApiModelProperty(value = "用户协议容量") + @NotNull(message = "用户协议容量不可为空") + private Float userAgreementCapacity; + + /** + * 电压偏差限值(上) + */ + @ApiModelProperty(value = "电压偏差限值(上)") + @NotNull(message = "电压偏差限值(上)不可为空") + private Float voltageDeviationUpperLimit; + + /** + * 电压偏差限值(下) + */ + @ApiModelProperty(value = "电压偏差限值(下)") + @NotNull(message = "电压偏差限值(下)不可为空") + private Float voltageDeviationLowerLimit; + + /** + * 电压互感器类型(字典) + */ + @ApiModelProperty(value = "电压互感器类型(字典)") + @NotBlank(message = "电压互感器类型不可为空") + private String potentialTransFormerType; + + /** + * 中性点接地方式(字典) + */ + @ApiModelProperty(value = "中性点接地方式(字典)") + @NotBlank(message = "中性点接地方式不可为空") + private String neutralGroundingMode; + + /** + * 是否用户专线(字典) + */ + @ApiModelProperty(value = "是否用户专线(字典)") + @NotBlank(message = "是否用户专线不可为空") + private String isSpecialSupplyElectricity; + + /** + * 监测点标签 + */ + @ApiModelProperty(value = "监测点标签") + @NotBlank(message = "监测点标签不可为空") + private String monitorTag; + + /** + * 监测对象类型(字典) + */ + @ApiModelProperty(value = "监测对象类型(字典)") + @NotBlank(message = "监测对象类型不可为空") + private String monitorObjectType; + + /** + * 监测对象编号 + */ + @ApiModelProperty(value = "监测对象编号") + @NotBlank(message = "监测对象编号不可为空") + private String monitorObjectId; + + /** + * 监测对象名称 + */ + @ApiModelProperty(value = "监测对象名称") + @NotBlank(message = "监测对象名称不可为空") + private String monitorObjectName; + + /** + * 统计间隔 + */ + @ApiModelProperty(value = "统计间隔") + @NotNull(message = "统计间隔不可为空") + private Integer statisticalInterval; + + /** + * 关联的监测终端编号(外键) + */ + @ApiModelProperty(value = "关联的监测终端编号(外键)") + @NotBlank(message = "关联的监测终端编号不可为空") + private String terminalId; + + /** + * 监测终端接线方式(字典) + */ + @ApiModelProperty(value = "监测终端接线方式(字典)") + @NotBlank(message = "监测终端接线方式不可为空") + private String terminalWiringMethod; + + /** + * 是否是上送国网监测点,0-否 1-是 + */ + @ApiModelProperty(value = "是否是上送国网监测点,0-否 1-是") + @NotNull(message = "是否是上送国网监测点不可为空") + private Integer isUpToGrid; + + + @Data + @EqualsAndHashCode(callSuper = true) + public static class UpdateMonitorParam extends MonitorParam{ + + /** + * 监测线路ID + */ + @ApiModelProperty(value = "监测点ID") + @NotBlank(message = "监测点ID不可为空") + private String id; + } + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsDeviceInfoParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsDeviceInfoParam.java new file mode 100644 index 000000000..193e8d693 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsDeviceInfoParam.java @@ -0,0 +1,114 @@ +package com.njcn.device.pms.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 PmsDeviceInfoParam 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 = "voltageLevel", value = "电压等级") + private List voltageLevel; + + + @ApiModelProperty(name = "manufacturer", value = "终端厂家") + private List manufacturer; + + + @ApiModelProperty(name = "monitorObjectType", value = "监测点对象类型") + private List monitorObjectType; + + + @ApiModelProperty(name = "monitorState", value = "监测点状态") + private List monitorState; + + + @ApiModelProperty(name = "upToGrid", value = "是否上送国网0-否 1-是") + private Integer upToGrid; + + /** + * 默认全部监测点 + * @param deptIndex 部门索引 + */ + public PmsDeviceInfoParam(String deptIndex) { + this.deptIndex = deptIndex; + } + + + /** + * 自定义上报方式、电网侧方式的统计 + */ + public PmsDeviceInfoParam(SimpleDTO statisticalType, String deptIndex, List voltageLevel, List manufacturer, List monitorObjectType, List monitorState) { + this.statisticalType = statisticalType; + this.deptIndex = deptIndex; + this.voltageLevel = voltageLevel; + this.manufacturer = manufacturer; + this.monitorObjectType = monitorObjectType; + this.monitorState = monitorState; + } + + @Data + @EqualsAndHashCode(callSuper = true) + public static class BusinessParam extends PmsDeviceInfoParam{ + + @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; + + } + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsGeneratrixParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsGeneratrixParam.java new file mode 100644 index 000000000..cd2d62604 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsGeneratrixParam.java @@ -0,0 +1,40 @@ +package com.njcn.device.pms.pojo.param; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotNull; +import java.io.Serializable; +import java.util.List; + +/** + * 母线信息入参 + * + * @author yzh + * @date 2022/10/18 + */ + +@Data +@ApiModel("母线信息入参") +public class PmsGeneratrixParam implements Serializable { + + /** + * 母线id集合 + */ + @ApiModelProperty(name = "generatrixIds", value = "母线id集合") + @NotNull(message = "母线id集合不可为空") + private List generatrixIds; + + /** + * 母线名称 + */ + @ApiModelProperty(name = "generatrixName", value = "母线名称") + private String generatrixName; + + /** + * 母线电压等级 + */ + @ApiModelProperty(name = "generatrixVoltageLevel", value = "母线电压等级") + private List generatrixVoltageLevel; +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsMonitorInfoParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsMonitorInfoParam.java new file mode 100644 index 000000000..1b4a84318 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsMonitorInfoParam.java @@ -0,0 +1,60 @@ +package com.njcn.device.pms.pojo.param; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.NoArgsConstructor; + +import javax.validation.constraints.NotNull; +import java.io.Serializable; +import java.util.List; + +/** + * 获取监测点详情数据入参 + * + * @author yzh + * @date 2022/10/18 + */ + +@Data +@ApiModel(value = "获取监测点详情数据入参") +@NoArgsConstructor +public class PmsMonitorInfoParam implements Serializable { + + /** + * 监测点id集合 + */ + @ApiModelProperty(name = "monitorIds",value = "监测点id集合") + @NotNull(message = "监测点id集合不可为空") + private List monitorIds; + + /** + * 监测点名称 + */ + @ApiModelProperty(name = "monitorName",value = "监测点名称") + private String monitorName; + + /** + * 电压等级 + */ + @ApiModelProperty(name = "monitorVoltageLevel",value = "电压等级") + private List monitorVoltageLevel; + + /** + * 监测点类型 + */ + @ApiModelProperty(name = "monitorType",value = "监测点类型") + private List monitorType; + + /** + * 监测点类别 + */ + @ApiModelProperty(name = "monitorSort",value = "监测点类别") + private List monitorSort; + + /** + * 监测点状态 + */ + @ApiModelProperty(name = "monitorState",value = "监测点状态") + private List monitorState; +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsMonitorParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsMonitorParam.java new file mode 100644 index 000000000..1c0431f96 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsMonitorParam.java @@ -0,0 +1,40 @@ +package com.njcn.device.pms.pojo.param; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.List; + +/** + * @Title PmsMonitorParam + * @Package com.njcn.device.pms.pojo.param + * @Author jianghaifei + * @Date 2022-10-20 20:17 + * @Version V1.0 + */ +@Data +@ApiModel +public class PmsMonitorParam { + + @ApiModelProperty(name = "orgIds", value = "部门id") + private List orgIds; + + @ApiModelProperty(name = "monitorIds", value = "监测点id") + private List monitorIds; + + @ApiModelProperty(name = "monitorName", value = "监测点名称") + private String monitorName; + + @ApiModelProperty(name = "voltageLevel", value = "电压等级") + private List voltageLevels; + + @ApiModelProperty(name = "monitorType",value = "监测点类型") + private String monitorType; + + @ApiModelProperty(name = "monitorState",value = "监测点状态") + private String monitorState; + + @ApiModelProperty(name = "powerrIds",value = "变电站id") + private List powerrIds; +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsStatationStatInfoParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsStatationStatInfoParam.java new file mode 100644 index 000000000..f48003883 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsStatationStatInfoParam.java @@ -0,0 +1,39 @@ +package com.njcn.device.pms.pojo.param; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.NoArgsConstructor; + +import javax.validation.constraints.NotNull; +import java.util.List; + +/** + * 变电站详情数据入参 + * @author yzh + * @date 2022/10/18 + */ +@Data +@ApiModel(value = "变电站详情数据入参") +@NoArgsConstructor +public class PmsStatationStatInfoParam { + + /** + * 变电站id集合 + */ + @ApiModelProperty(name = "powerIds",value = "变电站id集合") + @NotNull(message = "变电站id集合不可为空") + private List powerIds; + + /** + * 变电站名称 + */ + @ApiModelProperty(name = "powerName",value = "变电站名称") + private String powerName; + + /** + * 变电站电压等级 + */ + @ApiModelProperty(name = "powerVoltageLevel",value = "变电站电压等级") + private List powerVoltageLevel; +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsTerminalParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsTerminalParam.java new file mode 100644 index 000000000..a49232c48 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PmsTerminalParam.java @@ -0,0 +1,78 @@ +package com.njcn.device.pms.pojo.param; + +import com.njcn.web.pojo.param.BaseParam; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * @author hany + * @since 2022-10-27 + */ +@Data +public class PmsTerminalParam { + + @ApiModelProperty(name = "id",value = "终端编号") + private String id; + + @ApiModelProperty(name = "Name", value = "终端名称") + private String Name; + + @ApiModelProperty(name = "OrgName", value = "组织机构名称") + private String OrgName; + + @ApiModelProperty(name = "OrgId", value = "组织机构ID") + private String OrgId; + + @ApiModelProperty(name = "OperationName", value = "运维单位名称") + private String OperationName; + + @ApiModelProperty(name = "OperationId", value = "运维单位ID") + private String OperationId; + + @ApiModelProperty(name = "PowerrName", value = "变电站名称") + private String PowerrName; + + @ApiModelProperty(name = "PowerStationId", value = "所属电站ID") + private String PowerStationId; + + @ApiModelProperty(name = "TerminalState", value = "终端状态") + private String TerminalState; + + @ApiModelProperty(name = "TerminalLevel", value = "终端级别") + private String TerminalLevel; + + @ApiModelProperty(name = "DeviceModel", value = "装置型号") + private String DeviceModel; + + @ApiModelProperty(name = "Manufacture", value = "生产厂家") + private String Manufacture; + + @ApiModelProperty(name = "VerificationDate", value = "检定日期") + private String VerificationDate; + + @ApiModelProperty(name = "UseDate", value = "投用日期") + private String UseDate; + + @ApiModelProperty(name = "InputType", value = "测量信号输入形式") + private String InputType; + + @ApiModelProperty(name = "Ip", value = "IP地址") + private String Ip; + + @ApiModelProperty(name = "Port", value = "通信端口") + private String Port; + + @ApiModelProperty(name = "IsUpToGrid", value = "是否是上送国网监测点,0-否 1-是") + private Integer IsUpToGrid; + + /** + * 查询数据实体 + */ + @Data + @EqualsAndHashCode(callSuper = true) + public static class QueryParam extends BaseParam { + + private Integer Status; + } +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PowerClientParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PowerClientParam.java new file mode 100644 index 000000000..61eb8f73d --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PowerClientParam.java @@ -0,0 +1,200 @@ +package com.njcn.device.pms.pojo.param; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; +import java.time.LocalDate; + +/** + * pms-device + * + * @author cdf + * @date 2022/10/27 + */ +@Data +public class PowerClientParam { + + /** + * 用户编号 + */ + @ApiModelProperty(value = "用户编号",required = true) + @NotBlank(message = "用户编号不可为空") + private String id; + + /** + * 用户名称 + */ + @ApiModelProperty(value = "用户名称",required = true) + @NotBlank(message = "用户名称不可为空") + private String name; + + + /** + * 组织机构ID(外键) + */ + @ApiModelProperty(value = " 组织机构ID(外键)",required = true) + @NotBlank(message = "组织机构ID不可为空") + private String orgId; + + + + /** + * 运维单位ID(外键) + */ + @ApiModelProperty(value = "运维单位ID(外键)",required = true) + @NotBlank(message = "运维单位ID不可为空") + private String operationId; + + /** + * 用户分类(字典) + */ + @ApiModelProperty(value = "用户分类(字典)",required = true) + @NotBlank(message = "用户分类不可为空") + private String userType; + + /** + * 行业分类(字典) + */ + @ApiModelProperty(value = "行业分类(字典)",required = true) + @NotBlank(message = "行业分类不可为空") + private String industryType; + + /** + * 用电类别(字典) + */ + @ApiModelProperty(value = "用电类别(字典)",required = true) + @NotBlank(message = "用电类别不可为空") + private String electricityType; + + /** + * 合同容量 + */ + @ApiModelProperty(value = "合同容量",required = true) + @NotBlank(message = "合同容量不可为空") + private Float contractCapacity; + + /** + * 运行容量 + */ + @ApiModelProperty(value = "运行容量",required = true) + @NotBlank(message = "运行容量不可为空") + private Float operatingCapacity; + + /** + * 生产班次(字典) + */ + @ApiModelProperty(value = "生产班次(字典)",required = true) + @NotBlank(message = "生产班次不可为空") + private String productionShift; + + /** + * 负荷性质(字典) + */ + @ApiModelProperty(value = "负荷性质(字典)",required = true) + @NotBlank(message = "负荷性质不可为空") + private String loadNature; + + /** + * 供电电压(字典) + */ + @ApiModelProperty(value = "供电电压(字典)",required = true) + @NotBlank(message = "供电电压不可为空") + private String voltageLevel; + + /** + * 高耗能行业类别(字典) + */ + @ApiModelProperty(value = "高耗能行业类别(字典)",required = true) + @NotBlank(message = "高耗能行业类别不可为空") + private String highIndustryType; + + /** + * 送电日期 + */ + @ApiModelProperty(value = "送电日期",required = true) + @NotNull(message = "送电日期不可为空") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private LocalDate powerTransmissionDate; + + /** + * 重要性等级(字典) + */ + @ApiModelProperty(value = "重要性等级",required = true) + @NotBlank(message = "重要性等级不可为空") + private String importanceLevel; + + /** + * 用电客户状态(字典) + */ + @ApiModelProperty(value = "用电客户状态",required = true) + @NotBlank(message = "用电客户状态不可为空") + private String eccStat; + + /** + * 是否敏感用户:0-否;1:是; + */ + @ApiModelProperty(value = "是否敏感用户",required = true) + @NotNull(message = "用户编号不可为空") + private Integer ifSensitiveUser; + + /** + * 是否影响电能质量:0-否;1:是; + */ + @ApiModelProperty(value = "是否影响电能质量:0-否;1:是;",required = true) + @NotBlank(message = "是否影响电能质量不可为空") + private Integer ifPowerQuality; + + /** + * 是否重要客户:0-否;1:是; + */ + @ApiModelProperty(value = "是否重要客户:0-否;1:是;",required = true) + @NotBlank(message = "是否重要客户不可为空") + private Integer ifKeyCustomers; + + /** + * 敏感用户类别(字典) + */ + @ApiModelProperty(value = "敏感用户类别",required = true) + @NotBlank(message = "敏感用户类别不可为空") + private String sensitiveType; + + /** + * 供电变电站(外键) + */ + @ApiModelProperty(value = "供电变电站",required = true) + @NotBlank(message = "供电变电站不可为空") + private String powerStationId; + + /** + * 供电线路(外键) + */ + @ApiModelProperty(value = "供电线路",required = true) + @NotBlank(message = "供电线路不可为空") + private String lineId; + + /** + * 供电台区(外键) + */ + @ApiModelProperty(value = "供电台区",required = true) + @NotBlank(message = "供电台区不可为空") + private String platformId; + + /** + * 用户标签 + */ + @ApiModelProperty(value = "用户标签",required = true) + @NotBlank(message = "用户标签不可为空") + private String userTag; + + /** + * 是否是上送国网监测点,0-否 1-是 + */ + @ApiModelProperty(value = "是否是上送国网监测点,0-否 1-是",required = true) + @NotNull(message = "是否是上送国网监测点不可为空") + private Integer isUpToGrid; + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PowerDistributionareaParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PowerDistributionareaParam.java new file mode 100644 index 000000000..ca4db1313 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PowerDistributionareaParam.java @@ -0,0 +1,90 @@ +package com.njcn.device.pms.pojo.param; + +import com.njcn.web.pojo.param.BaseParam; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * @author hany + * @since 2022-10-26 + */ +@Data +public class PowerDistributionareaParam { + + @ApiModelProperty("id") + private String id; + + @ApiModelProperty(name = "Name", value = "台区名称") + private String Name; + + @ApiModelProperty(name = "OrgName", value = "组织机构名称") + private String OrgName; + + @ApiModelProperty(name = "OrgId", value = "组织机构ID") + private String OrgId; + + @ApiModelProperty(name = "OperationName", value = "运维单位名称") + private String OperationName; + + @ApiModelProperty(name = "OperationId", value = "运维单位ID") + private String OperationId; + + @ApiModelProperty(name = "PowerrName", value = "变电站名称") + private String PowerrName; + + @ApiModelProperty(name = "PowerStationId", value = "电站ID") + private String PowerStationId; + + @ApiModelProperty(name = "LineName", value = "监测线路名称") + private String LineName; + + @ApiModelProperty(name = "LineId", value = "所属线路ID") + private String LineId; + + @ApiModelProperty(name = "PCapacity", value = "配变容量") + private Float PCapacity; + + @ApiModelProperty(name = "Regionalism", value = "地区特征") + private String Regionalism; + + @ApiModelProperty(name = "IfRuralPowerGrid", value = "是否农网:0-否;1:是") + private Integer IfRuralPowerGrid; + + @ApiModelProperty(name = "NatureOfUse", value = "使用性质") + private String NatureOfUse; + + @ApiModelProperty(name = "PowerSupplyRadius", value = "供电半径") + private Float PowerSupplyRadius; + + @ApiModelProperty(name = "LineLength", value = "供电线路总长度") + private Float LineLength; + + @ApiModelProperty(name = "State", value = "运行状态") + private String State; + + @ApiModelProperty(name = "DistributedPhotovoltaicNum", value = "分布式光伏用户数") + private Integer DistributedPhotovoltaicNum; + + @ApiModelProperty(name = "PhotovoltaicCapacity", value = "分布式光伏总装机容量") + private Float PhotovoltaicCapacity; + + @ApiModelProperty(name = "IfBevAp", value = "是否有电动汽车接入:0-否;1:是") + private Integer IfBevAp; + + @ApiModelProperty(name = "ApLoadType", value = "接入负荷类型") + private String ApLoadType; + + @ApiModelProperty(name = "IsUpToGrid", value = "是否是上送国网监测点,0-否 1-是") + private Integer IsUpToGrid; + + /** + * 查询数据实体 + */ + @Data + @EqualsAndHashCode(callSuper = true) + public static class QueryParam extends BaseParam { + + private Integer Status; + } +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PowerGenerationUserParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PowerGenerationUserParam.java new file mode 100644 index 000000000..890742447 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PowerGenerationUserParam.java @@ -0,0 +1,143 @@ +package com.njcn.device.pms.pojo.param; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; +import java.time.LocalDate; + +/** + * pms-device + * + * @author cdf + * @date 2022/10/27 + */ +@Data +public class PowerGenerationUserParam { + + /** + * 用户编号 + */ + @ApiModelProperty(value = "用户编号",required = true) + @NotBlank(message = "用户编号不可为空") + private String id; + + /** + * 用户名称 + */ + @ApiModelProperty(value = "用户名称",required = true) + @NotBlank(message = "用户名称不可为空") + private String name; + + + + /** + * 组织机构ID(外键) + */ + @ApiModelProperty(value = "组织机构ID(外键)",required = true) + @NotBlank(message = "组织机构ID不可为空") + private String orgId; + + + /** + * 运维单位ID(外键) + */ + @ApiModelProperty(value = "运维单位ID(外键)",required = true) + @NotBlank(message = "运维单位ID不可为空") + private String operationId; + + /** + * 电源类别(字典) + */ + @ApiModelProperty(value = "电源类别(字典)",required = true) + @NotBlank(message = "电源类别不可为空") + private String powerCategory; + + /** + * 电站类型(字典) + */ + @ApiModelProperty(value = "电站类型(字典)",required = true) + @NotBlank(message = "电站类型不可为空") + private String powerStationType; + + /** + * 发电方式(字典) + */ + @ApiModelProperty(value = "发电方式(字典)",required = true) + @NotBlank(message = "发电方式不可为空") + private String powerGenerationMode; + + /** + * 并网电压等级(字典) + */ + @ApiModelProperty(value = "并网电压等级(字典)",required = true) + @NotBlank(message = "并网电压等级不可为空") + private String voltageLevel; + + /** + * 总装机容量 + */ + @ApiModelProperty(value = "总装机容量",required = true) + @NotBlank(message = "总装机容量不可为空") + private Float sourceCapacity; + + /** + * 并网日期 + */ + @ApiModelProperty(value = "并网日期",required = true) + @NotBlank(message = "并网日期不可为空") + private LocalDate connectionDate; + + /** + * 能源消纳方式(字典) + */ + @ApiModelProperty(value = "能源消纳方式(字典)",required = true) + @NotBlank(message = "能源消纳方式不可为空") + private String connectionMode; + + /** + * 客户状态(字典) + */ + @ApiModelProperty(value = "客户状态(字典)",required = true) + @NotBlank(message = "客户状态不可为空") + private String gcStat; + + /** + * 供电变电站(外键) + */ + @ApiModelProperty(value = "供电变电站(外键)",required = true) + @NotBlank(message = "供电变电站不可为空") + private String powerStationId; + + /** + * 供电线路(外键) + */ + @ApiModelProperty(value = "供电线路(外键)",required = true) + @NotBlank(message = "供电线路不可为空") + private String lineId; + + /** + * 供电台区(外键) + */ + @ApiModelProperty(value = "供电台区(外键)",required = true) + @NotBlank(message = "供电台区不可为空") + private String platformId; + + /** + * 用户标签 + */ + @ApiModelProperty(value = "用户标签",required = true) + @NotBlank(message = "用户标签不可为空") + private String userTag; + + /** + * 是否是上送国网监测点,0-否 1-是 + */ + @ApiModelProperty(value = "是否是上送国网监测点,0-否 1-是",required = true) + @NotNull(message = "是否是上送国网监测点不可为空") + private Integer isUpToGrid; + + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvDeviceParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvDeviceParam.java deleted file mode 100644 index 5149d5ff2..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvDeviceParam.java +++ /dev/null @@ -1,143 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.njcn.common.pojo.constant.PatternRegex; -import com.njcn.web.constant.ValidMessage; -import com.njcn.web.pojo.annotation.DateTimeStrValid; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; -import org.hibernate.validator.constraints.Range; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Pattern; -import java.io.Serializable; -import java.time.LocalDate; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Data -@TableName("pv_device") -public class PvDeviceParam implements Serializable { - - private static final long serialVersionUID = 1L; - - - /** - * 终端类型(电能质量监测终端、智能电表、智能融合终端),字典表 - */ - @ApiModelProperty(name = "type",value = "终端类型(电能质量监测终端、智能电表、智能融合终端),字典表",required = true) - @NotBlank(message = "终端类型不可为空") - private String type; - - @ApiModelProperty(name = "name",value = "装置名称",required = true) - @NotBlank(message = "装置名称") - private String name; - - /** - * 用于保存PMS中电能质量监测终端Id、智能融合终端Id,智能电表Id - */ - @ApiModelProperty(name = "devCode",value = "用于保存PMS中电能质量监测终端Id、智能融合终端Id,智能电表Id",required = true) - @NotBlank(message = "终端Id不能为空") - private String devCode; - - /** - * 终端Ip - */ - @ApiModelProperty(name = "ip",value = "终端Ip",required = true) - @NotBlank(message = "终端Ip不能为空") - private String ip; - - /** - * 端口 - */ - @ApiModelProperty(name = "port",value = "端口",required = true) - @NotNull(message = "端口不能为空") - private Integer port; - - /** - * 终端型号(570、580……)字典表 - */ - @ApiModelProperty(name = "devType",value = "终端型号(570、580……)字典表") - private String devType; - - /** - * 设备制造商,字典表 - */ - @ApiModelProperty(name = "manufacturer",value = "设备制造商,字典表",required = true) - @NotBlank(message = "设备制造商不能为空") - private String manufacturer; - - /** - * 装置识别码(3ds加密) - */ - @ApiModelProperty(name = "series",value = "装置识别码(3ds加密)") - private String series; - - /** - * 装置秘钥(3ds加密) - */ - @ApiModelProperty(name = "devKey",value = "装置秘钥(3ds加密)") - private String devKey; - - - /** - * 投运时间 - */ - @ApiModelProperty(name = "loadTime",value = "投运时间") - @DateTimeStrValid(message = "投运时间格式错误") - private LocalDate loadTime; - - /** - * 装置通讯状态 - */ - @ApiModelProperty(name = "devStatus",value = "装置通讯状态") - @NotNull(message = "装置通讯状态不能为空") - @Range(min = 0,max = 1) - private Integer devStatus; - - - /** - * 信号传输方式 - */ - @ApiModelProperty(name = "communicateType",value = "信号传输方式") - private String communicateType; - - /** - * 本次定检时间,默认等于投运时间 - */ - @ApiModelProperty(name = "thisTimeCheck",value = "本次定检时间,默认等于投运时间",required = true) - @NotBlank(message = "本次定检时间不能为空") - @DateTimeStrValid(message = "本次定检时间格式错误") - private String thisTimeCheck; - - /** - * 下次定检时间,默认为投运时间后推3年,假如时间小于3个月则为待检 - */ - @ApiModelProperty(name = "nextTimeCheck",value = "下次定检时间,默认为投运时间后推3年,假如时间小于3个月则为待检",required = true) - @NotBlank(message = "下次定检时间不能为空") - @DateTimeStrValid(message = "下次定检时间格式错误") - private String nextTimeCheck; - - - - @Data - @EqualsAndHashCode(callSuper = true) - public static class UpdatePvDeviceParam extends PvDeviceParam{ - /** - * id - */ - @ApiModelProperty("id") - @NotBlank(message = ValidMessage.ID_NOT_BLANK) - @Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR) - private String id; - } - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvDispatchParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvDispatchParam.java deleted file mode 100644 index 70b6b9b0e..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvDispatchParam.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.baomidou.mybatisplus.annotation.TableName; -import lombok.Getter; -import lombok.Setter; - -import java.io.Serializable; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Getter -@Setter -@TableName("pv_dispatch") -public class PvDispatchParam implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 调度表Id - */ - private String id; - - /** - * 调度名称 - */ - private String name; - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvDistributedParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvDistributedParam.java deleted file mode 100644 index e50136835..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvDistributedParam.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.common.pojo.constant.PatternRegex; -import com.njcn.web.constant.ValidMessage; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.Pattern; -import java.io.Serializable; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-06 - */ -@Data -public class PvDistributedParam implements Serializable { - - private static final long serialVersionUID = 1L; - - - /** - * 分布式光伏名称 - */ - @ApiModelProperty(name = "name",value = "分布式光伏名称",required = true) - @NotBlank(message = "分布式光伏名称不可为空") - private String name; - - /** - * 分布式光伏编号 - */ - @ApiModelProperty(name = "code",value = "分布式光伏编号",required = true) - @NotBlank(message = "分布式光伏编号不可为空") - private String code; - - /** - * 用户编号(与低压用户台账表低压用户编号字段一致) - */ - @ApiModelProperty(name = "userCode",value = "用户编号",required = true) - @NotBlank(message = "用户编号不可为空") - private String userCode; - - /** - * 终端编号 - */ - @ApiModelProperty(name = "devCode",value = "终端编号") - private String devCode; - - /** - * 并网电压等级Id,字典表 - */ - @ApiModelProperty(name = "scale",value = "并网电压等级Id,字典表") - private String scale; - - /** - * 装机容量(KVA) - */ - @ApiModelProperty(name = "machineCapacity",value = "装机容量(KVA)") - private Float machineCapacity; - - /** - * 上网方式 - */ - @ApiModelProperty(name = "inteType",value = "上网方式") - private String inteType; - - /** - * 接入相别 - */ - @ApiModelProperty(name = "phase",value = "接入相别") - private String phase; - - /** - * 储能配置容量(KVA) - */ - @ApiModelProperty(name = "energyCapacity",value = "储能配置容量(KVA)") - private Float energyCapacity; - - @ApiModelProperty(name = "smartSwitch",value = "智能开关编号") - private String smartSwitch; - - @ApiModelProperty(name = "installTime",value = "安装时间") - private String installTime; - - @ApiModelProperty(name = "runTime",value = "投运时间") - private String runTime; - - - - @Data - @EqualsAndHashCode(callSuper = true) - public static class UpdatePvDistributedParam extends PvDistributedParam{ - /** - * id - */ - @ApiModelProperty("id") - @NotBlank(message = ValidMessage.ID_NOT_BLANK) - @Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR) - private String id; - } - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvLineDetailParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvLineDetailParam.java deleted file mode 100644 index 1c2c0e8f7..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvLineDetailParam.java +++ /dev/null @@ -1,276 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.common.pojo.constant.PatternRegex; -import com.njcn.web.constant.ValidMessage; -import com.njcn.web.pojo.annotation.DateTimeStrValid; -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.io.Serializable; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Data -public class PvLineDetailParam implements Serializable { - - private static final long serialVersionUID = 1L; - - - /** - * 监测点名称 - */ - @ApiModelProperty(name = "name",value = "监测点名称",required = true) - @NotBlank(message = "监测点名称不能为空") - private String name; - - /** - * 监测点编号 - */ - @ApiModelProperty(name = "code",value = "监测点编号",required = true) - @NotBlank(message = "监测点编号不能为空") - private String code; - - /** - * 所属终端 - */ - @ApiModelProperty(name = "devId",value = "所属终端",required = true) - @NotBlank(message = "所属终端id不能为空") - @Pattern(regexp = PatternRegex.SYSTEM_ID, message = "所属终端id违规") - private String devId; - - /** - * 监测点类型(I类监测点、II类监测点、III类监测点),字典表 - */ - @ApiModelProperty(name = "type",value = "监测点类型(I类监测点、II类监测点、III类监测点),字典表",required = true) - @NotBlank(message = "监测点类型不能为空") - @Pattern(regexp = PatternRegex.SYSTEM_ID, message = "监测点类型违规") - private String type; - - /** - * 所属变电站(I类监测点) - */ - @ApiModelProperty(name = "substationId",value = "所属变电站(I类监测点)") - private String substationId; - - /** - * 所属母线名称(I类监测点) - */ - @ApiModelProperty(name = "voltageId",value = "所属母线名称(I类监测点)") - private String voltageId; - - /** - * 所属台区ID(II类监测点) - */ - @ApiModelProperty(name = "subAreaId",value = "所属台区ID(II类监测点)") - private String subAreaId; - - /** - * 用户编号 - */ - @ApiModelProperty(name = "userCode",value = "用户编号") - @NotBlank(message = "用户编号不能为空") - private String userCode; - - @ApiModelProperty(name = "userCodeType",value = "用户编号区分 0.分布式 1.低压用户") - @NotNull(message = "用户编号标识") - private Integer userCodeType; - - - /** - * 电压等级 - */ - @ApiModelProperty(name = "scale",value = "电压等级") - private String scale; - - /** - * 线路号(在同一台设备中的监测点号) - */ - @ApiModelProperty(name = "num",value = "线路号(在同一台设备中的监测点号)") - private Integer num; - - /** - * PT一次变比 - */ - @ApiModelProperty(name = "pt1",value = "PT一次变比") - private Float pt1; - - /** - * PT二次变比 - */ - @ApiModelProperty(name = "pt2",value = "PT二次变比") - private Float pt2; - - /** - * CT一次变比 - */ - @ApiModelProperty(name = "ct1",value = "CT一次变比") - private Float ct1; - - /** - * CT二次变比 - */ - @ApiModelProperty(name = "ct2",value = "CT二次变比") - private Float ct2; - - /** - * 设备容量 - */ - @ApiModelProperty(name = "devCapacity",value = "设备容量") - private Float devCapacity; - - /** - * 短路容量 - */ - @ApiModelProperty(name = "shortCapacity",value = "短路容量") - private Float shortCapacity; - - /** - * 基准容量 - */ - @ApiModelProperty(name = "standardCapacity",value = "基准容量") - private Float standardCapacity; - - /** - * 协议容量 - */ - @ApiModelProperty(name = "dealCapacity",value = "协议容量") - private Float dealCapacity; - - /** - * 接线类型字典表 - */ - @ApiModelProperty(name = "ptType",value = "接线类型字典表") - private String ptType; - - /** - * 测量间隔(1-10分钟) - */ - @ApiModelProperty(name = "timeInterval",value = "测量间隔(1-10分钟)") - private Integer timeInterval; - - /** - * 干扰源类型,字典表 - */ - @ApiModelProperty(name = "loadType",value = "干扰源类型,字典表") - private String loadType; - - /** - * 行业类型,字典表 - */ - - @ApiModelProperty(name = "businessType",value = "行业类型,字典表") - private String businessType; - - /** - * 网公司谐波监测平台标志(0-否;1-是),默认否 - */ - @ApiModelProperty(name = "monitorFlag",value = "网公司谐波监测平台标志(0-否;1-是),默认否") - private Integer monitorFlag; - - /** - * 电网标志(0-电网侧;1-非电网侧) - */ - @ApiModelProperty(name = "powerFlag",value = "电网标志(0-电网侧;1-非电网侧)") - private Integer powerFlag; - - /** - * 国网谐波监测平台监测点号 - */ - @ApiModelProperty(name = "monitorId",value = "国网谐波监测平台监测点号") - private String monitorId; - - /** - * 监测点对象名称 - */ - @ApiModelProperty(name = "objName",value = "监测点对象名称") - private String objName; - - /** - * 监测点对象大类 - */ - @ApiModelProperty(name = "smallName",value = "监测点对象大类") - private String smallName; - - /** - * 监测点对象小类 - */ - @ApiModelProperty(name = "bigName",value = "监测点对象小类") - private String bigName; - - /** - * 人为干预是否参与统计(0:不参与,1:参与)默认参与统计 - */ - @ApiModelProperty(name = "statFlag",value = "人为干预是否参与统计(0:不参与,1:参与)默认参与统计") - private Integer statFlag = 1; - - /** - * 备注 - */ - @ApiModelProperty(name = "remark",value = "备注") - private String remark; - - /** - * 电压互感器类型,字典表 - */ - @ApiModelProperty(name = "tfType",value = "电压互感器类型,字典表") - private String tfType; - - /** - * 所属变压器编号 - */ - @ApiModelProperty(name = "tfCode",value = "所属变压器编号") - private String tfCode; - - /** - * 中性点接地方式,字典表 - */ - @ApiModelProperty(name = "groundType",value = "中性点接地方式,字典表") - private String groundType; - - /** - * 投运日期 - */ - @ApiModelProperty(name = "putIn",value = "投运日期") - @DateTimeStrValid(message = "投运日期格式有误") - private String putIn; - - /** - * 接入日期 - */ - @ApiModelProperty(name = "access",value = "接入日期") - @DateTimeStrValid(message = "接入日期格式有误") - private String access; - - /** - * 是否专项供电(0:否,1:是)默认参与统计 - */ - @ApiModelProperty(name = "powerSupply",value = "是否专项供电(0:否,1:是)默认参与统计") - private Integer powerSupply; - - - - @Data - @EqualsAndHashCode(callSuper = true) - public static class UpdatePvLineDetailParam extends PvLineDetailParam{ - /** - * id - */ - @ApiModelProperty("id") - @NotBlank(message = ValidMessage.ID_NOT_BLANK) - @Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR) - private String id; - } - - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvLvUserParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvLvUserParam.java deleted file mode 100644 index 7acb323a5..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvLvUserParam.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.common.pojo.constant.PatternRegex; -import com.njcn.web.constant.ValidMessage; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.Pattern; -import java.io.Serializable; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Data -public class PvLvUserParam implements Serializable { - - private static final long serialVersionUID = 1L; - - - /** - * 低压用户编号(营销系统中查出) - */ - @ApiModelProperty(name = "userCode",value = "低压用户编号") - @NotBlank(message = "低压用户编号不为空") - private String userCode; - - /** - * 低压用户名称 - */ - @ApiModelProperty(name = "name",value = "低压用户名称") - @NotBlank(message = "低压用户名称不为空") - private String name; - - /** - * 用户协议容量(kVA) - */ - @ApiModelProperty(name = "userCapacity",value = "用户协议容量") - private Float userCapacity; - - /** - * 是否发生过投诉 - */ - @ApiModelProperty(name = "complain",value = "是否发生过投诉") - private Integer complain; - - /** - * 投诉内容 - */ - @ApiModelProperty(name = "complainPart",value = "投诉内容") - private String complainPart; - - /** - * 整改措施 - */ - @ApiModelProperty(name = "corrective",value = "整改措施") - private String corrective; - - /** - * 是否有治理装置 - */ - @ApiModelProperty(name = "devGovern",value = "是否有治理装置") - private Integer devGovern; - - /** - * 治理装置类型 - */ - @ApiModelProperty(name = "governType",value = "治理装置类型") - private String governType; - - /** - * 治理装置电压等级 - */ - @ApiModelProperty(name = "scale",value = "治理装置电压等级") - private String scale; - - /** - * 治理装置容量 - */ - @ApiModelProperty(name = "governCapacity",value = "治理装置容量") - private Float governCapacity; - - - - @Data - @EqualsAndHashCode(callSuper = true) - public static class UpdatePvLvUserParam extends PvLvUserParam{ - /** - * id - */ - @ApiModelProperty("id") - @NotBlank(message = ValidMessage.ID_NOT_BLANK) - @Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR) - private String id; - } - - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvSubAreaParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvSubAreaParam.java deleted file mode 100644 index 9d01e45cc..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvSubAreaParam.java +++ /dev/null @@ -1,145 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.common.pojo.constant.PatternRegex; -import com.njcn.web.constant.ValidMessage; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.Pattern; -import java.io.Serializable; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Data -public class PvSubAreaParam implements Serializable { - - private static final long serialVersionUID = 1L; - - - - /** - * 所属10kV线路表Id(外键) - */ - @ApiModelProperty(name = "tenVoltageId",value = "所属10kV线路表Id",required = true) - @NotBlank(message = "所属10kV线路表Id不可为空") - @Pattern(regexp = PatternRegex.SYSTEM_ID, message = "所属10kV线路表Id格式有误") - private String tenVoltageId; - - /** - * 所属单位Id(台区所属的单位和变电站所属单位可能不是一个单位) - */ - @ApiModelProperty(name = "unitId",value = "所属单位Id",required = true) - @NotBlank(message = "所属单位Id不可为空") - private String unitId; - - /** - * 台区名称 - */ - @ApiModelProperty(name = "name",value = "台区名称",required = true) - @NotBlank(message = "台区名称不可为空") - private String name; - - /** - * 台区编号 - */ - @ApiModelProperty(name = "code",value = "台区编号",required = true) - @NotBlank(message = "台区编号不可为空") - private String code; - - /** - * 电缆长度字段 - */ - @ApiModelProperty(name = "cableLength",value = "电缆长度字段") - private Double cableLength; - - /** - * 电阻 - */ - @ApiModelProperty(name = "resistance",value = "电阻") - private Double resistance; - - /** - * 电抗 - */ - @ApiModelProperty(name = "reactance",value = "电抗") - private Double reactance; - - /** - * 变压器型号 - */ - @ApiModelProperty(name = "type",value = "变压器型号") - private String type; - - /** - * 变压器容量 - */ - @ApiModelProperty(name = "capacity",value = "变压器容量") - private Float capacity; - - /** - * 变压器调压方式 - */ - @ApiModelProperty(name = "regulationMode",value = "变压器调压方式") - private Integer regulationMode; - - /** - * 台区无功补偿容量(KVA) - */ - @ApiModelProperty(name = "reactCapacity",value = "台区无功补偿容量(KVA)") - private Float reactCapacity; - - /** - * 是否安装智能融合终端 - */ - @ApiModelProperty(name = "devFusion",value = "是否安装智能融合终端") - private Integer devFusion; - - /** - * 是否有分布式光伏接入 - */ - @ApiModelProperty(name = "pv",value = "是否有分布式光伏接入") - private Integer pv; - - /** - * 分布式光伏总装机容量(KVA) - */ - @ApiModelProperty(name = "totalC",value = "分布式光伏总装机容量(KVA)") - private Float totalC; - - /** - * 分布式光伏用户数量 - */ - @ApiModelProperty(name = "pvUsers",value = "分布式光伏用户数量") - private Integer pvUsers; - - /** - * 其他分布式电源装置容量 - */ - @ApiModelProperty(name = "powerPower",value = "其他分布式电源装置容量") - private Float powerPower; - - - - - @Data - @EqualsAndHashCode(callSuper = true) - public static class UpdatePvSubAreaParam extends PvSubAreaParam{ - /** - * id - */ - @ApiModelProperty("id") - @NotBlank(message = ValidMessage.ID_NOT_BLANK) - @Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR) - private String id; - } - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvSubstationParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvSubstationParam.java deleted file mode 100644 index 6d6cfee88..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvSubstationParam.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.common.pojo.constant.PatternRegex; -import com.njcn.web.constant.ValidMessage; -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.io.Serializable; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Data -public class PvSubstationParam implements Serializable { - - private static final long serialVersionUID = 1L; - - - - /** - * 所属单位Id - */ - @ApiModelProperty(name = "unitId",value = "所属单位Id",required = true) - @NotBlank(message = "所属单位Id不能为空") - private String unitId; - - /** - * 变电站名称 - */ - @ApiModelProperty(name = "name",value = "变电站名称",required = true) - @NotBlank(message = "变电站名称不能为空") - private String name; - - @ApiModelProperty(name = "subCode",value = "变电站编号",required = true) - @NotBlank(message = "变电站编号不能为空") - private String subCode; - - /** - * 电压等级Id,字典表 - */ - @ApiModelProperty(name = "scale",value = "电压等级Id",required = true) - @NotBlank(message = "电压等级不能为空") - private String scale; - - /** - * 变电站总容量(MVA)(手动填写) - */ - @ApiModelProperty(name = "totalCapacity",value = "变电站总容量",required = true) - @NotNull(message = "变电站总容量不能为空") - private Double totalCapacity; - - /** - * 运维班组Code - */ - @ApiModelProperty(name = "teamCode",value = "运维班组Code",required = true) - @NotBlank(message = "运维班组Code不能为空") - private String teamCode; - - - @Data - @EqualsAndHashCode(callSuper = true) - public static class UpdatePvSubstationParam extends PvSubstationParam{ - /** - * id - */ - @ApiModelProperty("id") - @NotBlank(message = ValidMessage.ID_NOT_BLANK) - @Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR) - private String id; - } - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvTenVoltageParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvTenVoltageParam.java deleted file mode 100644 index 2b7d592c4..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvTenVoltageParam.java +++ /dev/null @@ -1,179 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.common.pojo.constant.PatternRegex; -import com.njcn.web.constant.ValidMessage; -import com.njcn.web.pojo.annotation.DateTimeStrValid; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.Pattern; -import java.io.Serializable; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Data -public class PvTenVoltageParam implements Serializable { - - private static final long serialVersionUID = 1L; - - - - /** - * 调度表Id(外键) - */ - @ApiModelProperty(name = "dispatchId",value = "调度表Id",required = true) - @NotBlank(message = "调度表Id不能为空") - @Pattern(regexp = PatternRegex.SYSTEM_ID, message = "id格式违规") - private String dispatchId; - - - /** - * 线路名称 - */ - @ApiModelProperty(name = "name",value = "线路名称",required = true) - @NotBlank(message = "线路名称不能为空") - private String name; - - /** - * 线路编号 - */ - @ApiModelProperty(name = "code",value = "线路编号",required = true) - @NotBlank(message = "线路编号不能为空") - private String code; - - /** - * 跨区域类型 - */ - @ApiModelProperty(name = "crType",value = "跨区域类型") - private String crType; - - /** - * 电压等级Id,字典表 - */ - @ApiModelProperty(name = "scale",value = "电压等级Id,字典表") - private String scale; - - /** - * 设计电压等级Id,字典表 - */ - @ApiModelProperty(name = "designScale",value = "设计电压等级Id,字典表") - private String designScale; - - /** - * 设备状态 - */ - @ApiModelProperty(name = "devStatus",value = "设备状态") - private Integer devStatus; - - /** - * 是否接地极(0:false;1:true) - */ - @ApiModelProperty(name = "earthing",value = "是否接地极(0:false;1:true)") - private Boolean earthing; - - /** - * 线路性质 - */ - @ApiModelProperty(name = "quality",value = "线路性质") - private String quality; - - /** - * 所属主线 - */ - @ApiModelProperty(name = "masterStroke",value = "所属主线") - private String masterStroke; - - /** - * 专业分类 - */ - @ApiModelProperty(name = "major",value = "专业分类") - private String major; - - /** - * 设备主人 - */ - @ApiModelProperty(name = "master",value = "设备主人") - private String master; - - /** - * 起点电站 - */ - @ApiModelProperty(name = "startStation",value = "起点电站") - private String startStation; - - /** - * 终点电站 - */ - @ApiModelProperty(name = "endStation",value = "终点电站") - private String endStation; - - /** - * 运行负载限额 - */ - @ApiModelProperty(name = "runLoad",value = "运行负载限额") - private Float runLoad; - - /** - * 额定输出功率 - */ - @ApiModelProperty(name = "outputPower",value = "额定输出功率") - private Float outputPower; - - /** - * 最大允许电流 - */ - @ApiModelProperty(name = "maxCurrent",value = "最大允许电流") - private Float maxCurrent; - - /** - * 投运日期 - */ - @ApiModelProperty(name = "putIntoDate",value = "投运日期") - @DateTimeStrValid(message = "投运时间格式错误",format = "yyyy-MM-dd HH:mm:ss") - private String putIntoDate; - - - /** - * 是否有分布式光伏接入 - */ - @ApiModelProperty(name = "pvStatus",value = "是否有分布式光伏接入 0.否 1.是") - private Integer pvStatus; - - - /** - * 分布式光伏接入容量 - */ - @ApiModelProperty(name = "pvCapacity",value = "分布式光伏接入容量") - private Integer pvCapacity; - - - /** - * 分布式光伏接入数量 - */ - @ApiModelProperty(name = "pvNum",value = "分布式光伏接入数量") - private Integer pvNum; - - - - @Data - @EqualsAndHashCode(callSuper = true) - public static class UpdatePvTenVoltageParam extends PvTenVoltageParam{ - /** - * id - */ - @ApiModelProperty("id") - @NotBlank(message = ValidMessage.ID_NOT_BLANK) - @Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR) - private String id; - } - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvTerminalBaseQuery.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvTerminalBaseQuery.java deleted file mode 100644 index bff311a16..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvTerminalBaseQuery.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.web.pojo.param.BaseParam; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.NotNull; - -/** - * pqs - * - * @author cdf - * @date 2022/7/12 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class PvTerminalBaseQuery extends BaseParam { - - @ApiModelProperty(name = "id",value = "单位变电站台区索引",required = true) - @NotEmpty(message = "单位变电站台区索引不能为空") - private String id; - - @ApiModelProperty(name = "level",value = "0.单位 1.变电站 2.台区",required = true) - @NotNull(message = "树层级不可为空") - private Integer level; - - @ApiModelProperty(name = "type",value = "字典类型 I II III类监测点类型id") - private String type; - - @ApiModelProperty(name = "lineStatus",value = "监测点状态") - private Integer lineStatus; - - @ApiModelProperty(name = "runTime",value = "投运时间") - private Integer runTime; -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvUnitParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvUnitParam.java deleted file mode 100644 index be7da54b8..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvUnitParam.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.common.pojo.constant.PatternRegex; -import com.njcn.web.constant.ValidMessage; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.Pattern; -import java.io.Serializable; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Data -public class PvUnitParam implements Serializable { - - private static final long serialVersionUID = 1L; - - - - /** - * 父节点(0为根节点) - */ - @ApiModelProperty(name = "pid",value = "父节点(0为根节点)") - @NotBlank(message = "父节点id不能为空") - private String pid; - - /** - * 单位名称 - */ - @ApiModelProperty(name = "name",value = "单位名称") - @NotBlank(message = "单位名称不能为空") - private String name; - - /** - * 单位编码 - */ - @ApiModelProperty(name = "code",value = "单位编码") - @NotBlank(message = "单位编码不能为空") - private String code; - - - @Data - @EqualsAndHashCode(callSuper = true) - public static class UpdatePvUnitParam extends PvUnitParam{ - /** - * id - */ - @ApiModelProperty("id") - @NotBlank(message = ValidMessage.ID_NOT_BLANK) - @Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR) - private String id; - } - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvVoltageParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvVoltageParam.java deleted file mode 100644 index 83149e73c..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PvVoltageParam.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.common.pojo.constant.PatternRegex; -import com.njcn.web.constant.ValidMessage; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; -import org.hibernate.validator.constraints.Range; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Pattern; -import java.io.Serializable; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Data -public class PvVoltageParam implements Serializable { - - private static final long serialVersionUID = 1L; - - - /** - * 母线名称 - */ - @ApiModelProperty(value = "母线名称",required = true) - @NotBlank(message = "母线名称不可为空") - private String name; - - /** - * 母线号(在同一台设备中的电压通道号) - */ - @ApiModelProperty(value = "母线号(在同一台设备中的电压通道号)",required = true) - @NotNull(message = "母线号不可为空") - @Range(min = 1,max = 6,message = "选择1-6路母线号线路") - private Integer num; - - /** - * 电压等级Id,字典表 - */ - @ApiModelProperty(value = "电压等级Id,字典表",required = true) - @NotBlank(message = "电压等级不可为空") - private String scale; - - - - @Data - @EqualsAndHashCode(callSuper = true) - public static class UpdatePvVoltageParam extends PvVoltageParam{ - /** - * id - */ - @ApiModelProperty("id") - @NotBlank(message = ValidMessage.ID_NOT_BLANK) - @Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR) - private String id; - } - - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PwPmsMonitorParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PwPmsMonitorParam.java new file mode 100644 index 000000000..4450cf1df --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/PwPmsMonitorParam.java @@ -0,0 +1,36 @@ +package com.njcn.device.pms.pojo.param; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotBlank; +import java.io.Serializable; +import java.util.List; + +/** + * @author yzh + * @date 2022/10/27 + */ + +@Data +public class PwPmsMonitorParam { + + @ApiModelProperty(name = "orgIds", value = "部门id",required = true) + @NotBlank(message = "部门索引不可为空") + private String orgId; + + @ApiModelProperty(name = "monitorName",value = "监测点名称") + private String monitorName; + + @ApiModelProperty(name = "voltageLevel", value = "电压等级") + private List voltageLevels; + + @ApiModelProperty(name = "monitorSort",value = "监测点类别(字典)") + private List monitorSort; + + @ApiModelProperty(name = "monitorState",value = "监测点状态") + private List monitorState; + + @ApiModelProperty(name = "ifPowerUser",value = "是否发电用户:0-否;1-是") + private String ifPowerUser; +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/RMpMonitorAlarmCountMParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/RMpMonitorAlarmCountMParam.java new file mode 100644 index 000000000..abb98fd91 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/RMpMonitorAlarmCountMParam.java @@ -0,0 +1,26 @@ +package com.njcn.device.pms.pojo.param; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * @Title RMpMonitorAlarmCountMParam + * @Package com.njcn.device.pms.pojo.param + * @Author jianghaifei + * @Date 2022-10-13 08:58 + * @Version V1.0 + */ +@Data +public class RMpMonitorAlarmCountMParam extends StatisticsBizBaseParam { + + @ApiModelProperty(name = "voltage_Level", value = "电压等级id") + private String voltageLevel; //电压等级 + + @ApiModelProperty(name = "monitorObjectType", value = "监测点对象类型id") + private String monitorObjectType; + + @ApiModelProperty(name = "measurementPointName", value = "监测点名称") + private String measurementPointName; + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/RStatAreaAlarmCountMParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/RStatAreaAlarmCountMParam.java new file mode 100644 index 000000000..1938bffb8 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/RStatAreaAlarmCountMParam.java @@ -0,0 +1,15 @@ +package com.njcn.device.pms.pojo.param; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import lombok.Data; + +/** + * @Title RStatAreaAlarmCountMParam + * @Package com.njcn.device.pms.pojo.param + * @Author jianghaifei + * @Date 2022-10-10 15:17 + * @Version V1.0 + */ +@Data +public class RStatAreaAlarmCountMParam extends StatisticsBizBaseParam { +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/RStatZwAlarmCountWParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/RStatZwAlarmCountWParam.java new file mode 100644 index 000000000..9ad46c990 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/RStatZwAlarmCountWParam.java @@ -0,0 +1,23 @@ +package com.njcn.device.pms.pojo.param; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.web.pojo.annotation.DateTimeStrValid; +import com.njcn.web.pojo.param.BaseParam; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; +import java.io.Serializable; +import java.util.Date; + +/** + * 告警统计(周)查询参数实体 + * @TableName r_stat_zw_alarm_count_w + */ +@Data +public class RStatZwAlarmCountWParam extends StatisticsBizBaseParam { + +} \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/StatationStatParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/StatationStatParam.java new file mode 100644 index 000000000..d4eec4cb2 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/StatationStatParam.java @@ -0,0 +1,51 @@ +package com.njcn.device.pms.pojo.param; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; + +/** + * pms-device + * + * @author cdf + * @date 2022/10/26 + */ +@Data +public class StatationStatParam { + + /** + * 电站编号 + */ + @ApiModelProperty(value = "电站编号",required = true) + @NotBlank(message = "电站编号不可为空") + private String powerId; + + /** + * 电站编号 + */ + @ApiModelProperty(value = "电站名称",required = true) + @NotBlank(message = "电站名称不可为空") + private String powerName; + + + @ApiModelProperty(value = "单位组织id",required = true) + @NotBlank(message = "单位组织id不可为空") + private String orgId; + + /** + * 应设点数量 + */ + @ApiModelProperty(value = "应设点数量",required = true) + @NotNull(message = "应设点数量不可为空") + private Integer shouldBeNum; + + /** + * 电压等级(字典) + */ + @ApiModelProperty(value = "电压等级",required = true) + @NotBlank(message = "电压等级不可为空") + private String voltageLevel; + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/SubAreaQueryParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/SubAreaQueryParam.java deleted file mode 100644 index c0660c536..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/SubAreaQueryParam.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.web.pojo.param.BaseParam; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.util.List; - -/** - * pqs - * - * @author cdf - * @date 2022/7/6 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class SubAreaQueryParam extends BaseParam { - - @ApiModelProperty("所属10kV线路id") - private List tenVoltageId; - - @ApiModelProperty("所属单位id") - private List unitId; - - @ApiModelProperty("台区名称") - private String name; - - @ApiModelProperty("是否接入") - private Boolean isJoin; - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/SubstationQueryParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/SubstationQueryParam.java deleted file mode 100644 index 5933d9ecd..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/SubstationQueryParam.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.web.pojo.param.BaseParam; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.util.List; - -/** - * pqs - * - * @author cdf - * @date 2022/7/5 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class SubstationQueryParam extends BaseParam { - - @ApiModelProperty(value = "单位id",name = "unitId") - private List unitId; - - @ApiModelProperty(value = "电压等级",name = "scale") - private List scale; -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/TenVoltageQueryParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/TenVoltageQueryParam.java deleted file mode 100644 index 683023820..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/TenVoltageQueryParam.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.web.pojo.param.BaseParam; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.util.List; - -/** - * pqs - * - * @author cdf - * @date 2022/7/5 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class TenVoltageQueryParam extends BaseParam { - - @ApiModelProperty(name = "scale",value = "电压等级") - private List scale; - - @ApiModelProperty(name = "designScale",value = "电压等级") - private List designScale; - - @ApiModelProperty(name = "pvStatus",value = "是否有光伏接入") - private Integer pvStatus; -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/TractionStationParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/TractionStationParam.java new file mode 100644 index 000000000..b2db6bd16 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/TractionStationParam.java @@ -0,0 +1,74 @@ +package com.njcn.device.pms.pojo.param; + +import com.njcn.web.pojo.param.BaseParam; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +@Data +public class TractionStationParam { + + @ApiModelProperty(name = "id",value = "牵引站编号") + private String id; + + @ApiModelProperty(name = "Name", value = "牵引站名称") + private String Name; + + @ApiModelProperty(name = "OrgName", value = "组织机构名称") + private String OrgName; + + @ApiModelProperty(name = "OrgId", value = "组织机构ID") + private String OrgId; + + @ApiModelProperty(name = "OperationName", value = "运维单位名称") + private String OperationName; + + @ApiModelProperty(name = "OperationId", value = "运维单位ID") + private String OperationId; + + @ApiModelProperty(name = "VoltageLevel", value = "供电电压等级") + private String VoltageLevel; + + @ApiModelProperty(name = "RailwayLineId", value = "铁路线路编号") + private String RailwayLineId; + + @ApiModelProperty(name = "RailwayLineName", value = "铁路线路名称") + private String RailwayLineName; + + @ApiModelProperty(name = "ConnetGroupWay", value = "牵引站变压器接线方式") + private String ConnetGroupWay; + + @ApiModelProperty(name = "RatedCapacity", value = "牵引站变电容量") + private Float RatedCapacity; + + @ApiModelProperty(name = "PowerId", value = "供电变电站编号") + private String PowerId; + + @ApiModelProperty(name = "PowerName", value = "供电变电站名称") + private String PowerName; + + @ApiModelProperty(name = "PowerVoltageLevel", value = "供电变电站电压等级") + private String PowerVoltageLevel; + + @ApiModelProperty(name = "IfSpecial", value = "是否专线供电:0-否;1-是;") + private Integer IfSpecial; + + @ApiModelProperty(name = "CreatedDate", value = "创建日期") + private String CreatedDate; + + @ApiModelProperty(name = "UserTag", value = "用户标签") + private String UserTag; + + @ApiModelProperty(name = "IsUpToGrid", value = "是否是上送国网监测点,0-否 1-是") + private Integer IsUpToGrid; + + /** + * 查询数据实体 + */ + @Data + @EqualsAndHashCode(callSuper = true) + public static class QueryParam extends BaseParam { + + private Integer Status; + } +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/UniversalFrontEndParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/UniversalFrontEndParam.java new file mode 100644 index 000000000..381d8cc89 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/UniversalFrontEndParam.java @@ -0,0 +1,58 @@ +package com.njcn.device.pms.pojo.param; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.hibernate.validator.constraints.Range; + +import javax.validation.constraints.NotNull; +import java.io.Serializable; +import java.util.List; + +/** + * 拓展前端参数 + * + * @author yzh + * @date 2022/10/8 + */ + +@Data +@EqualsAndHashCode(callSuper = true) +public class UniversalFrontEndParam extends StatisticsBizBaseParam implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 电压等级 + */ + @ApiModelProperty(name = "voltageLevel", value = "电压等级", required = true) + private List voltageLevel; + + /** + * 监测点名称 + */ + @ApiModelProperty(name = "measurementPointId",value = "监测点名称") + private String measurementPointId; + + /** + * 暂态指标类型 + */ + @ApiModelProperty(name = "typeOfTransientIndicators",value = "暂态指标类型") + private String typeOfTransientIndicators; + + /** + * 监测点类别 + */ + @ApiModelProperty(name = "measurementPointCategory",value = "监测点类别") + private String measurementPointCategory; + + /** + * 变电站名称 + */ + @ApiModelProperty(name = "subName",value = "变电站名称") + private String subName; + + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/VoltageQueryParam.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/VoltageQueryParam.java deleted file mode 100644 index e89491200..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/param/VoltageQueryParam.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.njcn.device.pms.pojo.param; - -import com.njcn.web.pojo.param.BaseParam; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - * pqs - * - * @author cdf - * @date 2022/7/6 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class VoltageQueryParam extends BaseParam { - - @ApiModelProperty(value = "scale",name = "母线名称",required = true) - private String name; - - @ApiModelProperty(value = "scale",name = "电压等级") - private String scale; -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/DistributionMonitor.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/DistributionMonitor.java new file mode 100644 index 000000000..187c122b1 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/DistributionMonitor.java @@ -0,0 +1,65 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.io.Serializable; +import java.time.LocalDateTime; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * 配网监测点 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("pms_distribution_monitor") +public class DistributionMonitor extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** + * 监测点类别(字典) + */ + private String monitorSort; + + /** + * 监测点ID + */ + private String monitorId; + + /** + * 电压等级(字典) + */ + private String voltageLevel; + + /** + * 是否发电用户:0-否;1-是; + */ + private Boolean ifPowerUser; + + /** + * 监测点状态(字典) + */ + private String monitorState; + + /** + * 创建日期 + */ + private LocalDateTime createdDate; + + /** + * 数据状态:0-删除;1-正常; + */ + private Boolean status; + + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/Generatrix.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/Generatrix.java new file mode 100644 index 000000000..49ae2a8f6 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/Generatrix.java @@ -0,0 +1,33 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import jdk.nashorn.internal.ir.IdentNode; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * pms-device + * 母线 + * @author cdf + * @date 2022/10/26 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("pms_generatrix") +public class Generatrix extends BaseEntity { + + private static final long serialVersionUID = 1L; + + private String generatrixId; + + private String generatrixName; + + private String statationId; + + private String scale; + + private Integer status; + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/GeneratrixWire.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/GeneratrixWire.java new file mode 100644 index 000000000..c1c0861d1 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/GeneratrixWire.java @@ -0,0 +1,27 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * pms-device + * 线路 + * @author cdf + * @date 2022/10/26 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("pms_generatrix_wire") +public class GeneratrixWire extends BaseEntity { + private static final long serialVersionUID = 1L; + + private String wireId; + + private String wireName; + + private String generatrixId; + + private Integer status; +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/HarmonicGeneralManagement.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/HarmonicGeneralManagement.java new file mode 100644 index 000000000..511cf31c4 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/HarmonicGeneralManagement.java @@ -0,0 +1,104 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.io.Serializable; +import java.time.LocalDateTime; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("pms_harmonic_general_management") +public class HarmonicGeneralManagement extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** + * 普测计划编号 + */ + private String id; + + /** + * 组织机构名称 + */ + private String orgName; + + /** + * 组织机构ID(外键) + */ + private String orgId; + + /** + * 计划名称 + */ + private String plannedName; + + /** + * 计划生成时间 + */ + private LocalDateTime plannedGenerationTime; + + /** + * 计划开始时间 + */ + private LocalDateTime plannedStartTime; + + /** + * 计划结束时间 + */ + private LocalDateTime plannedEndTime; + + /** + * 实际完成时间 + */ + private LocalDateTime actualFinishTime; + + /** + * 计划负责人(外键) + */ + private String plannedUser; + + /** + * 计划状态 + */ + private String plannedState; + + /** + * 数据状态:0-删除;1-正常; + */ + private Boolean status; + + /** + * 创建用户 + */ + private String createBy; + + /** + * 创建时间 + */ + private LocalDateTime createTime; + + /** + * 更新用户 + */ + private String updateBy; + + /** + * 更新时间 + */ + private LocalDateTime updateTime; + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/HarmonicGeneralManagementData.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/HarmonicGeneralManagementData.java new file mode 100644 index 000000000..804166464 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/HarmonicGeneralManagementData.java @@ -0,0 +1,876 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.io.Serializable; +import java.time.LocalDate; +import java.time.LocalDateTime; + +import lombok.Data; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@TableName("pms_harmonic_general_management_data") +public class HarmonicGeneralManagementData { + + private static final long serialVersionUID = 1L; + + private String plannedId; + + private String powerStationId; + + private String powerStationName; + + private String orgId; + + private String devopsId; + + private String powerrId; + + private String monitorMxId; + + private String intervalName; + + private LocalDateTime generalStartTime; + + private LocalDateTime generalEndTime; + + private LocalDate monitorDataDate; + + private LocalDate monitorDataUploadDate; + + private String monitorFunctionary; + + private Float frequencyMax; + + private Float frequencyMin; + + private Float frequencyAvg; + + private Float frequency95; + + private Float frequencyDeviationMax; + + private Float frequencyDeviationMin; + + private Float frequencyDeviationAvg; + + private Float frequencyDeviation95; + + private Float frequencyDeviationOverrunDuration; + + private Float phaseVoltageEffectiveAMax; + + private Float phaseVoltageEffectiveAMin; + + private Float phaseVoltageEffectiveAAvg; + + private Float phaseVoltageEffectiveA95; + + private Float phaseVoltageEffectiveBMax; + + private Float phaseVoltageEffectiveBMin; + + private Float phaseVoltageEffectiveBAvg; + + private Float phaseVoltageEffectiveB95; + + private Float phaseVoltageEffectiveCMax; + + private Float phaseVoltageEffectiveCMin; + + private Float phaseVoltageEffectiveCAvg; + + private Float phaseVoltageEffectiveC95; + + private Float lineVoltageEffectiveAbMax; + + private Float lineVoltageEffectiveAbMin; + + private Float lineVoltageEffectiveAbAvg; + + private Float lineVoltageEffectiveAb95; + + private Float lineVoltageEffectiveBcMax; + + private Float lineVoltageEffectiveBcMin; + + private Float lineVoltageEffectiveBcAvg; + + private Float lineVoltageEffectiveBc95; + + private Float lineVoltageEffectiveAcMax; + + private Float lineVoltageEffectiveAcMin; + + private Float lineVoltageEffectiveAcAvg; + + private Float lineVoltageEffectiveAc95; + + private Float vDeUpAMax; + + private Float vDeUpAMin; + + private Float vDeUpAAvg; + + private Float vDeUpA95; + + private Float vDeUpBMax; + + private Float vDeUpBMin; + + private Float vDeUpBAvg; + + private Float vDeUpB95; + + private Float vDeUpCMax; + + private Float vDeUpCMin; + + private Float vDeUpCAvg; + + private Float vDeUpC95; + + private Float vDeLowAMax; + + private Float vDeLowAMin; + + private Float vDeLowAAvg; + + private Float vDeLowA95; + + private Float vDeLowBMax; + + private Float vDeLowBMin; + + private Float vDeLowBAvg; + + private Float vDeLowB95; + + private Float vDeLowCMax; + + private Float vDeLowCMin; + + private Float vDeLowCAvg; + + private Float vDeLowC95; + + private Float vDeOverrunDuration; + + private Float currentEffectiveAMax; + + private Float currentEffectiveAMin; + + private Float currentEffectiveAAvg; + + private Float currentEffectiveA95; + + private Float currentEffectiveBMax; + + private Float currentEffectiveBMin; + + private Float currentEffectiveBAvg; + + private Float currentEffectiveB95; + + private Float currentEffectiveCMax; + + private Float currentEffectiveCMin; + + private Float currentEffectiveCAvg; + + private Float currentEffectiveC95; + + private Float spActivePowerAMax; + + private Float spActivePowerAMin; + + private Float spActivePowerAAvg; + + private Float spActivePowerA95; + + private Float spActivePowerBMax; + + private Float spActivePowerBMin; + + private Float spActivePowerBAvg; + + private Float spActivePowerB95; + + private Float spActivePowerCMax; + + private Float spActivePowerCMin; + + private Float spActivePowerCAvg; + + private Float spActivePowerC95; + + private Float spReactivePowerAMax; + + private Float spReactivePowerAMin; + + private Float spReactivePowerAAvg; + + private Float spReactivePowerA95; + + private Float spReactivePowerBMax; + + private Float spReactivePowerBMin; + + private Float spReactivePowerBAvg; + + private Float spReactivePowerB95; + + private Float spReactivePowerCMax; + + private Float spReactivePowerCMin; + + private Float spReactivePowerCAvg; + + private Float spReactivePowerC95; + + private Float spApparentPowerAMax; + + private Float spApparentPowerAMin; + + private Float spApparentPowerAAvg; + + private Float spApparentPowerA95; + + private Float spApparentPowerBMax; + + private Float spApparentPowerBMin; + + private Float spApparentPowerBAvg; + + private Float spApparentPowerB95; + + private Float spApparentPowerCMax; + + private Float spApparentPowerCMin; + + private Float spApparentPowerCAvg; + + private Float spApparentPowerC95; + + private Float spPowerFactorAMax; + + private Float spPowerFactorAMin; + + private Float spPowerFactorAAvg; + + private Float spPowerFactorA95; + + private Float spPowerFactorBMax; + + private Float spPowerFactorBMin; + + private Float spPowerFactorBAvg; + + private Float spPowerFactorB95; + + private Float spPowerFactorCMax; + + private Float spPowerFactorCMin; + + private Float spPowerFactorCAvg; + + private Float spPowerFactorC95; + + private Float spFundamentalPowerFactorAMax; + + private Float spFundamentalPowerFactorAMin; + + private Float spFundamentalPowerFactorAAvg; + + private Float spFundamentalPowerFactorA95; + + private Float spFundamentalPowerFactorBMax; + + private Float spFundamentalPowerFactorBMin; + + private Float spFundamentalPowerFactorBAvg; + + private Float spFundamentalPowerFactorB95; + + private Float spFundamentalPowerFactorCMax; + + private Float spFundamentalPowerFactorCMin; + + private Float spFundamentalPowerFactorCAvg; + + private Float spFundamentalPowerFactorC95; + + private Float totalActivePowerMax; + + private Float totalActivePowerMin; + + private Float totalActivePowerAvg; + + private Float totalActivePower95; + + private Float totalReactivePowerMax; + + private Float totalReactivePowerMin; + + private Float totalReactivePowerAvg; + + private Float totalReactivePower95; + + private Float totalApparentPowerMax; + + private Float totalApparentPowerMin; + + private Float totalApparentPowerAvg; + + private Float totalApparentPower95; + + private Float tpPowerFactorMax; + + private Float tpPowerFactorMin; + + private Float tpPowerFactorAvg; + + private Float tpPowerFactor95; + + private Float fundamentalPowerFactorMax; + + private Float fundamentalPowerFactorMin; + + private Float fundamentalPowerFactorAvg; + + private Float fundamentalPowerFactor95; + + private Float voltageHarmonicWaveAMax; + + private Float voltageHarmonicWaveAMin; + + private Float voltageHarmonicWaveAAvg; + + private Float voltageHarmonicWaveA95; + + private Float voltageHarmonicWaveBMax; + + private Float voltageHarmonicWaveBMin; + + private Float voltageHarmonicWaveBAvg; + + private Float voltageHarmonicWaveB95; + + private Float voltageHarmonicWaveCMax; + + private Float voltageHarmonicWaveCMin; + + private Float voltageHarmonicWaveCAvg; + + private Float voltageHarmonicWaveC95; + + private Float fundamentalVoltageAMax; + + private Float fundamentalVoltageAMin; + + private Float fundamentalVoltageAAvg; + + private Float fundamentalVoltageA95; + + private Float fundamentalVoltageBMax; + + private Float fundamentalVoltageBMin; + + private Float fundamentalVoltageBAvg; + + private Float fundamentalVoltageB95; + + private Float fundamentalVoltageCMax; + + private Float fundamentalVoltageCMin; + + private Float fundamentalVoltageCAvg; + + private Float fundamentalVoltageC95; + + private Float harmonicVoltageContent2_50AMax; + + private Float harmonicVoltageContent2_50AMin; + + private Float harmonicVoltageContent2_50AAvg; + + private Float harmonicVoltageContent2_50A95; + + private Float harmonicVoltageContent2_50BMax; + + private Float harmonicVoltageContent2_50BMin; + + private Float harmonicVoltageContent2_50BAvg; + + private Float harmonicVoltageContent2_50B95; + + private Float harmonicVoltageContent2_50CMax; + + private Float harmonicVoltageContent2_50CMin; + + private Float harmonicVoltageContent2_50CAvg; + + private Float harmonicVoltageContent2_50C95; + + private Float centreHarmonicVoltageContent1_50AMax; + + private Float centreHarmonicVoltageContent1_50AMin; + + private Float centreHarmonicVoltageContent1_50AAvg; + + private Float centreHarmonicVoltageContent1_50A95; + + private Float centreHarmonicVoltageContent1_50BMax; + + private Float centreHarmonicVoltageContent1_50BMin; + + private Float centreHarmonicVoltageContent1_50BAvg; + + private Float centreHarmonicVoltageContent1_50B95; + + private Float centreHarmonicVoltageContent1_50CMax; + + private Float centreHarmonicVoltageContent1_50CMin; + + private Float centreHarmonicVoltageContent1_50CAvg; + + private Float centreHarmonicVoltageContent1_50C95; + + private Float fundamentalCurrentAMax; + + private Float fundamentalCurrentAMin; + + private Float fundamentalCurrentAAvg; + + private Float fundamentalCurrentA95; + + private Float fundamentalCurrentBMax; + + private Float fundamentalCurrentBMin; + + private Float fundamentalCurrentBAvg; + + private Float fundamentalCurrentB95; + + private Float fundamentalCurrentCMax; + + private Float fundamentalCurrentCMin; + + private Float fundamentalCurrentCAvg; + + private Float fundamentalCurrentC95; + + private Float harmonicCurrentEffective2_50AMax; + + private Float harmonicCurrentEffective2_50AMin; + + private Float harmonicCurrentEffective2_50AAvg; + + private Float harmonicCurrentEffective2_50A95; + + private Float harmonicCurrentEffective2_50BMax; + + private Float harmonicCurrentEffective2_50BMin; + + private Float harmonicCurrentEffective2_50BAvg; + + private Float harmonicCurrentEffective2_50B95; + + private Float harmonicCurrentEffective2_50CMax; + + private Float harmonicCurrentEffective2_50CMin; + + private Float harmonicCurrentEffective2_50CAvg; + + private Float harmonicCurrentEffective2_50C95; + + private Float simpleHarmonicCurrentEffective2_50AMax; + + private Float simpleHarmonicCurrentEffective2_50AMin; + + private Float simpleHarmonicCurrentEffective2_50AAvg; + + private Float simpleHarmonicCurrentEffective2_50A95; + + private Float simpleHarmonicCurrentEffective2_50BMax; + + private Float simpleHarmonicCurrentEffective2_50BMin; + + private Float simpleHarmonicCurrentEffective2_50BAvg; + + private Float simpleHarmonicCurrentEffective2_50B95; + + private Float simpleHarmonicCurrentEffective2_50CMax; + + private Float simpleHarmonicCurrentEffective2_50CMin; + + private Float simpleHarmonicCurrentEffective2_50CAvg; + + private Float simpleHarmonicCurrentEffective2_50C95; + + private Float harmonicActivePower2_50AMax; + + private Float harmonicActivePower2_50AMin; + + private Float harmonicActivePower2_50AAvg; + + private Float harmonicActivePower2_50A95; + + private Float harmonicActivePower2_50BMax; + + private Float harmonicActivePower2_50BMin; + + private Float harmonicActivePower2_50BAvg; + + private Float harmonicActivePower2_50B95; + + private Float harmonicActivePower2_50CMax; + + private Float harmonicActivePower2_50CMin; + + private Float harmonicActivePower2_50CAvg; + + private Float harmonicActivePower2_50C95; + + private Float positiveSequenceVoltageMax; + + private Float positiveSequenceVoltageMin; + + private Float positiveSequenceVoltageAvg; + + private Float positiveSequenceVoltage95; + + private Float negativeSequenceVoltageMax; + + private Float negativeSequenceVoltageMin; + + private Float negativeSequenceVoltageAvg; + + private Float negativeSequenceVoltage95; + + private Float zeroSequenceVoltageMax; + + private Float zeroSequenceVoltageMin; + + private Float zeroSequenceVoltageAvg; + + private Float zeroSequenceVoltage95; + + private Float negativeSequenceVoltageUnbalanceMax; + + private Float negativeSequenceVoltageUnbalanceMin; + + private Float negativeSequenceVoltageUnbalanceAvg; + + private Float negativeSequenceVoltageUnbalance95; + + private Float zeroSequenceVoltageUnbalanceMax; + + private Float zeroSequenceVoltageUnbalanceMin; + + private Float zeroSequenceVoltageUnbalanceAvg; + + private Float zeroSequenceVoltageUnbalance95; + + private Float positiveSequenceCurrentMax; + + private Float positiveSequenceCurrentMin; + + private Float positiveSequenceCurrentAvg; + + private Float positiveSequenceCurrent95; + + private Float negativeSequenceCurrentMax; + + private Float negativeSequenceCurrentMin; + + private Float negativeSequenceCurrentAvg; + + private Float negativeSequenceCurrent95; + + private Float zeroSequenceCurrentMax; + + private Float zeroSequenceCurrentMin; + + private Float zeroSequenceCurrentAvg; + + private Float zeroSequenceCurrent95; + + private Float negativeSequenceCurrentUnbalanceMax; + + private Float negativeSequenceCurrentUnbalanceMin; + + private Float negativeSequenceCurrentUnbalanceAvg; + + private Float negativeSequenceCurrentUnbalance95; + + private Float zeroSequenceCurrentImbalanceMax; + + private Float zeroSequenceCurrentImbalanceMin; + + private Float zeroSequenceCurrentImbalanceAvg; + + private Float zeroSequenceCurrentImbalance95; + + private Float voltageFluctuationAMax; + + private Float voltageFluctuationAMin; + + private Float voltageFluctuationAAvg; + + private Float voltageFluctuationA95; + + private Float voltageFluctuationBMax; + + private Float voltageFluctuationBMin; + + private Float voltageFluctuationBAvg; + + private Float voltageFluctuationB95; + + private Float voltageFluctuationCMax; + + private Float voltageFluctuationCMin; + + private Float voltageFluctuationCAvg; + + private Float voltageFluctuationC95; + + private Float shortTermSeverityAMax; + + private Float shortTermSeverityAMin; + + private Float shortTermSeverityAAvg; + + private Float shortTermSeverityA95; + + private Float shortTermSeverityBMax; + + private Float shortTermSeverityBMin; + + private Float shortTermSeverityBAvg; + + private Float shortTermSeverityB95; + + private Float shortTermSeverityCMax; + + private Float shortTermSeverityCMin; + + private Float shortTermSeverityCAvg; + + private Float shortTermSeverityC95; + + private Float longTimeFlashingAMax; + + private Float longTimeFlashingAMin; + + private Float longTimeFlashingAAvg; + + private Float longTimeFlashingA95; + + private Float longTimeFlashingBMax; + + private Float longTimeFlashingBMin; + + private Float longTimeFlashingBAvg; + + private Float longTimeFlashingB95; + + private Float longTimeFlashingCMax; + + private Float longTimeFlashingCMin; + + private Float longTimeFlashingCAvg; + + private Float longTimeFlashingC95; + + private Float longTimeFlashingOverrunDuration; + + private Float equivalentApparentPowerMax; + + private Float equivalentApparentPowerMin; + + private Float equivalentApparentPowerAvg; + + private Float equivalentApparentPower95; + + private Float equivalentPowerFactorMax; + + private Float equivalentPowerFactorMin; + + private Float equivalentPowerFactorAvg; + + private Float equivalentPowerFactor95; + + private Float fundamentalWaveApparentMax; + + private Float fundamentalWaveApparentMin; + + private Float fundamentalWaveApparentAvg; + + private Float fundamentalWaveApparent95; + + private Float nonfundamentalWaveApparentMax; + + private Float nonfundamentalWaveApparentMin; + + private Float nonfundamentalWaveApparentAvg; + + private Float nonfundamentalWaveApparent95; + + private Float unbalancedApparentPowerMax; + + private Float unbalancedApparentPowerMin; + + private Float unbalancedApparentPowerAvg; + + private Float unbalancedApparentPower95; + + private Float subharmonicCurrentContent2_50AMax; + + private Float subharmonicCurrentContent2_50AMin; + + private Float subharmonicCurrentContent2_50AAvg; + + private Float subharmonicCurrentContent2_50A95; + + private Float subharmonicCurrentContent2_50BMax; + + private Float subharmonicCurrentContent2_50BMin; + + private Float subharmonicCurrentContent2_50BAvg; + + private Float subharmonicCurrentContent2_50B95; + + private Float subharmonicCurrentContent2_50CMax; + + private Float subharmonicCurrentContent2_50CMin; + + private Float subharmonicCurrentContent2_50CAvg; + + private Float subharmonicCurrentContent2_50C95; + + private Float interHarmonicCurrent1_50AMax; + + private Float interHarmonicCurrent1_50AMin; + + private Float interHarmonicCurrent1_50AAvg; + + private Float interHarmonicCurrent1_50A95; + + private Float interHarmonicCurrent1_50BMax; + + private Float interHarmonicCurrent1_50BMin; + + private Float interHarmonicCurrent1_50BAvg; + + private Float interHarmonicCurrent1_50B95; + + private Float interHarmonicCurrent1_50CMax; + + private Float interHarmonicCurrent1_50CMin; + + private Float interHarmonicCurrent1_50CAvg; + + private Float interHarmonicCurrent1_50C95; + + private Float simpleHarmonicCurrentRate1_50AMax; + + private Float simpleHarmonicCurrentRate1_50AMin; + + private Float simpleHarmonicCurrentRate1_50AAvg; + + private Float simpleHarmonicCurrentRate1_50A95; + + private Float simpleHarmonicCurrentRate1_50BMax; + + private Float simpleHarmonicCurrentRate1_50BMin; + + private Float simpleHarmonicCurrentRate1_50BAvg; + + private Float simpleHarmonicCurrentRate1_50B95; + + private Float simpleHarmonicCurrentRate1_50CMax; + + private Float simpleHarmonicCurrentRate1_50CMin; + + private Float simpleHarmonicCurrentRate1_50CAvg; + + private Float simpleHarmonicCurrentRate1_50C95; + + private Float fundamentalRateofworkAMax; + + private Float fundamentalRateofworkAMin; + + private Float fundamentalRateofworkAAvg; + + private Float fundamentalRateofworkA95; + + private Float fundamentalRateofworkBMax; + + private Float fundamentalRateofworkBMin; + + private Float fundamentalRateofworkBAvg; + + private Float fundamentalRateofworkB95; + + private Float fundamentalRateofworkCMax; + + private Float fundamentalRateofworkCMin; + + private Float fundamentalRateofworkCAvg; + + private Float fundamentalRateofworkC95; + + private Float fundamentalActivePowerAMax; + + private Float fundamentalActivePowerAMin; + + private Float fundamentalActivePowerAAvg; + + private Float fundamentalActivePowerA95; + + private Float fundamentalActivePowerBMax; + + private Float fundamentalActivePowerBMin; + + private Float fundamentalActivePowerBAvg; + + private Float fundamentalActivePowerB95; + + private Float fundamentalActivePowerCMax; + + private Float fundamentalActivePowerCMin; + + private Float fundamentalActivePowerCAvg; + + private Float fundamentalActivePowerC95; + + private Float fundamentalWavePositiveMax; + + private Float fundamentalWavePositiveMin; + + private Float fundamentalWavePositiveAvg; + + private Float fundamentalWavePositive95; + + private Float harmonicVoltageOverrunDuration; + + private Float tpVoltageUnbalanceOverrunDuration; + + private Float receivableTargetNum; + + private Float practicalTargetNum; + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/Monitor.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/Monitor.java new file mode 100644 index 000000000..e4b9a102c --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/Monitor.java @@ -0,0 +1,187 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.time.LocalDateTime; + +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("pms_monitor") +public class Monitor extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** + * 监测点ID + */ + private String id; + + /** + * 监测点名称 + */ + private String name; + + /** + * 组织机构名称 + */ + private String orgName; + + /** + * 组织机构ID(外键) + */ + private String orgId; + + /** + * 运维单位名称 + */ + private String operationName; + + /** + * 运维单位ID(外键) + */ + private String operationId; + + /** + * 变电站名称 + */ + private String powerrName; + + /** + * 电站ID(外键) + */ + private String powerrId; + + /** + * 母线名称 + */ + private String generatrixName; + + /** + * 母线ID(外键) + */ + private String generatrixId; + + /** + * 监测线路名称 + */ + private String lineName; + + /** + * 监测线路ID + */ + private String lineId; + + /** + * 电压等级(字典) + */ + private String voltageLevel; + + /** + * 监测点状态(字典) + */ + private String monitorState; + + /** + * 监测点类型(字典) + */ + private String monitorType; + + /** + * 最小短路容量 + */ + private Float minShortCircuitCapacity; + + /** + * 供电设备容量 + */ + private Float powerSupplyEqCapacity; + + /** + * 用户协议容量 + */ + private Float userAgreementCapacity; + + /** + * 电压偏差限值(上) + */ + private Float voltageDeviationUpperLimit; + + /** + * 电压偏差限值(下) + */ + private Float voltageDeviationLowerLimit; + + /** + * 电压互感器类型(字典) + */ + private String potentialTransFormerType; + + /** + * 中性点接地方式(字典) + */ + private String neutralGroundingMode; + + /** + * 是否用户专线(字典) + */ + private String isSpecialSupplyElectricity; + + /** + * 监测点标签 + */ + private String monitorTag; + + /** + * 监测对象类型(字典) + */ + private String monitorObjectType; + + /** + * 监测对象编号 + */ + private String monitorObjectId; + + /** + * 监测对象名称 + */ + private String monitorObjectName; + + /** + * 统计间隔 + */ + private Integer statisticalInterval; + + /** + * 关联的监测终端编号(外键) + */ + private String terminalId; + + /** + * 监测终端接线方式(字典) + */ + private String terminalWiringMethod; + + /** + * 是否是上送国网监测点,0-否 1-是 + */ + private Integer isUpToGrid; + + /** + * 数据状态:0-删除;1-正常; + */ + private Integer status; + + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PmsMonitorPO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PmsMonitorPO.java new file mode 100644 index 000000000..cb74beb47 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PmsMonitorPO.java @@ -0,0 +1,58 @@ +package com.njcn.device.pms.pojo.po; + +import lombok.Data; + +import java.io.Serializable; + +/** + * (PmsMonitor)实体类 + * + * @author yzh + * @since 2022-10-14 10:23:20 + */ +@Data +public class PmsMonitorPO implements Serializable { + private static final long serialVersionUID = -72537315596058339L; + /** + * 监测点ID + */ + private String id; + /** + * 监测点名称 + */ + private String name; + /** + * 组织机构名称 + */ + private String orgName; + /** + * 组织机构ID(外键) + */ + private String orgId; + /** + * 运维单位名称 + */ + private String operationName; + /** + * 运维单位ID(外键) + */ + private String operationId; + /** + * 变电站名称 + */ + private String powerrName; + /** + * 电站ID(外键) + */ + private String powerrId; + /** + * 母线名称 + */ + private String generatrixName; + /** + * 母线ID(外键) + */ + private String generatrixId; + +} + diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PowerClient.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PowerClient.java new file mode 100644 index 000000000..5effdd223 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PowerClient.java @@ -0,0 +1,172 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.io.Serializable; +import java.time.LocalDate; +import java.time.LocalDateTime; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * 发电用户 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("pms_power_client") +public class PowerClient extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** + * 用户编号 + */ + private String id; + + /** + * 用户名称 + */ + private String name; + + /** + * 组织机构名称 + */ + private String orgName; + + /** + * 组织机构ID(外键) + */ + private String orgId; + + /** + * 运维单位名称 + */ + private String operationName; + + /** + * 运维单位ID(外键) + */ + private String operationId; + + /** + * 用户分类(字典) + */ + private String userType; + + /** + * 行业分类(字典) + */ + private String industryType; + + /** + * 用电类别(字典) + */ + private String electricityType; + + /** + * 合同容量 + */ + private Float contractCapacity; + + /** + * 运行容量 + */ + private Float operatingCapacity; + + /** + * 生产班次(字典) + */ + private String productionShift; + + /** + * 负荷性质(字典) + */ + private String loadNature; + + /** + * 供电电压(字典) + */ + private String voltageLevel; + + /** + * 高耗能行业类别(字典) + */ + private String highIndustryType; + + /** + * 送电日期 + */ + private LocalDate powerTransmissionDate; + + /** + * 重要性等级(字典) + */ + private String importanceLevel; + + /** + * 用电客户状态(字典) + */ + private String eccStat; + + /** + * 是否敏感用户:0-否;1:是; + */ + private Integer ifSensitiveUser; + + /** + * 是否影响电能质量:0-否;1:是; + */ + private Integer ifPowerQuality; + + /** + * 是否重要客户:0-否;1:是; + */ + private Integer ifKeyCustomers; + + /** + * 敏感用户类别(字典) + */ + private String sensitiveType; + + /** + * 供电变电站(外键) + */ + private String powerStationId; + + /** + * 供电线路(外键) + */ + private String lineId; + + /** + * 供电台区(外键) + */ + private String platformId; + + /** + * 用户标签 + */ + private String userTag; + + /** + * 是否是上送国网监测点,0-否 1-是 + */ + private Integer isUpToGrid; + + /** + * 数据状态:0-删除;1-正常; + */ + private Integer status; + + + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PowerDistributionarea.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PowerDistributionarea.java new file mode 100644 index 000000000..cd4aaaca4 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PowerDistributionarea.java @@ -0,0 +1,164 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.io.Serializable; +import java.time.LocalDateTime; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("pms_power_distributionarea") +public class PowerDistributionarea extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** + * 台区编号 + */ + private String id; + + /** + * 台区名称 + */ + private String name; + + /** + * 组织机构名称 + */ + private String orgName; + + /** + * 组织机构ID(外键) + */ + private String orgId; + + /** + * 运维单位名称 + */ + private String operationName; + + /** + * 运维单位ID(外键) + */ + private String operationId; + + /** + * 变电站名称 + */ + private String powerrName; + + /** + * 电站ID(外键) + */ + private String powerStationId; + + /** + * 监测线路名称 + */ + private String lineName; + + /** + * 所属线路ID(外键) + */ + private String lineId; + + /** + * 配变容量 + */ + private Float pCapacity; + + /** + * 地区特征(字典) + */ + private String regionalism; + + /** + * 是否农网:0-否;1:是; + */ + private Integer ifRuralPowerGrid; + + /** + * 使用性质 + */ + private String natureOfUse; + + /** + * 供电半径 + */ + private Float powerSupplyRadius; + + /** + * 供电线路总长度 + */ + private Float lineLength; + + /** + * 运行状态(字典) + */ + private String state; + + /** + * 分布式光伏用户数 + */ + private Integer distributedPhotovoltaicNum; + + /** + * 分布式光伏总装机容量 + */ + private Float photovoltaicCapacity; + + /** + * 是否有电动汽车接入:0-否;1:是; + */ + private Integer ifBevAp; + + /** + * 接入负荷类型(字典) + */ + private String apLoadType; + + /** + * 是否是上送国网监测点,0-否 1-是 + */ + private Integer isUpToGrid; + + /** + * 数据状态:0-删除;1-正常; + */ + private Integer status; + + /** + * 创建用户 + */ + private String createBy; + + /** + * 创建时间 + */ + private LocalDateTime createTime; + + /** + * 更新用户 + */ + private String updateBy; + + /** + * 更新时间 + */ + private LocalDateTime updateTime; + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PowerGenerationUser.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PowerGenerationUser.java new file mode 100644 index 000000000..877285b55 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PowerGenerationUser.java @@ -0,0 +1,132 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.io.Serializable; +import java.time.LocalDate; +import java.time.LocalDateTime; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * 发电用户 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("pms_power_generation_user") +public class PowerGenerationUser extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** + * 用户编号 + */ + private String id; + + /** + * 用户名称 + */ + private String name; + + /** + * 组织机构名称 + */ + private String orgName; + + /** + * 组织机构ID(外键) + */ + private String orgId; + + /** + * 运维单位名称 + */ + private String operationName; + + /** + * 运维单位ID(外键) + */ + private String operationId; + + /** + * 电源类别(字典) + */ + private String powerCategory; + + /** + * 电站类型(字典) + */ + private String powerStationType; + + /** + * 发电方式(字典) + */ + private String powerGenerationMode; + + /** + * 并网电压等级(字典) + */ + private String voltageLevel; + + /** + * 总装机容量 + */ + private Float sourceCapacity; + + /** + * 并网日期 + */ + private LocalDate connectionDate; + + /** + * 能源消纳方式(字典) + */ + private String connectionMode; + + /** + * 客户状态(字典) + */ + private String gcStat; + + /** + * 供电变电站(外键) + */ + private String powerStationId; + + /** + * 供电线路(外键) + */ + private String lineId; + + /** + * 供电台区(外键) + */ + private String platformId; + + /** + * 用户标签 + */ + private String userTag; + + /** + * 是否是上送国网监测点,0-否 1-是 + */ + private Integer isUpToGrid; + + /** + * 数据状态:0-删除;1-正常; + */ + private Integer status; + + + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PowerQualityMatter.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PowerQualityMatter.java new file mode 100644 index 000000000..34ec6e99c --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PowerQualityMatter.java @@ -0,0 +1,142 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.io.Serializable; +import java.time.LocalDateTime; + +import lombok.Data; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@TableName("pms_power_quality_matter") +public class PowerQualityMatter { + + private static final long serialVersionUID = 1L; + + /** + * 电能质量问题编号 + */ + private String powerQualityProblem; + + /** + * 组织机构名称 + */ + private String orgName; + + /** + * 组织机构ID + */ + private String orgId; + + /** + * 问题来源(字典) + */ + private String problemSources; + + /** + * 变电站编号(外键) + */ + private String checkPowerId; + + /** + * 问题指标(字典) + */ + private String problemIndicators; + + /** + * 问题发生时间 + */ + private LocalDateTime problemOccurrenceDate; + + /** + * 问题发生天数 + */ + private Integer problemOccurrenceDays; + + /** + * 用户编号(外键) + */ + private String customerId; + + /** + * 用户名称 + */ + private String customerName; + + /** + * 用户类别(字典) + */ + private String sensitiveType; + + /** + * 是否实现监测:0-否;1-是; + */ + private Boolean ifOnlineMonitor; + + /** + * 监测点编号(外键) + */ + private String monitorId; + + /** + * 投诉时间 + */ + private LocalDateTime complaintsDate; + + /** + * 投诉内容 + */ + private String complaintContent; + + /** + * 电网-受影响设备(字典) + */ + private String gridAffectedUnit; + + /** + * 用户-受影响设备(字典) + */ + private String customerAffectedUnit; + + /** + * 事件描述(投诉内容) + */ + private String incidentDescription; + + /** + * 原因分析结果 + */ + private String problemAnaly; + + /** + * 计划整改措施 + */ + private String plannedCorrectiveAction; + + /** + * 实际采取措施 + */ + private String actualMeasuresTaken; + + /** + * 治理效果评价 + */ + private String governanceMode; + + /** + * 报告 + */ + private String governanceReport; + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvDevice.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvDevice.java deleted file mode 100644 index 9aff0d271..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvDevice.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.njcn.device.pms.pojo.po; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.njcn.db.bo.BaseEntity; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.time.LocalDate; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Data -@TableName("pv_device") -@EqualsAndHashCode(callSuper = true) -public class PvDevice extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** - * 终端台账表Id - */ - private String id; - - private String name; - - /** - * 终端类型(电能质量监测终端、智能电表、智能融合终端),字典表 - */ - private String type; - - /** - * 用于保存PMS中电能质量监测终端Id、智能融合终端Id,智能电表Id - */ - private String devCode; - - /** - * 终端Ip - */ - private String ip; - - /** - * 端口 - */ - private Integer port; - - /** - * 终端型号(570、580……)字典表 - */ - private String devType; - - /** - * 设备制造商,字典表 - */ - private String manufacturer; - - /** - * 装置识别码(3ds加密) - */ - private String series; - - /** - * 装置秘钥(3ds加密) - */ - private String devKey; - - /** - * 投运时间 - */ - private LocalDate loadTime; - - /** - * 装置通讯状态 - */ - private Integer devStatus; - - - /** - * 信号传输方式 - */ - private String communicateType; - - /** - * 本次定检时间,默认等于投运时间 - */ - private LocalDate thisTimeCheck; - - /** - * 下次定检时间,默认为投运时间后推3年,假如时间小于3个月则为待检 - */ - private LocalDate nextTimeCheck; - - /** - * 终端级别 - */ - private String devGrade; - /** - * 状态 - */ - private Integer state; - - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvDispatch.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvDispatch.java deleted file mode 100644 index f286e3147..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvDispatch.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.njcn.device.pms.pojo.po; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.njcn.db.bo.BaseEntity; -import lombok.Getter; -import lombok.Setter; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Getter -@Setter -@TableName("pv_dispatch") -public class PvDispatch extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** - * 调度表Id - */ - private String id; - - /** - * 调度名称 - */ - private String name; - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvDistributed.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvDistributed.java deleted file mode 100644 index 6faecb87f..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvDistributed.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.njcn.device.pms.pojo.po; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.njcn.db.bo.BaseEntity; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.time.LocalDate; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-06 - */ -@Data -@TableName("pv_distributed") -@EqualsAndHashCode(callSuper = true) -public class PvDistributed extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** - * 分布式光伏台账表Id - */ - private String id; - - - /** - * 分布式光伏名称 - */ - private String name; - - - private String code; - - /** - * 用户编号(与低压用户台账表低压用户编号字段一致) - */ - private String userCode; - - /** - * 终端编号 - */ - private String devCode; - - /** - * 并网电压等级Id,字典表 - */ - private String scale; - - /** - * 装机容量(KVA) - */ - private Float machineCapacity; - - /** - * 上网方式 - */ - private String inteType; - - /** - * 接入相别 - */ - private String phase; - - /** - * 储能配置容量(KVA) - */ - private Float energyCapacity; - - - private String smartSwitch; - - @JsonFormat(pattern = "yyyy-MM-dd") - private LocalDate installTime; - - @JsonFormat(pattern = "yyyy-MM-dd") - private LocalDate runTime; - - /** - * 状态 - */ - private Integer state; - - - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvLineDetail.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvLineDetail.java deleted file mode 100644 index 4b06b345c..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvLineDetail.java +++ /dev/null @@ -1,209 +0,0 @@ -package com.njcn.device.pms.pojo.po; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.njcn.db.bo.BaseEntity; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.time.LocalDate; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Data -@TableName("pv_line_detail") -@EqualsAndHashCode(callSuper = true) -public class PvLineDetail extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** - * 监测点序号 - */ - private String id; - - private String name; - - private String code; - - /** - * 所属终端 - */ - private String devId; - - /** - * 监测点类型(I类监测点、II类监测点、III类监测点),字典表 - */ - private String type; - - /** - * 所属变电站(I类监测点) - */ - private String substationId; - - /** - * 所属母线名称(I类监测点) - */ - private String voltageId; - - /** - * 所属台区ID(II类监测点) - */ - private String subAreaId; - - private String userCode; - - private Integer userCodeType; - - /** - * 电压等级 - */ - private String scale; - - /** - * 线路号(在同一台设备中的监测点号) - */ - 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 String 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; - - - private String smallName; - - /** - * 监测点对象小类 - */ - private String bigName; - - /** - * 人为干预是否参与统计(0:不参与,1:参与)默认参与统计 - */ - private Integer statFlag; - - /** - * 备注 - */ - private String remark; - - /** - * 电压互感器类型,字典表 - */ - private String tfType; - - /** - * 所属变压器编号 - */ - private String tfCode; - - /** - * 中性点接地方式,字典表 - */ - private String groundType; - - /** - * 投运日期 - */ - private LocalDate putIn; - - /** - * 接入日期 - */ - private LocalDate access; - - /** - * 是否专项供电(0:否,1:是)默认参与统计 - */ - private Integer powerSupply; - - /** - * 状态 - */ - private Integer state; - - - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvLvUser.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvLvUser.java deleted file mode 100644 index 07e703c2a..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvLvUser.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.njcn.device.pms.pojo.po; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.njcn.db.bo.BaseEntity; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Data -@TableName("pv_lv_user") -@EqualsAndHashCode(callSuper = true) -public class PvLvUser extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** - * 低压用户台账表Id - */ - private String id; - - - /** - * 低压用户编号(营销系统中查出) - */ - private String userCode; - - /** - * 低压用户名称 - */ - private String name; - - /** - * 用户协议容量(kVA) - */ - private Float userCapacity; - - /** - * 是否发生过投诉 - */ - private Integer complain; - - /** - * 投诉内容 - */ - private String complainPart; - - /** - * 整改措施 - */ - private String corrective; - - /** - * 是否有治理装置 - */ - private Integer devGovern; - - /** - * 治理装置类型 - */ - private String governType; - - /** - * 治理装置电压等级 - */ - private String scale; - - /** - * 治理装置容量 - */ - private Float governCapacity; - - /** - * 状态 - */ - private Integer state; - - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvSubArea.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvSubArea.java deleted file mode 100644 index 5f0a96066..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvSubArea.java +++ /dev/null @@ -1,114 +0,0 @@ -package com.njcn.device.pms.pojo.po; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.njcn.db.bo.BaseEntity; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Data -@TableName("pv_sub_area") -@EqualsAndHashCode(callSuper = true) -public class PvSubArea extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** - * 台区表Id - */ - private String id; - - /** - * 所属10kV线路表Id(外键) - */ - private String tenVoltageId; - - /** - * 所属单位Id(台区所属的单位和变电站所属单位可能不是一个单位) - */ - private String unitId; - - /** - * 台区名称 - */ - private String name; - - /** - * 台区编号 - */ - private String code; - - /** - * 电缆长度字段 - */ - private Double cableLength; - - /** - * 电阻 - */ - private Double resistance; - - /** - * 电抗 - */ - private Double reactance; - - /** - * 变压器型号 - */ - private String type; - - /** - * 变压器容量 - */ - private Float capacity; - - /** - * 变压器调压方式 - */ - private Integer regulationMode; - - /** - * 台区无功补偿容量(KVA) - */ - private Float reactCapacity; - - /** - * 是否安装智能融合终端 - */ - private Integer devFusion; - - /** - * 是否有分布式光伏接入 - */ - private Integer pv; - - /** - * 分布式光伏总装机容量(KVA) - */ - private Float totalC; - - /** - * 分布式光伏用户数量 - */ - private Integer pvUsers; - - /** - * 其他分布式电源装置容量 - */ - private Float powerPower; - - /** - * 状态 - */ - private Integer state; - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvSubstation.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvSubstation.java deleted file mode 100644 index 430d0230f..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvSubstation.java +++ /dev/null @@ -1,56 +0,0 @@ -package com.njcn.device.pms.pojo.po; - -import com.baomidou.mybatisplus.annotation.TableName; -import lombok.Data; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Data -@TableName("pv_substation") -public class PvSubstation { - - private static final long serialVersionUID = 1L; - - /** - * 变电站表Id - */ - private String id; - - /** - * 所属单位Id - */ - private String unitId; - - /** - * 变电站名称 - */ - private String name; - - /** - * 变电站编号 - */ - private String subCode; - - /** - * 电压等级Id,字典表 - */ - private String scale; - - /** - * 变电站总容量(MVA)(手动填写) - */ - private Double totalCapacity; - - /** - * 运维班组Code - */ - private String teamCode; - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvTenVoltage.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvTenVoltage.java deleted file mode 100644 index a2f79afc6..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvTenVoltage.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.njcn.device.pms.pojo.po; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.njcn.db.bo.BaseEntity; -import lombok.Data; - -import java.time.LocalDateTime; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Data -@TableName("pv_ten_voltage") -public class PvTenVoltage extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** - * 线路表Id - */ - private String id; - - /** - * 调度表Id(外键) - */ - private String dispatchId; - - - /** - * 线路名称 - */ - private String name; - - /** - * 线路编号 - */ - private String code; - - /** - * 跨区域类型 - */ - private String crType; - - /** - * 电压等级Id,字典表 - */ - private String scale; - - /** - * 设计电压等级Id,字典表 - */ - private String designScale; - - /** - * 设备状态 - */ - private Integer devStatus; - - /** - * 是否接地极(0:false;1:true) - */ - private Boolean earthing; - - /** - * 线路性质 - */ - private String quality; - - /** - * 所属主线 - */ - private String masterStroke; - - /** - * 专业分类 - */ - private String major; - - /** - * 设备主人 - */ - private String master; - - /** - * 起点电站 - */ - private String startStation; - - /** - * 终点电站 - */ - private String endStation; - - /** - * 运行负载限额 - */ - private Float runLoad; - - /** - * 额定输出功率 - */ - private Float outputPower; - - /** - * 最大允许电流 - */ - private Float maxCurrent; - - /** - * 投运日期 - */ - private LocalDateTime putIntoDate; - - /** - * 状态 - */ - private Integer state; - - /** - * 是否有分布式光伏接入 - */ - private Integer pvStatus; - - - /** - * 分布式光伏接入容量 - */ - private Integer pvCapacity; - - - /** - * 分布式光伏接入数量 - */ - private Integer pvNum; - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvUnit.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvUnit.java deleted file mode 100644 index c60908558..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvUnit.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.njcn.device.pms.pojo.po; - -import com.baomidou.mybatisplus.annotation.TableName; -import lombok.Getter; -import lombok.Setter; - -import java.io.Serializable; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Getter -@Setter -@TableName("pv_unit") -public class PvUnit implements Serializable { - - private static final long serialVersionUID = 1L; - - /** - * 单位表Id - */ - private String id; - - /** - * 父节点(0为根节点) - */ - private String pid; - - /** - * 单位名称 - */ - private String name; - - /** - * 单位编码 - */ - private String code; - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvVoltage.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvVoltage.java deleted file mode 100644 index 1198190a8..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PvVoltage.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.njcn.device.pms.pojo.po; - -import com.baomidou.mybatisplus.annotation.TableName; -import lombok.Data; - -/** - *

- * - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Data -@TableName("pv_voltage") -public class PvVoltage { - - private static final long serialVersionUID = 1L; - - /** - * 母线序号 - */ - private String id; - - - /** - * 母线名称 - */ - private String name; - - /** - * 母线号(在同一台设备中的电压通道号) - */ - private Integer num; - - /** - * 电压等级Id,字典表 - */ - private String scale; - - - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PwPmsMonitorPO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PwPmsMonitorPO.java new file mode 100644 index 000000000..e53371d64 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/PwPmsMonitorPO.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.pojo.po; + +import lombok.Data; + +import java.io.Serializable; + +/** + * @author yzh + * @date 2022/10/27 + */ + +@Data +public class PwPmsMonitorPO implements Serializable { + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RMpMonitorAlarmCountM.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RMpMonitorAlarmCountM.java new file mode 100644 index 000000000..7b69e19ca --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RMpMonitorAlarmCountM.java @@ -0,0 +1,120 @@ +package com.njcn.device.pms.pojo.po; + +import java.io.Serializable; +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +/** + * @author jianghf + * 监测点告警统计-月表 + * @TableName r_mp_monitor_alarm_count_m + */ +@Data +@TableName("r_mp_monitor_alarm_count_m") +public class RMpMonitorAlarmCountM implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 单位ID + */ + private String orgNo; + + /** + * 生成数据的时间,每月统计一次 + */ + private Date dataDate; + + /** + * 数据类型(0:主网 1:配网) + */ + private String dataType; + + /** + * 监测点ID + */ + private String measurementPointId; + + /** + * 电压偏差告警情况(0:否 1:是) + */ + private Integer vdevAlarmInfo; + + /** + * 电压偏差严重度 + */ + private Integer vdevSeverity; + + /** + * 频率偏差告警情况(0:否 1:是) + */ + private Integer freqAlarmInfo; + + /** + * 频率偏差严重度 + */ + private Integer freqSeverity; + + /** + * 三相电压不平衡度告警情况(0:否 1:是) + */ + private Integer unbalanceAlarmInfo; + + /** + * 三相电压不平衡严重度 + */ + private Integer unbalanceSeverity; + + /** + * 谐波电压告警情况(0:否 1:是) + */ + private Integer vAlarmInfo; + + /** + * 谐波电压严重度 + */ + private Integer vSeverity; + + /** + * 闪变告警情况(0:否 1:是) + */ + private Integer flickerAlarmInfo; + + /** + * 闪变严重度 + */ + private Integer flickerSeverity; + + /** + * 电压暂降告警情况(0:否 1:是) + */ + private Integer sagAlarmInfo; + + /** + * 电压暂降严重度 + */ + private Integer sagSeverity; + + /** + * 短时中断告警情况(0:否 1:是) + */ + private Integer interruptAlarmInfo; + + /** + * 短时中断严重度 + */ + private Integer interruptSeverity; + + /** + * 稳态指标评级结果(0 较差 1中等 2较好) + */ + private Integer harmonicTypeGrade; + + /** + * 暂态指标评级结果(0 较差 1中等 2较好) + */ + private Integer eventTypeGrade; + +} \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RMpPwAlarmDetailD.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RMpPwAlarmDetailD.java new file mode 100644 index 000000000..daa9286ff --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RMpPwAlarmDetailD.java @@ -0,0 +1,49 @@ +package com.njcn.device.pms.pojo.po; + +import java.io.Serializable; +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +/** + * 告警明细-日表 + * @TableName r_mp_pw_alarm_detail_d + */ +@Data +@TableName("r_mp_pw_alarm_detail_d") +public class RMpPwAlarmDetailD implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 生成数据的时间,每日统计一次 + */ + private Date dataDate; + + /** + * 监测点ID + */ + private String measurementPointId; + + /** + * 告警类型 + */ + private String alarmType; + + /** + * 告警描述 + */ + private String alarmInfo; + + /** + * 告警持续时间 + */ + private Double alarmLastTime; + + /** + * 是否已经生成在线监测超标问题(0:否 1:是 默认为否) + */ + private Integer isCreateProblem; + +} \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RMpTargetWarnD.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RMpTargetWarnD.java new file mode 100644 index 000000000..ac0c53e18 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RMpTargetWarnD.java @@ -0,0 +1,82 @@ +package com.njcn.device.pms.pojo.po; + +import java.io.Serializable; +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +/** + * 监测点指标告警明细日表 + * @TableName r_mp_target_warn_d + */ +@Data +@TableName("r_mp_target_warn_d") +public class RMpTargetWarnD implements Serializable { + /** + * 监测点ID + */ + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + private Date dataDate; + + /** + * 是否是有效接入监测点(0:否 1:是) + */ + private Integer isEffective; + + /** + * 是否是稳态超标监测点(0:否 1:是) + */ + private Integer isHarmonic; + + /** + * 是否是发生暂态的监测点(0:否 1:是) + */ + private Integer isEvent; + + /** + * 是否是告警监测点数(0:否 1:是) + */ + private Integer isWarn; + + /** + * 电压偏差是否告警(0:否 1:是) + */ + private Integer isVDevWarn; + + /** + * 频率偏差是否告警(0:否 1:是) + */ + private Integer isFreqWarn; + + /** + * 三相电压不平衡度是否告警(0:否 1:是) + */ + private Integer isUnbalanceWarn; + + /** + * 谐波电压是否告警(0:否 1:是) + */ + private Integer isVWarn; + + /** + * 闪变是否告警(0:否 1:是) + */ + private Integer isFlickerWarn; + + /** + * 电压暂降是否告警(0:否 1:是) + */ + private Integer isSagWarn; + + /** + * 短时中断是否告警(0:否 1:是) + */ + private Integer isInterruptWarn; + + private static final long serialVersionUID = 1L; +} \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatAreaAlarmCountM.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatAreaAlarmCountM.java new file mode 100644 index 000000000..5ca6f4f6b --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatAreaAlarmCountM.java @@ -0,0 +1,115 @@ +package com.njcn.device.pms.pojo.po; + +import java.io.Serializable; +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +/** + * 区域告警统计(月) + * @TableName r_stat_area_alarm_count_m + */ +@Data +@TableName("r_stat_area_alarm_count_m") +public class RStatAreaAlarmCountM implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 单位ID + */ + private String orgNo; + + /** + * 生成数据的时间,每月统计一次 + */ + private Date dataDate; + + /** + * 数据类型(0:主网 1:配网) + */ + private String dataType; + + /** + * 电压偏差告警情况(0:否 1:是) + */ + private Integer vdevAlarmInfo; + + /** + * 电压偏差告警超标占比 + */ + private Integer vdevAlarmRatio; + + /** + * 频率偏差告警情况(0:否 1:是) + */ + private Integer freqAlarmInfo; + + /** + * 频率偏差告警超标占比 + */ + private Integer freqAlarmRatio; + + /** + * 三相电压不平衡度告警情况(0:否 1:是) + */ + private Integer unbalanceAlarmInfo; + + /** + * 三相电压不平衡度告警超标占比 + */ + private Integer unbalanceAlarmRatio; + + /** + * 谐波电压告警情况(0:否 1:是) + */ + private Integer vAlarmInfo; + + /** + * 谐波电压告警超标占比 + */ + private Integer vAlarmRatio; + + /** + * 闪变告警情况(0:否 1:是) + */ + private Integer flickerAlarmInfo; + + /** + * 闪变告警超标占比 + */ + private Integer flickerAlarmRatio; + + /** + * 电压暂降告警情况(0:否 1:是) + */ + private Integer sagAlarmInfo; + + /** + * 电压暂降告警平均发生次数 + */ + private Integer sagAlarmAvgCount; + + /** + * 短时中断告警情况(0:否 1:是) + */ + private Integer interruptAlarmInfo; + + /** + * 短时中断告警平均发生次数 + */ + private Integer interruptAlarmAvgCount; + + /** + * 稳态指标评级结果(0 较差 1中等 2较好) + */ + private Integer harmonicTypeGrade; + + /** + * 暂态指标评级结果(0 较差 1中等 2较好) + */ + private Integer eventTypeGrade; + + +} \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatBusbarHarmonicPO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatBusbarHarmonicPO.java new file mode 100644 index 000000000..6ed24f82d --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatBusbarHarmonicPO.java @@ -0,0 +1,92 @@ +package com.njcn.device.pms.pojo.po; + +import lombok.Data; + +import java.util.Date; +import java.io.Serializable; + +/** + * (RStatBusbarHarmonicY)实体类 + * + * @author yzh + * @since 2022-10-12 18:38:16 + */ +@Data +public class RStatBusbarHarmonicPO implements Serializable { + private static final long serialVersionUID = 398744755685851294L; + /** + * 母线ID + */ + private String busbarId; + /** + * 生成数据的时间,每年统计一次 + */ + private Date dataDate; + /** + * 电压有效值最大 + */ + private Double vEffectiveMax; + /** + * 电压有效值最小 + */ + private Double vEffectiveMin; + /** + * 电压有效值平均 + */ + private Double vEffectiveAvg; + /** + * 电压有效值95概率大值 + */ + private Double vEffective95; + /** + * 电压总谐波畸变率最大 + */ + private Double vThdMax; + /** + * 电压总谐波畸变率最小 + */ + private Double vThdMin; + /** + * 电压总谐波畸变率平均 + */ + private Double vThdAvg; + /** + * 电压总谐波畸变率95概率大值 + */ + private Double vThd95; + /** + * 三相电压不平衡最大 + */ + private Double unbalanceMax; + /** + * 三相电压不平衡最小 + */ + private Double unbalanceMin; + /** + * 三相电压不平衡平均 + */ + private Double unbalanceAvg; + /** + * 三相电压不平衡95概率大值 + */ + private Double unbalance95; + /** + * 闪变最大 + */ + private Double flickerMax; + /** + * 闪变最小 + */ + private Double flickerMin; + /** + * 闪变平均 + */ + private Double flickerAvg; + /** + * 闪变95概率大值 + */ + private Double flicker95; + + +} + diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatEventOrgPO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatEventOrgPO.java new file mode 100644 index 000000000..690681743 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatEventOrgPO.java @@ -0,0 +1,82 @@ +package com.njcn.device.pms.pojo.po; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * 监测点暂态指标数据统计表(RStatEventOrg)实体类 + * + * @author yzh + * @since 2022-10-12 18:15:26 + */ + +@Data +@ApiModel("监测点暂态指标数据统计表") +public class RStatEventOrgPO implements Serializable { + private static final long serialVersionUID = -15971491825708754L; + /** + * 单位ID + */ + @ApiModelProperty(name = "orgNo",value = "单位ID") + private String orgNo; + + /** + * 生成数据的时间,每年统计一次 + */ + @ApiModelProperty(name = "dataDate",value = "生成数据的时间,每年统计一次") + private Date dataDate; + + /** + * 稳态指标类型Id,字典表ID + */ + @ApiModelProperty(name = "eventType",value = "稳态指标类型Id,字典表ID") + private String eventType; + + /** + * 日均发生暂态监测点数(根据 发生暂态监测点数 取平均值) + */ + @ApiModelProperty(name = "eventMeasurementAverage",value = "日均发生暂态监测点数(根据 发生暂态监测点数 取平均值)") + private Integer eventMeasurementAverage; + + /** + * 累计发生暂态监测点数(监测点暂态指标超标明细日表 + */ + @ApiModelProperty(name = "eventMeasurementAccrued",value = "累计发生暂态监测点数(监测点暂态指标超标明细日表)") + private Integer eventMeasurementAccrued; + + /** + * 暂态指标发生频次(日表的暂态指标发生次数之和/日表的发生暂态监测点数之和) + */ + @ApiModelProperty(name = "eventFreq",value = "暂态指标发生频次(日表的暂态指标发生次数之和/日表的发生暂态监测点数之和)") + private Double eventFreq; + + /** + * 暂态指标发生次数(日表的暂态指标发生次数之和) + */ + @ApiModelProperty(name = "eventCount",value = "暂态指标发生次数(日表的暂态指标发生次数之和)") + private Integer eventCount; + + /** + * 日均发生暂态监测点数占比(根据 日均发生暂态监测点数占比 取平均值) + */ + @ApiModelProperty(name = "eventMeasurementRatioAverage",value = "日均发生暂态监测点数占比(根据 日均发生暂态监测点数占比 取平均值)") + private Double eventMeasurementRatioAverage; + + /** + * 累计发生暂态监测点数占比(此表的累计发生暂态监测点数/区域统计表中的区域分类统计月表中的发生暂态的监测点数) + */ + @ApiModelProperty(name = "eventMeasurementRatioAccrued",value = "累计发生暂态监测点数占比(此表的累计发生暂态监测点数/区域统计表中的区域分类统计月表中的发生暂态的监测点数)") + private Double eventMeasurementRatioAccrued; + + /** + * 数据类型,字典表(01:主网测点 02:配网测点) + */ + @ApiModelProperty(name = "dataType",value = "数据类型,字典表(01:主网测点 02:配网测点)") + private String dataType; + +} + diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatOrgPO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatOrgPO.java new file mode 100644 index 000000000..0766b6d80 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatOrgPO.java @@ -0,0 +1,104 @@ +package com.njcn.device.pms.pojo.po; + +import lombok.Data; + +import java.util.Date; +import java.io.Serializable; + +/** + * 区域分类统计年表(RStatOrgY)实体类 + * + * @author yzh + * @since 2022-10-12 18:37:24 + */ +@Data +public class RStatOrgPO implements Serializable { + private static final long serialVersionUID = -49993470994002009L; + /** + * 单位ID + */ + private String orgNo; + /** + * 生成数据的时间,每年统计一次 + */ + private Date dataDate; + /** + * 监测点类别ID、监测对象类型ID + */ + private String measurementTypeClass; + /** + * 总监测点数 + */ + private Integer allCount; + /** + * 日均有效接入监测点数 + */ + private Integer effectiveMeasurementAverage; + /** + * 累计有效接入监测点数 + */ + private Integer effectiveMeasurementAccrued; + /** + * 日均稳态超标监测点数 + */ + private Integer overLimitMeasurementAverage; + /** + * 累计稳态超标监测点数 + */ + private Integer overLimitMeasurementAccrued; + /** + * 日均稳态超标监测点数占比 + */ + private Integer harmonicMeasurementRatioAverage; + /** + * 稳态指标平均超标天数 + */ + private Double averageOverDay; + /** + * 频率偏差合格率 + */ + private Double freqPassRate; + /** + * 电压偏差合格率 + */ + private Double vDevPassRate; + /** + * 闪变合格率 + */ + private Double flickerPassRate; + /** + * 日均监测到暂态指标的监测点数 + */ + private Integer eventMeasurementAverage; + /** + * 累计监测到暂态指标的监测点数 + */ + private Integer eventMeasurementAccrued; + /** + * 日均暂态超标监测点数占比 + */ + private Integer eventMeasurementRatioAverage; + /** + * 暂态指标发生频次 + */ + private Double eventFreq; + /** + * 暂态指标发生次数 + */ + private Integer eventCount; + /** + * 应设点数 + */ + private Integer shouldCount; + /** + * 告警监测点数 + */ + private Integer warnCount; + /** + * 数据类型,字典表(01:主网测点 02:配网测点) + */ + private String dataType; + + +} + diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatSubstationPO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatSubstationPO.java new file mode 100644 index 000000000..7b9790247 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatSubstationPO.java @@ -0,0 +1,103 @@ +package com.njcn.device.pms.pojo.po; + +import lombok.Data; + +import java.util.Date; +import java.io.Serializable; + +/** + * (RStatSubstationY)实体类 + * + * @author yzh + * @since 2022-10-12 18:39:03 + */ +@Data +public class RStatSubstationPO implements Serializable { + private static final long serialVersionUID = -98896978437277100L; + /** + * 生成数据的时间,每年统计一次 + */ + private Date dataDate; + /** + * 变电站id + */ + private Integer substationId; + /** + * 日均有效接入监测点数 + */ + private Integer effectiveMeasurementAverage; + /** + * 累计有效接入监测点数 + */ + private Integer effectiveMeasurementAccrued; + /** + * 稳态平均超标天数 + */ + private Double harmonicOverDay; + /** + * 频率偏差平均超标天数 + */ + private Double freqAverageOverDay; + /** + * 电压偏差平均超标天数 + */ + private Double vDevAverageOverDay; + /** + * 谐波电压平均超标天数 + */ + private Double vAverageOverDay; + /** + * 谐波电流平均超标天数 + */ + private Double iAverageOverDay; + /** + * 三相电压不平衡平均超标天数 + */ + private Double unbalanceAverageOverDay; + /** + * 负序电流平均超标天数 + */ + private Double iNegAverageOverDay; + /** + * 闪变平均超标天数 + */ + private Double flickerAverageOverDay; + /** + * 间谐波电压平均超标天数 + */ + private Double inuharmAverageOverDay; + /** + * 暂态指标发生次数 + */ + private Integer eventCount; + /** + * 暂态指标发生频次 + */ + private Double eventFreq; + /** + * 电压暂降发生次数 + */ + private Integer sagCount; + /** + * 电压暂降发生频次 + */ + private Double sagFreq; + /** + * 电压暂升发生次数 + */ + private Integer swellCount; + /** + * 电压暂升发生频次 + */ + private Double swellFreq; + /** + * 短时中断发生次数 + */ + private Integer interruptCount; + /** + * 短时中断发生频次 + */ + private Double interruptFreq; + +} + diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatZwAlarmCountW.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatZwAlarmCountW.java new file mode 100644 index 000000000..87230c2b7 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RStatZwAlarmCountW.java @@ -0,0 +1,45 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.io.Serializable; +import java.util.Date; + +/** + * + * @TableName r_stat_zw_alarm_count_w + */ +@Data +@TableName("r_stat_zw_alarm_count_w") +public class RStatZwAlarmCountW implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 单位ID + */ + private String orgNo; + + /** + * 生成数据的时间,每周统计一次 + */ + private Date dataDate; + + /** + * 有效监测点数量 + */ + private Integer monitorEffectiveCount; + + /** + * 告警4次及以上监测点数量 + */ + private Integer warnMonitorCount; + + /** + * 级别较差监测点数量 + */ + private Integer monitorGradeCount; + +} \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RmpEventDetailPO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RmpEventDetailPO.java new file mode 100644 index 000000000..1f9cb91bb --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/RmpEventDetailPO.java @@ -0,0 +1,55 @@ +package com.njcn.device.pms.pojo.po; + +import lombok.Data; + +import java.io.Serializable; + +/** + * (RMpEventDetail)实体类 + * + * @author yzh + * @since 2022-10-12 18:34:55 + */ +@Data +public class RmpEventDetailPO implements Serializable { + private static final long serialVersionUID = 717547299960041571L; + /** + * 暂时事件ID + */ + private String eventId; + /** + * 监测点ID + */ + private String measurementPointId; + /** + * 事件类型 + */ + private String eventType; + /** + * 开始时间 + */ + private Long startTime; + /** + * 持续时间 + */ + private Double duration; + /** + * 特征幅值 + */ + private Double featureAmplitude; + /** + * 相别 + */ + private String phase; + /** + * 事件描述 + */ + private String eventDescribe; + /** + * 波形路径 + */ + private String wavePath; + + +} + diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/SourceManagement.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/SourceManagement.java new file mode 100644 index 000000000..b936bb6bf --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/SourceManagement.java @@ -0,0 +1,141 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.io.Serializable; +import java.math.BigDecimal; +import java.time.LocalDate; +import java.time.LocalDateTime; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("pms_source_management") +public class SourceManagement extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** + * 用户台帐编号 + */ + private String sourceId; + + /** + * 用户名称 + */ + private String sourceName; + + /** + * 组织机构名称 + */ + private String orgName; + + /** + * 组织机构ID + */ + private String orgId; + + /** + * 干扰源类型(字典) + */ + private String sourceType; + + /** + * 送电日期(并网日期) + */ + private LocalDate powerTransmissionDate; + + /** + * 合同容量(总装机容量) + */ + private BigDecimal userAgreementCapacity; + + /** + * 入网评估是否超标:0-否;1-是; + */ + private String ifOverproof; + + /** + * 超标指标(字典) + */ + private String overproofTarget; + + /** + * 计划采取措施 + */ + private String planningDiscipline; + + /** + * 入网评估报告 + */ + private String networkAccessEvaluationId; + + /** + * 入网评估报告上传时间 + */ + private LocalDateTime networkAccessEvaluationDate; + + /** + * 实测报告 + */ + private String testReportId; + + /** + * 测试报告是否超标:0-否;1-是; + */ + private String ifTestReportProof; + + /** + * 实测超标指标 + */ + private String testTarget; + + /** + * 测试报告上传时间 + */ + private LocalDateTime testReportDate; + + /** + * 建档时间 + */ + private LocalDate filingDate; + + /** + * 数据状态:0-删除;1-正常; + */ + private Boolean status; + + /** + * 创建用户 + */ + private String createBy; + + /** + * 创建时间 + */ + private LocalDateTime createTime; + + /** + * 更新用户 + */ + private String updateBy; + + /** + * 更新时间 + */ + private LocalDateTime updateTime; + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/StatationStat.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/StatationStat.java new file mode 100644 index 000000000..366cc73bc --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/StatationStat.java @@ -0,0 +1,60 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.io.Serializable; +import java.time.LocalDateTime; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("pms_statation_stat") +public class StatationStat extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** + * 电站编号 + */ + private String powerId; + + /** + * 电站名称 + */ + private String powerName; + + /** + * 机构组织id + */ + private String orgId; + + /** + * 应设点数量 + */ + private Integer shouldBeNum; + + /** + * 电压等级(字典) + */ + private String voltageLevel; + + /** + * 数据状态:0-删除;1-正常; + */ + private Boolean status; + + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/StatisticsRunMonitor.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/StatisticsRunMonitor.java new file mode 100644 index 000000000..6254db509 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/StatisticsRunMonitor.java @@ -0,0 +1,119 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.io.Serializable; +import java.time.LocalDateTime; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("pms_statistics_run_monitor") +public class StatisticsRunMonitor extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** + * 组织机构名称 + */ + private String orgName; + + /** + * 组织机构ID(外键) + */ + private String orgId; + + /** + * 电压等级(字典) + */ + private String voltageLevel; + + /** + * 母线数量 + */ + private Integer generatrixSum; + + /** + * 线路总数 + */ + private Integer lineNum; + + /** + * 接入分布式光伏的线路总数 + */ + private Integer photovoltaicLineNum; + + /** + * 台区总数 + */ + private Integer platformNum; + + /** + * 光伏台区总数 + */ + private Integer photovoltaicCourtsNum; + + /** + * 光伏容量超过台区容量25%的台区总数 + */ + private Integer exceedCourtscapNum; + + /** + * 风电用户总数 + */ + private Integer windPowerNum; + + /** + * 光伏用户总数 + */ + private Integer pvNum; + + /** + * 冶炼负荷用户总数 + */ + private Integer smeltingLoadNum; + + /** + * 日期 + */ + private LocalDateTime dataDate; + + /** + * 数据状态:0-删除;1-正常; + */ + private Boolean status; + + /** + * 创建用户 + */ + private String createBy; + + /** + * 创建时间 + */ + private LocalDateTime createTime; + + /** + * 更新用户 + */ + private String updateBy; + + /** + * 更新时间 + */ + private LocalDateTime updateTime; + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/Terminal.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/Terminal.java new file mode 100644 index 000000000..755078490 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/Terminal.java @@ -0,0 +1,145 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.io.Serializable; +import java.time.LocalDate; +import java.time.LocalDateTime; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("pms_terminal") +public class Terminal extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** + * 终端编号 + */ + private String id; + + /** + * 终端名称 + */ + private String name; + + /** + * 组织机构名称 + */ + private String orgName; + + /** + * 组织机构ID(外键) + */ + private String orgId; + + /** + * 运维单位名称 + */ + private String operationName; + + /** + * 运维单位ID(外键) + */ + private String operationId; + + /** + * 变电站名称 + */ + private String powerrName; + + /** + * 所属电站ID(外键) + */ + private String powerStationId; + + /** + * 终端状态(字典) + */ + private String terminalState; + + /** + * 终端级别(字典) + */ + private String terminalLevel; + + /** + * 装置型号(字典) + */ + private String deviceModel; + + /** + * 生产厂家(字典) + */ + private String manufacture; + + /** + * 检定日期 + */ + private LocalDate verificationDate; + + /** + * 投运日期 + */ + private LocalDate useDate; + + /** + * 测量信号输入形式(字典) + */ + private String inputType; + + /** + * IP地址 + */ + private String ip; + + /** + * 通信端口 + */ + private String port; + + /** + * 是否是上送国网监测点,0-否 1-是 + */ + private Integer isUpToGrid; + + /** + * 数据状态:0-删除;1-正常; + */ + private Integer status; + + /** + * 创建用户 + */ + private String createBy; + + /** + * 创建时间 + */ + private LocalDateTime createTime; + + /** + * 更新用户 + */ + private String updateBy; + + /** + * 更新时间 + */ + private LocalDateTime updateTime; + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/TerminalEliminateData.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/TerminalEliminateData.java new file mode 100644 index 000000000..9c107414e --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/TerminalEliminateData.java @@ -0,0 +1,57 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.io.Serializable; +import java.time.LocalDateTime; + +import lombok.Data; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@TableName("pms_terminal_eliminate_data") +public class TerminalEliminateData { + + private static final long serialVersionUID = 1L; + + /** + * 监测终端编号 + */ + private String terminalId; + + /** + * 故障时间 + */ + private LocalDateTime defectTime; + + /** + * 故障类型(字典) + */ + private String defectType; + + /** + * 是否消缺:0-否;1-是; + */ + private Boolean ifDefectRectify; + + /** + * 消缺时间 + */ + private LocalDateTime defectHandlingTime; + + /** + * 消缺措施 + */ + private String defectTreatment; + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/TractionStation.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/TractionStation.java new file mode 100644 index 000000000..5ccdb1ce6 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/TractionStation.java @@ -0,0 +1,144 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.io.Serializable; +import java.time.LocalDateTime; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("pms_traction_station") +public class TractionStation extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** + * 牵引站编号 + */ + private String id; + + /** + * 牵引站名称 + */ + private String name; + + /** + * 组织机构名称 + */ + private String orgName; + + /** + * 组织机构ID(外键) + */ + private String orgId; + + /** + * 运维单位名称 + */ + private String operationName; + + /** + * 运维单位ID(外键) + */ + private String operationId; + + /** + * 供电电压等级(字典) + */ + private String voltageLevel; + + /** + * 铁路线路编号 + */ + private String railwayLineId; + + /** + * 铁路线路名称 + */ + private String railwayLineName; + + /** + * 牵引站变压器接线方式(字典) + */ + private String connetGroupWay; + + /** + * 牵引站变电容量 + */ + private Float ratedCapacity; + + /** + * 供电变电站编号 + */ + private String powerId; + + /** + * 供电变电站名称 + */ + private String powerName; + + /** + * 供电变电站电压等级(字典) + */ + private String powerVoltageLevel; + + /** + * 是否专线供电:0-否;1-是; + */ + private Integer ifSpecial; + + /** + * 创建日期 + */ + private LocalDateTime createdDate; + + /** + * 用户标签 + */ + private String userTag; + + /** + * 是否是上送国网监测点,0-否 1-是 + */ + private Integer isUpToGrid; + + /** + * 数据状态:0-删除;1-正常; + */ + private Integer status; + + /** + * 创建用户 + */ + private String createBy; + + /** + * 创建时间 + */ + private LocalDateTime createTime; + + /** + * 更新用户 + */ + private String updateBy; + + /** + * 更新时间 + */ + private LocalDateTime updateTime; + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/TransientStasticData.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/TransientStasticData.java new file mode 100644 index 000000000..99178f0ca --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/TransientStasticData.java @@ -0,0 +1,62 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.io.Serializable; +import java.time.LocalDate; + +import lombok.Data; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@TableName("pms_transient_stastic_data") +public class TransientStasticData { + + private static final long serialVersionUID = 1L; + + /** + * 组织机构名称 + */ + private String orgName; + + /** + * 组织机构ID(外键) + */ + private String orgId; + + /** + * 监测点编号(外键) + */ + private String monitorId; + + /** + * 持续时间 + */ + private Float durationTag; + + /** + * 特征幅值 + */ + private Float featureAmplitudeTag; + + /** + * 发生次数 + */ + private Integer frequency; + + /** + * 日期 + */ + private LocalDate dataDate; + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/TreatTransientDetailData.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/TreatTransientDetailData.java new file mode 100644 index 000000000..e1a63f5a0 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/po/TreatTransientDetailData.java @@ -0,0 +1,67 @@ +package com.njcn.device.pms.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import java.io.Serializable; +import java.time.LocalDateTime; + +import lombok.Data; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Data +@TableName("pms_treat_transient_detail_data") +public class TreatTransientDetailData { + + private static final long serialVersionUID = 1L; + + /** + * 监测点编号 + */ + private String monitorId; + + /** + * 组织机构名称 + */ + private String orgName; + + /** + * 组织机构ID(外键) + */ + private String orgId; + + /** + * 事件类型(字典) + */ + private String eventType; + + /** + * 开始时间 + */ + private LocalDateTime startTime; + + /** + * 持续时间 + */ + private Float duration; + + /** + * 特征幅值 + */ + private Float featureAmplitude; + + /** + * 相别(字典) + */ + private String phase; + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/DeviceRunExVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/DeviceRunExVO.java deleted file mode 100644 index a814cb385..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/DeviceRunExVO.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.njcn.device.pms.pojo.vo; - - -import com.fasterxml.jackson.annotation.JsonFormat; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.io.Serializable; - -/** - * 终端运行异常列表信息 - * - * @author yangj - * @date 2022/09/08 - */ -@Data -public class DeviceRunExVO implements Serializable { - - - - /** - * 日期 - */ - @ApiModelProperty("日期") - @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd",timezone = "GMT+8") - private String time; - - - /** - * 告警描述 - */ - @ApiModelProperty("告警描述") - private String alarmDesc; - - /** - * 告警统计 - */ - @ApiModelProperty("告警统计") - private Long alarmNum; - - /** - * 中断描述 - */ - @ApiModelProperty("中断描述") - private String comOutDesc; - - /** - * 中断统计 - */ - @ApiModelProperty("中断统计") - private Long comOutNum; - - /** - * 终端id - */ - @ApiModelProperty("终端id") - private String devId; - - /** - * 终端流量 - */ - @ApiModelProperty("终端流量") - private Long flowNum; - - private Long flowStand; - - private Long overLimit; - - private Integer state; - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/DisOrLvVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/DisOrLvVO.java deleted file mode 100644 index d6d31b015..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/DisOrLvVO.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.njcn.device.pms.pojo.vo; - -import com.fasterxml.jackson.annotation.JsonFormat; -import lombok.Data; - -import java.time.LocalDate; - -/** - * pqs - * - * @author cdf - * @date 2022/7/28 - */ -@Data -public class DisOrLvVO { - /** - * 低压用户台账表Id - */ - private String id; - - - /** - * 低压用户编号(营销系统中查出) - */ - private String userCode; - - /** - * 低压用户名称 - */ - private String name; - - /** - * 用户协议容量(kVA) - */ - private Float userCapacity; - - /** - * 是否发生过投诉 - */ - private Integer complain; - - /** - * 投诉内容 - */ - private String complainPart; - - /** - * 整改措施 - */ - private String corrective; - - /** - * 是否有治理装置 - */ - private Integer devGovern; - - /** - * 治理装置类型 - */ - private String governType; - - /** - * 治理装置电压等级 - */ - private String scale; - - private String scaleName; - - /** - * 治理装置容量 - */ - private Float governCapacity; - - /** - * 状态 - */ - private Integer state; - - - - - - - - - private String code; - - /** - * 终端编号 - */ - private String devCode; - - - /** - * 装机容量(KVA) - */ - private Float machineCapacity; - - /** - * 上网方式 - */ - private String inteType; - - /** - * 接入相别 - */ - private String phase; - - /** - * 储能配置容量(KVA) - */ - private Float energyCapacity; - - - private String smartSwitch; - - @JsonFormat(pattern = "yyyy-MM-dd") - private LocalDate installTime; - - @JsonFormat(pattern = "yyyy-MM-dd") - private LocalDate runTime; - - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PmsMonitorVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PmsMonitorVO.java new file mode 100644 index 000000000..e7f7184ff --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PmsMonitorVO.java @@ -0,0 +1,234 @@ +package com.njcn.device.pms.pojo.vo; + +import java.io.Serializable; +import java.util.Date; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * + * @TableName pms_monitor + */ +@Data +public class PmsMonitorVO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 监测点ID + */ + @ApiModelProperty(name = "id", value = "监测点ID") + private String id; + + /** + * 监测点名称 + */ + @ApiModelProperty(name = "name", value = "监测点名称") + private String name; + + /** + * 组织机构名称 + */ + @ApiModelProperty(name = "orgName", value = "组织机构名称") + private String orgName; + + /** + * 组织机构ID(外键) + */ + @ApiModelProperty(name = "orgId", value = "组织机构ID(外键)") + private String orgId; + + /** + * 运维单位名称 + */ + @ApiModelProperty(name = "operationName", value = "运维单位名称") + private String operationName; + + /** + * 运维单位ID(外键) + */ + @ApiModelProperty(name = "operationId", value = "运维单位ID(外键)") + private String operationId; + + /** + * 变电站名称 + */ + @ApiModelProperty(name = "powerrName", value = "变电站名称") + private String powerrName; + + /** + * 电站ID(外键) + */ + @ApiModelProperty(name = "powerrId", value = "电站ID(外键)") + private String powerrId; + + /** + * 母线名称 + */ + @ApiModelProperty(name = "generatrixName", value = "母线名称") + private String generatrixName; + + /** + * 母线ID(外键) + */ + @ApiModelProperty(name = "generatrixId", value = "母线ID(外键)") + private String generatrixId; + + /** + * 监测线路名称 + */ + @ApiModelProperty(name = "lineName", value = "监测线路名称") + private String lineName; + + /** + * 监测线路ID + */ + @ApiModelProperty(name = "lineId", value = "监测线路ID") + private String lineId; + + /** + * 电压等级(字典) + */ + @ApiModelProperty(name = "voltageLevel", value = "电压等级(字典)") + private String voltageLevel; + + /** + * 监测点状态(字典) + */ + @ApiModelProperty(name = "monitorState", value = "监测点状态(字典)") + private String monitorState; + + /** + * 监测点类型 + */ + @ApiModelProperty(name = "monitorType", value = "监测点类型") + private String monitorType; + + /** + * 最小短路容量 + */ + @ApiModelProperty(name = "minShortCircuitCapacity", value = "最小短路容量") + private Double minShortCircuitCapacity; + + /** + * 供电设备容量 + */ + @ApiModelProperty(name = "powerSupplyEqCapacity", value = "供电设备容量") + private Double powerSupplyEqCapacity; + + /** + * 用户协议容量 + */ + @ApiModelProperty(name = "userAgreementCapacity", value = "用户协议容量") + private Double userAgreementCapacity; + + /** + * 电压偏差限值(上) + */ + @ApiModelProperty(name = "voltageDeviationUpperLimit", value = "电压偏差限值(上)") + private Double voltageDeviationUpperLimit; + + /** + * 电压偏差限值(下) + */ + @ApiModelProperty(name = "voltageDeviationLowerLimit", value = "电压偏差限值(下)") + private Double voltageDeviationLowerLimit; + + /** + * 电压互感器类型(字典) + */ + @ApiModelProperty(name = "potentialTransFormerType", value = "电压互感器类型(字典)") + private String potentialTransFormerType; + + /** + * 中性点接地方式(字典) + */ + @ApiModelProperty(name = "neutralGroundingMode", value = "中性点接地方式(字典)") + private String neutralGroundingMode; + + /** + * 是否用户专线(字典) + */ + @ApiModelProperty(name = "isSpecialSupplyElectricity", value = "是否用户专线(字典)") + private String isSpecialSupplyElectricity; + + /** + * 监测点标签 + */ + @ApiModelProperty(name = "monitorTag", value = "监测点标签") + private String monitorTag; + + /** + * 监测对象类型(字典) + */ + @ApiModelProperty(name = "monitorObjectType", value = "监测对象类型(字典)") + private String monitorObjectType; + + /** + * 监测对象编号 + */ + @ApiModelProperty(name = "monitorObjectId", value = "监测对象编号") + private String monitorObjectId; + + /** + * 监测对象名称 + */ + @ApiModelProperty(name = "monitorObjectName", value = "监测对象名称") + private String monitorObjectName; + + /** + * 统计间隔 + */ + @ApiModelProperty(name = "statisticalInterval", value = "统计间隔") + private Integer statisticalInterval; + + /** + * 关联的监测终端编号(外键) + */ + @ApiModelProperty(name = "terminalId", value = "关联的监测终端编号(外键)") + private String terminalId; + + /** + * 监测终端接线方式(字典) + */ + @ApiModelProperty(name = "terminalWiringMethod", value = "监测终端接线方式(字典)") + private String terminalWiringMethod; + + /** + * 是否是上送国网监测点,0-否 1-是 + */ + @ApiModelProperty(name = "isUpToGrid", value = "是否是上送国网监测点,0-否 1-是") + private Integer isUpToGrid; + + /** + * 数据状态:0-删除;1-正常; + */ + @ApiModelProperty(name = "status", value = "数据状态:0-删除;1-正常;") + private Integer status; + + /** + * 创建用户 + */ + @ApiModelProperty(name = "createBy", value = "创建用户") + private String createBy; + + /** + * 创建时间 + */ + @ApiModelProperty(name = "createTime", value = "创建时间") + private Date createTime; + + /** + * 更新用户 + */ + @ApiModelProperty(name = "updateBy", value = "更新用户") + private String updateBy; + + /** + * 更新时间 + */ + @ApiModelProperty(name = "updateTime", value = "更新时间") + private Date updateTime; + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PmsTerminalVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PmsTerminalVO.java new file mode 100644 index 000000000..55dc2f321 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PmsTerminalVO.java @@ -0,0 +1,94 @@ +package com.njcn.device.pms.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +@Data +public class PmsTerminalVO implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(name = "Id", value = "终端编号") + private String Id; + + @ApiModelProperty(name = "Name", value = "终端名称") + private String Name; + + @ApiModelProperty(name = "OrgName", value = "组织机构名称") + private String OrgName; + + @ApiModelProperty(name = "OrgId", value = "组织机构ID") + private String OrgId; + + @ApiModelProperty(name = "OperationName", value = "运维单位名称") + private String OperationName; + + @ApiModelProperty(name = "OperationId", value = "运维单位ID") + private String OperationId; + + @ApiModelProperty(name = "PowerrName", value = "变电站名称") + private String PowerrName; + + @ApiModelProperty(name = "PowerStationId", value = "所属电站ID") + private String PowerStationId; + + @ApiModelProperty(name = "TerminalState", value = "终端状态") + private String TerminalState; + + @ApiModelProperty(name = "TerminalLevel", value = "终端级别") + private String TerminalLevel; + + @ApiModelProperty(name = "DeviceModel", value = "装置型号") + private String DeviceModel; + + @ApiModelProperty(name = "Manufacture", value = "生产厂家") + private String Manufacture; + + @ApiModelProperty(name = "VerificationDate", value = "检定日期") + private String VerificationDate; + + @ApiModelProperty(name = "UseDate", value = "投用日期") + private String UseDate; + + @ApiModelProperty(name = "InputType", value = "测量信号输入形式") + private String InputType; + + @ApiModelProperty(name = "Ip", value = "IP地址") + private String Ip; + + @ApiModelProperty(name = "Port", value = "通信端口") + private String Port; + + @ApiModelProperty(name = "IsUpToGrid", value = "是否是上送国网监测点,0-否 1-是") + private Integer IsUpToGrid; + + @ApiModelProperty(name = "Status", value = "数据状态:0-删除;1-正常") + private Integer Status; + + /** + * 创建用户 + */ + @ApiModelProperty(name = "createBy", value = "创建用户") + private String createBy; + + /** + * 创建时间 + */ + @ApiModelProperty(name = "createTime", value = "创建时间") + private Date createTime; + + /** + * 更新用户 + */ + @ApiModelProperty(name = "updateBy", value = "更新用户") + private String updateBy; + + /** + * 更新时间 + */ + @ApiModelProperty(name = "updateTime", value = "更新时间") + private Date updateTime; +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PowerDistributionareaVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PowerDistributionareaVO.java new file mode 100644 index 000000000..aef636acf --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PowerDistributionareaVO.java @@ -0,0 +1,108 @@ +package com.njcn.device.pms.pojo.vo; + + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +@Data +public class PowerDistributionareaVO implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(name = "Id", value = "台区编号") + private String Id; + + @ApiModelProperty(name = "Name", value = "台区名称") + private String Name; + + @ApiModelProperty(name = "OrgName", value = "组织机构名称") + private String OrgName; + + @ApiModelProperty(name = "OrgId", value = "组织机构ID") + private String OrgId; + + @ApiModelProperty(name = "OperationName", value = "运维单位名称") + private String OperationName; + + @ApiModelProperty(name = "OperationId", value = "运维单位ID") + private String OperationId; + + @ApiModelProperty(name = "PowerrName", value = "变电站名称") + private String PowerrName; + + @ApiModelProperty(name = "PowerStationId", value = "电站ID") + private String PowerStationId; + + @ApiModelProperty(name = "LineName", value = "监测线路名称") + private String LineName; + + @ApiModelProperty(name = "LineId", value = "所属线路ID") + private String LineId; + + @ApiModelProperty(name = "PCapacity", value = "配变容量") + private Float PCapacity; + + @ApiModelProperty(name = "Regionalism", value = "地区特征") + private String Regionalism; + + @ApiModelProperty(name = "IfRuralPowerGrid", value = "是否农网:0-否;1:是") + private Integer IfRuralPowerGrid; + + @ApiModelProperty(name = "NatureOfUse", value = "使用性质") + private String NatureOfUse; + + @ApiModelProperty(name = "PowerSupplyRadius", value = "供电半径") + private Float PowerSupplyRadius; + + @ApiModelProperty(name = "LineLength", value = "供电线路总长度") + private Float LineLength; + + @ApiModelProperty(name = "State", value = "运行状态") + private String State; + + @ApiModelProperty(name = "DistributedPhotovoltaicNum", value = "分布式光伏用户数") + private Integer DistributedPhotovoltaicNum; + + @ApiModelProperty(name = "PhotovoltaicCapacity", value = "分布式光伏总装机容量") + private Float PhotovoltaicCapacity; + + @ApiModelProperty(name = "IfBevAp", value = "是否有电动汽车接入:0-否;1:是") + private Integer IfBevAp; + + @ApiModelProperty(name = "ApLoadType", value = "接入负荷类型") + private String ApLoadType; + + @ApiModelProperty(name = "IsUpToGrid", value = "是否是上送国网监测点,0-否 1-是") + private Integer IsUpToGrid; + + @ApiModelProperty(name = "Status", value = "数据状态:0-删除;1-正常") + private Integer Status; + + /** + * 创建用户 + */ + @ApiModelProperty(name = "createBy", value = "创建用户") + private String createBy; + + /** + * 创建时间 + */ + @ApiModelProperty(name = "createTime", value = "创建时间") + private Date createTime; + + /** + * 更新用户 + */ + @ApiModelProperty(name = "updateBy", value = "更新用户") + private String updateBy; + + /** + * 更新时间 + */ + @ApiModelProperty(name = "updateTime", value = "更新时间") + private Date updateTime; + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/ProblemMonitorDetailVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/ProblemMonitorDetailVO.java new file mode 100644 index 000000000..5e4287ba7 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/ProblemMonitorDetailVO.java @@ -0,0 +1,41 @@ +package com.njcn.device.pms.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; + +/** + * 告警统计-监测点详情 + * @Title ProblemMonitorDetailVO + * @Package com.njcn.device.pms.pojo.vo + * @Author jianghaifei + * @Date 2022-10-13 19:35 + * @Version V1.0 + */ +@Data +public class ProblemMonitorDetailVO implements Serializable { + private static final long serialVersionUID = 1L; + + @ApiModelProperty(name = "orgNo", value = "单位id") + private String orgNo; + + @ApiModelProperty(name = "orgName", value = "单位名称") + private String orgName; + + @ApiModelProperty(name = "monitorId", value = "监测点id") + private String monitorId; + + @ApiModelProperty(name = "monitorName", value = "监测点名称") + private String monitorName; + + @ApiModelProperty(name = "powerName", value = "变电站名称") + private String powerName; + + @ApiModelProperty(name = "voltageLevel", value = "变电站电压等级id") + private String voltageLevel; + + @ApiModelProperty(name = "voltageLevelName", value = "变电站电压等级") + private String voltageLevelName; + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvDeviceVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvDeviceVO.java deleted file mode 100644 index b41d40886..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvDeviceVO.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.njcn.device.pms.pojo.vo; - -import com.njcn.device.pms.pojo.po.PvDevice; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - * pqs - * - * @author cdf - * @date 2022/7/26 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class PvDeviceVO extends PvDevice { - - private String devTypeName; - - private String typeName; - - private String typeCode; - - private String manufacturerName; - - /** - * 终端级别中文名称 - */ - private String devGradeName; -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvDistributedVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvDistributedVO.java deleted file mode 100644 index cfac09819..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvDistributedVO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.njcn.device.pms.pojo.vo; - -import com.njcn.device.pms.pojo.po.PvDistributed; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - * pqs - * - * @author cdf - * @date 2022/7/26 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class PvDistributedVO extends PvDistributed { - private String scaleName; -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvLineAllDetailVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvLineAllDetailVO.java deleted file mode 100644 index b6af81f64..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvLineAllDetailVO.java +++ /dev/null @@ -1,242 +0,0 @@ -package com.njcn.device.pms.pojo.vo; - -import lombok.Data; - -import java.time.LocalDate; - -/** - * pqs - * - * @author cdf - * @date 2022/7/12 - */ -@Data -public class PvLineAllDetailVO { - - - /** - * 监测点序号 - */ - private String id; - - private String name; - - private String code; - - /** - * 所属终端 - */ - private String devName; - - private String devId; - - /** - * 监测点类型(I类监测点、II类监测点、III类监测点),字典表 - */ - private String type; - - /** - * 监测点类型(I类监测点、II类监测点、III类监测点),字典表 - */ - private String typeName; - - private String substationId; - /** - * 所属变电站(I类监测点) - */ - private String substationName; - - /** - * 所属母线名称(I类监测点) - */ - private String voltageName; - - private String voltageId; - - /** - * 所属台区ID(II类监测点) - */ - private String subAreaName; - private String subAreaId; - - private String userCode; - - private String userCodeType; - - /** - * 分布式光伏名称 - */ - private String distributeName; - private String distributeId; - - /** - * 低压用户名称 - */ - private String lvUserName; - private String lvUserId; - - /** - * 电压等级 - */ - private String scale; - - private String scaleName; - - /** - * 线路号(在同一台设备中的监测点号) - */ - 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; - - /** - * 接线类型 - */ - private String ptType; - - private String ptTypeName; - - /** - * 测量间隔(1-10分钟) - */ - private Integer timeInterval; - - /** - * 干扰源类型,字典表 - */ - private String loadType; - private String loadTypeName; - - /** - * 行业类型,字典表 - */ - private String businessType; - - /** - * 网公司谐波监测平台标志(0-否;1-是),默认否 - */ - private Integer monitorFlag; - - /** - * 电网标志(0-电网侧;1-非电网侧) - */ - private Integer powerFlag; - - /** - * 国网谐波监测平台监测点号 - */ - private String monitorId; - - /** - * 监测点对象名称 - */ - private String objName; - - /** - * 监测点对象小类 - */ - private String smallName; - - /** - * 监测点对象大类 - */ - private String bigName; - - /** - * 人为干预是否参与统计(0:不参与,1:参与)默认参与统计 - */ - private Integer statFlag; - - /** - * 备注 - */ - private String remark; - - /** - * 电压互感器类型,字典表 - */ - private String tfType; - - private String tfTypeName; - - /** - * 所属变压器编号 - */ - private String tfCode; - - /** - * 中性点接地方式,字典表 - */ - private String groundType; - - private String groundTypeName; - - /** - * 投运日期 - */ - private LocalDate putIn; - - /** - * 接入日期 - */ - private LocalDate access; - - /** - * 是否专项供电(0:否,1:是)默认参与统计 - */ - private Integer powerSupply; - - /** - * 状态 - */ - private Integer state; - - - /** - * 监测点状态 - * @author cdf - * @date 2022/7/27 - */ - private Integer lineStatus; - -} - - diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvLvUserVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvLvUserVO.java deleted file mode 100644 index 6feb82941..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvLvUserVO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.njcn.device.pms.pojo.vo; - -import com.njcn.device.pms.pojo.po.PvLvUser; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - * pqs - * - * @author cdf - * @date 2022/7/26 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class PvLvUserVO extends PvLvUser { - private String scaleName; -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvSubAreaVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvSubAreaVO.java deleted file mode 100644 index dc5e66e95..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvSubAreaVO.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.njcn.device.pms.pojo.vo; - -import com.njcn.device.pms.pojo.po.PvSubArea; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - * pqs - * - * @author cdf - * @date 2022/7/26 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class PvSubAreaVO extends PvSubArea { - - @ApiModelProperty(name = "scaleName",value = "电压等级") - private String scaleName; - - @ApiModelProperty(name = "unitName",value = "单位名称") - private String unitName; - - @ApiModelProperty(name = "tenVoltageName",value = "10kv线路表") - private String tenVoltageName; -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvSubstationVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvSubstationVO.java deleted file mode 100644 index ced9c0b3a..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvSubstationVO.java +++ /dev/null @@ -1,60 +0,0 @@ -package com.njcn.device.pms.pojo.vo; - -import lombok.Data; - -/** - * pqs - * - * @author cdf - * @date 2022/7/25 - */ -@Data -public class PvSubstationVO { - - /** - * 变电站表Id - */ - private String id; - - /** - * 所属单位Id - */ - private String unitId; - - - /** - * 所属单位名称 - */ - private String unitName; - - /** - * 变电站名称 - */ - private String name; - - /** - * 变电站编号 - */ - private String subCode; - - /** - * 电压等级Id,字典表 - */ - private String scale; - - /** - * 电压等级名称 - */ - private String scaleName; - - /** - * 变电站总容量(MVA)(手动填写) - */ - private Double totalCapacity; - - /** - * 运维班组Code - */ - private String teamCode; - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvTenVoltageVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvTenVoltageVO.java deleted file mode 100644 index 8309c1bc9..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/PvTenVoltageVO.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.njcn.device.pms.pojo.vo; - -import com.njcn.device.pms.pojo.po.PvTenVoltage; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - * pqs - * - * @author cdf - * @date 2022/7/26 - */ -@Data -@EqualsAndHashCode(callSuper = true) -public class PvTenVoltageVO extends PvTenVoltage { - - - private String scaleName; - - @ApiModelProperty(name = "designScaleName",value = "设计电压",required = true) - private String designScaleName; - -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RMpMonitorAlarmCountMVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RMpMonitorAlarmCountMVO.java new file mode 100644 index 000000000..75e347be1 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RMpMonitorAlarmCountMVO.java @@ -0,0 +1,147 @@ +package com.njcn.device.pms.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * @author jianghf + * 监测点告警统计-月表 + * @TableName r_mp_monitor_alarm_count_m + */ +@Data +public class RMpMonitorAlarmCountMVO implements Serializable { + + private static final long serialVersionUID = 1L; + + + @ApiModelProperty(name = "orgNo", value = "所属单位id") + private String orgNo; + + @ApiModelProperty(name = "orgName", value = "所属单位名称") + private String orgName; + + @ApiModelProperty(name = "measurementPointId", value = "监测点ID") + private String measurementPointId; + + @ApiModelProperty(name = "measurementPointName", value = "监测点名称") + private String measurementPointName; + + @ApiModelProperty(name = "monitorType", value = "监测点类型id") + private String monitorType; + + @ApiModelProperty(name = "monitorTypeName", value = "监测点类型名称") + private String monitorTypeName; + + @ApiModelProperty(name = "voltage_Level", value = "电压等级id") + private String voltageLevel; + + @ApiModelProperty(name = "voltageLevelName", value = "电压等级名称") + private String voltageLevelName; + + /** + * 生成数据的时间,每月统计一次 + */ + @ApiModelProperty(name = "dataDate", value = "生成数据的时间,每月统计一次") + private Date dataDate; + + /** + * 电压偏差告警情况(0:否 1:是) + */ + @ApiModelProperty(name = "vdevAlarmInfo", value = "电压偏差告警情况(0:否 1:是)") + private Integer vdevAlarmInfo; + + /** + * 电压偏差严重度 + */ + @ApiModelProperty(name = "vdevSeverity", value = "电压偏差严重度") + private Integer vdevSeverity; + + /** + * 频率偏差告警情况(0:否 1:是) + */ + @ApiModelProperty(name = "freqAlarmInfo", value = "频率偏差告警情况(0:否 1:是)") + private Integer freqAlarmInfo; + + /** + * 频率偏差严重度 + */ + @ApiModelProperty(name = "freqSeverity", value = "频率偏差严重度") + private Integer freqSeverity; + + /** + * 三相电压不平衡度告警情况(0:否 1:是) + */ + @ApiModelProperty(name = "unbalanceAlarmInfo", value = "三相电压不平衡度告警情况(0:否 1:是)") + private Integer unbalanceAlarmInfo; + + /** + * 三相电压不平衡度严重度 + */ + @ApiModelProperty(name = "unbalanceSeverity", value = "三相电压不平衡度严重度") + private Integer unbalanceSeverity; + + /** + * 谐波电压告警情况(0:否 1:是) + */ + @ApiModelProperty(name = "vAlarmInfo", value = "谐波电压告警情况(0:否 1:是)") + private Integer vAlarmInfo; + + /** + * 谐波电压严重度 + */ + @ApiModelProperty(name = "vSeverity", value = "谐波电压严重度") + private Integer vSeverity; + + /** + * 闪变告警情况(0:否 1:是) + */ + @ApiModelProperty(name = "flickerAlarmInfo", value = "闪变告警情况(0:否 1:是)") + private Integer flickerAlarmInfo; + + /** + * 闪变严重度 + */ + @ApiModelProperty(name = "flickerSeverity", value = "闪变严重度") + private Integer flickerSeverity; + + /** + * 电压暂降告警情况(0:否 1:是) + */ + @ApiModelProperty(name = "sagAlarmInfo", value = "电压暂降告警情况(0:否 1:是)") + private Integer sagAlarmInfo; + + /** + * 电压暂降告严重度 + */ + @ApiModelProperty(name = "sagSeverity", value = "电压暂降严重度") + private Integer sagSeverity; + + /** + * 短时中断告警情况(0:否 1:是) + */ + + @ApiModelProperty(name = "interruptAlarmInfo", value = "短时中断告警情况(0:否 1:是)") + private Integer interruptAlarmInfo; + + /** + * 短时中断严重度 + */ + @ApiModelProperty(name = "interruptSeverity", value = "短时中断告严重度") + private Integer interruptSeverity; + + /** + * 稳态指标评级结果(0 较差 1中等 2较好) + */ + @ApiModelProperty(name = "harmonicTypeGrade", value = "稳态指标评级结果(0 较差 1中等 2较好)") + private Integer harmonicTypeGrade; + + /** + * 暂态指标评级结果(0 较差 1中等 2较好) + */ + @ApiModelProperty(name = "eventTypeGrade", value = "暂态指标评级结果(0 较差 1中等 2较好)") + private Integer eventTypeGrade; + +} \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatAreaAlarmCountMVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatAreaAlarmCountMVO.java new file mode 100644 index 000000000..86ef168ca --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatAreaAlarmCountMVO.java @@ -0,0 +1,140 @@ +package com.njcn.device.pms.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * @author jianghf + * 区域告警统计(月) + * @TableName r_stat_area_alarm_count_m + */ +@Data +public class RStatAreaAlarmCountMVO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 单位ID + */ + @ApiModelProperty(name = "orgNo", value = "单位ID") + private String orgNo; + + /** + * 单位名称 + */ + @ApiModelProperty(name = "orgName", value = "单位名称") + private String orgName; + /** + * 生成数据的时间,每月统计一次 + */ + @ApiModelProperty(name = "dataDate", value = "生成数据的时间,每月统计一次") + private Date dataDate; + + /** + * 数据类型(0:主网 1:配网) + */ + @ApiModelProperty(name = "dataType", value = "数据类型(0:主网 1:配网)") + private Integer dataType; + + /** + * 电压偏差告警情况(0:否 1:是) + */ + @ApiModelProperty(name = "vdevAlarmInfo", value = "电压偏差告警情况(0:否 1:是)") + private Integer vdevAlarmInfo; + + /** + * 电压偏差告警超标占比 + */ + @ApiModelProperty(name = "vdevAlarmRatio", value = "电压偏差告警超标占比") + private Integer vdevAlarmRatio; + + /** + * 频率偏差告警情况(0:否 1:是) + */ + @ApiModelProperty(name = "freqAlarmInfo", value = "频率偏差告警情况(0:否 1:是)") + private Integer freqAlarmInfo; + + /** + * 频率偏差告警超标占比 + */ + @ApiModelProperty(name = "freqAlarmRatio", value = "频率偏差告警超标占比") + private Integer freqAlarmRatio; + + /** + * 三相电压不平衡度告警情况(0:否 1:是) + */ + @ApiModelProperty(name = "unbalanceAlarmInfo", value = "三相电压不平衡度告警情况(0:否 1:是)") + private Integer unbalanceAlarmInfo; + + /** + * 三相电压不平衡度告警超标占比 + */ + @ApiModelProperty(name = "unbalanceAlarmRatio", value = "三相电压不平衡度告警超标占比") + private Integer unbalanceAlarmRatio; + + /** + * 谐波电压告警情况(0:否 1:是) + */ + @ApiModelProperty(name = "vAlarmInfo", value = "谐波电压告警情况(0:否 1:是)") + private Integer vAlarmInfo; + + /** + * 谐波电压告警超标占比 + */ + @ApiModelProperty(name = "vAlarmRatio", value = "谐波电压告警超标占比") + private Integer vAlarmRatio; + + /** + * 闪变告警情况(0:否 1:是) + */ + @ApiModelProperty(name = "flickerAlarmInfo", value = "闪变告警情况(0:否 1:是)") + private Integer flickerAlarmInfo; + + /** + * 闪变告警超标占比 + */ + @ApiModelProperty(name = "flickerAlarmRatio", value = "闪变告警超标占比") + private Integer flickerAlarmRatio; + + /** + * 电压暂降告警情况(0:否 1:是) + */ + @ApiModelProperty(name = "sagAlarmInfo", value = "电压暂降告警情况(0:否 1:是)") + private Integer sagAlarmInfo; + + /** + * 电压暂降告警平均发生次数 + */ + @ApiModelProperty(name = "sagAlarmAvgCount", value = "电压暂降告警平均发生次数") + private Integer sagAlarmAvgCount; + + /** + * 短时中断告警情况(0:否 1:是) + */ + + @ApiModelProperty(name = "interruptAlarmInfo", value = "短时中断告警情况(0:否 1:是)") + private Integer interruptAlarmInfo; + + /** + * 短时中断告警平均发生次数 + */ + @ApiModelProperty(name = "interruptAlarmAvgCount", value = "短时中断告警平均发生次数") + private Integer interruptAlarmAvgCount; + + /** + * 稳态指标评级结果(0 较差 1中等 2较好) + */ + @ApiModelProperty(name = "harmonicTypeGrade", value = "稳态指标评级结果(0 较差 1中等 2较好)") + private Integer harmonicTypeGrade; + + /** + * 暂态指标评级结果(0 较差 1中等 2较好) + */ + @ApiModelProperty(name = "eventTypeGrade", value = "暂态指标评级结果(0 较差 1中等 2较好)") + private Integer eventTypeGrade; + + +} \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatBusbarHarmonicVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatBusbarHarmonicVO.java new file mode 100644 index 000000000..8795cac7f --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatBusbarHarmonicVO.java @@ -0,0 +1,186 @@ +package com.njcn.device.pms.pojo.vo; + +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; + +/** + * 变电站母线电压指标年报返回前端实体类 + * + * @author yzh + * @date 2022/10/8 + */ + +@Data +@ApiModel(value = "变电站母线电压指标年报返回前端实体类") +public class RStatBusbarHarmonicVO implements Serializable { + + private static final long serialVersionUID = 835979721790264805L; + /** + * 部门id + */ + @ApiModelProperty(name = "deptId", value = "部门id") + private String deptId; + + /** + * 所属单位 + */ + @ApiModelProperty(name = "company", value = "单位") + private String company; + + /** + * 变电站id + */ + @ApiModelProperty(name = "subId", value = "变电站id") + private String subId; + + /** + * 变电站名称 + */ + @ApiModelProperty(name = "subName", value = "变电站名称") + private String subName; + + /** + * 变电站电压等级 + */ + @ApiModelProperty(name = "subVoltageLevel", value = "变电站电压等级") + private String subVoltageLevel; + + /** + * 母线名称 + */ + @ApiModelProperty(name = "busbarName", value = "母线名称") + private String busbarName; + + /** + * 母线id + */ + @ApiModelProperty(name = "busbarId", value = "母线id") + @TableField(value = "busbar_id") + private String busbarId; + + + /** + * 生成数据的时间,每年统计一次 + */ + @ApiModelProperty(name = "dataDate", value = "生成数据的时间,每年统计一次") + @TableField(value = "data_date") + private String dataDate; + + /** + * 电压有效最大值 + */ + @ApiModelProperty(name = "vEffectiveMax", value = "电压有效最大值") + @TableField(value = "v_effective_max") + private Double vEffectiveMax; + + /** + * 电压有效最小值 + */ + @ApiModelProperty(name = "vEffectiveMin", value = "电压有效最小值") + @TableField(value = "v_effective_min") + private Double vEffectiveMin; + + /** + * 电压有效平均值 + */ + @ApiModelProperty(name = "vEffectiveAvg", value = "电压有效平均值") + @TableField(value = "v_effective_avg") + private Double vEffectiveAvg; + + /** + * 电压有效值95概率大值 + */ + @ApiModelProperty(name = "vEffective95", value = "电压有效值95概率大值") + @TableField(value = "v_effective_95") + private Double vEffective95; + + /** + * 电压总谐波畸变率最大值 + */ + @ApiModelProperty(name = "vThdMax", value = "电压总谐波畸变率最大值") + @TableField(value = "v_thd_max") + private Double vThdMax; + + /** + * 电压总谐波畸变率最小值 + */ + @ApiModelProperty(name = "vThdMin", value = "电压总谐波畸变率最小值") + @TableField(value = "v_thd_min") + private Double vThdMin; + + /** + * 电压总谐波畸变率平均值 + */ + @ApiModelProperty(name = "vThdAvg", value = "电压总谐波畸变率平均值") + @TableField(value = "v_thd_avg") + private Double vThdAvg; + + /** + * 电压总谐波畸变率95概率大值 + */ + @ApiModelProperty(name = "vThd95", value = "电压总谐波畸变率95概率大值") + @TableField(value = "v_thd_95") + private Double vThd95; + + /** + * 三相电压不平衡最大值 + */ + @ApiModelProperty(name = "unbalanceMax", value = "三相电压不平衡最大值") + @TableField(value = "unbalance_max") + private Double unbalanceMax; + + /** + * 三相电压不平衡最小值 + */ + @ApiModelProperty(name = "unbalanceMin", value = "三相电压不平衡最小值") + @TableField(value = "unbalance_min") + private Double unbalanceMin; + + /** + * 三相电压不平衡平均值 + */ + @ApiModelProperty(name = "unbalanceAvg", value = "三相电压不平衡平均值") + @TableField(value = "unbalance_avg") + private Double unbalanceAvg; + + /** + * 三相电压不平衡95概率大值 + */ + @ApiModelProperty(name = "unbalance95", value = "三相电压不平衡95概率大值") + @TableField(value = "unbalance_95") + private Double unbalance95; + + /** + * 闪变最大值 + */ + @ApiModelProperty(name = "flickerMax", value = "闪变最大值") + @TableField(value = "flicker_max") + private Double flickerMax; + + /** + * 闪变最小值 + */ + @ApiModelProperty(name = "flickerMin", value = "闪变最小值") + @TableField(value = "flicker_min") + private Double flickerMin; + + /** + * 闪变平均值 + */ + @ApiModelProperty(name = "flickerAvg", value = "闪变平均值") + @TableField(value = "flicker_avg") + private Double flickerAvg; + + /** + * 闪变95概率大值 + */ + @ApiModelProperty(name = "flicker95", value = "闪变95概率大值") + @TableField(value = "flicker_95") + private Double flicker95; + + +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatEventOrgVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatEventOrgVO.java new file mode 100644 index 000000000..558939945 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatEventOrgVO.java @@ -0,0 +1,157 @@ +package com.njcn.device.pms.pojo.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.Date; +import java.io.Serializable; +import java.util.List; + +/** + * 监测点暂态指标数据统计表(RStatEventOrg)实体类 + * + * @author yzh + * @since 2022-10-12 18:15:26 + */ + +@Data +@ApiModel("监测点暂态指标数据统计表") +public class RStatEventOrgVO implements Serializable { + private static final long serialVersionUID = -15971491825708754L; + /** + * 单位ID + */ + @ApiModelProperty(name = "orgNo", value = "单位ID") + private String orgNo; + + /** + * 单位名称 + */ + @ApiModelProperty(name = "orgName", value = "单位名称") + private String orgName; + + /** + * 生成数据的时间,每年统计一次 + */ + @ApiModelProperty(name = "dataDate", value = "生成数据的时间,每年统计一次") + private Date dataDate; + + /** + * 日均有效接入监测点数 + */ + @ApiModelProperty(name = "effectiveMeasurementAverage", value = "日均有效接入监测点数") + private Integer effectiveMeasurementAverage; + + /** + * 累计有效接入监测点数 + */ + @ApiModelProperty(name = "effectiveMeasurementAccrued", value = "累计有效接入监测点数") + private Integer effectiveMeasurementAccrued; + + /** + * 日均监测到暂态指标的监测点数 + */ + @ApiModelProperty(name = "eventMeasurementAverage", value = "日均监测到暂态指标的监测点数") + private Integer eventMeasurementAverage; + + /** + * 累计监测到暂态指标的监测点数 + */ + @ApiModelProperty(name = "eventMeasurementAccrued", value = "累计监测到暂态指标的监测点数") + private Integer eventMeasurementAccrued; + + /** + * 日均暂态超标监测点数占比 + */ + @ApiModelProperty(name = "eventMeasurementRatioAverage", value = "日均暂态超标监测点数占比") + private Integer eventMeasurementRatioAverage; + + /** + * 累计暂态超标监测点数占比 + */ + @ApiModelProperty(name = "eventMeasurementRatioAccrued", value = "累计暂态超标监测点数占比") + private Integer eventMeasurementRatioAccrued; + + /** + * 暂态指标类型Id,字典表ID + */ + @ApiModelProperty(name = "eventType", value = "暂态指标类型Id,字典表ID") + private String eventType; + + /** + * 日均短时中断 + */ + @ApiModelProperty(name = "eEventMeasurementAverage", value = "日均暂态指标") + private Integer eEventMeasurementAverage; + + /** + * 累计短时中断 + */ + @ApiModelProperty(name = "eEventMeasurementAccrued", value = "累计暂态指标") + private Integer eEventMeasurementAccrued; + + /** + * 日均短时中断占比 + */ + @ApiModelProperty(name = "eEventMeasurementRatioAverage", value = "日均暂态指标占比") + private Double eEventMeasurementRatioAverage; + + /** + * 累计短时中断占比 + */ + @ApiModelProperty(name = "eEventMeasurementRatioAccrued", value = "累计暂态指标占比") + private Double eEventMeasurementRatioAccrued; + + + + /** + * 暂态指标 + */ + @ApiModelProperty(name = "shortInterruptions", value = "短时中断") + private List eventStatis; + + + /** + * 暂态指标 + */ + @Data + public static class EventStatis { + + /** + * 字典名称 + */ + private String dictDataName; + + /** + * 暂态指标类型Id,字典表ID + */ + @ApiModelProperty(name = "eventType", value = "暂态指标类型Id,字典表ID") + private String eventType; + + /** + * 日均短时中断 + */ + @ApiModelProperty(name = "eEventMeasurementAverage", value = "日均暂态指标") + private Integer eEventMeasurementAverage; + + /** + * 累计短时中断 + */ + @ApiModelProperty(name = "eEventMeasurementAccrued", value = "累计暂态指标") + private Integer eEventMeasurementAccrued; + + /** + * 日均短时中断占比 + */ + @ApiModelProperty(name = "eEventMeasurementRatioAverage", value = "日均暂态指标占比") + private Double eEventMeasurementRatioAverage; + + /** + * 累计短时中断占比 + */ + @ApiModelProperty(name = "eEventMeasurementRatioAccrued", value = "累计暂态指标占比") + private Double eEventMeasurementRatioAccrued; + } +} + diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatOrgVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatOrgVO.java new file mode 100644 index 000000000..cd89d5074 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatOrgVO.java @@ -0,0 +1,87 @@ +package com.njcn.device.pms.pojo.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * 区域分类统计表(RStatOrgY)实体类 + * + * @author yzh + * @date 2022/10/10 + */ + +@Data +@ApiModel(value = "区域分类统计表(RStatOrgY)实体类") +public class RStatOrgVO implements Serializable { + private static final long serialVersionUID = 642166320324597986L; + /** + * 单位ID + */ + @ApiModelProperty(name = "orgNo", value = "单位ID") + private String orgNo; + + /** + * 单位名称 + */ + @ApiModelProperty(name = "orgName", value = "单位名称") + private String orgName; + + /** + * 生成数据的时间 + */ + @ApiModelProperty(name = "dataDate", value = "生成数据的时间") + private String dataDate; + + /** + * 日均有效接入监测点数 + */ + @ApiModelProperty(name = "effectiveMeasurementAverage", value = "日均有效接入监测点数") + private Integer effectiveMeasurementAverage; + + /** + * 累计有效接入监测点数 + */ + @ApiModelProperty(name = "effectiveMeasurementAccrued", value = "累计有效接入监测点数") + private Integer effectiveMeasurementAccrued; + + /** + * 日均监测到暂态指标的监测点数 + */ + @ApiModelProperty(name = "eventMeasurementAverage", value = "日均监测到暂态指标的监测点数") + private Integer eventMeasurementAverage; + + /** + * 累计监测到暂态指标的监测点数 + */ + @ApiModelProperty(name = "eventMeasurementAccrued", value = "累计监测到暂态指标的监测点数") + private Integer eventMeasurementAccrued; + + /** + * 日均暂态超标监测点数占比 + */ + @ApiModelProperty(name = "eventMeasurementRatioAverage", value = "日均暂态超标监测点数占比") + private Integer eventMeasurementRatioAverage; + + /** + * 累计暂态超标监测点数占比 + */ + @ApiModelProperty(name = "eventMeasurementRatioAccrued", value = "累计暂态超标监测点数占比") + private Integer eventMeasurementRatioAccrued; + + /** + * 暂态指标发生频次 + */ + @ApiModelProperty(name = "eventFreq", value = "暂态指标发生频次") + private Double eventFreq; + + /** + * 暂态指标发生次数 + */ + @ApiModelProperty(name = "eventCount", value = "暂态指标发生次数") + private Integer eventCount; + +} \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatSubstationVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatSubstationVO.java new file mode 100644 index 000000000..76e6ed277 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatSubstationVO.java @@ -0,0 +1,116 @@ +package com.njcn.device.pms.pojo.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * 变电站指标统计表实体类 + * + * @author yzh + * @since 2022-10-11 16:15:48 + */ +@Data +@ApiModel(value = "变电站指标统计表实体类") +public class RStatSubstationVO implements Serializable { + private static final long serialVersionUID = 117875946877905400L; + + /** + * 单位id + */ + @ApiModelProperty(name = "deptId",value = "单位id") + private String deptId; + + /** + * 单位名称 + */ + @ApiModelProperty(name = "deptName",value = "单位名称") + private String deptName; + + /** + * 变电站id + */ + @ApiModelProperty(name = "substationId",value = "变电站id") + private String substationId; + + /** + * 变电站名称 + */ + @ApiModelProperty(name = "substationName",value = "变电站名称") + private String substationName; + + /** + * 生成数据的时间 + */ + @ApiModelProperty(name = "dataDate",value = "生成数据的时间") + private String dataDate; + + /** + * 日均有效接入监测点数 + */ + @ApiModelProperty(name = "effectiveMeasurementAverage",value = "日均有效接入监测点数") + private Integer effectiveMeasurementAverage; + + /** + * 累计有效接入监测点数 + */ + @ApiModelProperty(name = "effectiveMeasurementAccrued",value = "累计有效接入监测点数") + private Integer effectiveMeasurementAccrued; + + + /** + * 暂态指标发生次数 + */ + @ApiModelProperty(name = "eventCount",value = "暂态指标发生次数") + private Integer eventCount; + + /** + * 暂态指标发生频次 + */ + @ApiModelProperty(name = "eventFreq",value = "暂态指标发生频次") + private Double eventFreq; + + /** + * 短时中断发生次数 + */ + @ApiModelProperty(name = "interruptCount",value = "短时中断发生次数") + private Integer interruptCount; + + /** + * 短时中断发生频次 + */ + @ApiModelProperty(name = "interruptFreq",value = "短时中断发生频次") + private Double interruptFreq; + + + + /** + * 电压暂升发生次数 + */ + @ApiModelProperty(name = "swellCount",value = "电压暂升发生次数") + private Integer swellCount; + + /** + * 电压暂升发生频次 + */ + @ApiModelProperty(name = "swellFreq",value = "电压暂升发生频次") + private Double swellFreq; + + /** + * 电压暂降发生次数 + */ + @ApiModelProperty(name = "sagCount",value = "电压暂降发生次数") + private Integer sagCount; + + /** + * 电压暂降发生频次 + */ + @ApiModelProperty(name = "sagFreq",value = "电压暂降发生频次") + private Double sagFreq; + + +} + diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatZwAlarmCountWVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatZwAlarmCountWVO.java new file mode 100644 index 000000000..5bffbf679 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RStatZwAlarmCountWVO.java @@ -0,0 +1,46 @@ +package com.njcn.device.pms.pojo.vo; + +import com.njcn.device.pms.pojo.po.RStatZwAlarmCountW; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.io.Serializable; +import java.util.Date; + +/** + * @author jianghf + * @TableName r_stat_zw_alarm_count_w + */ +@Data +public class RStatZwAlarmCountWVO implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(name = "orgNo", value = "单位id") + private String orgNo; + + @ApiModelProperty(name = "orgName", value = "单位名称") + private String orgName; + + @ApiModelProperty(name = "dataDate", value = "生成数据的时间,每周统计一次") + private Date dataDate; + + @ApiModelProperty(name = "monitorEffectiveCount", value = "有效监测点数量") + private Integer monitorEffectiveCount; + + @ApiModelProperty(name = "warnMonitorCount", value = "告警4次及以上监测点数量") + private Integer warnMonitorCount; + + @ApiModelProperty(name = "monitorGradeCount", value = "级别较差监测点数量") + private Integer monitorGradeCount; + + @ApiModelProperty(name = "warnMonitorRate", value = "告警四次及以上监测点占比") + private Double warnMonitorRate; + + @ApiModelProperty(name = "monitorGradeRate", value = "级别'较差'监测点占比") + private Double monitorGradeRate; + + + +} \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RmpEventDetailVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RmpEventDetailVO.java new file mode 100644 index 000000000..9d0d46605 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/RmpEventDetailVO.java @@ -0,0 +1,94 @@ +package com.njcn.device.pms.pojo.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; + +/** + * 监测点暂态事件明细数据(RMpEventDetail)实体类 + * + * @author yzh + * @since 2022-10-12 10:30:03 + */ + +@Data +@ApiModel("监测点暂态事件明细数据") +public class RmpEventDetailVO implements Serializable { + private static final long serialVersionUID = 544141879378917668L; + + /** + * 单位id + */ + @ApiModelProperty(name = "deptId",value = "单位id") + private String deptId; + + /** + * 单位名称 + */ + @ApiModelProperty(name = "deptName",value = "单位名称") + private String deptName; + + /** + * 暂时事件ID + */ + @ApiModelProperty(name = "eventId",value = "暂时事件ID") + private String eventId; + + /** + * 监测点ID + */ + @ApiModelProperty(name = "measurementPointId",value = "监测点ID") + private String measurementPointId; + + /** + * 监测点名称 + */ + @ApiModelProperty(name = "measurementPointName",value = "监测点名称") + private String measurementPointName; + + /** + * 事件类型 + */ + @ApiModelProperty(name = "eventType",value = "事件类型") + private String eventType; + + /** + * 开始时间 + */ + @ApiModelProperty(name = "startTime",value = "开始时间") + private Long startTime; + + /** + * 持续时间 + */ + @ApiModelProperty(name = "duration",value = "持续时间") + private Double duration; + + /** + * 特征幅值 + */ + @ApiModelProperty(name = "featureAmplitude",value = "特征幅值") + private Double featureAmplitude; + + /** + * 相别 + */ + @ApiModelProperty(name = "phase",value = "相别") + private String phase; + + /** + * 事件描述 + */ + @ApiModelProperty(name = "eventDescribe",value = "事件描述") + private String eventDescribe; + + /** + * 波形路径 + */ + @ApiModelProperty(name = "wavePath",value = "波形路径") + private String wavePath; + +} + diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/StatationStatVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/StatationStatVO.java new file mode 100644 index 000000000..1a5ee7b5e --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/StatationStatVO.java @@ -0,0 +1,55 @@ +package com.njcn.device.pms.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +@Data +public class StatationStatVO implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(name = "PowerId", value = "电站编号") + private String PowerId; + + @ApiModelProperty(name = "PowerName", value = "电站名称") + private String PowerName; + + @ApiModelProperty(name = "OrgId", value = "单位id") + private String OrgId; + + @ApiModelProperty(name = "ShouldBeNum", value = "应设点数量") + private Integer ShouldBeNum; + + @ApiModelProperty(name = "VoltageLevel", value = "电压等级") + private String VoltageLevel; + + @ApiModelProperty(name = "status", value = "数据状态:0-删除;1-正常;") + private Integer status; + + /** + * 创建用户 + */ + @ApiModelProperty(name = "createBy", value = "创建用户") + private String createBy; + + /** + * 创建时间 + */ + @ApiModelProperty(name = "createTime", value = "创建时间") + private Date createTime; + + /** + * 更新用户 + */ + @ApiModelProperty(name = "updateBy", value = "更新用户") + private String updateBy; + + /** + * 更新时间 + */ + @ApiModelProperty(name = "updateTime", value = "更新时间") + private Date updateTime; +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/TractionStationVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/TractionStationVO.java new file mode 100644 index 000000000..10d8a3062 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/TractionStationVO.java @@ -0,0 +1,94 @@ +package com.njcn.device.pms.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +@Data +public class TractionStationVO implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(name = "id",value = "牵引站编号") + private String id; + + @ApiModelProperty(name = "Name", value = "牵引站名称") + private String Name; + + @ApiModelProperty(name = "OrgName", value = "组织机构名称") + private String OrgName; + + @ApiModelProperty(name = "OrgId", value = "组织机构ID") + private String OrgId; + + @ApiModelProperty(name = "OperationName", value = "运维单位名称") + private String OperationName; + + @ApiModelProperty(name = "OperationId", value = "运维单位ID") + private String OperationId; + + @ApiModelProperty(name = "VoltageLevel", value = "供电电压等级") + private String VoltageLevel; + + @ApiModelProperty(name = "RailwayLineId", value = "铁路线路编号") + private String RailwayLineId; + + @ApiModelProperty(name = "RailwayLineName", value = "铁路线路名称") + private String RailwayLineName; + + @ApiModelProperty(name = "ConnetGroupWay", value = "牵引站变压器接线方式") + private String ConnetGroupWay; + + @ApiModelProperty(name = "RatedCapacity", value = "牵引站变电容量") + private Float RatedCapacity; + + @ApiModelProperty(name = "PowerId", value = "供电变电站编号") + private String PowerId; + + @ApiModelProperty(name = "PowerName", value = "供电变电站名称") + private String PowerName; + + @ApiModelProperty(name = "PowerVoltageLevel", value = "供电变电站电压等级") + private String PowerVoltageLevel; + + @ApiModelProperty(name = "IfSpecial", value = "是否专线供电:0-否;1-是;") + private Integer IfSpecial; + + @ApiModelProperty(name = "CreatedDate", value = "创建日期") + private String CreatedDate; + + @ApiModelProperty(name = "UserTag", value = "用户标签") + private String UserTag; + + @ApiModelProperty(name = "IsUpToGrid", value = "是否是上送国网监测点,0-否 1-是") + private Integer IsUpToGrid; + + @ApiModelProperty(name = "Status", value = "数据状态:0-删除;1-正常") + private Integer Status; + + /** + * 创建用户 + */ + @ApiModelProperty(name = "createBy", value = "创建用户") + private String createBy; + + /** + * 创建时间 + */ + @ApiModelProperty(name = "createTime", value = "创建时间") + private Date createTime; + + /** + * 更新用户 + */ + @ApiModelProperty(name = "updateBy", value = "更新用户") + private String updateBy; + + /** + * 更新时间 + */ + @ApiModelProperty(name = "updateTime", value = "更新时间") + private Date updateTime; +} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/UnitTreeVO.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/UnitTreeVO.java deleted file mode 100644 index b420847b2..000000000 --- a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/pojo/vo/UnitTreeVO.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.njcn.device.pms.pojo.vo; - -import lombok.Data; - -import java.util.List; - -/** - * pqs - * - * @author cdf - * @date 2022/7/7 - */ -@Data -public class UnitTreeVO { - - private String id; - - private String pid; - - private String name; - - private String code; - - private List children; -} diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/utils/ExcelUtilXlsx.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/utils/ExcelUtilXlsx.java new file mode 100644 index 000000000..5828ef8b5 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/utils/ExcelUtilXlsx.java @@ -0,0 +1,230 @@ +package com.njcn.device.pms.utils; + +import lombok.extern.slf4j.Slf4j; +import org.apache.poi.ss.usermodel.BorderStyle; +import org.apache.poi.ss.usermodel.HorizontalAlignment; +import org.apache.poi.ss.usermodel.IndexedColors; +import org.apache.poi.ss.usermodel.VerticalAlignment; +import org.apache.poi.ss.util.CellRangeAddress; +import org.apache.poi.ss.util.RegionUtil; +import org.apache.poi.xssf.usermodel.*; + +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.io.OutputStream; +import java.io.UnsupportedEncodingException; +import java.util.List; + +/** + * Excel工具类 + * + * @since 2022/7/22 17:06 + **/ +@Slf4j +public class ExcelUtilXlsx { + /** + * 数据写入 + * + * @param title 表格标题 + * @param colHead 列头(表头) + * @param dataList 数据列表 + * @return 返回表格 + */ + public XSSFWorkbook createExcel(String title, String[] colHead, List dataList) { + // 创建一个表格 + XSSFWorkbook wb = new XSSFWorkbook(); + // 创建工作页并赋名 + XSSFSheet sheet = wb.createSheet("Sheet1"); + // 创建标题 + XSSFRow titleRow = sheet.createRow(0); + XSSFCell titleCell = titleRow.createCell(0); + // 设置标题高度 + titleRow.setHeight((short) (20 * 25)); + // 给标题设置样式 + XSSFCellStyle titleStyle = this.getTitleStyle(wb); + // 给列头(表头)设置样式 + XSSFCellStyle colHeadStyle = this.getColHeadStyle(wb); + // 给数据列表设置样式 + XSSFCellStyle dataListStyle = this.getDataListStyle(wb); + // 合并单元格 起始行 截至列 起始列 截至行 +// sheet.addMergedRegion(new CellRangeAddress(0, 0, 0, dataList.get(0).length - 1)); + CellRangeAddress titleMerge = new CellRangeAddress(0, 0, 0, dataList.get(0).length - 1); + sheet.addMergedRegion(titleMerge); + RegionUtil.setBorderTop(BorderStyle.THIN, titleMerge, sheet); + RegionUtil.setBorderRight(BorderStyle.THIN, titleMerge, sheet); + // 给标题样式附上 + titleCell.setCellStyle(titleStyle); + // 给标题赋值 + titleCell.setCellValue(title); + // 创建表头行 + XSSFRow colHeadRow = sheet.createRow(1); + // 设置表头行高度 + colHeadRow.setHeight((short) (15 * 20)); + // 给表头设置样式并赋值 + for (int i = 0; i < colHead.length; i++) { + XSSFCell colHeadCell = colHeadRow.createCell(i); + colHeadCell.setCellStyle(colHeadStyle); + colHeadCell.setCellValue(colHead[i]); + } + // 将查询到的数据赋到列表 + for (int i = 0; i < dataList.size(); i++) { + // 获取每一行的元素 + Object[] data = dataList.get(i); + // 创建行 + XSSFRow dataRow = sheet.createRow(i + 2); + // 循环当前行的列元素设置样式并赋值 + for (int j = 0; j < data.length; j++) { + XSSFCell dataRowCell = dataRow.createCell(j); + dataRowCell.setCellStyle(dataListStyle); + dataRowCell.setCellValue(data[j].toString()); + // 自适应列宽 + sheet.autoSizeColumn(j); + sheet.setColumnWidth(j, sheet.getColumnWidth(j)); + } + } + return wb; + } + + /** + * 外部接口调用出口 + * + * @param response 响应头 + * @param title 表格标题 + * @param colHead 列头(表头) + * @param dataList 数据列表 + */ + public void exportExcel(HttpServletResponse response, String title, String[] colHead, List dataList) { + try { + XSSFWorkbook result = createExcel(title, colHead, dataList); + String fileName = title + System.currentTimeMillis() + ".xlsx"; + setResponseHeader(response, fileName); + OutputStream os = response.getOutputStream(); + result.write(os); + os.close(); + } catch (IOException e) { + log.error(e.getMessage()); + } + } + + /** + * 发送响应流方法 + * + * @param response HttpServletResponse + * @param fileName String + */ + public static void setResponseHeader(HttpServletResponse response, String fileName) { + try { + String fileName1 = new String(fileName.getBytes("UTF-8"), "UTF-8"); + response.setContentType("application/octet-stream;charset=UTF-8"); + response.setHeader("Content-Disposition", "attachment;filename=" + fileName1); + response.addHeader("Pargam", "no-cache"); + response.addHeader("Cache-Control", "no-cache"); + } catch (UnsupportedEncodingException e) { + log.error(e.getMessage()); + } + } + + /** + * 设置标题样式 + * + * @param workbook 表格 + * @return 样式 + */ + public XSSFCellStyle getTitleStyle(XSSFWorkbook workbook) { + // 设置字体 + XSSFFont font = workbook.createFont(); + // 设置字体大小 + font.setFontHeightInPoints((short) 15); + // 设置字体加粗 + font.setBold(true); + // 设置字体样式 + font.setFontName("Courier New"); + // 设置样式; + XSSFCellStyle style = workbook.createCellStyle(); + // 在样式用应用设置的字体; + style.setFont(font); + // 设置自动换行; + style.setWrapText(false); + // 设置水平居中 + style.setAlignment(HorizontalAlignment.CENTER); + // 设置垂直居中 + style.setVerticalAlignment(VerticalAlignment.CENTER); + // 设置单元格背景颜色 + style.setFillForegroundColor(IndexedColors.BLACK.getIndex()); + return style; + } + + /** + * 给列头设置样式 + * + * @param workbook 表格 + * @return 样式 + */ + public XSSFCellStyle getColHeadStyle(XSSFWorkbook workbook) { + // 设置字体 + XSSFFont font = workbook.createFont(); + // 设置字体大小 + font.setFontHeightInPoints((short) 12); + // 设置字体样式 + font.setFontName("Courier New"); + // 设置字体加粗 + font.setBold(true); + // 设置样式; + XSSFCellStyle style = workbook.createCellStyle(); + // 在样式用应用设置的字体; + style.setFont(font); + // 设置水平居中 + style.setAlignment(HorizontalAlignment.CENTER); + // 设置垂直居中 + style.setVerticalAlignment(VerticalAlignment.CENTER); + // 上边框 + style.setBorderTop(BorderStyle.THIN); + // 下边框 + style.setBorderBottom(BorderStyle.THIN); + // 左边框 + style.setBorderLeft(BorderStyle.THIN); + // 右边框 + style.setBorderRight(BorderStyle.THIN); + // 设置自动换行; + style.setWrapText(false); + // 设置单元格背景颜色 + style.setFillForegroundColor(IndexedColors.BLACK.getIndex()); + return style; + } + + /** + * 给数据列表设置样式 + * + * @param workbook 表格 + * @return 样式 + */ + public XSSFCellStyle getDataListStyle(XSSFWorkbook workbook) { + // 设置字体 + XSSFFont font = workbook.createFont(); + // 设置字体大小 + font.setFontHeightInPoints((short) 13); + // 设置字体样式 + font.setFontName("Courier New"); + // 设置样式; + XSSFCellStyle style = workbook.createCellStyle(); + // 在样式用应用设置的字体; + style.setFont(font); + // 设置水平居中 + style.setAlignment(HorizontalAlignment.CENTER); + // 设置垂直居中 + style.setVerticalAlignment(VerticalAlignment.CENTER); + // 上边框 + style.setBorderTop(BorderStyle.THIN); + // 下边框 + style.setBorderBottom(BorderStyle.THIN); + // 左边框 + style.setBorderLeft(BorderStyle.THIN); + // 右边框 + style.setBorderRight(BorderStyle.THIN); + // 设置自动换行; + style.setWrapText(false); + // 设置单元格背景颜色 + style.setFillForegroundColor(IndexedColors.BLACK.getIndex()); + return style; + } +} \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/utils/PmsDeviceEnumUtil.java b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/utils/PmsDeviceEnumUtil.java new file mode 100644 index 000000000..455a33799 --- /dev/null +++ b/pqs-device/pms-device/pms-device-api/src/main/java/com/njcn/device/pms/utils/PmsDeviceEnumUtil.java @@ -0,0 +1,50 @@ +package com.njcn.device.pms.utils; + +import cn.hutool.core.util.StrUtil; +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.common.utils.EnumUtils; +import com.njcn.device.pms.enums.PmsDeviceResponseEnum; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * @author hongawen + * @version 1.0.0 + * @date 2021年12月20日 10:03 + */ +public class PmsDeviceEnumUtil { + + + /** + * 获取PmsDeviceResponseEnum实例 + */ + public static PmsDeviceResponseEnum getDeviceEnumResponseEnumByMessage(@NotNull Object value) { + PmsDeviceResponseEnum deviceResponseEnum; + try { + String message = value.toString(); + if(message.indexOf(StrUtil.C_COMMA)>0){ + value = message.substring(message.indexOf(StrUtil.C_COMMA)+1); + } + deviceResponseEnum = EnumUtils.valueOf(PmsDeviceResponseEnum.class, value, PmsDeviceResponseEnum.class.getMethod(BusinessException.GET_MESSAGE_METHOD)); + return Objects.isNull(deviceResponseEnum) ? PmsDeviceResponseEnum.DEVICE_COMMON_ERROR : deviceResponseEnum; + } catch (NoSuchMethodException e) { + throw new BusinessException(CommonResponseEnum.INTERNAL_ERROR); + } + } + + public static Enum getExceptionEnum(HttpResult result){ + //如果返回错误,且为内部错误,则直接抛出异常 + CommonResponseEnum commonResponseEnum = EnumUtils.getCommonResponseEnumByCode(result.getCode()); + if (commonResponseEnum == CommonResponseEnum.DEVICE_RESPONSE_ENUM) { + return getDeviceEnumResponseEnumByMessage(result.getMessage()); + } + return commonResponseEnum; + } + + + + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/DistributionMonitorController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/DistributionMonitorController.java new file mode 100644 index 000000000..85f74c5c0 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/DistributionMonitorController.java @@ -0,0 +1,55 @@ +package com.njcn.device.pms.controller; + + +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pms.pojo.dto.PmsMonitorBaseDTO; +import com.njcn.device.pms.pojo.param.DistributionMonitorParam; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import com.njcn.web.controller.BaseController; + +import java.util.List; + +/** + *

+ * 配网监测点台账 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@RestController +@RequestMapping("/pms/distributionMonitor") +@Slf4j +@RequiredArgsConstructor +@Api(tags = "台账-配网监测点") +public class DistributionMonitorController extends BaseController { + + /** + * 新增配网监测点表 + * @author cdf + * @date 2022/10/26 + */ + @PostMapping + @ApiImplicitParam(name = "distributionMonitorParam",value = "配网监测点实体",required = true) + public HttpResult addDistributionMonitor(@RequestBody DistributionMonitorParam distributionMonitorParam){ + String methodDescribe = getMethodDescribe("addDistributionMonitor"); + + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + + + + +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/GeneratrixWireController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/GeneratrixWireController.java new file mode 100644 index 000000000..941cb8a7a --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/GeneratrixWireController.java @@ -0,0 +1,105 @@ +package com.njcn.device.pms.controller; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.constant.OperateType; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pms.pojo.param.GeneratrixWireParam; +import com.njcn.device.pms.pojo.po.GeneratrixWire; +import com.njcn.device.pms.service.IGeneratrixWireService; +import com.njcn.web.controller.BaseController; +import com.njcn.web.pojo.param.BaseParam; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.*; + +import javax.validation.constraints.NotEmpty; +import java.util.List; +import java.util.Objects; + +/** + * pms-device + * + * @author cdf + * @date 2022/10/26 + */ +@RestController +@RequestMapping("/pms/GeneratrixWireWire") +@Slf4j +@Api(tags = "台账-线路") +@RequiredArgsConstructor +public class GeneratrixWireController extends BaseController { + + private final IGeneratrixWireService iGeneratrixWireService; + + @OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD) + @PostMapping("/addGeneratrixWire") + @ApiOperation("新增线路") + @ApiImplicitParam(name = "generatrixWireParam", value = "线路实体", required = true) + public HttpResult addGeneratrixWire(@RequestBody GeneratrixWireParam generatrixWireParam) { + String methodDescribe = getMethodDescribe("addGeneratrixWire"); + boolean result = iGeneratrixWireService.addGeneratrixWire(generatrixWireParam); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.UPDATE) + @PostMapping("/updateGeneratrixWire") + @ApiOperation("修改线路") + @ApiImplicitParam(name = "generatrixWireParam", value = "线路实体", required = true) + public HttpResult updateGeneratrixWire(@RequestBody GeneratrixWireParam.UpdateGeneratrixWireParam generatrixWireParam) { + String methodDescribe = getMethodDescribe("updateGeneratrixWire"); + boolean result = iGeneratrixWireService.updateGeneratrixWire(generatrixWireParam); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.DELETE) + @DeleteMapping("/delGeneratrixWire") + @ApiOperation("删除线路") + @ApiImplicitParam(name = "generatrixWireIds", value = "线路ids", required = true) + public HttpResult delGeneratrixWire(@RequestBody @NotEmpty(message = "线路id不可为空") List generatrixWireIds) { + String methodDescribe = getMethodDescribe("delGeneratrixWire"); + boolean result = iGeneratrixWireService.delGeneratrixWire(generatrixWireIds); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @GetMapping("/getGeneratrixWireById") + @ApiOperation("根据线路id获取线路") + @ApiImplicitParam(name = "generatrixWireId", value = "线路id", required = true) + public HttpResult getGeneratrixWireById(@RequestParam("generatrixWireId") String generatrixWireId) { + String methodDescribe = getMethodDescribe("getGeneratrixWireById"); + GeneratrixWire result = iGeneratrixWireService.getGeneratrixWireById(generatrixWireId); + if(Objects.nonNull(result)){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getGeneratrixWireList") + @ApiOperation("获取线路列表") + @ApiImplicitParam(name = "baseParam", value = "基本查询体", required = true) + public HttpResult> getGeneratrixWireList(@RequestBody BaseParam baseParam) { + String methodDescribe = getMethodDescribe("getGeneratrixWireList"); + List result = iGeneratrixWireService.getGeneratrixWireList(baseParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe); + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvDispatchController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/HarmonicGeneralManagementController.java similarity index 52% rename from pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvDispatchController.java rename to pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/HarmonicGeneralManagementController.java index e16b87467..97feb0056 100644 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvDispatchController.java +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/HarmonicGeneralManagementController.java @@ -1,25 +1,22 @@ package com.njcn.device.pms.controller; -import com.njcn.web.controller.BaseController; -import io.swagger.annotations.Api; -import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.RequestMapping; + import org.springframework.web.bind.annotation.RestController; +import com.njcn.web.controller.BaseController; /** *

* 前端控制器 *

* - * @author cdf - * @since 2022-07-05 + * @author hongawen + * @since 2022-10-14 */ @RestController -@RequestMapping("/pvDispatch") -@Api(tags = "设备控制器") -@RequiredArgsConstructor -public class PvDispatchController extends BaseController { +@RequestMapping("/pms/harmonicGeneralManagement") +public class HarmonicGeneralManagementController extends BaseController { } diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/HarmonicGeneralManagementDataController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/HarmonicGeneralManagementDataController.java new file mode 100644 index 000000000..1f2ab32b5 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/HarmonicGeneralManagementDataController.java @@ -0,0 +1,22 @@ +package com.njcn.device.pms.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import com.njcn.web.controller.BaseController; + +/** + *

+ * 前端控制器 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@RestController +@RequestMapping("/pms/harmonicGeneralManagementData") +public class HarmonicGeneralManagementDataController extends BaseController { + +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/MonitorController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/MonitorController.java new file mode 100644 index 000000000..7e8fd15ea --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/MonitorController.java @@ -0,0 +1,170 @@ +package com.njcn.device.pms.controller; + +import cn.hutool.core.collection.CollectionUtil; +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.constant.OperateType; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pms.pojo.dto.PmsMonitorDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorInfoDTO; +import com.njcn.device.pms.pojo.dto.PwPmsMonitorDTO; +import com.njcn.device.pms.pojo.param.MonitorParam; +import com.njcn.device.pms.pojo.param.PmsMonitorInfoParam; +import com.njcn.device.pms.pojo.param.PmsMonitorParam; +import com.njcn.device.pms.pojo.param.PwPmsMonitorParam; +import com.njcn.device.pms.pojo.vo.PmsMonitorVO; +import com.njcn.device.pms.service.IMonitorService; + +import com.njcn.device.pq.pojo.po.Overlimit; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.validation.constraints.NotEmpty; +import java.util.List; + +/** + *

+ * 前端控制器 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@RestController +@RequestMapping("/pms/monitor") +@Slf4j +@Api(tags = "主网监测点信息") +@RequiredArgsConstructor +public class MonitorController extends BaseController { + + private final IMonitorService monitorService; + + /** + * 获取监测点信息 + */ + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getMonitorInfo") + @ApiOperation("获取指定的监测点信息") +// @ApiImplicitParams({ +// @ApiImplicitParam(name = "pmsMonitorInfoParam", value = "获取指定的监测点信息条件", required = true) +// }) + public HttpResult> getMonitorInfo(@RequestBody @Validated PmsMonitorInfoParam pmsMonitorInfoParam) { + String methodDescribe = getMethodDescribe("getMonitorInfo"); + List monitorInfo = monitorService.getMonitorInfo(pmsMonitorInfoParam); + if (CollectionUtil.isEmpty(monitorInfo)) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, monitorInfo, methodDescribe); + } + } + + /*** + * 根据条件获取监测点信息列表 + * @author jianghaifei + * @date 2022-10-20 20:12 + * @param pmsMonitorParam + */ + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getMonitorInfoListByCond") + @ApiOperation("根据条件获取监测点信息列表") + public HttpResult> getMonitorInfoListByCond(@RequestBody PmsMonitorParam pmsMonitorParam) { + String methodDescribe = getMethodDescribe("getMonitorInfoListByCond"); + List list = monitorService.getMonitorInfoListByCond(pmsMonitorParam); + if (CollectionUtil.isEmpty(list)) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); + } + } + + /*** + * 获取所有监测点信息 + * @author jianghaifei + * @date 2022-10-24 20:01 + * @param + * @return com.njcn.common.pojo.response.HttpResult> + */ + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getAllMonitorList") + @ApiOperation("获取所有监测点信息") + public HttpResult> getAllMonitorList() { + String methodDescribe = getMethodDescribe("getAllMonitorList"); + List monitorList = monitorService.getAllMonitorList(); + if (CollectionUtil.isEmpty(monitorList)) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, monitorList, methodDescribe); + } + } + + + + + + + @OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD) + @PostMapping("/addMonitor") + @ApiOperation("新增主网监测点") + @ApiImplicitParam(name = "monitorParam", value = "主网监测点实体", required = true) + public HttpResult addMonitor(@RequestBody MonitorParam monitorParam) { + String methodDescribe = getMethodDescribe("addMonitor"); + boolean result = monitorService.addMonitor(monitorParam); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.UPDATE) + @PostMapping("/updateMonitor") + @ApiOperation("修改主网监测点") + @ApiImplicitParam(name = "monitorParam", value = "主网监测点实体", required = true) + public HttpResult updateMonitor(@RequestBody MonitorParam.UpdateMonitorParam monitorParam) { + String methodDescribe = getMethodDescribe("updateMonitor"); + boolean result = monitorService.updateMonitor(monitorParam); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.UPDATE) + @DeleteMapping("/delMonitor") + @ApiOperation("删除主网监测点") + @ApiImplicitParam(name = "monitorIds", value = "主网监测点ids", required = true) + public HttpResult delMonitor(@RequestBody @NotEmpty(message = "主网监测点id不可为空") List monitorIds) { + String methodDescribe = getMethodDescribe("delMonitor"); + boolean result = monitorService.delMonitor(monitorIds); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + + + + /**分割线-----------------------------------------------------------*/ + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getOverLimitData") + @ApiOperation("根据监测点id获取越限数值") + @ApiImplicitParam(name = "id", value = "监测点id", required = true) + public HttpResult getOverLimitData(@RequestParam("id") String id) { + String methodDescribe = getMethodDescribe("getOverLimitData"); + Overlimit result = monitorService.getOverLimitData(id); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe); + } + +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PmsGeneralDeviceController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PmsGeneralDeviceController.java new file mode 100644 index 000000000..dc7beccad --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PmsGeneralDeviceController.java @@ -0,0 +1,107 @@ +package com.njcn.device.pms.controller; + +import cn.hutool.core.collection.CollectionUtil; +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.dto.SimpleDTO; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pms.pojo.dto.PmsGeneralDeviceDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.service.IPmsGeneralDeviceService; +import com.njcn.device.pq.pojo.dto.GeneralDeviceDTO; +import com.njcn.device.pq.pojo.param.DeviceInfoParam; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +/** + * @author hongawen + * @version 1.0.0 + * @date 2022年10月14日 09:19 + */ +@Slf4j +@Api(tags = "获取终端信息") +@RestController +@RequestMapping("/pmsDeviceInfo") +@RequiredArgsConstructor +public class PmsGeneralDeviceController extends BaseController { + + private final IPmsGeneralDeviceService generalPmsDeviceService; + + + /** + * 获取指定组织下台账综合信息 + */ + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getPmsDeviceInfoWithInOrg") + @ApiOperation("获取指定组织下台账综合信息") + @ApiImplicitParams({ + @ApiImplicitParam(name = "pmsDeviceInfoParam", value = "查询台账条件", required = true) + }) + public HttpResult> getPmsDeviceInfoWithInOrg(@RequestBody @Validated PmsDeviceInfoParam pmsDeviceInfoParam) { + String methodDescribe = getMethodDescribe("getPmsDeviceInfoWithInOrg"); + List deptDeviceInfos = generalPmsDeviceService.getPmsDeviceInfoWithInOrg(pmsDeviceInfoParam); + if (CollectionUtil.isEmpty(deptDeviceInfos)) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, deptDeviceInfos, methodDescribe); + } + } + + /** + * 主网获取指定组织下变电站 + */ + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getPmsPowerrInfoWithInOrg") + @ApiOperation("主网获取指定组织下变电站") + @ApiImplicitParams({ + @ApiImplicitParam(name = "pmsDeviceInfoParam", value = "查询变电站条件", required = true) + }) + public HttpResult> getPmsPowerrInfoWithInOrg(@RequestBody @Validated PmsDeviceInfoParam pmsDeviceInfoParam) { + String methodDescribe = getMethodDescribe("getPmsPowerrInfoWithInOrg"); + List pmsPowerrInfoList = generalPmsDeviceService.getPmsPowerrInfoWithInOrg(pmsDeviceInfoParam); + if (CollectionUtil.isEmpty(pmsPowerrInfoList)) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pmsPowerrInfoList, methodDescribe); + } + } + + + /** + * 获取指定组织下台账综合信息 + */ + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getPwPmsDeviceInfoWithOrgId") + @ApiOperation("获取指定组织下配网信息") + @ApiImplicitParams({ + @ApiImplicitParam(name = "pmsDeviceInfoParam", value = "查询台账条件", required = true) + }) + public HttpResult> getPwPmsDeviceInfoWithOrgId(@RequestBody @Validated PmsDeviceInfoParam pmsDeviceInfoParam) { + String methodDescribe = getMethodDescribe("getPmsDeviceInfoByOrgId"); + List deptDeviceInfos = generalPmsDeviceService.getPmsDeviceInfoByOrgId(pmsDeviceInfoParam); + if (CollectionUtil.isEmpty(deptDeviceInfos)) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, deptDeviceInfos, methodDescribe); + } + } + + + + + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PmsGeneratrixController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PmsGeneratrixController.java new file mode 100644 index 000000000..8377db7ff --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PmsGeneratrixController.java @@ -0,0 +1,128 @@ +package com.njcn.device.pms.controller; + +import cn.hutool.core.collection.CollectionUtil; +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.constant.OperateType; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pms.pojo.dto.PmsGeneratrixDTO; +import com.njcn.device.pms.pojo.param.GeneratrixParam; +import com.njcn.device.pms.pojo.param.PmsGeneratrixParam; +import com.njcn.device.pms.pojo.po.Generatrix; +import com.njcn.device.pms.service.IPmsGeneratrixService; +import com.njcn.web.controller.BaseController; +import com.njcn.web.pojo.param.BaseParam; +import io.swagger.annotations.*; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.validation.constraints.NotEmpty; +import java.util.List; +import java.util.Objects; + +/** + * 母线信息 + * + * @author yzh + * @date 2022/10/18 + */ + +@RestController +@RequestMapping("/pmsGeneratrix") +@Slf4j +@Api(tags = "获取母线信息") +@RequiredArgsConstructor +public class PmsGeneratrixController extends BaseController { + + private final IPmsGeneratrixService pmsGeneratrixService; + + /** + * 获取指定母线信息 + * + * @param pmsGeneratrixParam 获取指定的监测点信息条件 + * @return 指定母线信息 + */ + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getGeneratrixInfo") + @ApiOperation("获取指定母线信息") + @ApiImplicitParam(name = "pmsGeneratrixParam", value = "获取指定母线信息条件", required = true) + public HttpResult> getGeneratrixInfo(@RequestBody @Validated PmsGeneratrixParam pmsGeneratrixParam) { + String methodDescribe = getMethodDescribe("getGeneratrixInfo"); + List monitorInfo = pmsGeneratrixService.getGeneratrixInfo(pmsGeneratrixParam); + if (CollectionUtil.isEmpty(monitorInfo)) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, monitorInfo, methodDescribe); + } + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD) + @PostMapping("/addGeneratrix") + @ApiOperation("新增母线") + @ApiImplicitParam(name = "generatrixParam", value = "母线实体", required = true) + public HttpResult addGeneratrix(@RequestBody GeneratrixParam generatrixParam) { + String methodDescribe = getMethodDescribe("addGeneratrix"); + boolean result = pmsGeneratrixService.addGeneratrix(generatrixParam); + if (result) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.UPDATE) + @PostMapping("/updateGeneratrix") + @ApiOperation("修改母线") + @ApiImplicitParam(name = "generatrixParam", value = "母线实体", required = true) + public HttpResult updateGeneratrix(@RequestBody GeneratrixParam.UpdateGeneratrixParam generatrixParam) { + String methodDescribe = getMethodDescribe("updateGeneratrix"); + boolean result = pmsGeneratrixService.updateGeneratrix(generatrixParam); + if (result) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.DELETE) + @DeleteMapping("/delGeneratrix") + @ApiOperation("删除母线") + @ApiImplicitParam(name = "generatrixIds", value = "母线ids", required = true) + public HttpResult delGeneratrix(@RequestBody @NotEmpty(message = "母线id不可为空") List generatrixIds) { + String methodDescribe = getMethodDescribe("delGeneratrix"); + boolean result = pmsGeneratrixService.delGeneratrix(generatrixIds); + if (result) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @GetMapping("/getGeneratrixById") + @ApiOperation("根据母线id获取母线") + @ApiImplicitParam(name = "generatrixId", value = "母线id", required = true) + public HttpResult getGeneratrixById(@RequestParam("generatrixId") String generatrixId) { + String methodDescribe = getMethodDescribe("getGeneratrixById"); + Generatrix result = pmsGeneratrixService.getGeneratrixById(generatrixId); + if (Objects.nonNull(result)) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getGeneratrixList") + @ApiOperation("获取母线列表") + @ApiImplicitParam(name = "baseParam", value = "基本查询体", required = true) + public HttpResult> getGeneratrixList(@RequestBody BaseParam baseParam) { + String methodDescribe = getMethodDescribe("getGeneratrixList"); + List result = pmsGeneratrixService.getGeneratrixList(baseParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe); + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PowerClientController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PowerClientController.java new file mode 100644 index 000000000..e29c2e09b --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PowerClientController.java @@ -0,0 +1,109 @@ +package com.njcn.device.pms.controller; + + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.constant.OperateType; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pms.pojo.param.PowerClientParam; +import com.njcn.device.pms.pojo.po.PowerClient; +import com.njcn.device.pms.service.IPowerClientService; +import com.njcn.web.pojo.param.BaseParam; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; + +import com.njcn.web.controller.BaseController; + +import javax.validation.constraints.NotEmpty; +import java.util.List; +import java.util.Objects; + +/** + *

+ * 用电用户控制器 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@RestController +@RequestMapping("/pms/powerClient") +@RequiredArgsConstructor +@Api(tags = "台账-用电用户") +public class PowerClientController extends BaseController { + + private final IPowerClientService iPowerClientService; + + @OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD) + @PostMapping("/addPowerClient") + @ApiOperation("新增用电用户") + @ApiImplicitParam(name = "powerClientParam", value = "用电用户实体", required = true) + public HttpResult addPowerClient(@RequestBody PowerClientParam powerClientParam) { + String methodDescribe = getMethodDescribe("addPowerClient"); + boolean result = iPowerClientService.addPowerClient(powerClientParam); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.UPDATE) + @PostMapping("/updatePowerClient") + @ApiOperation("修改用电用户") + @ApiImplicitParam(name = "powerClientParam", value = "用电用户实体", required = true) + public HttpResult updatePowerClient(@RequestBody PowerClientParam powerClientParam) { + String methodDescribe = getMethodDescribe("updatePowerClient"); + boolean result = iPowerClientService.updatePowerClient(powerClientParam); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.DELETE) + @DeleteMapping("/delPowerClient") + @ApiOperation("删除用电用户") + @ApiImplicitParam(name = "powerClientIds", value = "用电用户ids", required = true) + public HttpResult delPowerClient(@RequestBody @NotEmpty(message = "用电用户id不可为空") List powerClientIds) { + String methodDescribe = getMethodDescribe("delPowerClient"); + boolean result = iPowerClientService.delPowerClient(powerClientIds); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @GetMapping("/getPowerClientById") + @ApiOperation("根据用电用户id获取用电用户") + @ApiImplicitParam(name = "powerClientId", value = "用电用户id", required = true) + public HttpResult getPowerClientById(@RequestParam("powerClientId") String powerClientId) { + String methodDescribe = getMethodDescribe("getPowerClientById"); + PowerClient result = iPowerClientService.getPowerClientById(powerClientId); + if(Objects.nonNull(result)){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getPowerClientList") + @ApiOperation("获取用电用户列表") + @ApiImplicitParam(name = "baseParam", value = "基本查询体", required = true) + public HttpResult> getPowerClientList(@RequestBody BaseParam baseParam) { + String methodDescribe = getMethodDescribe("getPowerClientList"); + List result = iPowerClientService.getPowerClientList(baseParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe); + } + +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PowerDistributionareaController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PowerDistributionareaController.java new file mode 100644 index 000000000..a5ac06387 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PowerDistributionareaController.java @@ -0,0 +1,133 @@ +package com.njcn.device.pms.controller; + + +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.constant.OperateType; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.common.utils.LogUtil; +import com.njcn.device.pms.pojo.param.PowerDistributionareaParam; +import com.njcn.device.pms.pojo.po.PowerDistributionarea; +import com.njcn.device.pms.pojo.vo.PowerDistributionareaVO; +import com.njcn.device.pms.service.IPowerDistributionareaService; +import com.njcn.system.pojo.param.EventTemplateParam; +import com.njcn.system.pojo.po.EventTemplate; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import com.njcn.web.controller.BaseController; + +import java.util.List; +import java.util.Objects; + +/** + *

+ * 台区信息增删改查 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Slf4j +@RestController +@RequestMapping("/pms/powerDistributionarea") +@Api(tags = "台区信息") +@RequiredArgsConstructor +@Validated +public class PowerDistributionareaController extends BaseController { + + private final IPowerDistributionareaService iPowerDistributionareaService; + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("getPowerDistributionAreaList") + @ApiOperation("查询台区所有信息") + @ApiImplicitParam(name = "queryParam",value = "查询台区信息",required = true) + public HttpResult> getList(@RequestBody @Validated PowerDistributionareaParam.QueryParam queryParam){ + String methodDescribe = getMethodDescribe("getList"); + LogUtil.njcnDebug(log, "{},查询数据为:{}", methodDescribe, queryParam); + Page res = iPowerDistributionareaService.getList(queryParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS,res,methodDescribe); + } + + @OperateInfo(info = LogEnum.SYSTEM_COMMON) + @GetMapping("/getPowerDistributionAreaById") + @ApiOperation("根据ID查询台区数据") + @ApiImplicitParam(name = "id",value = "id",required = true) + public HttpResult getDistrictById(@RequestParam("id") String id){ + String methodDescribe = getMethodDescribe("getDistrictById"); + PowerDistributionarea powerDistributionarea = iPowerDistributionareaService.getDistrictById(id); + if (Objects.nonNull(powerDistributionarea)){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, powerDistributionarea, methodDescribe); + } + else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + } + + /** + * 新增台区信息 + * @author hany + * @date 2022/10/26 + */ + @PostMapping("/addPowerDistributionArea") + @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType=OperateType.ADD) + @ApiOperation("新增台区信息") + @ApiImplicitParam(name = "newParam", value = "模板实体", required = true) + public HttpResult add(@RequestBody @Validated PowerDistributionareaParam newParam){ + String methodDescribe = getMethodDescribe("add"); + boolean result = iPowerDistributionareaService.add(newParam); + if (result) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + } + } + + /** + * 修改台区信息 + * @author hany + * @date 2022/10/26 + */ + @PostMapping("/updatePowerDistributionArea") + @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE) + @ApiOperation("修改台区信息") + @ApiImplicitParam(name = "UpdateParam", value = "更新实体", required = true) + public HttpResult update(@RequestBody @Validated PowerDistributionareaParam UpdateParam){ + String methodDescribe = getMethodDescribe("update"); + boolean result = iPowerDistributionareaService.update(UpdateParam); + if (result) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + } + } + + /** + * 删除台区信息 + * @param ids id + * @author hany + * @date 2022/10/26 + */ + @PostMapping("/deletePowerDistributionArea") + @OperateInfo(info = LogEnum.SYSTEM_COMMON, operateType = OperateType.DELETE) + @ApiOperation("删除台区信息") + @ApiImplicitParam(name = "ids", value = "ID索引", required = true) + public HttpResult delete(@RequestBody List ids){ + String methodDescribe = getMethodDescribe("delete"); + boolean result = iPowerDistributionareaService.delete(ids); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + }else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + } + } +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PowerGenerationUserController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PowerGenerationUserController.java new file mode 100644 index 000000000..04c1d9345 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PowerGenerationUserController.java @@ -0,0 +1,109 @@ +package com.njcn.device.pms.controller; + + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.constant.OperateType; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pms.pojo.param.PowerGenerationUserParam; +import com.njcn.device.pms.pojo.po.PowerGenerationUser; +import com.njcn.device.pms.service.IPowerGenerationUserService; +import com.njcn.web.pojo.param.BaseParam; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; + +import com.njcn.web.controller.BaseController; + +import javax.validation.constraints.NotEmpty; +import java.util.List; +import java.util.Objects; + +/** + *

+ * 前端控制器 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@RestController +@RequestMapping("/pms/powerGenerationUser") +@Api(tags = "发电用户") +@RequiredArgsConstructor +public class PowerGenerationUserController extends BaseController { + + private final IPowerGenerationUserService iPowerGenerationUserService; + + @OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD) + @PostMapping("/addPowerGenerationUser") + @ApiOperation("新增母线") + @ApiImplicitParam(name = "powerGenerationUserParam", value = "母线实体", required = true) + public HttpResult addPowerGenerationUser(@RequestBody PowerGenerationUserParam powerGenerationUserParam) { + String methodDescribe = getMethodDescribe("addPowerGenerationUser"); + boolean result = iPowerGenerationUserService.addPowerGenerationUser(powerGenerationUserParam); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.UPDATE) + @PostMapping("/updatePowerGenerationUser") + @ApiOperation("修改母线") + @ApiImplicitParam(name = "powerGenerationUserParam", value = "母线实体", required = true) + public HttpResult updatePowerGenerationUser(@RequestBody PowerGenerationUserParam powerGenerationUserParam) { + String methodDescribe = getMethodDescribe("updatePowerGenerationUser"); + boolean result = iPowerGenerationUserService.updatePowerGenerationUser(powerGenerationUserParam); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.DELETE) + @DeleteMapping("/delPowerGenerationUser") + @ApiOperation("删除母线") + @ApiImplicitParam(name = "powerGenerationUserIds", value = "母线ids", required = true) + public HttpResult delPowerGenerationUser(@RequestBody @NotEmpty(message = "母线id不可为空") List powerGenerationUserIds) { + String methodDescribe = getMethodDescribe("delPowerGenerationUser"); + boolean result = iPowerGenerationUserService.delPowerGenerationUser(powerGenerationUserIds); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @GetMapping("/getPowerGenerationUserById") + @ApiOperation("根据母线id获取母线") + @ApiImplicitParam(name = "powerGenerationUserId", value = "母线id", required = true) + public HttpResult getPowerGenerationUserById(@RequestParam("powerGenerationUserId") String powerGenerationUserId) { + String methodDescribe = getMethodDescribe("getPowerGenerationUserById"); + PowerGenerationUser result = iPowerGenerationUserService.getPowerGenerationUserById(powerGenerationUserId); + if(Objects.nonNull(result)){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getPowerGenerationUserList") + @ApiOperation("获取母线列表") + @ApiImplicitParam(name = "baseParam", value = "基本查询体", required = true) + public HttpResult> getPowerGenerationUserList(@RequestBody BaseParam baseParam) { + String methodDescribe = getMethodDescribe("getPowerGenerationUserList"); + List result = iPowerGenerationUserService.getPowerGenerationUserList(baseParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe); + } + +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PowerQualityMatterController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PowerQualityMatterController.java new file mode 100644 index 000000000..dfeb8c1be --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PowerQualityMatterController.java @@ -0,0 +1,22 @@ +package com.njcn.device.pms.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import com.njcn.web.controller.BaseController; + +/** + *

+ * 前端控制器 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@RestController +@RequestMapping("/pms/powerQualityMatter") +public class PowerQualityMatterController extends BaseController { + +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvDeviceController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvDeviceController.java deleted file mode 100644 index 19509ae1f..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvDeviceController.java +++ /dev/null @@ -1,160 +0,0 @@ -package com.njcn.device.pms.controller; - - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.common.pojo.annotation.OperateInfo; -import com.njcn.common.pojo.constant.OperateType; -import com.njcn.common.pojo.enums.common.LogEnum; -import com.njcn.common.pojo.enums.response.CommonResponseEnum; -import com.njcn.common.pojo.response.HttpResult; -import com.njcn.common.utils.HttpResultUtil; -import com.njcn.device.pms.pojo.param.DeviceQueryParam; -import com.njcn.device.pms.pojo.param.PvDeviceParam; -import com.njcn.device.pms.pojo.po.PvDevice; -import com.njcn.device.pms.pojo.vo.PvDeviceVO; -import com.njcn.device.pms.service.IPvDeviceService; -import com.njcn.web.controller.BaseController; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiOperation; -import lombok.RequiredArgsConstructor; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.*; - -import java.util.List; -import java.util.Objects; - -/** - *

- * 终端控制器 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@RestController -@RequestMapping("/pvDevice") -@Api(tags = "pv终端控制器") -@RequiredArgsConstructor -public class PvDeviceController extends BaseController { - - private final IPvDeviceService iPvDeviceService; - - - /** - * 新增终端 - * @param pvDeviceParam 终端实体 - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("addDevice") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD) - @ApiOperation("新增终端") - @ApiImplicitParam(name = "pvDeviceParam",value = "终端实体",required = true) - public HttpResult addDevice(@RequestBody @Validated PvDeviceParam pvDeviceParam){ - String methodDescribe = getMethodDescribe("addDevice"); - boolean res = iPvDeviceService.addDevice(pvDeviceParam); - if(res){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - - - /** - * 修改终端 - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("updateDevice") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE) - @ApiOperation("修改终端") - @ApiImplicitParam(name = "updatePvDeviceParam",value = "终端实体",required = true) - public HttpResult updateDevice(@RequestBody @Validated PvDeviceParam.UpdatePvDeviceParam updatePvDeviceParam){ - String methodDescribe = getMethodDescribe("updateDevice"); - boolean res = iPvDeviceService.updateDevice(updatePvDeviceParam); - if(res){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - - - /** - * 分页查询终端 - * @param deviceQueryParam 查询实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - @PostMapping("getPvDeviceList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("分页查询终端") - @ApiImplicitParam(name = "deviceQueryParam",value = "终端实体",required = true) - public HttpResult> getPvDeviceList(@RequestBody DeviceQueryParam deviceQueryParam){ - String methodDescribe = getMethodDescribe("getPvDeviceList"); - Page page = iPvDeviceService.getPvDeviceList(deviceQueryParam); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe); - } - - /** - * 查询所有终端 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - @PostMapping("getAllPvDeviceList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("查询所有终端") - public HttpResult> getAllPvDeviceList(){ - String methodDescribe = getMethodDescribe("getAllPvDeviceList"); - List list = iPvDeviceService.getAllPvDeviceList(); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); - } - - - /** - * 根据终端id查询终端 - * @param id 终端id - * @author cdf - * @date 2022/7/5 - * @return PvDevice - */ - @GetMapping("getPvDeviceById") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("根据终端id查询终端") - @ApiImplicitParam(name = "id",value = "终端id",required = true) - public HttpResult getPvDeviceById(@RequestParam("id") String id){ - String methodDescribe = getMethodDescribe("getPvDeviceById"); - PvDevice pvDevice = iPvDeviceService.getPvDeviceById(id); - if(Objects.nonNull(pvDevice)){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvDevice, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - - } - - - /** - * 删除终端 - * @param ids 终端id - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - @PostMapping("delPvDevice") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.DELETE) - @ApiOperation("删除终端") - @ApiImplicitParam(name = "ids",value = "终端id",required = true) - public HttpResult delPvDevice(@RequestBody List ids){ - String methodDescribe = getMethodDescribe("delPvDevice"); - boolean res = iPvDeviceService.delPvDevice(ids); - if(res){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - - -} - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvDeviceRunExController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvDeviceRunExController.java deleted file mode 100644 index 06fc08461..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvDeviceRunExController.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.njcn.device.pms.controller; - -import com.njcn.common.pojo.annotation.OperateInfo; -import com.njcn.common.pojo.enums.common.LogEnum; -import com.njcn.common.pojo.enums.response.CommonResponseEnum; -import com.njcn.common.pojo.response.HttpResult; -import com.njcn.common.utils.HttpResultUtil; -import com.njcn.device.pms.pojo.bo.DeviceRunExBO; -import com.njcn.device.pms.pojo.dto.DeviceRunExDTO; -import com.njcn.device.pms.service.IPvDeviceRunExService; -import com.njcn.web.controller.BaseController; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiOperation; -import lombok.RequiredArgsConstructor; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import java.util.List; - - -/** - * pv终端运行异常 - * - * @author yangj - * @date 2022/09/08 - */ -@RestController -@RequestMapping("/pvDeviceEx") -@Api(tags = "pv终端运行异常") -@RequiredArgsConstructor -public class PvDeviceRunExController extends BaseController { - - - private final IPvDeviceRunExService pvDeviceRunExService; - - @PostMapping("getPvDeviceExList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("分页条件查询终端异常") - @ApiImplicitParam(name = "deviceRunExDTO",value = "终端异常",required = true) - public HttpResult> getPvDeviceExList(@RequestBody DeviceRunExDTO deviceRunExDTO) { - String methodDescribe = getMethodDescribe("getPvDeviceExList"); - List pvDeviceExList = pvDeviceRunExService.getPvDeviceExList(deviceRunExDTO); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvDeviceExList, methodDescribe); - } -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvDistributedController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvDistributedController.java deleted file mode 100644 index 199d7ace8..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvDistributedController.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.njcn.device.pms.controller; - - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.common.pojo.annotation.OperateInfo; -import com.njcn.common.pojo.constant.OperateType; -import com.njcn.common.pojo.enums.common.LogEnum; -import com.njcn.common.pojo.enums.response.CommonResponseEnum; -import com.njcn.common.pojo.response.HttpResult; -import com.njcn.common.utils.HttpResultUtil; -import com.njcn.device.pms.pojo.param.DistributedQueryParam; -import com.njcn.device.pms.pojo.param.PvDistributedParam; -import com.njcn.device.pms.pojo.po.PvDistributed; -import com.njcn.device.pms.pojo.vo.PvDistributedVO; -import com.njcn.device.pms.service.IPvDistributedService; -import com.njcn.web.controller.BaseController; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiOperation; -import lombok.RequiredArgsConstructor; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.*; - -import java.util.List; -import java.util.Objects; - -/** - *

- * 分布式光伏控制器 - *

- * - * @author cdf - * @since 2022-07-06 - */ -@RestController -@RequestMapping("/pvDistributed") -@Api(tags = "pv分布式光伏控制器") -@RequiredArgsConstructor -public class PvDistributedController extends BaseController { - - private final IPvDistributedService iPvDistributedService; - - - /** - * 新增分布式光伏台账 - * @param pvDistributedParam 分布式光伏台账实体 - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("addDistributed") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD) - @ApiOperation("新增分布式光伏台账") - @ApiImplicitParam(name = "pvDistributedParam",value = "分布式光伏台账实体",required = true) - public HttpResult addDistributed(@RequestBody @Validated PvDistributedParam pvDistributedParam){ - String methodDescribe = getMethodDescribe("addDistributed"); - boolean res = iPvDistributedService.addDistributed(pvDistributedParam); - if(res){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - - - /** - * 修改分布式光伏台账 - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("updateDistributed") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE) - @ApiOperation("修改分布式光伏台账") - @ApiImplicitParam(name = "updatePvDistributedParam",value = "分布式光伏台账实体",required = true) - public HttpResult updateDistributed(@RequestBody @Validated PvDistributedParam.UpdatePvDistributedParam updatePvDistributedParam){ - String methodDescribe = getMethodDescribe("updateDistributed"); - boolean res = iPvDistributedService.updateDistributed(updatePvDistributedParam); - if(res){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - - - /** - * 分页查询分布式光伏台账 - * @param distributedQueryParam 查询实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - @PostMapping("getPvDistributedList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("分页查询分布式光伏台账") - @ApiImplicitParam(name = "distributedQueryParam",value = "分布式光伏台账实体",required = true) - public HttpResult> getPvDistributedList(@RequestBody DistributedQueryParam distributedQueryParam){ - String methodDescribe = getMethodDescribe("getPvDistributedList"); - Page page = iPvDistributedService.getPvDistributedList(distributedQueryParam); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe); - } - - /** - * 查询所有分布式光伏台账 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - @PostMapping("getAllPvDistributedList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("查询所有分布式光伏台账") - public HttpResult> getAllPvDistributedList(){ - String methodDescribe = getMethodDescribe("getAllPvDistributedList"); - List list = iPvDistributedService.getAllPvDistributedList(); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); - } - - - /** - * 根据分布式光伏台账id查询分布式光伏台账 - * @param id 分布式光伏台账id - * @author cdf - * @date 2022/7/5 - * @return PvDistributed - */ - @GetMapping("getPvDistributedById") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("根据分布式光伏台账id查询分布式光伏台账") - @ApiImplicitParam(name = "id",value = "分布式光伏台账id",required = true) - public HttpResult getPvDistributedById(@RequestParam("id") String id){ - String methodDescribe = getMethodDescribe("getPvDistributedById"); - PvDistributed pvDistributed = iPvDistributedService.getPvDistributedById(id); - if(Objects.nonNull(pvDistributed)){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvDistributed, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - - } - - - /** - * 删除分布式光伏台账 - * @param ids 分布式光伏台账id - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - @PostMapping("delPvDistributed") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("删除分布式光伏台账") - @ApiImplicitParam(name = "ids",value = "分布式光伏台账ids",required = true) - public HttpResult delPvDistributed(@RequestBody List ids){ - String methodDescribe = getMethodDescribe("delPvDistributed"); - boolean res = iPvDistributedService.delPvDistributed(ids); - if(res){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - -} - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvLineDetailController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvLineDetailController.java deleted file mode 100644 index d15adac84..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvLineDetailController.java +++ /dev/null @@ -1,160 +0,0 @@ -package com.njcn.device.pms.controller; - - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.common.pojo.annotation.OperateInfo; -import com.njcn.common.pojo.constant.OperateType; -import com.njcn.common.pojo.enums.common.LogEnum; -import com.njcn.common.pojo.enums.response.CommonResponseEnum; -import com.njcn.common.pojo.response.HttpResult; -import com.njcn.common.utils.HttpResultUtil; -import com.njcn.device.pms.pojo.param.LineDetailQueryParam; -import com.njcn.device.pms.pojo.param.PvLineDetailParam; -import com.njcn.device.pms.pojo.po.PvLineDetail; -import com.njcn.device.pms.service.IPvLineDetailService; -import com.njcn.web.controller.BaseController; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiOperation; -import lombok.RequiredArgsConstructor; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.*; - -import java.util.List; -import java.util.Objects; - -/** - *

- * 监测点控制器 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@RestController -@RequestMapping("/pvLineDetail") -@Api(tags = "pv监测点控制器") -@RequiredArgsConstructor -public class PvLineDetailController extends BaseController { - - private final IPvLineDetailService iPvLineDetailService; - - - - /** - * 新增监测点 - * @param pvLineDetailParam 监测点实体 - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("addLineDetail") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD) - @ApiOperation("新增监测点") - @ApiImplicitParam(name = "pvLineDetailParam",value = "监测点实体",required = true) - public HttpResult addLineDetail(@RequestBody @Validated PvLineDetailParam pvLineDetailParam){ - String methodDescribe = getMethodDescribe("addLineDetail"); - boolean res = iPvLineDetailService.addLineDetail(pvLineDetailParam); - if(res){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - - - /** - * 修改监测点 - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("updateLineDetail") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE) - @ApiOperation("修改监测点") - @ApiImplicitParam(name = "updatePvLineDetailParam",value = "监测点实体",required = true) - public HttpResult updateLineDetail(@RequestBody @Validated PvLineDetailParam.UpdatePvLineDetailParam updatePvLineDetailParam){ - String methodDescribe = getMethodDescribe("updateLineDetail"); - boolean res = iPvLineDetailService.updateLineDetail(updatePvLineDetailParam); - if(res){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - - - /** - * 分页查询监测点 - * @param lineDetailQueryParam 查询实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - @PostMapping("getPvLineDetailList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("分页查询监测点") - @ApiImplicitParam(name = "lineDetailQueryParam",value = "监测点实体",required = true) - public HttpResult> getPvLineDetailList(@RequestBody LineDetailQueryParam lineDetailQueryParam){ - String methodDescribe = getMethodDescribe("getPvLineDetailList"); - Page page = iPvLineDetailService.getPvLineDetailList(lineDetailQueryParam); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe); - } - - /** - * 查询所有监测点 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - @PostMapping("getAllPvLineDetailList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("查询所有监测点") - public HttpResult> getAllPvLineDetailList(){ - String methodDescribe = getMethodDescribe("getAllPvLineDetailList"); - List list = iPvLineDetailService.getAllPvLineDetailList(); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); - } - - - /** - * 根据监测点id查询监测点 - * @param id 监测点id - * @author cdf - * @date 2022/7/5 - * @return PvLineDetail - */ - @GetMapping("getPvLineDetailById") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("根据监测点id查询监测点") - @ApiImplicitParam(name = "id",value = "监测点id",required = true) - public HttpResult getPvLineDetailById(@RequestParam("id") String id){ - String methodDescribe = getMethodDescribe("getPvLineDetailById"); - PvLineDetail pvLineDetail = iPvLineDetailService.getPvLineDetailById(id); - if(Objects.nonNull(pvLineDetail)){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvLineDetail, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - - } - - - /** - * 删除监测点 - * @param ids 监测点id - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - @PostMapping("delPvLineDetail") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("删除监测点") - @ApiImplicitParam(name = "ids",value = "监测点id",required = true) - public HttpResult delPvLineDetail(@RequestBody List ids){ - String methodDescribe = getMethodDescribe("delPvLineDetail"); - boolean res = iPvLineDetailService.delPvLineDetail(ids); - if(res){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - - -} - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvLvUserController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvLvUserController.java deleted file mode 100644 index 4d6bab0d6..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvLvUserController.java +++ /dev/null @@ -1,160 +0,0 @@ -package com.njcn.device.pms.controller; - - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.common.pojo.annotation.OperateInfo; -import com.njcn.common.pojo.constant.OperateType; -import com.njcn.common.pojo.enums.common.LogEnum; -import com.njcn.common.pojo.enums.response.CommonResponseEnum; -import com.njcn.common.pojo.response.HttpResult; -import com.njcn.common.utils.HttpResultUtil; -import com.njcn.device.pms.pojo.param.LvUserQueryParam; -import com.njcn.device.pms.pojo.param.PvLvUserParam; -import com.njcn.device.pms.pojo.po.PvLvUser; -import com.njcn.device.pms.pojo.vo.PvLvUserVO; -import com.njcn.device.pms.service.IPvLvUserService; -import com.njcn.web.controller.BaseController; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiOperation; -import lombok.RequiredArgsConstructor; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.*; - -import java.util.List; -import java.util.Objects; - -/** - *

- * 低压用户台账控制器 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@RestController -@RequestMapping("/pvLvUser") -@Api(tags = "pv低压用户台账控制器") -@RequiredArgsConstructor -public class PvLvUserController extends BaseController { - - private final IPvLvUserService iPvLvUserService; - - - /** - * 新增低压用户台账 - * @param pvLvUserParam 低压用户台账实体 - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("addLvUser") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD) - @ApiOperation("新增低压用户台账") - @ApiImplicitParam(name = "pvLvUserParam",value = "低压用户台账实体",required = true) - public HttpResult addLvUser(@RequestBody @Validated PvLvUserParam pvLvUserParam){ - String methodDescribe = getMethodDescribe("addLvUser"); - boolean res = iPvLvUserService.addLvUser(pvLvUserParam); - if(res){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - - - /** - * 修改低压用户台账 - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("updateLvUser") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE) - @ApiOperation("修改低压用户台账") - @ApiImplicitParam(name = "updatePvLvUserParam",value = "低压用户台账实体",required = true) - public HttpResult updateLvUser(@RequestBody @Validated PvLvUserParam.UpdatePvLvUserParam updatePvLvUserParam){ - String methodDescribe = getMethodDescribe("updateLvUser"); - boolean res = iPvLvUserService.updateLvUser(updatePvLvUserParam); - if(res){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - - - /** - * 分页查询低压用户台账 - * @param lvUserQueryParam 查询实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - @PostMapping("getPvLvUserList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("分页查询低压用户台账") - @ApiImplicitParam(name = "lvUserQueryParam",value = "低压用户台账实体",required = true) - public HttpResult> getPvLvUserList(@RequestBody LvUserQueryParam lvUserQueryParam){ - String methodDescribe = getMethodDescribe("getPvLvUserList"); - Page page = iPvLvUserService.getPvLvUserList(lvUserQueryParam); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe); - } - - /** - * 查询所有低压用户台账 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - @PostMapping("getAllPvLvUserList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("查询所有低压用户台账") - public HttpResult> getAllPvLvUserList(){ - String methodDescribe = getMethodDescribe("getAllPvLvUserList"); - List list = iPvLvUserService.getAllPvLvUserList(); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); - } - - - /** - * 根据低压用户台账id查询低压用户台账 - * @param id 低压用户台账id - * @author cdf - * @date 2022/7/5 - * @return PvLvUser - */ - @GetMapping("getPvLvUserById") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("根据低压用户台账id查询低压用户台账") - @ApiImplicitParam(name = "id",value = "低压用户台账id",required = true) - public HttpResult getPvLvUserById(@RequestParam("id") String id){ - String methodDescribe = getMethodDescribe("getPvLvUserById"); - PvLvUser pvLvUser = iPvLvUserService.getPvLvUserById(id); - if(Objects.nonNull(pvLvUser)){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvLvUser, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - - } - - - /** - * 删除低压用户台账 - * @param ids 低压用户台账id - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - @PostMapping("delPvLvUser") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.DELETE) - @ApiOperation("删除低压用户台账") - @ApiImplicitParam(name = "ids",value = "低压用户台账id",required = true) - public HttpResult delPvLvUser(@RequestBody List ids){ - String methodDescribe = getMethodDescribe("delPvLvUser"); - boolean res = iPvLvUserService.delPvLvUser(ids); - if(res){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - - -} - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvSubAreaController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvSubAreaController.java deleted file mode 100644 index 3df74c4f3..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvSubAreaController.java +++ /dev/null @@ -1,160 +0,0 @@ -package com.njcn.device.pms.controller; - - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.common.pojo.annotation.OperateInfo; -import com.njcn.common.pojo.constant.OperateType; -import com.njcn.common.pojo.enums.common.LogEnum; -import com.njcn.common.pojo.enums.response.CommonResponseEnum; -import com.njcn.common.pojo.response.HttpResult; -import com.njcn.common.utils.HttpResultUtil; -import com.njcn.device.pms.pojo.param.PvSubAreaParam; -import com.njcn.device.pms.pojo.param.SubAreaQueryParam; -import com.njcn.device.pms.pojo.po.PvSubArea; -import com.njcn.device.pms.pojo.vo.PvSubAreaVO; -import com.njcn.device.pms.service.IPvSubAreaService; -import com.njcn.web.controller.BaseController; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiOperation; -import lombok.RequiredArgsConstructor; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.*; - -import java.util.List; -import java.util.Objects; - -/** - *

- * 台区控制器 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@RestController -@RequestMapping("/pvSubArea") -@Api(tags = "pv台区控制器") -@RequiredArgsConstructor -public class PvSubAreaController extends BaseController { - - private final IPvSubAreaService iPvSubAreaService; - - - - /** - * 新增台区 - * @param pvSubAreaParam 台区实体 - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("addSubArea") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD) - @ApiOperation("新增台区") - @ApiImplicitParam(name = "pvSubAreaParam",value = "台区实体",required = true) - public HttpResult addSubArea(@RequestBody @Validated PvSubAreaParam pvSubAreaParam){ - String methodDescribe = getMethodDescribe("addSubArea"); - boolean res = iPvSubAreaService.addSubArea(pvSubAreaParam); - if(res){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - - - /** - * 修改台区 - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("updateSubArea") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE) - @ApiOperation("修改台区") - @ApiImplicitParam(name = "updatePvSubAreaParam",value = "台区实体",required = true) - public HttpResult updateSubArea(@RequestBody @Validated PvSubAreaParam.UpdatePvSubAreaParam updatePvSubAreaParam){ - String methodDescribe = getMethodDescribe("updateSubArea"); - boolean res = iPvSubAreaService.updateSubArea(updatePvSubAreaParam); - if(res){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - - - /** - * 分页查询台区 - * @param subAreaQueryParam 查询实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - @PostMapping("getPvSubAreaList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("分页查询台区") - @ApiImplicitParam(name = "subAreaQueryParam",value = "台区实体",required = true) - public HttpResult> getPvSubAreaList(@RequestBody SubAreaQueryParam subAreaQueryParam){ - String methodDescribe = getMethodDescribe("getPvSubAreaList"); - Page page = iPvSubAreaService.getPvSubAreaList(subAreaQueryParam); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe); - } - - /** - * 查询所有台区 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - @PostMapping("getAllPvSubAreaList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("查询所有台区") - public HttpResult> getAllPvSubAreaList(){ - String methodDescribe = getMethodDescribe("getAllPvSubAreaList"); - List list = iPvSubAreaService.getAllPvSubAreaList(); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); - } - - - /** - * 根据台区id查询台区 - * @param id 台区id - * @author cdf - * @date 2022/7/5 - * @return PvSubArea - */ - @GetMapping("getPvSubAreaById") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("根据台区id查询台区") - @ApiImplicitParam(name = "id",value = "台区id",required = true) - public HttpResult getPvSubAreaById(@RequestParam("id") String id){ - String methodDescribe = getMethodDescribe("getPvSubAreaById"); - PvSubArea pvSubArea = iPvSubAreaService.getPvSubAreaById(id); - if(Objects.nonNull(pvSubArea)){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvSubArea, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - - } - - - /** - * 删除台区 - * @param ids 台区ids - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - @PostMapping("delPvSubArea") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("删除台区") - @ApiImplicitParam(name = "ids",value = "台区ids",required = true) - public HttpResult delPvSubArea(@RequestBody List ids){ - String methodDescribe = getMethodDescribe("delPvSubArea"); - boolean res = iPvSubAreaService.delPvSubArea(ids); - if(res){ - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - -} - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvSubstationController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvSubstationController.java deleted file mode 100644 index d83cf9803..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvSubstationController.java +++ /dev/null @@ -1,150 +0,0 @@ -package com.njcn.device.pms.controller; - - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.common.pojo.annotation.OperateInfo; -import com.njcn.common.pojo.constant.OperateType; -import com.njcn.common.pojo.enums.common.LogEnum; -import com.njcn.common.pojo.enums.response.CommonResponseEnum; -import com.njcn.common.pojo.response.HttpResult; -import com.njcn.common.utils.HttpResultUtil; -import com.njcn.device.pms.pojo.param.PvSubstationParam; -import com.njcn.device.pms.pojo.param.SubstationQueryParam; -import com.njcn.device.pms.pojo.po.PvSubstation; -import com.njcn.device.pms.pojo.vo.PvSubstationVO; -import com.njcn.device.pms.service.IPvSubstationService; -import com.njcn.web.controller.BaseController; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiOperation; -import lombok.RequiredArgsConstructor; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - *

- * 变电站控制器 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@RestController -@RequestMapping("/pvSubstation") -@Api(tags = "pv变电站控制器") -@RequiredArgsConstructor -public class PvSubstationController extends BaseController { - - private final IPvSubstationService iPvSubstationService; - - /** - * 新增变电站 - * @param pvSubstationParam 变电站实体 - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("addSubstation") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD) - @ApiOperation("新增变电站") - @ApiImplicitParam(name = "pvSubstationParam",value = "变电站实体",required = true) - public HttpResult addSubstation(@RequestBody @Validated PvSubstationParam pvSubstationParam){ - String methodDescribe = getMethodDescribe("addSubstation"); - iPvSubstationService.addSubstation(pvSubstationParam); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - - - } - - - /** - * 修改变电站 - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("updateSubstation") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE) - @ApiOperation("修改变电站") - @ApiImplicitParam(name = "updatePvSubstationParam",value = "变电站实体",required = true) - public HttpResult updateSubstation(@RequestBody @Validated PvSubstationParam.UpdatePvSubstationParam updatePvSubstationParam){ - String methodDescribe = getMethodDescribe("updateSubstation"); - iPvSubstationService.updateSubstation(updatePvSubstationParam); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - - - } - - - /** - * 分页查询变电站 - * @param substationQueryParam 查询实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - @PostMapping("getPvSubstationList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("分页查询变电站") - @ApiImplicitParam(name = "substationQueryParam",value = "变电站实体",required = true) - public HttpResult> getPvSubstationList(@RequestBody SubstationQueryParam substationQueryParam){ - String methodDescribe = getMethodDescribe("getPvSubstationList"); - Page page = iPvSubstationService.getPvSubstationList(substationQueryParam); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe); - - } - - /** - * 查询所有变电站 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - @PostMapping("getAllPvSubstationList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("查询所有变电站") - public HttpResult> getAllPvSubstationList(){ - String methodDescribe = getMethodDescribe("getAllPvSubstationList"); - List list = iPvSubstationService.getAllPvSubstationList(); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); - } - - - /** - * 根据变电站id查询变电站 - * @param id 变电站id - * @author cdf - * @date 2022/7/5 - * @return PvSubstation - */ - @GetMapping("getPvSubstationById") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("根据变电站id查询变电站") - @ApiImplicitParam(name = "id",value = "变电站id",required = true) - public HttpResult getPvSubstationById(@RequestParam("id") String id){ - String methodDescribe = getMethodDescribe("getPvSubstationById"); - PvSubstation pvSubstation = iPvSubstationService.getPvSubstationById(id); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvSubstation, methodDescribe); - } - - - /** - * 删除变电站 - * @param ids 变电站ids - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - @PostMapping("delPvSubstation") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.DELETE) - @ApiOperation("删除变电站") - @ApiImplicitParam(name = "ids",value = "变电站ids",required = true) - public HttpResult delPvSubstation(@RequestBody List ids){ - String methodDescribe = getMethodDescribe("delPvSubstation"); - iPvSubstationService.delPvSubstation(ids); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - - -} - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvTenVoltageController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvTenVoltageController.java deleted file mode 100644 index 0625360a6..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvTenVoltageController.java +++ /dev/null @@ -1,157 +0,0 @@ -package com.njcn.device.pms.controller; - - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.common.pojo.annotation.OperateInfo; -import com.njcn.common.pojo.constant.OperateType; -import com.njcn.common.pojo.enums.common.LogEnum; -import com.njcn.common.pojo.enums.response.CommonResponseEnum; -import com.njcn.common.pojo.response.HttpResult; -import com.njcn.common.utils.HttpResultUtil; -import com.njcn.device.pms.pojo.param.PvTenVoltageParam; -import com.njcn.device.pms.pojo.param.TenVoltageQueryParam; -import com.njcn.device.pms.pojo.po.PvTenVoltage; -import com.njcn.device.pms.pojo.vo.PvTenVoltageVO; -import com.njcn.device.pms.service.IPvTenVoltageService; -import com.njcn.web.controller.BaseController; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiOperation; -import lombok.RequiredArgsConstructor; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - *

- * 前端控制器 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@RestController -@RequestMapping("/pvTenVoltage") -@Api(tags = "pv十千伏线路控制器") -@RequiredArgsConstructor -public class PvTenVoltageController extends BaseController { - - private final IPvTenVoltageService iPvTenVoltageService; - - /** - * 新增10kV线路 - * - * @param pvTenVoltageParam 10kV线路实体 - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("addTenVoltage") - @OperateInfo(info = LogEnum.SYSTEM_COMMON, operateType = OperateType.ADD) - @ApiOperation("新增10kV线路") - @ApiImplicitParam(name = "pvTenVoltageParam", value = "10kV线路实体", required = true) - public HttpResult addTenVoltage(@RequestBody @Validated PvTenVoltageParam pvTenVoltageParam) { - String methodDescribe = getMethodDescribe("addTenVoltage"); - boolean flag = iPvTenVoltageService.addTenVoltage(pvTenVoltageParam); - if (flag) { - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - - - /** - * 修改10kV线路 - * - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("updateTenVoltage") - @OperateInfo(info = LogEnum.SYSTEM_COMMON, operateType = OperateType.UPDATE) - @ApiOperation("修改10kV线路") - @ApiImplicitParam(name = "updatePvTenVoltageParam", value = "10kV线路实体", required = true) - public HttpResult updateTenVoltage(@RequestBody @Validated PvTenVoltageParam.UpdatePvTenVoltageParam updatePvTenVoltageParam) { - String methodDescribe = getMethodDescribe("updateTenVoltage"); - boolean flag = iPvTenVoltageService.updateTenVoltage(updatePvTenVoltageParam); - if (flag) { - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } - - - /** - * 分页查询10kV线路 - * - * @param tenVoltageQueryParam 查询实体 - * @return Page - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("getPvTenVoltageList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("分页查询10kV线路") - @ApiImplicitParam(name = "tenVoltageQueryParam", value = "10kV线路实体", required = true) - public HttpResult> getPvTenVoltageList(@RequestBody @Validated TenVoltageQueryParam tenVoltageQueryParam) { - String methodDescribe = getMethodDescribe("getPvTenVoltageList"); - Page page = iPvTenVoltageService.getPvTenVoltageList(tenVoltageQueryParam); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe); - } - - /** - * 查询所有10kV线路 - * @author cdf - * @date 2022/7/5 - * @return List - */ - @GetMapping("getAllPvTenVoltageList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("查询所有10kV线路") - public HttpResult> getAllPvTenVoltageList(){ - String methodDescribe = getMethodDescribe("getAllPvTenVoltageList"); - List res = iPvTenVoltageService.getAllPvTenVoltageList(); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, res, methodDescribe); - } - - - /** - * 根据10kV线路id查询10kV线路 - * - * @param id 10kV线路id - * @return PvTenVoltage - * @author cdf - * @date 2022/7/5 - */ - @GetMapping("getPvTenVoltageById") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("根据10kV线路id查询10kV线路") - @ApiImplicitParam(name = "id", value = "10kV线路id", required = true) - public HttpResult getPvTenVoltageById(@RequestParam("id") String id) { - String methodDescribe = getMethodDescribe("getPvTenVoltageById"); - PvTenVoltage pvTenVoltage = iPvTenVoltageService.getPvTenVoltageById(id); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvTenVoltage, methodDescribe); - } - - - /** - * 删除10kV线路 - * - * @param ids 10kV线路id - * @return boolean - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("delPvTenVoltage") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("删除10kV线路") - @ApiImplicitParam(name = "ids", value = "10kV线路id", required = true) - public HttpResult delPvTenVoltage(@RequestBody List ids) { - String methodDescribe = getMethodDescribe("delPvTenVoltage"); - boolean flag = iPvTenVoltageService.delPvTenVoltage(ids); - if (flag) { - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); - } -} - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvTerminalBaseController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvTerminalBaseController.java deleted file mode 100644 index b6278b24b..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvTerminalBaseController.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.njcn.device.pms.controller; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.common.pojo.annotation.OperateInfo; -import com.njcn.common.pojo.enums.common.LogEnum; -import com.njcn.common.pojo.enums.response.CommonResponseEnum; -import com.njcn.common.pojo.response.HttpResult; -import com.njcn.common.utils.HttpResultUtil; -import com.njcn.device.pms.pojo.param.PvTerminalBaseQuery; -import com.njcn.device.pms.pojo.vo.DisOrLvVO; -import com.njcn.device.pms.pojo.vo.PvLineAllDetailVO; -import com.njcn.device.pms.service.PvTerminalBaseService; -import com.njcn.user.pojo.vo.PvTerminalTreeVO; -import com.njcn.web.controller.BaseController; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiImplicitParams; -import io.swagger.annotations.ApiOperation; -import lombok.RequiredArgsConstructor; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * pqs - * 台账相关控制 - * - * @author cdf - * @date 2022/7/11 - */ -@RestController -@RequestMapping("/pvTerminalBase") -@Api(tags = "pv终端相关基础管理") -@RequiredArgsConstructor -public class PvTerminalBaseController extends BaseController { - - private final PvTerminalBaseService pvTerminalBaseService; - - - /** - * 获取终端台账树 - * - * @author cdf - * @date 2022/7/11 - */ - @GetMapping("pvTree") - @OperateInfo(info = LogEnum.BUSINESS_COMMON) - @ApiOperation("获取终端台账树") - public HttpResult> pvTerminalTree() { - String methodDescribe = getMethodDescribe("pvTerminalTree"); - List tree = pvTerminalBaseService.pvTerminalTree(); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, tree, methodDescribe); - } - - - /** - * 点击变电站台区展示监测点详情 - * @param pvTerminalBaseQuery 传参 - * @author cdf - * @date 2022/7/11 - */ - @PostMapping("pvLineDetail") - @OperateInfo(info = LogEnum.BUSINESS_COMMON) - @ApiOperation("点击树节点获取监测点详情") - @ApiImplicitParam(name = "pvTerminalBaseQuery",value = "参数",required = true) - public HttpResult> lineDetailBySubId(@RequestBody @Validated PvTerminalBaseQuery pvTerminalBaseQuery) { - String methodDescribe = getMethodDescribe("lineDetailBySubId"); - Page all = pvTerminalBaseService.lineDetailBySubId(pvTerminalBaseQuery); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, all, methodDescribe); - } - - /** - * 根据userCode 和 userCodeType - * @author cdf - * @date 2022/7/28 - */ - @GetMapping("pvDisOrLv") - @OperateInfo(info = LogEnum.BUSINESS_COMMON) - @ApiOperation("根据用户编号获取低压分布式详情") - @ApiImplicitParams({ - @ApiImplicitParam(name = "userCode", value = "用户编号"), - @ApiImplicitParam(name = "userCodeType", value = "用户编号类型 0.光伏 1.低压"), - }) - public HttpResult pvDisOrLv(@RequestParam("userCode")String userCode,@RequestParam("userCodeType")Integer userCodeType) { - String methodDescribe = getMethodDescribe("pvDisOrLv"); - DisOrLvVO all = pvTerminalBaseService.pvDisOrLv(userCode,userCodeType); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, all, methodDescribe); - } - - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvUnitController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvUnitController.java deleted file mode 100644 index 115332588..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvUnitController.java +++ /dev/null @@ -1,119 +0,0 @@ -package com.njcn.device.pms.controller; - - -import com.njcn.device.pms.service.IPvUnitService; -import com.njcn.web.controller.BaseController; -import io.swagger.annotations.Api; -import lombok.RequiredArgsConstructor; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -/** - *

- * 前端控制器 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@RestController -@RequestMapping("/pvUnit") -@Api(tags = "pv单位控制器") -@RequiredArgsConstructor -public class PvUnitController extends BaseController { - - private final IPvUnitService iPvUnitService; - - /* *//** - * 新增单位 - * @param pvUnitParam 单位实体 - * @author cdf - * @date 2022/7/5 - *//* - @PostMapping("addUnit") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD) - @ApiOperation("新增单位") - @ApiImplicitParam(name = "pvUnitParam",value = "单位实体",required = true) - public HttpResult addUnit(@RequestBody @Validated PvUnitParam pvUnitParam){ - String methodDescribe = getMethodDescribe("addUnit"); - iPvUnitService.addUnit(pvUnitParam); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - - - } - - - *//** - * 修改单位 - * @author cdf - * @date 2022/7/5 - *//* - @PostMapping("updateUnit") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE) - @ApiOperation("修改单位") - @ApiImplicitParam(name = "updatePvUnitParam",value = "单位实体",required = true) - public HttpResult updateUnit(@RequestBody @Validated PvUnitParam.UpdatePvUnitParam updatePvUnitParam){ - String methodDescribe = getMethodDescribe("updateUnit"); - iPvUnitService.updateUnit(updatePvUnitParam); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - - - } - - - *//** - * 查询所有单位 - * @param baseParam 查询实体 - * @author cdf - * @date 2022/7/5 - * @return Page - *//* - @PostMapping("getPvUnitList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("查询所有单位") - @ApiImplicitParam(name = "baseParam",value = "单位实体",required = true) - public HttpResult> getPvUnitList(@RequestBody BaseParam baseParam){ - String methodDescribe = getMethodDescribe("getPvUnitList"); - List res = iPvUnitService.getPvUnitList(baseParam); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, res, methodDescribe); - - } - - - *//** - * 根据单位id查询单位 - * @param id 单位id - * @author cdf - * @date 2022/7/5 - * @return PvUnit - *//* - @GetMapping("getPvUnitById") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("根据单位id查询单位") - @ApiImplicitParam(name = "id",value = "单位id",required = true) - public HttpResult getPvUnitById(@RequestParam("id") String id){ - String methodDescribe = getMethodDescribe("getPvUnitById"); - PvUnit pvUnit = iPvUnitService.getPvUnitById(id); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvUnit, methodDescribe); - } - - - *//** - * 删除单位 - * @param id 单位id - * @author cdf - * @date 2022/7/5 - * @return boolean - *//* - @DeleteMapping("delPvUnit") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("删除单位") - @ApiImplicitParam(name = "id",value = "单位id",required = true) - public HttpResult delPvUnit(@RequestParam("id") String id){ - String methodDescribe = getMethodDescribe("delPvUnit"); - iPvUnitService.delPvUnit(id); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } -*/ -} - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvVoltageController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvVoltageController.java deleted file mode 100644 index 5825a78b8..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PvVoltageController.java +++ /dev/null @@ -1,144 +0,0 @@ -package com.njcn.device.pms.controller; - - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.common.pojo.annotation.OperateInfo; -import com.njcn.common.pojo.constant.OperateType; -import com.njcn.common.pojo.enums.common.LogEnum; -import com.njcn.common.pojo.enums.response.CommonResponseEnum; -import com.njcn.common.pojo.response.HttpResult; -import com.njcn.common.utils.HttpResultUtil; -import com.njcn.device.pms.pojo.param.PvVoltageParam; -import com.njcn.device.pms.pojo.param.VoltageQueryParam; -import com.njcn.device.pms.pojo.po.PvVoltage; -import com.njcn.device.pms.service.IPvVoltageService; -import com.njcn.web.controller.BaseController; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiOperation; -import lombok.RequiredArgsConstructor; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - *

- * 前端控制器 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@RestController -@RequestMapping("/pvVoltage") -@Api(tags = "pv母线控制器") -@RequiredArgsConstructor -public class PvVoltageController extends BaseController { - - private final IPvVoltageService iPvVoltageService; - - - /** - * 新增母线 - * @param pvVoltageParam 母线实体 - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("addVoltage") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.ADD) - @ApiOperation("新增母线") - @ApiImplicitParam(name = "pvVoltageParam",value = "母线实体",required = true) - public HttpResult addVoltage(@RequestBody @Validated PvVoltageParam pvVoltageParam){ - String methodDescribe = getMethodDescribe("addVoltage"); - iPvVoltageService.addVoltage(pvVoltageParam); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - - - /** - * 修改母线 - * @author cdf - * @date 2022/7/5 - */ - @PostMapping("updateVoltage") - @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE) - @ApiOperation("修改母线") - @ApiImplicitParam(name = "updatePvVoltageParam",value = "母线实体",required = true) - public HttpResult updateVoltage(@RequestBody @Validated PvVoltageParam.UpdatePvVoltageParam updatePvVoltageParam){ - String methodDescribe = getMethodDescribe("updateVoltage"); - iPvVoltageService.updateVoltage(updatePvVoltageParam); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - - - /** - * 分页查询母线 - * @param voltageQueryParam 查询实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - @PostMapping("getPvVoltageList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("分页查询母线") - @ApiImplicitParam(name = "voltageQueryParam",value = "母线实体",required = true) - public HttpResult> getPvVoltageList(@RequestBody VoltageQueryParam voltageQueryParam){ - String methodDescribe = getMethodDescribe("getPvVoltageList"); - Page page = iPvVoltageService.getPvVoltageList(voltageQueryParam); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, page, methodDescribe); - } - - /** - * 查询所有母线 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - @PostMapping("getAllPvVoltageList") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("查询所有母线") - public HttpResult> getAllPvVoltageList(){ - String methodDescribe = getMethodDescribe("getAllPvVoltageList"); - List list = iPvVoltageService.getAllPvVoltageList(); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); - } - - - /** - * 根据母线id查询母线 - * @param id 母线id - * @author cdf - * @date 2022/7/5 - * @return PvVoltage - */ - @GetMapping("getPvVoltageById") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("根据母线id查询母线") - @ApiImplicitParam(name = "id",value = "母线id",required = true) - public HttpResult getPvVoltageById(@RequestParam("id") String id){ - String methodDescribe = getMethodDescribe("getPvVoltageById"); - PvVoltage pvVoltage = iPvVoltageService.getPvVoltageById(id); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, pvVoltage, methodDescribe); - } - - - /** - * 删除母线 - * @param id 母线id - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - @DeleteMapping("delPvVoltage") - @OperateInfo(info = LogEnum.SYSTEM_COMMON) - @ApiOperation("删除母线") - @ApiImplicitParam(name = "id",value = "母线id",required = true) - public HttpResult delPvVoltage(@RequestParam("id") String id){ - String methodDescribe = getMethodDescribe("delPvVoltage"); - iPvVoltageService.delPvVoltage(id); - return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); - } - -} - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PwMonitorController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PwMonitorController.java new file mode 100644 index 000000000..8c7268271 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/PwMonitorController.java @@ -0,0 +1,62 @@ +package com.njcn.device.pms.controller; + +import cn.hutool.core.collection.CollectionUtil; +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pms.pojo.dto.PwPmsMonitorDTO; +import com.njcn.device.pms.pojo.param.PwPmsMonitorParam; +import com.njcn.device.pms.service.IMonitorService; +import com.njcn.device.pms.service.IPwMonitorService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +/** + * @author yzh + * @date 2022/10/28 + */ + +@RestController +@RequestMapping("/pms/pwMonitor") +@Slf4j +@Api(tags = "配网监测点信息") +@RequiredArgsConstructor +public class PwMonitorController extends BaseController { + + private final IPwMonitorService iPwMonitorService; + + + + /** + * 获取配网所有监测点信息 + * + * @param pwPmsMonitorParam 参数条件 + * @return 配网所有监测点信息 + */ + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getPwMonitorList") + @ApiOperation("获取配网所有监测点信息") + @ApiImplicitParam(name = "pwPmsMonitorParam",value = "获取配网所有监测点信息条件",required = true) + public HttpResult> getPwMonitorList(@RequestBody @Validated PwPmsMonitorParam pwPmsMonitorParam) { + String methodDescribe = getMethodDescribe("getPwMonitorList"); + List monitorList = iPwMonitorService.getPwMonitorList(pwPmsMonitorParam); + if (CollectionUtil.isEmpty(monitorList)) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, monitorList, methodDescribe); + } + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/RMpMonitorAlarmCountMController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/RMpMonitorAlarmCountMController.java new file mode 100644 index 000000000..d5d584d24 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/RMpMonitorAlarmCountMController.java @@ -0,0 +1,48 @@ +package com.njcn.device.pms.controller; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pms.pojo.param.RMpMonitorAlarmCountMParam; +import com.njcn.device.pms.pojo.param.RStatAreaAlarmCountMParam; +import com.njcn.device.pms.pojo.vo.RMpMonitorAlarmCountMVO; +import com.njcn.device.pms.pojo.vo.RStatAreaAlarmCountMVO; +import com.njcn.device.pms.service.RMpMonitorAlarmCountMService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +/** + * 监测点告警统计 + * @Title RMpMonitorAlarmCountMController + * @Package com.njcn.device.pms.controller + * @Author jianghaifei + * @Date 2022-10-13 08:54 + * @Version V1.0 + */ +@RestController +@Api(tags = "主网-监测点告警统计(月)") +@RequiredArgsConstructor +@RequestMapping("/rMpMonitorAlarmCountM") +public class RMpMonitorAlarmCountMController extends BaseController { + + private final RMpMonitorAlarmCountMService rMpMonitorAlarmCountMService; + + @PostMapping("/getRMpMonitorAlarmCountMList") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("根据条件查询监测点告警统计(月)") + public HttpResult> getAllRStatAreaAlarmCountMList(@RequestBody RMpMonitorAlarmCountMParam rMpMonitorAlarmCountMParam) { + String methodDescribe = getMethodDescribe("getAllRStatAreaAlarmCountMList"); + List list = rMpMonitorAlarmCountMService.getRMpMonitorAlarmCountMList(rMpMonitorAlarmCountMParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/RStatAreaAlarmCountMController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/RStatAreaAlarmCountMController.java new file mode 100644 index 000000000..538e56dfd --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/RStatAreaAlarmCountMController.java @@ -0,0 +1,48 @@ +package com.njcn.device.pms.controller; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pms.pojo.param.RStatAreaAlarmCountMParam; +import com.njcn.device.pms.pojo.param.RStatZwAlarmCountWParam; +import com.njcn.device.pms.pojo.vo.RStatAreaAlarmCountMVO; +import com.njcn.device.pms.pojo.vo.RStatZwAlarmCountWVO; +import com.njcn.device.pms.service.RStatAreaAlarmCountMService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +/** + * @Title RStatAreaAlarmCountMController + * @Package com.njcn.device.pms.controller + * @Author jianghaifei + * @Date 2022-10-10 15:13 + * @Version V1.0 + */ + +@RestController +@Api(tags = "主网-区域告警统计(月)") +@RequiredArgsConstructor +@RequestMapping("/rStatAreaAlarmCountM") +public class RStatAreaAlarmCountMController extends BaseController { + + private final RStatAreaAlarmCountMService rStatAreaAlarmCountMService; + + @PostMapping("getAllRStatAreaAlarmCountMList") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("根据条件查询所有区域告警统计(月)") + public HttpResult> getAllRStatAreaAlarmCountMList(@RequestBody RStatAreaAlarmCountMParam rStatAreaAlarmCountMParam) { + String methodDescribe = getMethodDescribe("getAllRStatAreaAlarmCountMList"); + List list = rStatAreaAlarmCountMService.getAllRStatAreaAlarmCountMList(rStatAreaAlarmCountMParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/RStatBusbarHarmonicController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/RStatBusbarHarmonicController.java new file mode 100644 index 000000000..d911619f5 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/RStatBusbarHarmonicController.java @@ -0,0 +1,55 @@ +package com.njcn.device.pms.controller; + + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pms.pojo.param.UniversalFrontEndParam; +import com.njcn.device.pms.pojo.vo.RStatBusbarHarmonicVO; +import com.njcn.device.pms.service.RStatBusbarHarmonicService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +/** + * 变电站背景谐波 + * + * @author yzh + * @date 2022/10/8 + */ + +@RestController +@RequestMapping("/rStatBusbarHarmonic") +@Api(tags = "变电站背景谐波") +@RequiredArgsConstructor +public class RStatBusbarHarmonicController extends BaseController { + + private final RStatBusbarHarmonicService statBusbarHarmonicService; + + /** + * 获取变电站母线电压指标年报 + * + * @param param 前端传入参数 + * @return 变电站母线电压指标年报 + */ + @PostMapping("/getRStatBusbarHarmonic") + @OperateInfo(info = LogEnum.SYSTEM_COMMON) + @ApiOperation("获取变电站母线电压指标年报") + @ApiImplicitParam(name = "param", value = "获取变电站母线电压指标年报前端参数", required = true) + public HttpResult> getRStatBusbarHarmonic(@RequestBody UniversalFrontEndParam param) { + String methodDescribe = getMethodDescribe("getRStatBusbarHarmonic"); + List list = statBusbarHarmonicService.getRStatBusbarHarmonic(param); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); + } + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/RStatZwAlarmCountWController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/RStatZwAlarmCountWController.java new file mode 100644 index 000000000..635742de2 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/RStatZwAlarmCountWController.java @@ -0,0 +1,71 @@ +package com.njcn.device.pms.controller; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pms.pojo.param.RStatZwAlarmCountWParam; +import com.njcn.device.pms.pojo.vo.ProblemMonitorDetailVO; +import com.njcn.device.pms.pojo.vo.RStatZwAlarmCountWVO; +import com.njcn.device.pms.service.RStatZwAlarmCountWService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +/** + * @Title RStatZwAlarmCountWController + * @Package com.njcn.device.pms.controller + * @Author jianghaifei + * @Date 2022-10-09 08:56 + * @Version V1.0 + */ +@RestController +@Api(tags = "主网-告警统计(周)") +@RequiredArgsConstructor +@RequestMapping("/rStatZwAlarmCount") +public class RStatZwAlarmCountWController extends BaseController { + + private final RStatZwAlarmCountWService rStatZwAlarmCountWService; + + + /*** + * 查询所有告警统计(周) + * @author jianghaifei + * @date 2022-10-09 15:23 + * @param + * @return com.njcn.common.pojo.response.HttpResult> + */ + @PostMapping("getAllRStatZwAlarmCountList") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("根据条件查询所有告警统计(周)") + public HttpResult> getAllRStatZwAlarmCountList(@RequestBody RStatZwAlarmCountWParam rStatZwAlarmCountWParam) { + String methodDescribe = getMethodDescribe("getAllRStatZwAlarmCountList"); + List list = rStatZwAlarmCountWService.getAllRStatZwAlarmCountWList(rStatZwAlarmCountWParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); + } + + /*** + * 查询问题严重的监测点信息 + * @author jianghaifei + * @date 2022-10-13 16:34 + * @param + * @return com.njcn.common.pojo.response.HttpResult> + */ + @PostMapping("getProblemMonitorDetailList") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("查询问题严重的监测点信息") + public HttpResult> getProblemMonitorDetailList(@RequestBody RStatZwAlarmCountWParam rStatZwAlarmCountWParam) { + String methodDescribe = getMethodDescribe("getProblemMonitorDetailList"); + List list = rStatZwAlarmCountWService.getProblemMonitorDetailList(rStatZwAlarmCountWParam); + + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/RmpEventDetailController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/RmpEventDetailController.java new file mode 100644 index 000000000..12f0da08f --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/RmpEventDetailController.java @@ -0,0 +1,53 @@ +package com.njcn.device.pms.controller; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pms.pojo.param.UniversalFrontEndParam; +import com.njcn.device.pms.pojo.vo.RmpEventDetailVO; +import com.njcn.device.pms.service.RmpEventDetailService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +/** + * 暂态事件明细 + * + * @author yzh + * @date 2022/10/12 + */ + +@RestController +@RequestMapping("/rmpEventDetail") +@Api(tags = "暂态事件明细") +@RequiredArgsConstructor +public class RmpEventDetailController extends BaseController { + + private final RmpEventDetailService rmpEventDetailService; + + /** + * 获取暂态事件明细 + * + * @param param 前端传入参数 + * @return 暂态事件明细 + */ + @PostMapping("/getDetailsOfTransientEvents") + @OperateInfo(info = LogEnum.SYSTEM_COMMON) + @ApiOperation("获取区域暂态指标统计") + @ApiImplicitParam(name = "param", value = "前端参数", required = true) + public HttpResult> getRmpEventDetail(@RequestBody UniversalFrontEndParam param) { + String methodDescribe = getMethodDescribe("getRmpEventDetail"); + List list = rmpEventDetailService.getRmpEventDetail(param); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/SourceManagementController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/SourceManagementController.java new file mode 100644 index 000000000..1e5303294 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/SourceManagementController.java @@ -0,0 +1,22 @@ +package com.njcn.device.pms.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import com.njcn.web.controller.BaseController; + +/** + *

+ * 前端控制器 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@RestController +@RequestMapping("/pms/sourceManagement") +public class SourceManagementController extends BaseController { + +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/StatationStatController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/StatationStatController.java new file mode 100644 index 000000000..136621df1 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/StatationStatController.java @@ -0,0 +1,136 @@ +package com.njcn.device.pms.controller; + +import cn.hutool.core.collection.CollectionUtil; +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.constant.OperateType; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pms.pojo.dto.PmsStatationStatInfoDTO; +import com.njcn.device.pms.pojo.param.StatationStatParam; +import com.njcn.device.pms.pojo.param.PmsStatationStatInfoParam; +import com.njcn.device.pms.pojo.po.StatationStat; +import com.njcn.device.pms.service.IStatationStatService; +import com.njcn.web.controller.BaseController; +import com.njcn.web.pojo.param.BaseParam; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.validation.constraints.NotEmpty; +import java.util.List; +import java.util.Objects; + +/** + *

+ * 电站监测点设置信息 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@RestController +@RequestMapping("/pms/statationStat") +@Slf4j +@Api(tags = "变电站统计") +@RequiredArgsConstructor +public class StatationStatController extends BaseController { + + private final IStatationStatService statationStatService; + /** + * 获取监测点信息 + */ + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getStatationStat") + @ApiOperation("获取指定的变电站信息") +// @ApiImplicitParams({ +// @ApiImplicitParam(name = "pmsStatationStatInfoParam", value = "获取指定的变电站信息条件", required = true) +// }) + public HttpResult> getStatationStatInfo(@RequestBody @Validated PmsStatationStatInfoParam pmsStatationStatInfoParam) { + String methodDescribe = getMethodDescribe("getStatationStatInfo"); + List monitorInfo = statationStatService.getStatationStatInfo(pmsStatationStatInfoParam); + if (CollectionUtil.isEmpty(monitorInfo)) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, monitorInfo, methodDescribe); + } + } + + + + /*台账部分***************************/ + + @OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.ADD) + @PostMapping("/addstatationStat") + @ApiOperation("新增电站") + @ApiImplicitParam(name = "statationStatParam", value = "电站实体", required = true) + public HttpResult addstatationStat(@RequestBody StatationStatParam statationStatParam) { + String methodDescribe = getMethodDescribe("addstatationStat"); + boolean result = statationStatService.addStatationStat(statationStatParam); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.UPDATE) + @PostMapping("/updatestatationStat") + @ApiOperation("修改电站") + @ApiImplicitParam(name = "statationStatParam", value = "电站实体", required = true) + public HttpResult updatestatationStat(@RequestBody StatationStatParam statationStatParam) { + String methodDescribe = getMethodDescribe("updatestatationStat"); + boolean result = statationStatService.updateStatationStat(statationStatParam); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON,operateType = OperateType.DELETE) + @DeleteMapping("/delstatationStat") + @ApiOperation("删除电站") + @ApiImplicitParam(name = "statationStatIds", value = "电站ids", required = true) + public HttpResult delstatationStat(@RequestBody @NotEmpty(message = "电站id不可为空") List statationStatIds) { + String methodDescribe = getMethodDescribe("delstatationStat"); + boolean result = statationStatService.delStatationStat(statationStatIds); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @GetMapping("/getstatationStatById") + @ApiOperation("根据电站id获取电站") + @ApiImplicitParam(name = "statationStatId", value = "电站id", required = true) + public HttpResult getstatationStatById(@RequestParam("statationStatId") String statationStatId) { + String methodDescribe = getMethodDescribe("getstatationStatById"); + StatationStat result = statationStatService.getStatationStatById(statationStatId); + if(Objects.nonNull(result)){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getstatationStatList") + @ApiOperation("获取电站列表") + @ApiImplicitParam(name = "baseParam", value = "基本查询体", required = true) + public HttpResult> getstatationStatList(@RequestBody BaseParam baseParam) { + String methodDescribe = getMethodDescribe("getstatationStatList"); + List result = statationStatService.getStatationStatList(baseParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe); + } + + +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/StatisticsRunMonitorController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/StatisticsRunMonitorController.java new file mode 100644 index 000000000..9a048d0e3 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/StatisticsRunMonitorController.java @@ -0,0 +1,22 @@ +package com.njcn.device.pms.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import com.njcn.web.controller.BaseController; + +/** + *

+ * 前端控制器 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@RestController +@RequestMapping("/pms/statisticsRunMonitor") +public class StatisticsRunMonitorController extends BaseController { + +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/TerminalController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/TerminalController.java new file mode 100644 index 000000000..8de59dc64 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/TerminalController.java @@ -0,0 +1,132 @@ +package com.njcn.device.pms.controller; + + +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.constant.OperateType; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.common.utils.LogUtil; +import com.njcn.device.pms.pojo.param.PmsTerminalParam; +import com.njcn.device.pms.pojo.po.Terminal; +import com.njcn.device.pms.pojo.vo.PmsTerminalVO; +import com.njcn.device.pms.service.ITerminalService; +import com.njcn.device.pq.pojo.param.TerminalParam; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import com.njcn.web.controller.BaseController; + +import java.util.List; +import java.util.Objects; + +/** + *

+ * 监测终端台账增删改查 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Slf4j +@RestController +@RequestMapping("/pms/terminal") +@Api(tags = "监测终端台账") +@RequiredArgsConstructor +@Validated +public class TerminalController extends BaseController { + + private final ITerminalService iTerminalService; + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("getTerminalList") + @ApiOperation("查询监测终端台账所有信息") + @ApiImplicitParam(name = "queryParam",value = "查询监测终端台账信息",required = true) + public HttpResult> getTerminalList(@RequestBody @Validated PmsTerminalParam.QueryParam queryParam){ + String methodDescribe = getMethodDescribe("getTerminalList"); + LogUtil.njcnDebug(log, "{},查询数据为:{}", methodDescribe, queryParam); + Page res = iTerminalService.getTerminalList(queryParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS,res,methodDescribe); + } + + @OperateInfo(info = LogEnum.SYSTEM_COMMON) + @GetMapping("/getTerminalById") + @ApiOperation("根据ID查询监测终端台账数据") + @ApiImplicitParam(name = "id",value = "id",required = true) + public HttpResult getTerminalById(@RequestParam("id") String id){ + String methodDescribe = getMethodDescribe("getTerminalById"); + Terminal terminal = iTerminalService.getTerminalById(id); + if (Objects.nonNull(terminal)){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, terminal, methodDescribe); + } + else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + } + + /** + * 新增监测终端台账信息 + * @author hany + * @date 2022/10/26 + */ + @PostMapping("/addTerminal") + @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType= OperateType.ADD) + @ApiOperation("新增监测终端台账信息") + @ApiImplicitParam(name = "terminalParam", value = "新增实体", required = true) + public HttpResult add(@RequestBody @Validated PmsTerminalParam terminalParam){ + String methodDescribe = getMethodDescribe("add"); + boolean result = iTerminalService.add(terminalParam); + if (result) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + } + } + + /** + * 修改监测终端台账信息 + * @author hany + * @date 2022/10/27 + */ + @PostMapping("/updateTerminal") + @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE) + @ApiOperation("修改监测终端台账信息") + @ApiImplicitParam(name = "UpdateParam", value = "更新实体", required = true) + public HttpResult update(@RequestBody @Validated PmsTerminalParam updateParam){ + String methodDescribe = getMethodDescribe("update"); + boolean result = iTerminalService.update(updateParam); + if (result) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + } + } + + /** + * 删除监测终端台账信息 + * @param ids id + * @author hany + * @date 2022/10/27 + */ + @PostMapping("/deleteTerminal") + @OperateInfo(info = LogEnum.SYSTEM_COMMON, operateType = OperateType.DELETE) + @ApiOperation("删除监测终端台账信息") + @ApiImplicitParam(name = "ids", value = "ID索引", required = true) + public HttpResult delete(@RequestBody List ids){ + String methodDescribe = getMethodDescribe("delete"); + boolean result = iTerminalService.delete(ids); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + }else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + } + } +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/TerminalEliminateDataController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/TerminalEliminateDataController.java new file mode 100644 index 000000000..dbdb9bb4b --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/TerminalEliminateDataController.java @@ -0,0 +1,22 @@ +package com.njcn.device.pms.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import com.njcn.web.controller.BaseController; + +/** + *

+ * 前端控制器 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@RestController +@RequestMapping("/pms/terminalEliminateData") +public class TerminalEliminateDataController extends BaseController { + +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/TractionStationController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/TractionStationController.java new file mode 100644 index 000000000..ce8331386 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/TractionStationController.java @@ -0,0 +1,128 @@ +package com.njcn.device.pms.controller; + + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.constant.OperateType; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pms.pojo.param.TractionStationParam; +import com.njcn.device.pms.pojo.po.TractionStation; +import com.njcn.device.pms.service.ITractionStationService; +import com.njcn.web.pojo.param.BaseParam; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import com.njcn.web.controller.BaseController; + +import java.util.List; +import java.util.Objects; + +/** + *

+ * 牵引站信息 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Slf4j +@RestController +@RequestMapping("/pms/tractionStation") +@Api(tags = "牵引站信息") +@RequiredArgsConstructor +@Validated +public class TractionStationController extends BaseController { + + private final ITractionStationService iTractionStationService; + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getTractionStationList") + @ApiOperation("获取牵引站列表") + @ApiImplicitParam(name = "baseParam", value = "基本查询体", required = true) + public HttpResult> getTractionStationList(@RequestBody BaseParam baseParam) { + String methodDescribe = getMethodDescribe("getTractionStationList"); + List result = iTractionStationService.getTractionStationList(baseParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe); + } + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @GetMapping("/getTractionStationById") + @ApiOperation("根据id获取牵引站信息") + @ApiImplicitParam(name = "tractionStationId", value = "电站id", required = true) + public HttpResult getTractionStationById(@RequestParam("tractionStationId") String tractionStationId) { + String methodDescribe = getMethodDescribe("getTractionStationById"); + TractionStation res = iTractionStationService.getTractionStationById(tractionStationId); + if(Objects.nonNull(res)){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, res, methodDescribe); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + + } + + /** + * 新增牵引站信息 + * @author hany + * @date 2022/10/28 + */ + @PostMapping("/addTractionStation") + @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType= OperateType.ADD) + @ApiOperation("新增牵引站信息") + @ApiImplicitParam(name = "tractionStationParam", value = "新增实体", required = true) + public HttpResult add(@RequestBody @Validated TractionStationParam tractionStationParam){ + String methodDescribe = getMethodDescribe("add"); + boolean result = iTractionStationService.add(tractionStationParam); + if (result) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + } + } + + /** + * 修改牵引站信息 + * @author hany + * @date 2022/10/28 + */ + @PostMapping("/updateTractionStation") + @OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.UPDATE) + @ApiOperation("修改牵引站信息") + @ApiImplicitParam(name = "updateParam", value = "更新实体", required = true) + public HttpResult update(@RequestBody @Validated TractionStationParam updateParam){ + String methodDescribe = getMethodDescribe("update"); + boolean result = iTractionStationService.update(updateParam); + if (result) { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + } + } + + /** + * 删除牵引站信息 + * @param ids id + * @author hany + * @date 2022/10/28 + */ + @PostMapping("/deleteTractionStation") + @OperateInfo(info = LogEnum.SYSTEM_COMMON, operateType = OperateType.DELETE) + @ApiOperation("删除牵引站信息") + @ApiImplicitParam(name = "ids", value = "ID索引", required = true) + public HttpResult delete(@RequestBody List ids){ + String methodDescribe = getMethodDescribe("delete"); + boolean result = iTractionStationService.delete(ids); + if(result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + }else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + } + } + +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/TransientStasticDataController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/TransientStasticDataController.java new file mode 100644 index 000000000..9ab9ab690 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/TransientStasticDataController.java @@ -0,0 +1,22 @@ +package com.njcn.device.pms.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import com.njcn.web.controller.BaseController; + +/** + *

+ * 前端控制器 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@RestController +@RequestMapping("/pms/transientStasticData") +public class TransientStasticDataController extends BaseController { + +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/TreatTransientDetailDataController.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/TreatTransientDetailDataController.java new file mode 100644 index 000000000..2ab5a6d70 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/controller/TreatTransientDetailDataController.java @@ -0,0 +1,22 @@ +package com.njcn.device.pms.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import com.njcn.web.controller.BaseController; + +/** + *

+ * 前端控制器 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@RestController +@RequestMapping("/pms/treatTransientDetailData") +public class TreatTransientDetailDataController extends BaseController { + +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/DistributionMonitorMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/DistributionMonitorMapper.java new file mode 100644 index 000000000..e6d53fd4c --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/DistributionMonitorMapper.java @@ -0,0 +1,29 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.dto.PmsMonitorBaseDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.pojo.po.DistributionMonitor; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface DistributionMonitorMapper extends BaseMapper { + + /** + * 根据组织机构id获取配网监测点 + * @author cdf + * @date 2022/10/27 + */ + List getIdByOrgId(@Param("orgIds")List orgIds, @Param("pmsDeviceInfoParam") PmsDeviceInfoParam pmsDeviceInfoParam); + + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/GeneratrixWireMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/GeneratrixWireMapper.java new file mode 100644 index 000000000..0422b92c4 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/GeneratrixWireMapper.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.GeneratrixWire; +import org.apache.ibatis.annotations.Mapper; + +/** + * pms-device + * + * @author cdf + * @date 2022/10/26 + */ +@Mapper +public interface GeneratrixWireMapper extends BaseMapper { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/HarmonicGeneralManagementDataMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/HarmonicGeneralManagementDataMapper.java new file mode 100644 index 000000000..6f3f10cc4 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/HarmonicGeneralManagementDataMapper.java @@ -0,0 +1,17 @@ +package com.njcn.device.pms.mapper; + + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.HarmonicGeneralManagementData; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface HarmonicGeneralManagementDataMapper extends BaseMapper { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/HarmonicGeneralManagementMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/HarmonicGeneralManagementMapper.java new file mode 100644 index 000000000..1c31cb120 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/HarmonicGeneralManagementMapper.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.HarmonicGeneralManagement; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface HarmonicGeneralManagementMapper extends BaseMapper { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/MonitorMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/MonitorMapper.java new file mode 100644 index 000000000..608c6fcbb --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/MonitorMapper.java @@ -0,0 +1,59 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.common.pojo.dto.SimpleDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorBaseDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorInfoDTO; +import com.njcn.device.pms.pojo.dto.PwPmsMonitorDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.pojo.param.PmsMonitorInfoParam; +import com.njcn.device.pms.pojo.param.PmsMonitorParam; +import com.njcn.device.pms.pojo.param.PwPmsMonitorParam; +import com.njcn.device.pms.pojo.po.Monitor; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface MonitorMapper extends BaseMapper { + + /*** + * 根据组织ID以及其查询条件筛选出台账信息 + * @author hongawen + * @date 2022/10/17 13:32 + * @param orgIdList 部门索引 + * @param pmsDeviceInfoParam 查询条件 + * @return List + */ + List getMonitorByCondition(@Param("orgIdList") List orgIdList, + @Param("pmsDeviceInfoParam") PmsDeviceInfoParam pmsDeviceInfoParam); + + + /*** + * 根据组织ID以及其查询条件筛选出变电站信息 + * @author hongawen + * @date 11/1/2022 11:09 AM + * @param orgIdList 部门索引 + * @param pmsDeviceInfoParam 查询条件 + * @return List + */ + List getPmsPowerrInfoWithInOrg(@Param("orgIdList") List orgIdList, + @Param("pmsDeviceInfoParam") PmsDeviceInfoParam pmsDeviceInfoParam); + + /** + * 获取指定的监测点信息 + * + * @param pmsMonitorInfoParam 获取监测点详情数据入参 + * @return 指定的监测点信息 + */ + List getMonitorInfo(@Param("pmsMonitorInfoParam") PmsMonitorInfoParam pmsMonitorInfoParam); + + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvVoltageMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/OverlimitMapper.java similarity index 54% rename from pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvVoltageMapper.java rename to pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/OverlimitMapper.java index 066b4ffe7..eb3ebdbd6 100644 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvVoltageMapper.java +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/OverlimitMapper.java @@ -1,7 +1,9 @@ package com.njcn.device.pms.mapper; -import com.njcn.device.pms.pojo.po.PvVoltage; + import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pq.pojo.po.Overlimit; + /** *

@@ -9,8 +11,8 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; *

* * @author cdf - * @since 2022-07-05 + * @since 2022-01-04 */ -public interface PvVoltageMapper extends BaseMapper { +public interface OverlimitMapper extends BaseMapper { } diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PmsGeneratrixMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PmsGeneratrixMapper.java new file mode 100644 index 000000000..e921103e6 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PmsGeneratrixMapper.java @@ -0,0 +1,26 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.dto.PmsGeneratrixDTO; +import com.njcn.device.pms.pojo.param.PmsGeneratrixParam; +import com.njcn.device.pms.pojo.po.Generatrix; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * @author yzh + * @date 2022/10/18 + */ +@Mapper +public interface PmsGeneratrixMapper extends BaseMapper { + + /** + * 获取母线信息 + * + * @param pmsGeneratrixParam 入参 + * @return 母线信息 + */ + List getGeneratrixInfo(@Param("pmsGeneratrixParam") PmsGeneratrixParam pmsGeneratrixParam); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PowerClientMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PowerClientMapper.java new file mode 100644 index 000000000..511b59ae2 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PowerClientMapper.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.PowerClient; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface PowerClientMapper extends BaseMapper { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PowerDistributionareaMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PowerDistributionareaMapper.java new file mode 100644 index 000000000..e16032153 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PowerDistributionareaMapper.java @@ -0,0 +1,23 @@ +package com.njcn.device.pms.mapper; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.njcn.device.pms.pojo.po.PowerDistributionarea; +import com.njcn.device.pms.pojo.vo.PowerDistributionareaVO; +import com.njcn.system.pojo.vo.EventTemplateVO; +import org.apache.ibatis.annotations.Param; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface PowerDistributionareaMapper extends BaseMapper { + + Page page(@Param("page")Page page, @Param("ew") QueryWrapper queryWrapper); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PowerGenerationUserMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PowerGenerationUserMapper.java new file mode 100644 index 000000000..72a856bce --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PowerGenerationUserMapper.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.PowerGenerationUser; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface PowerGenerationUserMapper extends BaseMapper { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PowerQualityMatterMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PowerQualityMatterMapper.java new file mode 100644 index 000000000..af3564b95 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PowerQualityMatterMapper.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.PowerQualityMatter; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface PowerQualityMatterMapper extends BaseMapper { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvDeviceMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvDeviceMapper.java deleted file mode 100644 index 96843a0f9..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvDeviceMapper.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.njcn.device.pms.mapper; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.device.pms.pojo.param.DeviceQueryParam; -import com.njcn.device.pms.pojo.po.PvDevice; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.njcn.device.pms.pojo.vo.PvDeviceVO; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - *

- * Mapper 接口 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface PvDeviceMapper extends BaseMapper { - - - - - /** - * 获取所有终端台账 - * @author cdf - * @date 2022/7/8 - */ - Page getPvDeviceList(Page page, @Param("deviceQueryParam") DeviceQueryParam deviceQueryParam); - - - List getAllPvDeviceList(); - - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvDeviceRunExMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvDeviceRunExMapper.java deleted file mode 100644 index 2daa5d373..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvDeviceRunExMapper.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.njcn.device.pms.mapper; - -import com.njcn.device.pms.pojo.bo.DeviceRunExBO; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * @author yangj - * @date 2022/09/14 - */ -public interface PvDeviceRunExMapper { - - /** - * 查询pq_line表获取信息 - * @param lineLevel 监测点等级 - * @param pid 父级id - * @return List - */ - List findPQLineInfo(@Param("lineLevel") String lineLevel, @Param("pid") String pid); - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvDispatchMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvDispatchMapper.java deleted file mode 100644 index 9fcddf407..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvDispatchMapper.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.njcn.device.pms.mapper; - -import com.njcn.device.pms.pojo.po.PvDispatch; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; - -/** - *

- * Mapper 接口 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface PvDispatchMapper extends BaseMapper { - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvDistributedMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvDistributedMapper.java deleted file mode 100644 index 3735dbe27..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvDistributedMapper.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.njcn.device.pms.mapper; - - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.device.pms.pojo.param.DistributedQueryParam; -import com.njcn.device.pms.pojo.po.PvDistributed; -import com.njcn.device.pms.pojo.vo.PvDistributedVO; -import org.apache.ibatis.annotations.Param; - -/** - *

- * Mapper 接口 - *

- * - * @author cdf - * @since 2022-07-06 - */ -public interface PvDistributedMapper extends BaseMapper { - - /** - * 查询索引分布式光伏 - * @author cdf - * @date 2022/7/7 - */ - Page getPvDistributedList(Page page, @Param("distributedQueryParam") DistributedQueryParam distributedQueryParam); - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvLineDetailMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvLineDetailMapper.java deleted file mode 100644 index 2a0e372e1..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvLineDetailMapper.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.njcn.device.pms.mapper; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.device.pms.pojo.po.PvLineDetail; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.njcn.device.pms.pojo.vo.PvLineAllDetailVO; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - *

- * Mapper 接口 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface PvLineDetailMapper extends BaseMapper { - - - /** - * 分页查询监测点 - * @param subIds 变电站ids - * @param subAreaIds 台区ids - * @author cdf - * @date 2022/7/5 - * @return Page - */ - Page getPvLineAllDetailMain(Page page,@Param("subIds") List subIds, @Param("subAreaIds")List subAreaIds,@Param("type")String type,@Param("lineStatus")Integer lineStatus); - - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvLvUserMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvLvUserMapper.java deleted file mode 100644 index a6c3ae4c3..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvLvUserMapper.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.njcn.device.pms.mapper; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.device.pms.pojo.param.LvUserQueryParam; -import com.njcn.device.pms.pojo.po.PvLvUser; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.njcn.device.pms.pojo.vo.PvLvUserVO; -import org.apache.ibatis.annotations.Param; - -/** - *

- * Mapper 接口 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface PvLvUserMapper extends BaseMapper { - - /** - * 分页获取低压用户台账 - * @author cdf - * @date 2022/7/8 - */ - Page getPvLvUserList(Page page, @Param("lvUserQueryParam") LvUserQueryParam lvUserQueryParam); - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvSubAreaMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvSubAreaMapper.java deleted file mode 100644 index 91e622d67..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvSubAreaMapper.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.njcn.device.pms.mapper; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.device.pms.pojo.param.SubAreaQueryParam; -import com.njcn.device.pms.pojo.po.PvSubArea; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.njcn.device.pms.pojo.vo.DisOrLvVO; -import com.njcn.device.pms.pojo.vo.PvSubAreaVO; -import com.njcn.user.pojo.vo.PvTerminalTreeVO; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - *

- * Mapper 接口 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface PvSubAreaMapper extends BaseMapper { - - - /** - * 查询所有台区 - * @author cdf - * @date 2022/7/7 - */ - Page getPvSubAreaList(Page page, @Param("subsAreaQueryParam") SubAreaQueryParam subsAreaQueryParam); - - /** - * 查询所有台区 - * @author cdf - * @date 2022/7/11 - */ - List getSubAreaTreeList(); - - - DisOrLvVO pvDisOrLv(String userCode, String userCodeType); -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvSubstationMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvSubstationMapper.java deleted file mode 100644 index 8a4778762..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvSubstationMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.njcn.device.pms.mapper; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.device.pms.pojo.param.SubstationQueryParam; -import com.njcn.device.pms.pojo.po.PvSubstation; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.njcn.device.pms.pojo.vo.PvSubstationVO; -import com.njcn.user.pojo.vo.PvTerminalTreeVO; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - *

- * Mapper 接口 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface PvSubstationMapper extends BaseMapper { - - Page getPvSubstationList(Page page, @Param("substationQueryParam") SubstationQueryParam substationQueryParam); - - /** - * 终端树结构的变电站 - * @author cdf - * @date 2022/7/11 - */ - List getSubstationTreeList(); -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvTenVoltageMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvTenVoltageMapper.java deleted file mode 100644 index 97dceeff9..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvTenVoltageMapper.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.njcn.device.pms.mapper; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.device.pms.pojo.param.TenVoltageQueryParam; -import com.njcn.device.pms.pojo.po.PvTenVoltage; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.njcn.device.pms.pojo.vo.PvTenVoltageVO; -import org.apache.ibatis.annotations.Param; - -/** - *

- * Mapper 接口 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface PvTenVoltageMapper extends BaseMapper { - - /** - * 获取所有10kV线路 - * @author cdf - * @date 2022/7/7 - */ - Page getPvTenVoltageList(Page page, @Param("tenVoltageQueryParam") TenVoltageQueryParam tenVoltageQueryParam); - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvUnitMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvUnitMapper.java deleted file mode 100644 index 499678ea4..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PvUnitMapper.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.njcn.device.pms.mapper; - -import com.njcn.device.pms.pojo.po.PvUnit; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.njcn.device.pms.pojo.vo.UnitTreeVO; -import com.njcn.user.pojo.vo.PvTerminalTreeVO; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - *

- * Mapper 接口 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface PvUnitMapper extends BaseMapper { - - /** - * 获取主列表单位树 - * @author cdf - * @date 2022/7/7 - */ - List getPvUnitList(@Param("orderBy")String orderBy,@Param("sortBy")String sortBy); - - - - - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PwMonitorMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PwMonitorMapper.java new file mode 100644 index 000000000..1972f0142 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/PwMonitorMapper.java @@ -0,0 +1,26 @@ +package com.njcn.device.pms.mapper; + +import com.njcn.device.pms.pojo.dto.PwPmsMonitorDTO; +import com.njcn.device.pms.pojo.param.PwPmsMonitorParam; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * @author yzh + * @date 2022/10/28 + */ +@Mapper +public interface PwMonitorMapper { + + /** + * 获取配网监测点信息 + * + * @param deptIdList 所有子部门索引 + * @param pwPmsMonitorParam 查询条件 + * @return 配网监测点信息 + */ + List getPwMonitorDataList(@Param("deptIdList") List deptIdList, + @Param("pwPmsMonitorParam") PwPmsMonitorParam pwPmsMonitorParam); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RMpMonitorAlarmCountMMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RMpMonitorAlarmCountMMapper.java new file mode 100644 index 000000000..81dc73a37 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RMpMonitorAlarmCountMMapper.java @@ -0,0 +1,15 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.RMpMonitorAlarmCountM; + +/** +* @author jianghf +* @description 针对表【r_mp_monitor_alarm_count_m】的数据库操作Mapper +* @createDate 2022-10-12 20:08:33 +* @Entity com.njcn.device.pms.pojo.po.RMpMonitorAlarmCountM +*/ +public interface RMpMonitorAlarmCountMMapper extends BaseMapper { + + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RMpPwAlarmDetailDMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RMpPwAlarmDetailDMapper.java new file mode 100644 index 000000000..e44f0b8ba --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RMpPwAlarmDetailDMapper.java @@ -0,0 +1,15 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.RMpPwAlarmDetailD; + +/** +* @author jianghf +* @description 针对表【r_mp_pw_alarm_detail_d】的数据库操作Mapper +* @createDate 2022-10-17 09:00:27 +* @Entity com.njcn.device.pms.pojo.po.RMpPwAlarmDetailD +*/ +public interface RMpPwAlarmDetailDMapper extends BaseMapper { + + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RMpTargetWarnDMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RMpTargetWarnDMapper.java new file mode 100644 index 000000000..f5d3c4948 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RMpTargetWarnDMapper.java @@ -0,0 +1,15 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.RMpTargetWarnD; + +/** +* @author jianghf +* @description 针对表【r_mp_target_warn_d】的数据库操作Mapper +* @createDate 2022-10-17 10:20:11 +* @Entity com.njcn.device.pms.pojo.po.RMpTargetWarnD +*/ +public interface RMpTargetWarnDMapper extends BaseMapper { + + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatAreaAlarmCountMMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatAreaAlarmCountMMapper.java new file mode 100644 index 000000000..0f62abe07 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatAreaAlarmCountMMapper.java @@ -0,0 +1,15 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.RStatAreaAlarmCountM; + +/** +* @author jianghf +* @description 针对表【r_stat_area_alarm_count_m】的数据库操作Mapper +* @createDate 2022-10-10 14:36:46 +* @Entity com.njcn.device.pms.pojo.po.RStatAreaAlarmCountM +*/ +public interface RStatAreaAlarmCountMMapper extends BaseMapper { + + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatBusbarHarmonicMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatBusbarHarmonicMapper.java new file mode 100644 index 000000000..c2f646cdb --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatBusbarHarmonicMapper.java @@ -0,0 +1,42 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.PmsMonitorPO; +import com.njcn.device.pms.pojo.vo.RStatBusbarHarmonicVO; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 变电站母线电压指标年报持久层 + * + * @author yzh + * @date 2022/10/8 + */ + +@Mapper +public interface RStatBusbarHarmonicMapper extends BaseMapper { + + /** + * 根据部门id查询监测点id + * + * @param deptIds 部门id + * @return 监测点id + */ + List getMonitorInfo(@Param("deptIds") List deptIds); + + + /** + * 查询变电站背景谐波年表 + * + * @param startTime 开始时间 + * @param endTime 结束时间 + * @param generatrixIds 母线id + * @return 获取变电站母线电压指标年报 + */ + List getAnnualReportOfSubstationBusVoltageIndex(@Param("startTime") String startTime, + @Param("endTime") String endTime, + @Param("busbarIds") List generatrixIds); + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatEventOrgMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatEventOrgMapper.java new file mode 100644 index 000000000..4c63c32d1 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatEventOrgMapper.java @@ -0,0 +1,55 @@ +package com.njcn.device.pms.mapper; + +import com.njcn.device.pms.pojo.po.RStatEventOrgPO; +import com.njcn.device.pms.pojo.vo.RStatEventOrgVO; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 区域暂态指标分类统计表 + * + * @author yzh + * @date 2022/10/13 + */ +@Mapper +public interface RStatEventOrgMapper { + + /** + * 获取年区域暂态指标分类统计表 + * + * @param deptIds 部门id + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return 年区域暂态指标分类统计表 + */ + List getYearRStatEventOrgInfo(@Param("deptIds") List deptIds, + @Param("startTime") String startTime, + @Param("endTime") String endTime); + + /** + * 获取季区域暂态指标分类统计表 + * + * @param deptIds 部门id + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return 季区域暂态指标分类统计表 + */ + List getQuarterRStatEventOrgInfo(@Param("deptIds") List deptIds, + @Param("startTime") String startTime, + @Param("endTime") String endTime); + + /** + * 获取月区域暂态指标分类统计表 + * + * @param deptIds 部门id + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return 月区域暂态指标分类统计表 + */ + List getMonthRStatEventOrgInfoInfo(@Param("deptIds") List deptIds, + @Param("startTime") String startTime, + @Param("endTime") String endTime); + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatOrgMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatOrgMapper.java new file mode 100644 index 000000000..3d1aed2a7 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatOrgMapper.java @@ -0,0 +1,56 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.vo.RStatOrgVO; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 暂态指标统计 + * + * @author yzh + * @date 2022/10/10 + */ + +@Mapper +public interface RStatOrgMapper { + + /** + * 获取年区域暂态指标统计 + * + * @param deptIds 单位id + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return 年区域暂态指标统计 + */ + List getYearRStatOrgInfo(@Param("deptIds") List deptIds, + @Param("startTime") String startTime, + @Param("endTime") String endTime); + + /** + * 获取季区域暂态指标统计 + * + * @param deptIds 单位id + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return 季区域暂态指标统计 + */ + List getQuarterRStatOrgInfo(@Param("deptIds") List deptIds, + @Param("startTime") String startTime, + @Param("endTime") String endTime); + + /** + * 获取月区域暂态指标统计 + * + * @param deptIds 单位id + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return 月区域暂态指标统计 + */ + List getMonthRStatOrgInfo(@Param("deptIds") List deptIds, + @Param("startTime") String startTime, + @Param("endTime") String endTime); + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatSubstationMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatSubstationMapper.java new file mode 100644 index 000000000..595736189 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatSubstationMapper.java @@ -0,0 +1,57 @@ +package com.njcn.device.pms.mapper; + +import com.njcn.device.pms.pojo.po.PmsMonitorPO; +import com.njcn.device.pms.pojo.vo.RStatSubstationVO; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 变电站暂态指标分类统计 + * + * @author yzh + * @date 2022/10/14 + */ + +@Mapper +public interface RStatSubstationMapper { + + /** + * 根据部门id查询监测点id + * + * @param deptIds 部门id + * @return 监测点id + */ + List getMonitorInfo(@Param("deptIds") List deptIds); + + /** + * 获取年变电站暂态指标分类统计表 + * + * @param powerrIds 变电站id + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return 年变电站暂态指标分类统计表 + */ + List getYearInfo(List powerrIds, String startTime, String endTime); + + /** + * 获取季变电站暂态指标分类统计表 + * + * @param powerrIds 变电站id + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return 季变电站暂态指标分类统计表 + */ + List getQuarterInfo(List powerrIds, String startTime, String endTime); + + /** + * 获取月变电站暂态指标分类统计表 + * + * @param powerrIds 变电站id + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return 月变电站暂态指标分类统计表 + */ + List getMonthInfo(List powerrIds, String startTime, String endTime); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatZwAlarmCountWMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatZwAlarmCountWMapper.java new file mode 100644 index 000000000..ef00b3fef --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RStatZwAlarmCountWMapper.java @@ -0,0 +1,19 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.njcn.device.pms.pojo.param.RStatZwAlarmCountWParam; +import com.njcn.device.pms.pojo.po.RStatZwAlarmCountW; +import com.njcn.device.pms.pojo.vo.RStatZwAlarmCountWVO; +import org.apache.ibatis.annotations.Param; + +/** +* @author jianghf +* @description 针对表【r_stat_zw_alarm_count_w】的数据库操作Mapper +* @createDate 2022-10-08 16:35:44 +* @Entity generator.domain.RStatZwAlarmCountW +*/ +public interface RStatZwAlarmCountWMapper extends BaseMapper { + + Page getRStatZwAlarmCountWList(Page page, @Param("rStatZwAlarmCountWParam") RStatZwAlarmCountWParam rStatZwAlarmCountWParam); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RmpEventDetailMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RmpEventDetailMapper.java new file mode 100644 index 000000000..e556c3a67 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/RmpEventDetailMapper.java @@ -0,0 +1,15 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.vo.RmpEventDetailVO; +import org.apache.ibatis.annotations.Mapper; + +/** + * 暂态事件明细 + * + * @author yzh + * @date 2022/10/12 + */ +@Mapper +public interface RmpEventDetailMapper extends BaseMapper { +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/SourceManagementMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/SourceManagementMapper.java new file mode 100644 index 000000000..678f190ba --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/SourceManagementMapper.java @@ -0,0 +1,17 @@ +package com.njcn.device.pms.mapper; + + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.SourceManagement; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface SourceManagementMapper extends BaseMapper { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/StatationStatMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/StatationStatMapper.java new file mode 100644 index 000000000..19dabb8b2 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/StatationStatMapper.java @@ -0,0 +1,29 @@ +package com.njcn.device.pms.mapper; + + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.dto.PmsStatationStatInfoDTO; +import com.njcn.device.pms.pojo.param.PmsStatationStatInfoParam; +import com.njcn.device.pms.pojo.po.StatationStat; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface StatationStatMapper extends BaseMapper { + + /** + * 获取指定的变电站信息 + * + * @param pmsStatationStatInfoParam 变电站详情数据入参 + * @return 指定的变电站信息 + */ + List getStatationStatInfo(@Param("pmsStatationStatInfoParam") PmsStatationStatInfoParam pmsStatationStatInfoParam); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/StatisticsRunMonitorMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/StatisticsRunMonitorMapper.java new file mode 100644 index 000000000..9a2c2fc45 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/StatisticsRunMonitorMapper.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.StatisticsRunMonitor; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface StatisticsRunMonitorMapper extends BaseMapper { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/TerminalEliminateDataMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/TerminalEliminateDataMapper.java new file mode 100644 index 000000000..1a8dde5a8 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/TerminalEliminateDataMapper.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.TerminalEliminateData; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface TerminalEliminateDataMapper extends BaseMapper { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/TerminalMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/TerminalMapper.java new file mode 100644 index 000000000..1058a4f0a --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/TerminalMapper.java @@ -0,0 +1,21 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.njcn.device.pms.pojo.po.Terminal; +import com.njcn.device.pms.pojo.vo.PmsTerminalVO; +import org.apache.ibatis.annotations.Param; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface TerminalMapper extends BaseMapper { + + Page page(@Param("page")Page page, @Param("ew") QueryWrapper queryWrapper); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/TractionStationMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/TractionStationMapper.java new file mode 100644 index 000000000..37b4228a0 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/TractionStationMapper.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.TractionStation; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface TractionStationMapper extends BaseMapper { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/TransientStasticDataMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/TransientStasticDataMapper.java new file mode 100644 index 000000000..b4b922d53 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/TransientStasticDataMapper.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.TransientStasticData; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface TransientStasticDataMapper extends BaseMapper { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/TreatTransientDetailDataMapper.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/TreatTransientDetailDataMapper.java new file mode 100644 index 000000000..3d72157c0 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/TreatTransientDetailDataMapper.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.device.pms.pojo.po.TreatTransientDetailData; + +/** + *

+ * Mapper 接口 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface TreatTransientDetailDataMapper extends BaseMapper { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/DistributionMonitorMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/DistributionMonitorMapper.xml new file mode 100644 index 000000000..85a416763 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/DistributionMonitorMapper.xml @@ -0,0 +1,34 @@ + + + + + + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/HarmonicGeneralManagementDataMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/HarmonicGeneralManagementDataMapper.xml new file mode 100644 index 000000000..cdde9fbff --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/HarmonicGeneralManagementDataMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/HarmonicGeneralManagementMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/HarmonicGeneralManagementMapper.xml new file mode 100644 index 000000000..10584f1df --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/HarmonicGeneralManagementMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/MonitorMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/MonitorMapper.xml new file mode 100644 index 000000000..207f77971 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/MonitorMapper.xml @@ -0,0 +1,137 @@ + + + + + + + + + + + + + + + + + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PmsGeneratrixMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PmsGeneratrixMapper.xml new file mode 100644 index 000000000..e80d9cd51 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PmsGeneratrixMapper.xml @@ -0,0 +1,36 @@ + + + + + + + + \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvDispatchMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PowerClientMapper.xml similarity index 70% rename from pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvDispatchMapper.xml rename to pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PowerClientMapper.xml index 10896b919..370322afa 100644 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvDispatchMapper.xml +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PowerClientMapper.xml @@ -1,5 +1,6 @@ - + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PowerDistributionareaMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PowerDistributionareaMapper.xml new file mode 100644 index 000000000..0e9dbf6c0 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PowerDistributionareaMapper.xml @@ -0,0 +1,10 @@ + + + + + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PowerGenerationUserMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PowerGenerationUserMapper.xml new file mode 100644 index 000000000..c7c70b14f --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PowerGenerationUserMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PowerQualityMatterMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PowerQualityMatterMapper.xml new file mode 100644 index 000000000..29381963b --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PowerQualityMatterMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvDeviceMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvDeviceMapper.xml deleted file mode 100644 index ed630ba0a..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvDeviceMapper.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvDeviceRunExMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvDeviceRunExMapper.xml deleted file mode 100644 index ef3902477..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvDeviceRunExMapper.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvDistributedMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvDistributedMapper.xml deleted file mode 100644 index a16520bed..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvDistributedMapper.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvLineDetailMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvLineDetailMapper.xml deleted file mode 100644 index 591b5f42e..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvLineDetailMapper.xml +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvLvUserMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvLvUserMapper.xml deleted file mode 100644 index d5bfba422..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvLvUserMapper.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvSubAreaMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvSubAreaMapper.xml deleted file mode 100644 index 3debc1211..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvSubAreaMapper.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvSubstationMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvSubstationMapper.xml deleted file mode 100644 index fa901fbd2..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvSubstationMapper.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvTenVoltageMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvTenVoltageMapper.xml deleted file mode 100644 index e66539143..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvTenVoltageMapper.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvUnitMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvUnitMapper.xml deleted file mode 100644 index ed01a95c1..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvUnitMapper.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PwMonitorMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PwMonitorMapper.xml new file mode 100644 index 000000000..f9def7d1f --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PwMonitorMapper.xml @@ -0,0 +1,67 @@ + + + + + + + + \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RMpMonitorAlarmCountMMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RMpMonitorAlarmCountMMapper.xml new file mode 100644 index 000000000..3bb3e84da --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RMpMonitorAlarmCountMMapper.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org_no,data_date,data_type, + measurement_point_id,vdev_alarm_info,vdev_severity, + freq_alarm_info,freq_severity,unbalance_alarm_info, + unbalance_severity,v_alarm_info,v_severity, + flicker_alarm_info,flicker_severity,sag_alarm_info, + sag_severity,interrupt_alarm_info,interrupt_severity, + harmonic_type_grade,event_type_grade + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RMpPwAlarmDetailDMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RMpPwAlarmDetailDMapper.xml new file mode 100644 index 000000000..ecbf73b96 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RMpPwAlarmDetailDMapper.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + data_date,measurement_point_id,alarm_type, + alarm_info,alarm_last_time,is_create_problem + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RMpTargetWarnDMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RMpTargetWarnDMapper.xml new file mode 100644 index 000000000..812bd0b7e --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RMpTargetWarnDMapper.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + measurement_point_id,data_date,is_effective, + is_harmonic,is_event,is_warn, + is_v_dev_warn,is_freq_warn,is_unbalance_warn, + is_v_warn,is_flicker_warn,is_sag_warn, + is_interrupt_warn + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatAreaAlarmCountMMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatAreaAlarmCountMMapper.xml new file mode 100644 index 000000000..e6353dd24 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatAreaAlarmCountMMapper.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + org_no,data_date,data_type, + vdev_alarm_info,vdev_alarm_ratio,freq_alarm_info, + freq_alarm_ratio,unbalance_alarm_info,unbalance_alarm_ratio, + v_alarm_info,v_alarm_ratio,flicker_alarm_info, + flicker_alarm_ratio,sag_alarm_info,sag_alarm_avg_count, + interrupt_alarm_info,interrupt_alarm_avg_count,harmonic_type_grade, + event_type_grade + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatBusbarHarmonicMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatBusbarHarmonicMapper.xml new file mode 100644 index 000000000..766837400 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatBusbarHarmonicMapper.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatEventOrgMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatEventOrgMapper.xml new file mode 100644 index 000000000..8786cc331 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatEventOrgMapper.xml @@ -0,0 +1,70 @@ + + + + + + + rso.org_no AS orgNo, + rso.data_date AS dataDate, + rso.effective_measurement_average AS effectiveMeasurementAverage, + rso.effective_measurement_accrued AS effectiveMeasurementAccrued, + rso.event_measurement_average AS eventMeasurementAverage, + rso.event_measurement_accrued AS eventMeasurementAccrued, + rseo.event_type, + rseo.event_measurement_average AS eEventMeasurementAverage, + rseo.event_measurement_accrued AS eEventMeasurementAccrued, + rseo.event_measurement_ratio_average AS eEventMeasurementRatioAverage, + rseo.event_measurement_ratio_accrued AS eEventMeasurementRatioAccrued + + + rso.org_no IN + + #{item} + + + AND DATE_FORMAT(rso.data_date, '%Y-%m-%d') >= DATE_FORMAT(#{startTime}, '%Y-%m-%d') + + + AND DATE_FORMAT(rso.data_date, '%Y-%m-%d') <= DATE_FORMAT(#{endTime}, '%Y-%m-%d') + + GROUP BY + org_no + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatOrgMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatOrgMapper.xml new file mode 100644 index 000000000..ccc4b0aad --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatOrgMapper.xml @@ -0,0 +1,60 @@ + + + + + + org_no IN + + #{item} + + + AND DATE_FORMAT(data_date, '%Y-%m-%d') >= DATE_FORMAT(#{startTime}, '%Y-%m-%d') + + + AND DATE_FORMAT(data_date, '%Y-%m-%d') <= DATE_FORMAT(#{endTime}, '%Y-%m-%d') + + + + + org_no AS orgNo, + data_date AS dataDate, + effective_measurement_average AS effectiveMeasurementAverage, + effective_measurement_accrued AS effectiveMeasurementAccrued, + event_measurement_average AS eventMeasurementAverage, + event_measurement_accrued AS eventMeasurementAccrued, + event_count AS eventCount, + event_freq AS eventFreq + + + + + + + + + + + + + \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatSubstationMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatSubstationMapper.xml new file mode 100644 index 000000000..7efaef6fa --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatSubstationMapper.xml @@ -0,0 +1,84 @@ + + + + + + + + + + substation_id AS substationId, + data_date AS dataDate, + effective_measurement_average AS effectiveMeasurementAverage, + effective_measurement_accrued AS effectiveMeasurementAccrued, + event_count AS eventCount, + event_freq AS eventFreq, + interrupt_count AS interruptCount, + interrupt_freq AS interruptFreq, + swell_count AS swellCount, + swell_freq AS swellFreq, + sag_count AS sagCount, + sag_freq AS sagFreq + + + substation_id IN + + #{item} + + + AND DATE_FORMAT( data_date,'%Y-%m-%d') >= DATE_FORMAT(#{startTime},'%Y-%m-%d') + + + AND DATE_FORMAT( data_date,'%Y-%m-%d') <= DATE_FORMAT(#{endTime},'%Y-%m-%d') + + + + + + + + + + + + \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatZwAlarmCountWMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatZwAlarmCountWMapper.xml new file mode 100644 index 000000000..ebe4d382a --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RStatZwAlarmCountWMapper.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + org_no,data_date,monitor_effective_count, + warn_monitor_count,monitor_grade_count + + + + + + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RmpEventDetailMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RmpEventDetailMapper.xml new file mode 100644 index 000000000..9a12ffff9 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/RmpEventDetailMapper.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/SourceManagementMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/SourceManagementMapper.xml new file mode 100644 index 000000000..606c70ab5 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/SourceManagementMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/StatationStatMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/StatationStatMapper.xml new file mode 100644 index 000000000..dd40bb65a --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/StatationStatMapper.xml @@ -0,0 +1,38 @@ + + + + + + + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/StatisticsRunMonitorMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/StatisticsRunMonitorMapper.xml new file mode 100644 index 000000000..2b831da1c --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/StatisticsRunMonitorMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/TerminalEliminateDataMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/TerminalEliminateDataMapper.xml new file mode 100644 index 000000000..96f1faf8b --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/TerminalEliminateDataMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/TerminalMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/TerminalMapper.xml new file mode 100644 index 000000000..297fa4471 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/TerminalMapper.xml @@ -0,0 +1,10 @@ + + + + + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvVoltageMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/TractionStationMapper.xml similarity index 69% rename from pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvVoltageMapper.xml rename to pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/TractionStationMapper.xml index 69dbe67a1..e839ffba2 100644 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/PvVoltageMapper.xml +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/TractionStationMapper.xml @@ -1,5 +1,5 @@ - + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/TransientStasticDataMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/TransientStasticDataMapper.xml new file mode 100644 index 000000000..6fbbd6e8e --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/TransientStasticDataMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/TreatTransientDetailDataMapper.xml b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/TreatTransientDetailDataMapper.xml new file mode 100644 index 000000000..6c3c4ccac --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/mapper/mapping/TreatTransientDetailDataMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IDistributionMonitorService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IDistributionMonitorService.java new file mode 100644 index 000000000..7826efe0c --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IDistributionMonitorService.java @@ -0,0 +1,29 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.dto.PmsMonitorBaseDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.pojo.po.DistributionMonitor; + +import java.util.List; + +/** + *

+ * 配网 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface IDistributionMonitorService extends IService { + + + /** + * 获取组织机构下的配网监测点 + * @author cdf + * @date 2022/10/27 + * @param + */ + List getMonitorByCondition(List deptIdList, PmsDeviceInfoParam pmsDeviceInfoParam); + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IGeneratrixWireService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IGeneratrixWireService.java new file mode 100644 index 000000000..07666138d --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IGeneratrixWireService.java @@ -0,0 +1,63 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.param.GeneratrixWireParam; +import com.njcn.device.pms.pojo.po.GeneratrixWire; +import com.njcn.web.pojo.param.BaseParam; + +import java.util.List; + +/** + * pms-device + * + * @author cdf + * @date 2022/10/26 + */ +public interface IGeneratrixWireService extends IService { + + /** + * 新增线路 + * @author cdf + * @date 2022/10/25 + * @param generatrixWireParam 线路 + * @return boolean + */ + boolean addGeneratrixWire(GeneratrixWireParam generatrixWireParam); + + /** + * 修改线路 + * @author cdf + * @date 2022/10/25 + * @param generatrixWireParam 线路 + * @return boolean + */ + boolean updateGeneratrixWire(GeneratrixWireParam.UpdateGeneratrixWireParam generatrixWireParam); + + /** + * 删除线路 + * @author cdf + * @date 2022/10/25 + * @param generatrixWireIds 线路 + * @return boolean + */ + boolean delGeneratrixWire(List generatrixWireIds); + + /** + * 查询线路 + * @author cdf + * @date 2022/10/25 + * @param generatrixWireId 线路id + * @return boolean + */ + GeneratrixWire getGeneratrixWireById(String generatrixWireId); + + /** + * 查询线路列表 + * @author cdf + * @date 2022/10/25 + * @param baseParam 基础参数 + * @return boolean + */ + List getGeneratrixWireList(BaseParam baseParam); + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IHarmonicGeneralManagementDataService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IHarmonicGeneralManagementDataService.java new file mode 100644 index 000000000..26fc3a073 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IHarmonicGeneralManagementDataService.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.po.HarmonicGeneralManagementData; + +/** + *

+ * 服务类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface IHarmonicGeneralManagementDataService extends IService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IHarmonicGeneralManagementService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IHarmonicGeneralManagementService.java new file mode 100644 index 000000000..a577b78e2 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IHarmonicGeneralManagementService.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.po.HarmonicGeneralManagement; + +/** + *

+ * 服务类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface IHarmonicGeneralManagementService extends IService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IMonitorService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IMonitorService.java new file mode 100644 index 000000000..bdba90059 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IMonitorService.java @@ -0,0 +1,110 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.common.pojo.dto.SimpleDTO; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.device.pms.pojo.dto.PmsMonitorBaseDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorInfoDTO; +import com.njcn.device.pms.pojo.dto.PwPmsMonitorDTO; +import com.njcn.device.pms.pojo.param.MonitorParam; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.pojo.param.PmsMonitorInfoParam; +import com.njcn.device.pms.pojo.param.PmsMonitorParam; +import com.njcn.device.pms.pojo.param.PwPmsMonitorParam; +import com.njcn.device.pms.pojo.po.Monitor; +import com.njcn.device.pms.pojo.vo.PmsMonitorVO; +import com.njcn.device.pq.pojo.po.Overlimit; +import org.springframework.web.bind.annotation.RequestBody; + + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface IMonitorService extends IService { + + /*** + * + * @author hongawen + * @date 2022/10/17 11:36 + * @param deptIdList 部门索引 + * @param pmsDeviceInfoParam 前端查询条件 + * @return List + */ + List getMonitorByCondition(List deptIdList, PmsDeviceInfoParam pmsDeviceInfoParam); + + /** + * 获取指定的监测点信息 + * + * @param pmsMonitorInfoParam 获取监测点详情数据入参 + * @return 指定的监测点信息 + */ + List getMonitorInfo(PmsMonitorInfoParam pmsMonitorInfoParam); + + /*** + * 根据条件获取监测点信息列表 + * @author jianghaifei + * @date 2022-10-20 22:55 + * @param pmsMonitorParam + * @return java.util.List + */ + List getMonitorInfoListByCond(PmsMonitorParam pmsMonitorParam); + + /*** + * 获取所有监测点信息 + * @author jianghaifei + * @date 2022-10-24 20:01 + * @param + * @return java.util.List + */ + List getAllMonitorList(); + + /** + * 获取限值表信息 + * @param id 监测点id + * @return 结果 Overlimit + */ + Overlimit getOverLimitData(String id); + + + /** + * 新增主网监测点 + * @author cdf + * @date 2022/10/25 + * @param monitorParam 主网监测点 + * @return boolean + */ + boolean addMonitor(MonitorParam monitorParam); + + /** + * 新增主网监测点 + * @author cdf + * @date 2022/10/25 + * @param monitorParam 主网监测点 + * @return boolean + */ + boolean updateMonitor(MonitorParam.UpdateMonitorParam monitorParam); + + /** + * 新增主网监测点 + * @author cdf + * @date 2022/10/25 + * @param monitorIds 主网监测点 + * @return boolean + */ + boolean delMonitor(List monitorIds); + + + /*** + * + * 根据组织ID及条件,获取响应的变电站基础信息 + */ + List getPmsPowerrInfoWithInOrg(List orgIdList, PmsDeviceInfoParam pmsDeviceInfoParam); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPmsGeneralDeviceService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPmsGeneralDeviceService.java new file mode 100644 index 000000000..7cf497a6d --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPmsGeneralDeviceService.java @@ -0,0 +1,35 @@ +package com.njcn.device.pms.service; + +import com.njcn.common.pojo.dto.SimpleDTO; +import com.njcn.device.pms.pojo.dto.PmsGeneralDeviceDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; + +import java.util.List; + +/** + * @author hongawen + * @version 1.0.0 + * @date 2022年10月14日 09:58 + */ +public interface IPmsGeneralDeviceService { + + /** + * 获取指定组织下主网台账综合信息 + */ + List getPmsDeviceInfoWithInOrg(PmsDeviceInfoParam pmsDeviceInfoParam); + + /** + * 主网获取指定组织下变电站 + */ + List getPmsPowerrInfoWithInOrg(PmsDeviceInfoParam pmsDeviceInfoParam); + + + /** + * + * @param pmsDeviceInfoParam + * @return + */ + List getPmsDeviceInfoByOrgId(PmsDeviceInfoParam pmsDeviceInfoParam); + + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPmsGeneratrixService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPmsGeneratrixService.java new file mode 100644 index 000000000..026de5495 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPmsGeneratrixService.java @@ -0,0 +1,72 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.dto.PmsGeneratrixDTO; +import com.njcn.device.pms.pojo.param.GeneratrixParam; +import com.njcn.device.pms.pojo.param.PmsGeneratrixParam; +import com.njcn.device.pms.pojo.po.Generatrix; +import com.njcn.web.pojo.param.BaseParam; + +import java.util.List; + +/** + * @author yzh + * @date 2022/10/18 + */ + +public interface IPmsGeneratrixService extends IService { + + /** + * 获取母线信息 + * + * @param pmsGeneratrixParam 入参 + * @return 母线信息 + */ + List getGeneratrixInfo(PmsGeneratrixParam pmsGeneratrixParam); + + + /** + * 新增母线 + * @author cdf + * @date 2022/10/25 + * @param generatrixParam 母线 + * @return boolean + */ + boolean addGeneratrix(GeneratrixParam generatrixParam); + + /** + * 修改母线 + * @author cdf + * @date 2022/10/25 + * @param generatrixParam 母线 + * @return boolean + */ + boolean updateGeneratrix(GeneratrixParam.UpdateGeneratrixParam generatrixParam); + + /** + * 删除母线 + * @author cdf + * @date 2022/10/25 + * @param generatrixIds 母线 + * @return boolean + */ + boolean delGeneratrix(List generatrixIds); + + /** + * 查询母线 + * @author cdf + * @date 2022/10/25 + * @param generatrixId 母线id + * @return boolean + */ + Generatrix getGeneratrixById(String generatrixId); + + /** + * 查询母线列表 + * @author cdf + * @date 2022/10/25 + * @param baseParam 基础参数 + * @return boolean + */ + List getGeneratrixList(BaseParam baseParam); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPowerClientService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPowerClientService.java new file mode 100644 index 000000000..492cc9f00 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPowerClientService.java @@ -0,0 +1,66 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.param.PowerClientParam; +import com.njcn.device.pms.pojo.po.PowerClient; +import com.njcn.device.pms.pojo.po.PowerClient; +import com.njcn.web.pojo.param.BaseParam; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface IPowerClientService extends IService { + + /** + * 新增用电用户 + * @author cdf + * @date 2022/10/25 + * @param powerClientParam 用电用户 + * @return boolean + */ + boolean addPowerClient(PowerClientParam powerClientParam); + + /** + * 修改用电用户 + * @author cdf + * @date 2022/10/25 + * @param powerClientParam 用电用户 + * @return boolean + */ + boolean updatePowerClient(PowerClientParam powerClientParam); + + /** + * 删除用电用户 + * @author cdf + * @date 2022/10/25 + * @param powerClientIds 用电用户 + * @return boolean + */ + boolean delPowerClient(List powerClientIds); + + /** + * 查询用电用户 + * @author cdf + * @date 2022/10/25 + * @param powerClientId 用电用户id + * @return boolean + */ + PowerClient getPowerClientById(String powerClientId); + + /** + * 查询用电用户列表 + * @author cdf + * @date 2022/10/25 + * @param baseParam 基础参数 + * @return boolean + */ + List getPowerClientList(BaseParam baseParam); + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPowerDistributionareaService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPowerDistributionareaService.java new file mode 100644 index 000000000..8b12881c1 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPowerDistributionareaService.java @@ -0,0 +1,53 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.param.PowerDistributionareaParam; +import com.njcn.device.pms.pojo.po.PowerDistributionarea; +import com.njcn.device.pms.pojo.vo.PowerDistributionareaVO; +import com.njcn.system.pojo.param.EventTemplateParam; +import com.njcn.system.pojo.po.EventTemplate; +import com.njcn.system.pojo.vo.EventTemplateVO; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface IPowerDistributionareaService extends IService { + + /** + * 查询所有 + * @param queryParam + * @return + */ + Page getList(PowerDistributionareaParam.QueryParam queryParam); + + /** + * 根据id查询 + * @return + */ + PowerDistributionarea getDistrictById(String id); + + /** + * 新增 + */ + boolean add(PowerDistributionareaParam newParam); + + /** + * 修改 + * @param + */ + boolean update(PowerDistributionareaParam updateParam); + + /** + * 删除 + * @param ids ids + */ + boolean delete(List ids); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPowerGenerationUserService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPowerGenerationUserService.java new file mode 100644 index 000000000..4ef4f8db9 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPowerGenerationUserService.java @@ -0,0 +1,65 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.param.PowerGenerationUserParam; +import com.njcn.device.pms.pojo.po.PowerGenerationUser; +import com.njcn.web.pojo.param.BaseParam; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface IPowerGenerationUserService extends IService { + + /** + * 新增发电用户 + * @author cdf + * @date 2022/10/25 + * @param powerGenerationUserParam 发电用户 + * @return boolean + */ + boolean addPowerGenerationUser(PowerGenerationUserParam powerGenerationUserParam); + + /** + * 修改发电用户 + * @author cdf + * @date 2022/10/25 + * @param powerGenerationUserParam 发电用户 + * @return boolean + */ + boolean updatePowerGenerationUser(PowerGenerationUserParam powerGenerationUserParam); + + /** + * 删除发电用户 + * @author cdf + * @date 2022/10/25 + * @param powerGenerationUserIds 发电用户 + * @return boolean + */ + boolean delPowerGenerationUser(List powerGenerationUserIds); + + /** + * 查询发电用户 + * @author cdf + * @date 2022/10/25 + * @param powerGenerationUserId 发电用户id + * @return boolean + */ + PowerGenerationUser getPowerGenerationUserById(String powerGenerationUserId); + + /** + * 查询发电用户列表 + * @author cdf + * @date 2022/10/25 + * @param baseParam 基础参数 + * @return boolean + */ + List getPowerGenerationUserList(BaseParam baseParam); + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPowerQualityMatterService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPowerQualityMatterService.java new file mode 100644 index 000000000..554f67ff8 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPowerQualityMatterService.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.po.PowerQualityMatter; + +/** + *

+ * 服务类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface IPowerQualityMatterService extends IService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvDeviceRunExService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvDeviceRunExService.java deleted file mode 100644 index 90c03f10f..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvDeviceRunExService.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.njcn.device.pms.service; - - -import com.njcn.device.pms.pojo.bo.DeviceRunExBO; -import com.njcn.device.pms.pojo.dto.DeviceRunExDTO; - -import java.util.List; - -/** - * 终端异常服务类 - * - * @author yangj - * @date 2022/09/08 - */ -public interface IPvDeviceRunExService { - - - /** - * 分页条件查询终端异常列表信息 - * @param deviceRunExDTO 终端条件查询dto - * @return List - */ - List getPvDeviceExList(DeviceRunExDTO deviceRunExDTO); -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvDeviceService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvDeviceService.java deleted file mode 100644 index ddb1105c7..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvDeviceService.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.njcn.device.pms.service; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.IService; -import com.njcn.device.pms.pojo.param.DeviceQueryParam; -import com.njcn.device.pms.pojo.param.PvDeviceParam; -import com.njcn.device.pms.pojo.po.PvDevice; -import com.njcn.device.pms.pojo.vo.PvDeviceVO; - -import java.util.List; - -/** - *

- * 服务类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface IPvDeviceService extends IService { - - - /** - * 新增分布式台账 - * @param pvDeviceParam 分布式台账实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean addDevice(PvDeviceParam pvDeviceParam); - - /** - * 修改分布式台账 - * @param updatePvDeviceParam 分布式台账实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean updateDevice(PvDeviceParam.UpdatePvDeviceParam updatePvDeviceParam); - - - /** - * 分页查询分布式台账 - * @param deviceQueryParam 分布式台账实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - Page getPvDeviceList(DeviceQueryParam deviceQueryParam); - - List getAllPvDeviceList(); - - - /** - * 根据分布式台账id查询分布式台账 - * @param id 分布式台账id - * @author cdf - * @date 2022/7/5 - * @return PvDevice - */ - PvDevice getPvDeviceById(String id); - - /** - * 删除分布式台账 - * @param ids 分布式台账id - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean delPvDevice(List ids); - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvDispatchService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvDispatchService.java deleted file mode 100644 index d410715aa..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvDispatchService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.njcn.device.pms.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.njcn.device.pms.pojo.po.PvDispatch; - -/** - *

- * 服务类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface IPvDispatchService extends IService { - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvDistributedService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvDistributedService.java deleted file mode 100644 index 41d3095a8..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvDistributedService.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.njcn.device.pms.service; - - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.IService; -import com.njcn.device.pms.pojo.param.DistributedQueryParam; -import com.njcn.device.pms.pojo.param.PvDistributedParam; -import com.njcn.device.pms.pojo.po.PvDistributed; -import com.njcn.device.pms.pojo.vo.PvDistributedVO; - -import java.util.List; - -/** - *

- * 分布式服务类 - *

- * - * @author cdf - * @since 2022-07-06 - */ -public interface IPvDistributedService extends IService { - - - /** - * 新增分布式台账 - * @param pvDistributedParam 分布式台账实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean addDistributed(PvDistributedParam pvDistributedParam); - - /** - * 修改分布式台账 - * @param updatePvDistributedParam 分布式台账实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean updateDistributed(PvDistributedParam.UpdatePvDistributedParam updatePvDistributedParam); - - - /** - * 分页查询分布式台账 - * @param distributedQueryParam 分布式台账实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - Page getPvDistributedList(DistributedQueryParam distributedQueryParam); - - List getAllPvDistributedList(); - - - /** - * 根据分布式台账id查询分布式台账 - * @param id 分布式台账id - * @author cdf - * @date 2022/7/5 - * @return PvDistributed - */ - PvDistributed getPvDistributedById(String id); - - /** - * 删除分布式台账 - * @param ids 分布式台账id - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean delPvDistributed(List ids); - - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvLineDetailService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvLineDetailService.java deleted file mode 100644 index 44a1e4b52..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvLineDetailService.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.njcn.device.pms.service; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.IService; -import com.njcn.device.pms.pojo.param.LineDetailQueryParam; -import com.njcn.device.pms.pojo.param.PvLineDetailParam; -import com.njcn.device.pms.pojo.po.PvLineDetail; -import com.njcn.device.pms.pojo.vo.PvLineAllDetailVO; - -import java.util.List; - -/** - *

- * 服务类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface IPvLineDetailService extends IService { - - - /** - * 新增监测点 - * @param pvLineDetailParam 监测点实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean addLineDetail(PvLineDetailParam pvLineDetailParam); - - /** - * 修改监测点 - * @param updatePvLineDetailParam 监测点实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean updateLineDetail(PvLineDetailParam.UpdatePvLineDetailParam updatePvLineDetailParam); - - - /** - * 分页查询监测点 - * @param lineDetailQueryParam 监测点实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - Page getPvLineDetailList(LineDetailQueryParam lineDetailQueryParam); - - List getAllPvLineDetailList(); - - - /** - * 根据监测点id查询监测点 - * @param id 监测点id - * @author cdf - * @date 2022/7/5 - * @return PvLineDetail - */ - PvLineDetail getPvLineDetailById(String id); - - /** - * 删除监测点 - * @param ids 监测点id - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean delPvLineDetail(List ids); - - - /** - * 分页查询监测点 - * @param subIds 变电站ids - * @param subAreaIds 台区ids - * @author cdf - * @date 2022/7/5 - * @return Page - */ - Page getPvLineAllDetailMain(Integer pageNum,Integer pageSize,List subIds, List subAreaIds,String type,Integer lineStatus); - - - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvLvUserService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvLvUserService.java deleted file mode 100644 index 17fe037e4..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvLvUserService.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.njcn.device.pms.service; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.IService; -import com.njcn.device.pms.pojo.param.LvUserQueryParam; -import com.njcn.device.pms.pojo.param.PvLvUserParam; -import com.njcn.device.pms.pojo.po.PvLvUser; -import com.njcn.device.pms.pojo.vo.PvLvUserVO; - -import java.util.List; - -/** - *

- * 服务类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface IPvLvUserService extends IService { - - - /** - * 新增分低压用户台账 - * @param pvLvUserParam 分低压用户台账实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean addLvUser(PvLvUserParam pvLvUserParam); - - /** - * 修改分低压用户台账 - * @param updatePvLvUserParam 分低压用户台账实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean updateLvUser(PvLvUserParam.UpdatePvLvUserParam updatePvLvUserParam); - - - /** - * 分页查询分低压用户台账 - * @param lvUserQueryParam 分低压用户台账实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - Page getPvLvUserList(LvUserQueryParam lvUserQueryParam); - - List getAllPvLvUserList(); - - - /** - * 根据分低压用户台账id查询分低压用户台账 - * @param id 分低压用户台账id - * @author cdf - * @date 2022/7/5 - * @return PvLvUser - */ - PvLvUser getPvLvUserById(String id); - - /** - * 删除分低压用户台账 - * @param ids 分低压用户台账id - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean delPvLvUser(List ids); -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvSubAreaService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvSubAreaService.java deleted file mode 100644 index 7102c5bd0..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvSubAreaService.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.njcn.device.pms.service; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.IService; -import com.njcn.device.pms.pojo.param.PvSubAreaParam; -import com.njcn.device.pms.pojo.param.SubAreaQueryParam; -import com.njcn.device.pms.pojo.po.PvSubArea; -import com.njcn.device.pms.pojo.vo.PvSubAreaVO; - -import java.util.List; - -/** - *

- * 服务类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface IPvSubAreaService extends IService { - - /** - * 新增台区 - * @param pvSubAreaParam 台区实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean addSubArea(PvSubAreaParam pvSubAreaParam); - - /** - * 修改台区 - * @param updatePvSubAreaParam 台区实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean updateSubArea(PvSubAreaParam.UpdatePvSubAreaParam updatePvSubAreaParam); - - - /** - * 分页查询台区 - * @param subAreaQueryParam 台区实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - Page getPvSubAreaList(SubAreaQueryParam subAreaQueryParam); - - List getAllPvSubAreaList(); - - - /** - * 根据台区id查询台区 - * @param id 台区id - * @author cdf - * @date 2022/7/5 - * @return PvSubArea - */ - PvSubArea getPvSubAreaById(String id); - - /** - * 删除台区 - * @param ids 台区id - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean delPvSubArea(List ids); - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvSubstationService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvSubstationService.java deleted file mode 100644 index fae181cd8..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvSubstationService.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.njcn.device.pms.service; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.IService; -import com.njcn.device.pms.pojo.param.PvSubstationParam; -import com.njcn.device.pms.pojo.param.SubstationQueryParam; -import com.njcn.device.pms.pojo.po.PvSubstation; -import com.njcn.device.pms.pojo.vo.PvSubstationVO; - -import java.util.List; - -/** - *

- * 服务类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface IPvSubstationService extends IService { - - /** - * 新增变电站 - * @param pvSubstationParam 变电站实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean addSubstation(PvSubstationParam pvSubstationParam); - - /** - * 修改变电站 - * @param updatePvSubstationParam 变电站实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean updateSubstation(PvSubstationParam.UpdatePvSubstationParam updatePvSubstationParam); - - - /** - * 分页查询变电站 - * @param substationQueryParam 变电站实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - Page getPvSubstationList(SubstationQueryParam substationQueryParam); - - List getAllPvSubstationList(); - - - /** - * 根据变电站id查询变电站 - * @param id 变电站id - * @author cdf - * @date 2022/7/5 - * @return PvSubstation - */ - PvSubstation getPvSubstationById(String id); - - /** - * 删除变电站 - * @param ids 变电站id - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean delPvSubstation(List ids); - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvTenVoltageService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvTenVoltageService.java deleted file mode 100644 index d37a66d0e..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvTenVoltageService.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.njcn.device.pms.service; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.IService; -import com.njcn.device.pms.pojo.param.PvTenVoltageParam; -import com.njcn.device.pms.pojo.param.TenVoltageQueryParam; -import com.njcn.device.pms.pojo.po.PvTenVoltage; -import com.njcn.device.pms.pojo.vo.PvTenVoltageVO; - -import java.util.List; - -/** - *

- * 十千伏线路服务类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface IPvTenVoltageService extends IService { - - - /** - * 新增10kV线路 - * @param pvTenVoltageParam 10kV线路实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean addTenVoltage(PvTenVoltageParam pvTenVoltageParam); - - /** - * 修改10kV线路 - * @param updatePvTenVoltageParam 10kV线路实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean updateTenVoltage(PvTenVoltageParam.UpdatePvTenVoltageParam updatePvTenVoltageParam); - - - /** - * 分页查询10kV线路 - * @param tenVoltageQueryParam 10kV线路实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - Page getPvTenVoltageList(TenVoltageQueryParam tenVoltageQueryParam); - - /** - * 分页查询10kV线路 - * @author cdf - * @date 2022/7/5 - * @return List - */ - List getAllPvTenVoltageList(); - - - /** - * 根据10kV线路id查询10kV线路 - * @param id 10kV线路id - * @author cdf - * @date 2022/7/5 - * @return PvTenVoltage - */ - PvTenVoltage getPvTenVoltageById(String id); - - /** - * 删除10kV线路 - * @param ids 10kV线路id - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean delPvTenVoltage(List ids); - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvUnitService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvUnitService.java deleted file mode 100644 index 746bae9ad..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvUnitService.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.njcn.device.pms.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.njcn.device.pms.pojo.param.PvUnitParam; -import com.njcn.device.pms.pojo.po.PvUnit; -import com.njcn.device.pms.pojo.vo.UnitTreeVO; -import com.njcn.web.pojo.param.BaseParam; - -import java.util.List; - -/** - *

- * 单位服务类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface IPvUnitService extends IService { - - /** - * 新增单位 - * @param pvUnitParam 单位实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean addUnit(PvUnitParam pvUnitParam); - - /** - * 修改单位 - * @param updatePvUnitParam 单位实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean updateUnit(PvUnitParam.UpdatePvUnitParam updatePvUnitParam); - - - /** - * 查询树形结构单位 - * @param baseParam 单位实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - List getPvUnitList(BaseParam baseParam); - - - - - /** - * 根据单位id查询单位 - * @param id 单位id - * @author cdf - * @date 2022/7/5 - * @return PvUnit - */ - PvUnit getPvUnitById(String id); - - /** - * 删除单位 - * @param id 单位id - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean delPvUnit(String id); - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvVoltageService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvVoltageService.java deleted file mode 100644 index 5bf2645ca..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPvVoltageService.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.njcn.device.pms.service; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.IService; -import com.njcn.device.pms.pojo.param.PvVoltageParam; -import com.njcn.device.pms.pojo.param.VoltageQueryParam; -import com.njcn.device.pms.pojo.po.PvVoltage; - -import java.util.List; - -/** - *

- * 服务类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -public interface IPvVoltageService extends IService { - - - /** - * 新增母线 - * @param pvVoltageParam 母线实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean addVoltage(PvVoltageParam pvVoltageParam); - - /** - * 修改母线 - * @param updatePvVoltageParam 母线实体 - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean updateVoltage(PvVoltageParam.UpdatePvVoltageParam updatePvVoltageParam); - - - /** - * 分页查询母线 - * @param voltageQueryParam 母线实体 - * @author cdf - * @date 2022/7/5 - * @return Page - */ - Page getPvVoltageList(VoltageQueryParam voltageQueryParam); - - List getAllPvVoltageList(); - - - /** - * 根据母线id查询母线 - * @param id 母线id - * @author cdf - * @date 2022/7/5 - * @return PvVoltage - */ - PvVoltage getPvVoltageById(String id); - - /** - * 删除母线 - * @param id 母线id - * @author cdf - * @date 2022/7/5 - * @return boolean - */ - boolean delPvVoltage(String id); -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPwMonitorService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPwMonitorService.java new file mode 100644 index 000000000..748d3ec7d --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IPwMonitorService.java @@ -0,0 +1,22 @@ +package com.njcn.device.pms.service; + +import com.njcn.device.pms.pojo.dto.PwPmsMonitorDTO; +import com.njcn.device.pms.pojo.param.PwPmsMonitorParam; + +import java.util.List; + +/** + * @author yzh + * @date 2022/10/28 + */ + +public interface IPwMonitorService { + + /** + * 获取配网所有监测点信息 + * @author yzh + * @param pwPmsMonitorParam 参数条件 + * @return 配网所有监测点信息 + */ + List getPwMonitorList(PwPmsMonitorParam pwPmsMonitorParam); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ISourceManagementService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ISourceManagementService.java new file mode 100644 index 000000000..b708714bc --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ISourceManagementService.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.po.SourceManagement; + +/** + *

+ * 服务类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface ISourceManagementService extends IService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IStatationStatService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IStatationStatService.java new file mode 100644 index 000000000..70507e5cb --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IStatationStatService.java @@ -0,0 +1,77 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.dto.PmsStatationStatInfoDTO; +import com.njcn.device.pms.pojo.param.StatationStatParam; +import com.njcn.device.pms.pojo.param.PmsStatationStatInfoParam; +import com.njcn.device.pms.pojo.po.StatationStat; +import com.njcn.device.pms.pojo.po.StatationStat; +import com.njcn.web.pojo.param.BaseParam; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface IStatationStatService extends IService { + + /** + * 获取指定的变电站信息 + * + * @param pmsStatationStatInfoParam 变电站详情数据入参 + * @return 指定的变电站信息 + */ + List getStatationStatInfo(PmsStatationStatInfoParam pmsStatationStatInfoParam); + + + + /** + * 新增电站 + * @author cdf + * @date 2022/10/25 + * @param statationStatParam 电站 + * @return boolean + */ + boolean addStatationStat(StatationStatParam statationStatParam); + + /** + * 修改电站 + * @author cdf + * @date 2022/10/25 + * @param statationStatParam 电站 + * @return boolean + */ + boolean updateStatationStat(StatationStatParam statationStatParam); + + /** + * 删除电站 + * @author cdf + * @date 2022/10/25 + * @param statationStatIds 电站 + * @return boolean + */ + boolean delStatationStat(List statationStatIds); + + /** + * 查询电站 + * @author cdf + * @date 2022/10/25 + * @param statationStatId 电站id + * @return boolean + */ + StatationStat getStatationStatById(String statationStatId); + + /** + * 查询电站列表 + * @author cdf + * @date 2022/10/25 + * @param baseParam 基础参数 + * @return boolean + */ + List getStatationStatList(BaseParam baseParam); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IStatisticsRunMonitorService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IStatisticsRunMonitorService.java new file mode 100644 index 000000000..b0570ae80 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/IStatisticsRunMonitorService.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.po.StatisticsRunMonitor; + +/** + *

+ * 服务类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface IStatisticsRunMonitorService extends IService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ITerminalEliminateDataService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ITerminalEliminateDataService.java new file mode 100644 index 000000000..9c0827e35 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ITerminalEliminateDataService.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.po.TerminalEliminateData; + +/** + *

+ * 服务类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface ITerminalEliminateDataService extends IService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ITerminalService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ITerminalService.java new file mode 100644 index 000000000..3fcb9be6c --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ITerminalService.java @@ -0,0 +1,50 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.param.PmsTerminalParam; +import com.njcn.device.pms.pojo.po.Terminal; +import com.njcn.device.pms.pojo.vo.PmsTerminalVO; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface ITerminalService extends IService { + + /** + * 查询所有 + * @param queryParam + * @return + */ + Page getTerminalList(PmsTerminalParam.QueryParam queryParam); + + /** + * 根据id查询 + * @return + */ + Terminal getTerminalById(String id); + + /** + * 新增 + */ + boolean add(PmsTerminalParam terminalParam); + + /** + * 修改 + * @param + */ + boolean update(PmsTerminalParam updateParam); + + /** + * 删除 + * @param ids ids + */ + boolean delete(List ids); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ITractionStationService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ITractionStationService.java new file mode 100644 index 000000000..9c3bd1254 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ITractionStationService.java @@ -0,0 +1,49 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.param.TractionStationParam; +import com.njcn.device.pms.pojo.po.TractionStation; +import com.njcn.web.pojo.param.BaseParam; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface ITractionStationService extends IService { + + /** + * 查询牵引站列表 + * @return boolean + */ + List getTractionStationList(BaseParam baseParam); + + /** + * 查询牵引站 + * @return boolean + */ + TractionStation getTractionStationById(String tractionStationId); + + /** + * 新增 + */ + boolean add(TractionStationParam tractionStationParam); + + /** + * 修改 + * @param + */ + boolean update(TractionStationParam updateParam); + + /** + * 删除 + * @param ids ids + */ + boolean delete(List ids); + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ITransientStasticDataService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ITransientStasticDataService.java new file mode 100644 index 000000000..b097fa90f --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ITransientStasticDataService.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.po.TransientStasticData; + +/** + *

+ * 服务类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface ITransientStasticDataService extends IService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ITreatTransientDetailDataService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ITreatTransientDetailDataService.java new file mode 100644 index 000000000..90ed93dad --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/ITreatTransientDetailDataService.java @@ -0,0 +1,16 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.po.TreatTransientDetailData; + +/** + *

+ * 服务类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +public interface ITreatTransientDetailDataService extends IService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/PvTerminalBaseService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/PvTerminalBaseService.java deleted file mode 100644 index 697deb868..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/PvTerminalBaseService.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.njcn.device.pms.service; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.device.pms.pojo.param.PvTerminalBaseQuery; -import com.njcn.device.pms.pojo.vo.DisOrLvVO; -import com.njcn.device.pms.pojo.vo.PvLineAllDetailVO; -import com.njcn.user.pojo.vo.PvTerminalTreeVO; - -import java.util.List; - -/** - * pqs - * - * @author cdf - * @date 2022/7/11 - */ -public interface PvTerminalBaseService { - - /** - * 获取设备树 - * @author cdf - * @date 2022/7/11 - */ - List pvTerminalTree(); - - - /** - * 点击变电站台区展示监测点详情 - * @author cdf - * @date 2022/7/11 - */ - Page lineDetailBySubId(PvTerminalBaseQuery pvTerminalBaseQuery); - - /** - * - * @author cdf - * @date 2022/7/28 - */ - DisOrLvVO pvDisOrLv(String userCode,Integer userCodeType); - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RMpMonitorAlarmCountMService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RMpMonitorAlarmCountMService.java new file mode 100644 index 000000000..f04661dca --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RMpMonitorAlarmCountMService.java @@ -0,0 +1,18 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.param.RMpMonitorAlarmCountMParam; +import com.njcn.device.pms.pojo.po.RMpMonitorAlarmCountM; +import com.njcn.device.pms.pojo.vo.RMpMonitorAlarmCountMVO; + +import java.util.List; + +/** +* @author jianghf +* @description 针对表【r_mp_monitor_alarm_count_m】的数据库操作Service +* @createDate 2022-10-12 20:08:33 +*/ +public interface RMpMonitorAlarmCountMService extends IService { + + List getRMpMonitorAlarmCountMList(RMpMonitorAlarmCountMParam rMpMonitorAlarmCountMParam); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RMpPwAlarmDetailDService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RMpPwAlarmDetailDService.java new file mode 100644 index 000000000..0f82dcb0c --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RMpPwAlarmDetailDService.java @@ -0,0 +1,13 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.po.RMpPwAlarmDetailD; + +/** +* @author jianghf +* @description 针对表【r_mp_pw_alarm_detail_d】的数据库操作Service +* @createDate 2022-10-17 09:00:27 +*/ +public interface RMpPwAlarmDetailDService extends IService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RMpTargetWarnDService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RMpTargetWarnDService.java new file mode 100644 index 000000000..0a65aa046 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RMpTargetWarnDService.java @@ -0,0 +1,13 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.po.RMpTargetWarnD; + +/** +* @author jianghf +* @description 针对表【r_mp_target_warn_d】的数据库操作Service +* @createDate 2022-10-17 10:20:11 +*/ +public interface RMpTargetWarnDService extends IService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RStatAreaAlarmCountMService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RStatAreaAlarmCountMService.java new file mode 100644 index 000000000..ddddfdcdf --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RStatAreaAlarmCountMService.java @@ -0,0 +1,25 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.param.RStatAreaAlarmCountMParam; +import com.njcn.device.pms.pojo.po.RStatAreaAlarmCountM; +import com.njcn.device.pms.pojo.vo.RStatAreaAlarmCountMVO; + +import java.util.List; + +/** +* @author jianghf +* @description 针对表【r_stat_area_alarm_count_m】的数据库操作Service +* @createDate 2022-10-10 14:36:46 +*/ +public interface RStatAreaAlarmCountMService extends IService { + + /*** + * 根据条件查询所有区域告警统计(月) + * @author jianghaifei + * @date 2022-10-10 15:20 + * @param rStatAreaAlarmCountMParam + * @return java.util.List + */ + List getAllRStatAreaAlarmCountMList(RStatAreaAlarmCountMParam rStatAreaAlarmCountMParam); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RStatBusbarHarmonicService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RStatBusbarHarmonicService.java new file mode 100644 index 000000000..edf8bdfef --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RStatBusbarHarmonicService.java @@ -0,0 +1,27 @@ +package com.njcn.device.pms.service; + + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.param.UniversalFrontEndParam; +import com.njcn.device.pms.pojo.vo.RStatBusbarHarmonicVO; + +import java.util.List; + +/** + * 变电站母线电压指标年报业务层接口 + * + * @author yzh + * @date 2022/10/8 + */ + +public interface RStatBusbarHarmonicService extends IService { + + /** + * 获取变电站母线电压指标年报 + * + * @param param 前端参数 + * @return 变电站母线电压指标年报返回前端实体类 + */ + List getRStatBusbarHarmonic(UniversalFrontEndParam param); + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RStatZwAlarmCountWService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RStatZwAlarmCountWService.java new file mode 100644 index 000000000..23ca1ed5b --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RStatZwAlarmCountWService.java @@ -0,0 +1,36 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.param.RStatZwAlarmCountWParam; +import com.njcn.device.pms.pojo.po.RStatZwAlarmCountW; +import com.njcn.device.pms.pojo.vo.ProblemMonitorDetailVO; +import com.njcn.device.pms.pojo.vo.RStatZwAlarmCountWVO; + +import java.util.List; + +/** +* @author jianghf +* @description 针对表【r_stat_zw_alarm_count_w】的数据库操作Service +* @createDate 2022-10-08 16:35:44 +*/ +public interface RStatZwAlarmCountWService extends IService { + + /*** + * 根据条件查询所有告警统计(周) + * @author jianghaifei + * @date 2022-10-10 10:57 + * @param rStatZwAlarmCountWParam + * @return java.util.List + */ + List getAllRStatZwAlarmCountWList(RStatZwAlarmCountWParam rStatZwAlarmCountWParam); + + /*** + * 查询问题严重的监测点信息 + * @author jianghaifei + * @date 2022-10-13 19:38 + * @param rStatZwAlarmCountWParam + * @return java.util.List + */ + List getProblemMonitorDetailList(RStatZwAlarmCountWParam rStatZwAlarmCountWParam); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RmpEventDetailService.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RmpEventDetailService.java new file mode 100644 index 000000000..1226f7ade --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/RmpEventDetailService.java @@ -0,0 +1,24 @@ +package com.njcn.device.pms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.device.pms.pojo.param.UniversalFrontEndParam; +import com.njcn.device.pms.pojo.vo.RmpEventDetailVO; + +import java.util.List; + +/** + * 暂态事件明细 + * + * @author yzh + * @date 2022/10/12 + */ + +public interface RmpEventDetailService extends IService { + + /** + * 获取暂态事件明细 + * @param param 前端参数 + * @return 暂态事件明细 + */ + List getRmpEventDetail(UniversalFrontEndParam param); +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/DistributionMonitorServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/DistributionMonitorServiceImpl.java new file mode 100644 index 000000000..dea2ac10d --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/DistributionMonitorServiceImpl.java @@ -0,0 +1,33 @@ +package com.njcn.device.pms.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.device.pms.mapper.*; +import com.njcn.device.pms.pojo.dto.PmsMonitorBaseDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.pojo.po.DistributionMonitor; +import com.njcn.device.pms.service.IDistributionMonitorService; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + *

+ * 服务实现类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Service +@RequiredArgsConstructor +@Slf4j +public class DistributionMonitorServiceImpl extends ServiceImpl implements IDistributionMonitorService { + + + @Override + public List getMonitorByCondition(List deptIdList, PmsDeviceInfoParam pmsDeviceInfoParam) { + return this.baseMapper.getIdByOrgId(deptIdList,pmsDeviceInfoParam); + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/GeneratrixWireImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/GeneratrixWireImpl.java new file mode 100644 index 000000000..df1f7caee --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/GeneratrixWireImpl.java @@ -0,0 +1,53 @@ +package com.njcn.device.pms.service.impl; + + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.device.pms.mapper.GeneratrixWireMapper; +import com.njcn.device.pms.pojo.param.GeneratrixWireParam; +import com.njcn.device.pms.pojo.po.GeneratrixWire; +import com.njcn.device.pms.service.IGeneratrixWireService; +import com.njcn.web.pojo.param.BaseParam; +import lombok.RequiredArgsConstructor; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; +import java.util.List; + +/** + * pms-device + * + * @author cdf + * @date 2022/10/26 + */ +@Service +@RequiredArgsConstructor +public class GeneratrixWireImpl extends ServiceImpl implements IGeneratrixWireService { + + @Override + public boolean addGeneratrixWire(GeneratrixWireParam generatrixWireParam) { + GeneratrixWire generatrixWire = new GeneratrixWire(); + BeanUtils.copyProperties(generatrixWireParam, generatrixWire); + return this.save(generatrixWire); + } + + @Override + public boolean updateGeneratrixWire(GeneratrixWireParam.UpdateGeneratrixWireParam generatrixWireParam) { + GeneratrixWire generatrixWire = new GeneratrixWire(); + BeanUtils.copyProperties(generatrixWireParam, generatrixWire); + return this.save(generatrixWire); + } + + @Override + public boolean delGeneratrixWire(List generatrixWireIds) { + return this.removeByIds(generatrixWireIds); + } + + @Override + public GeneratrixWire getGeneratrixWireById(String generatrixWireId) { + return this.getById(generatrixWireId); + } + + @Override + public List getGeneratrixWireList(BaseParam baseParam) { + return this.list(); + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/HarmonicGeneralManagementDataServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/HarmonicGeneralManagementDataServiceImpl.java new file mode 100644 index 000000000..3b3eaf84d --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/HarmonicGeneralManagementDataServiceImpl.java @@ -0,0 +1,20 @@ +package com.njcn.device.pms.service.impl; + +import com.njcn.device.pms.mapper.HarmonicGeneralManagementDataMapper; +import com.njcn.device.pms.pojo.po.HarmonicGeneralManagementData; +import com.njcn.device.pms.service.IHarmonicGeneralManagementDataService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Service +public class HarmonicGeneralManagementDataServiceImpl extends ServiceImpl implements IHarmonicGeneralManagementDataService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/HarmonicGeneralManagementServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/HarmonicGeneralManagementServiceImpl.java new file mode 100644 index 000000000..cfac36ad4 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/HarmonicGeneralManagementServiceImpl.java @@ -0,0 +1,20 @@ +package com.njcn.device.pms.service.impl; + +import com.njcn.device.pms.mapper.HarmonicGeneralManagementMapper; +import com.njcn.device.pms.pojo.po.HarmonicGeneralManagement; +import com.njcn.device.pms.service.IHarmonicGeneralManagementService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Service +public class HarmonicGeneralManagementServiceImpl extends ServiceImpl implements IHarmonicGeneralManagementService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/IPwMonitorServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/IPwMonitorServiceImpl.java new file mode 100644 index 000000000..54c6a52db --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/IPwMonitorServiceImpl.java @@ -0,0 +1,88 @@ +package com.njcn.device.pms.service.impl; + +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.collection.CollectionUtil; +import com.njcn.device.pms.mapper.PwMonitorMapper; +import com.njcn.device.pms.pojo.dto.PmsGeneralDeviceDTO; +import com.njcn.device.pms.pojo.dto.PwPmsMonitorDTO; +import com.njcn.device.pms.pojo.param.PwPmsMonitorParam; +import com.njcn.device.pms.service.IPwMonitorService; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.dto.DeptDTO; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +/** + * 配网监测点信息 + * + * @author yzh + * @date 2022/10/28 + */ + +@Slf4j +@Service +@RequiredArgsConstructor +public class IPwMonitorServiceImpl implements IPwMonitorService { + + private final DeptFeignClient deptFeignClient; + + private final PwMonitorMapper pwMonitorMapper; + + /** + * 获取配网所有监测点信息 + * + * @param pwPmsMonitorParam 参数条件 + * @return 配网所有监测点信息 + */ + @Override + public List getPwMonitorList(PwPmsMonitorParam pwPmsMonitorParam) { + //定义待返回终端信息 + List pwPmsMonitorDTOS = new ArrayList<>(); + List deptInfos = deptFeignClient.getDeptDescendantIndexes(pwPmsMonitorParam.getOrgId(), Stream.of(0, 1).collect(Collectors.toList())).getData(); + // 过滤出传入id的子单位id + List directDeptInfos = deptInfos.stream() + .filter(deptDTO -> deptDTO.getPid().equals(pwPmsMonitorParam.getOrgId())) + .collect(Collectors.toList()); + + if (CollectionUtil.isEmpty(directDeptInfos)) { + //没有直接子部门,获取当前部门所有信息 + List dept = deptInfos.stream() + .filter(deptDTO -> deptDTO.getId().equals(pwPmsMonitorParam.getOrgId())) + .collect(Collectors.toList()); + //获取monitor详细数据 + pwPmsMonitorDTOS = pwMonitorMapper.getPwMonitorDataList(Collections.singletonList(dept.get(0).getId()), pwPmsMonitorParam); + + if (CollUtil.isEmpty(pwPmsMonitorDTOS)) { + PwPmsMonitorDTO pwPmsMonitorDTO = new PwPmsMonitorDTO(); + pwPmsMonitorDTO.setOrgId(dept.get(0).getId()); + pwPmsMonitorDTO.setOrgName(dept.get(0).getArea()); + pwPmsMonitorDTOS.add(pwPmsMonitorDTO); + } + } else { + // 遍历子单位id + for (DeptDTO deptDTO : directDeptInfos) { + // 与全部单位id比较,取出上级为子单位id的集合 + List descendantDeptDTO = deptInfos.stream() + .filter(d -> d.getPids().contains(deptDTO.getId())) + .collect(Collectors.toList()); + //形成需要查询监测点的部门索引 + List deptIdList = descendantDeptDTO.stream() + .map(DeptDTO::getId) + .distinct() + .collect(Collectors.toList()); + deptIdList.add(deptDTO.getId()); + List pwMonitorDataList = pwMonitorMapper.getPwMonitorDataList(deptIdList, pwPmsMonitorParam); + pwPmsMonitorDTOS.addAll(pwMonitorDataList); + } + } + return pwPmsMonitorDTOS; + } +} + diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/MonitorServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/MonitorServiceImpl.java new file mode 100644 index 000000000..46319ac88 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/MonitorServiceImpl.java @@ -0,0 +1,259 @@ +package com.njcn.device.pms.service.impl; + +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.collection.CollectionUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.common.pojo.dto.SimpleDTO; +import com.njcn.common.pojo.enums.common.DataStateEnum; +import com.njcn.common.pojo.exception.BusinessException; +import com.njcn.device.pms.enums.PmsDeviceResponseEnum; +import com.njcn.device.pms.mapper.MonitorMapper; +import com.njcn.device.pms.pojo.dto.*; +import com.njcn.device.pms.mapper.OverlimitMapper; +import com.njcn.device.pms.mapper.GeneratrixWireMapper; +import com.njcn.device.pms.mapper.PmsGeneratrixMapper; +import com.njcn.device.pms.pojo.dto.PmsMonitorBaseDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorInfoDTO; +import com.njcn.device.pms.pojo.param.MonitorParam; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.pojo.param.PmsMonitorInfoParam; +import com.njcn.device.pms.pojo.param.PmsMonitorParam; +import com.njcn.device.pms.pojo.param.PwPmsMonitorParam; +import com.njcn.device.pms.pojo.po.Generatrix; +import com.njcn.device.pms.pojo.po.GeneratrixWire; +import com.njcn.device.pms.pojo.po.Monitor; +import com.njcn.device.pms.pojo.vo.PmsMonitorVO; +import com.njcn.device.pms.service.IMonitorService; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.dto.DeptDTO; +import com.njcn.device.pq.pojo.po.Overlimit; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.SystemResponseEnum; +import com.njcn.system.pojo.po.DictData; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.po.Dept; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +/** + *

+ * 服务实现类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Slf4j +@Service +@RequiredArgsConstructor +public class MonitorServiceImpl extends ServiceImpl implements IMonitorService { + + private final MonitorMapper monitorMapper; + + private final OverlimitMapper overlimitMapper; + + private final DicDataFeignClient dicDataFeignClient; + + private final DeptFeignClient deptFeignClient; + + private final PmsGeneratrixMapper generatrixMapper; + + private final GeneratrixWireMapper generatrixWireMapper; + + + @Override + public List getMonitorByCondition(List deptIdList, PmsDeviceInfoParam pmsDeviceInfoParam) { + return this.baseMapper.getMonitorByCondition(deptIdList, pmsDeviceInfoParam); + } + + /** + * 获取指定的监测点信息 + * + * @param pmsMonitorInfoParam 获取监测点详情数据入参 + * @return 指定的监测点信息 + */ + @Override + public List getMonitorInfo(PmsMonitorInfoParam pmsMonitorInfoParam) { + return monitorMapper.getMonitorInfo(pmsMonitorInfoParam); + } + + /*** + * 根据条件获取监测点列表(包含监测点所有信息) + * @author jianghaifei + * @date 2022-10-20 20:29 + * @param pmsMonitorParam + * @return java.util.List + */ + @Override + public List getMonitorInfoListByCond(PmsMonitorParam pmsMonitorParam) { + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); + //组装条件:org_id in (orgIds) and id in (monitorIds) and name like "%monitorName%" + // and voltage_Level in (voltageLevels) + lambdaQueryWrapper.in(CollUtil.isNotEmpty(pmsMonitorParam.getOrgIds()), Monitor::getOrgId, pmsMonitorParam.getOrgIds()) + .in(CollUtil.isNotEmpty(pmsMonitorParam.getMonitorIds()), Monitor::getId, pmsMonitorParam.getMonitorIds()) + .like(StringUtils.isNotBlank(pmsMonitorParam.getMonitorName()), Monitor::getName, pmsMonitorParam.getMonitorName()) + .in(CollUtil.isNotEmpty(pmsMonitorParam.getVoltageLevels()), Monitor::getVoltageLevel, pmsMonitorParam.getVoltageLevels()) + .in(CollUtil.isNotEmpty(pmsMonitorParam.getPowerrIds()),Monitor::getPowerrId,pmsMonitorParam.getPowerrIds()) + .eq(StringUtils.isNotBlank(pmsMonitorParam.getMonitorType()), Monitor::getMonitorType, pmsMonitorParam.getMonitorType()) + .eq(StringUtils.isNotBlank(pmsMonitorParam.getMonitorState()), Monitor::getMonitorState, pmsMonitorParam.getMonitorState()); + List list = this.list(lambdaQueryWrapper); + List dtoList = list.stream().map(item -> { + PmsMonitorDTO dto = new PmsMonitorDTO(); + BeanUtils.copyProperties(item, dto); + return dto; + }).collect(Collectors.toList()); + return dtoList; + } + + /*** + * 获取所有监测点信息 + * @author jianghaifei + * @date 2022-10-24 20:01 + * @param + * @return java.util.List + */ + @Override + public List getAllMonitorList() { + List monitorList = this.list(); + List resultList = monitorList.stream().map(item -> { + PmsMonitorVO pmsMonitorVO = new PmsMonitorVO(); + BeanUtils.copyProperties(item, pmsMonitorVO); + return pmsMonitorVO; + }).collect(Collectors.toList()); + return resultList; + } + + @Override + public Overlimit getOverLimitData(String id) { + return overlimitMapper.selectById(id); + } + + @Override + public boolean addMonitor(MonitorParam monitorParam) { + + checkParam(monitorParam,false); + Monitor monitor = new Monitor(); + BeanUtils.copyProperties(monitorParam,monitor); + checkOther(monitorParam,monitor,false); + monitor.setStatus(DataStateEnum.ENABLE.getCode()); + return this.save(monitor); + } + + @Override + public boolean updateMonitor(MonitorParam.UpdateMonitorParam monitorParam) { + checkParam(monitorParam,true); + Monitor monitor = new Monitor(); + BeanUtils.copyProperties(monitorParam,monitor); + checkOther(monitorParam,monitor,true); + + return this.updateById(monitor); + } + + @Override + public boolean delMonitor(List monitorIds) { + return false; + } + + @Override + public List getPmsPowerrInfoWithInOrg(List orgIdList, PmsDeviceInfoParam pmsDeviceInfoParam) { + return this.baseMapper.getPmsPowerrInfoWithInOrg(orgIdList, pmsDeviceInfoParam); + } + + + private void checkParam(MonitorParam monitorParam,boolean update){ + + //校验电压等级数据 + DictData voltageDic = dicDataFeignClient.getDicDataById(monitorParam.getVoltageLevel()).getData(); + if(Objects.isNull(voltageDic)){ + throw new BusinessException(SystemResponseEnum.VOLTAGE_EMPTY); + } + + //校验监测点状态 + DictData stateDic = dicDataFeignClient.getDicDataById(monitorParam.getMonitorState()).getData(); + if(Objects.isNull(stateDic)){ + throw new BusinessException(SystemResponseEnum.LINE_STATE_EMPTY); + } + + //校验监测点类型 + DictData typeDic = dicDataFeignClient.getDicDataById(monitorParam.getMonitorType()).getData(); + if(Objects.isNull(typeDic)){ + throw new BusinessException(SystemResponseEnum.LINE_TYPE_EMPTY); + } + + //校验电压互感器 + DictData potentialDic = dicDataFeignClient.getDicDataById(monitorParam.getPotentialTransFormerType()).getData(); + if(Objects.isNull(potentialDic)){ + throw new BusinessException(SystemResponseEnum.POTENTIAL_TYPE_EMPTY); + } + + //校验中性点接地方式 + DictData neutralDic = dicDataFeignClient.getDicDataById(monitorParam.getNeutralGroundingMode()).getData(); + if(Objects.isNull(neutralDic)){ + throw new BusinessException(SystemResponseEnum.Neutral_Mode_EMPTY); + } + + //校验监测点标签 + DictData tagDic = dicDataFeignClient.getDicDataById(monitorParam.getMonitorTag()).getData(); + if(Objects.isNull(tagDic)){ + throw new BusinessException(SystemResponseEnum.MONITOR_TAG_EMPTY); + } + + //校验监测对象类型 + DictData objTypeDic = dicDataFeignClient.getDicDataById(monitorParam.getMonitorObjectType()).getData(); + if(Objects.isNull(objTypeDic)){ + throw new BusinessException(SystemResponseEnum.MONITORY_TYPE_EMPTY); + } + + //校验监测终端接线方式 + DictData wireDic = dicDataFeignClient.getDicDataById(monitorParam.getTerminalWiringMethod()).getData(); + if(Objects.isNull(wireDic)){ + throw new BusinessException(SystemResponseEnum.TERMINAL_WIRING_EMPTY); + } + } + + private void checkOther(MonitorParam monitorParam,Monitor monitor,boolean update){ + //校验组织机构 + Dept dept = deptFeignClient.getDeptById(monitorParam.getOrgId()).getData(); + if(Objects.isNull(dept)){ + throw new BusinessException(PmsDeviceResponseEnum.ORG_ITEM_EMPTY); + } + + //校验运维单位 + Dept deptOp = deptFeignClient.getDeptById(monitorParam.getOperationId()).getData(); + if(Objects.isNull(deptOp)){ + throw new BusinessException(PmsDeviceResponseEnum.Operation_ITEM_EMPTY); + } + + //校验母线 + Generatrix generatrix = generatrixMapper.selectById(monitorParam.getGeneratrixId()); + if(Objects.isNull(generatrix)){ + throw new BusinessException(PmsDeviceResponseEnum.VOLTAGE_EMPTY); + } + + //校验线路 + GeneratrixWire generatrixWire = generatrixWireMapper.selectById(monitorParam.getLineId()); + if(Objects.isNull(generatrixWire)){ + throw new BusinessException(PmsDeviceResponseEnum.LINE_EMPTY); + } + + monitor.setOperationName(dept.getName()); + monitor.setOperationName(deptOp.getName()); + monitor.setGeneratrixName(generatrix.getGeneratrixName()); + monitor.setLineName(generatrixWire.getWireName()); + } + + + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PmsGeneralDeviceServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PmsGeneralDeviceServiceImpl.java new file mode 100644 index 000000000..7b36b8522 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PmsGeneralDeviceServiceImpl.java @@ -0,0 +1,154 @@ +package com.njcn.device.pms.service.impl; + +import cn.hutool.core.collection.CollectionUtil; +import com.njcn.common.pojo.dto.SimpleDTO; +import com.njcn.device.pms.pojo.dto.PmsGeneralDeviceDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorBaseDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.pojo.po.Monitor; +import com.njcn.device.pms.service.IDistributionMonitorService; +import com.njcn.device.pms.service.IMonitorService; +import com.njcn.device.pms.service.IPmsGeneralDeviceService; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.dto.DeptDTO; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +/** + * @author hongawen + * @version 1.0.0 + * @date 2022年10月14日 09:58 + */ +@Service +@RequiredArgsConstructor +public class PmsGeneralDeviceServiceImpl implements IPmsGeneralDeviceService { + + private final DeptFeignClient deptFeignClient; + + private final IMonitorService monitorService; + + private final IDistributionMonitorService iDistributionMonitorService; + + @Override + public List getPmsDeviceInfoWithInOrg(PmsDeviceInfoParam pmsDeviceInfoParam) { + //定义待返回终端信息 + List deviceInfos = new ArrayList<>(); + List deptInfos = deptFeignClient.getDeptDescendantIndexes(pmsDeviceInfoParam.getDeptIndex(), Stream.of(0,1).collect(Collectors.toList())).getData(); + List directDeptInfos = deptInfos.stream() + .filter(deptDTO -> deptDTO.getPid().equals(pmsDeviceInfoParam.getDeptIndex())) + .collect(Collectors.toList()); + if (CollectionUtil.isEmpty(directDeptInfos)) { + //没有直接子部门,获取当前部门所有信息 + List dept = deptInfos.stream() + .filter(deptDTO -> deptDTO.getId().equals(pmsDeviceInfoParam.getDeptIndex())) + .collect(Collectors.toList()); + deviceInfos.add(getPmsGeneralDeviceInfo(dept.get(0), Collections.singletonList(pmsDeviceInfoParam.getDeptIndex()), pmsDeviceInfoParam)); + }else{ + for (DeptDTO deptDTO : directDeptInfos) { + //筛选上级部门pids包含该id的所有部门 + List descendantDeptDTO = deptInfos.stream() + .filter(d -> d.getPids().contains(deptDTO.getId())) + .collect(Collectors.toList()); + //形成需要查询监测点的部门索引 + List deptIdList = descendantDeptDTO.stream() + .map(DeptDTO::getId) + .distinct() + .collect(Collectors.toList()); + deptIdList.add(deptDTO.getId()); + deviceInfos.add(getPmsGeneralDeviceInfo(deptDTO, deptIdList, pmsDeviceInfoParam)); + } + } + return deviceInfos; + } + + @Override + public List getPmsPowerrInfoWithInOrg(PmsDeviceInfoParam pmsDeviceInfoParam) { + List deptInfos = deptFeignClient.getDeptDescendantIndexes(pmsDeviceInfoParam.getDeptIndex(), Stream.of(0,1).collect(Collectors.toList())).getData(); + List orgIdList = deptInfos.stream().map(deptDTO -> deptDTO.getId()).collect(Collectors.toList()); + return monitorService.getPmsPowerrInfoWithInOrg(orgIdList,pmsDeviceInfoParam); + } + + @Override + public List getPmsDeviceInfoByOrgId(PmsDeviceInfoParam pmsDeviceInfoParam) { + //定义待返回终端信息 + List deviceInfos = new ArrayList<>(); + List deptInfos = deptFeignClient.getDeptDescendantIndexes(pmsDeviceInfoParam.getDeptIndex(), Stream.of(0,1).collect(Collectors.toList())).getData(); + List directDeptInfos = deptInfos.stream() + .filter(deptDTO -> deptDTO.getPid().equals(pmsDeviceInfoParam.getDeptIndex())) + .collect(Collectors.toList()); + if (CollectionUtil.isEmpty(directDeptInfos)) { + //没有直接子部门,获取当前部门所有信息 + List dept = deptInfos.stream() + .filter(deptDTO -> deptDTO.getId().equals(pmsDeviceInfoParam.getDeptIndex())) + .collect(Collectors.toList()); + deviceInfos.add(getPmsGeneralDeviceInfoByOrg(dept.get(0), Collections.singletonList(pmsDeviceInfoParam.getDeptIndex()), pmsDeviceInfoParam)); + }else{ + for (DeptDTO deptDTO : directDeptInfos) { + //筛选上级部门pids包含该id的所有部门 + List descendantDeptDTO = deptInfos.stream() + .filter(d -> d.getPids().contains(deptDTO.getId())) + .collect(Collectors.toList()); + //形成需要查询监测点的部门索引 + List deptIdList = descendantDeptDTO.stream() + .map(DeptDTO::getId) + .distinct() + .collect(Collectors.toList()); + deptIdList.add(deptDTO.getId()); + deviceInfos.add(getPmsGeneralDeviceInfoByOrg(deptDTO, deptIdList, pmsDeviceInfoParam)); + } + } + return deviceInfos; + } + + /** + * 查询当前部门pms台账信息 + * @param deptDTO 部门信息 + * @param deptIdList 所有子部门索引 + * @param pmsDeviceInfoParam 查询条件 + */ + private PmsGeneralDeviceDTO getPmsGeneralDeviceInfo(DeptDTO deptDTO, List deptIdList, PmsDeviceInfoParam pmsDeviceInfoParam) { + PmsGeneralDeviceDTO pmsGeneralDeviceDTO = new PmsGeneralDeviceDTO(); + pmsGeneralDeviceDTO.setIndex(deptDTO.getId()); + if (deptDTO.getType() == 0) { + pmsGeneralDeviceDTO.setName(deptDTO.getArea()); + } else { + pmsGeneralDeviceDTO.setName(deptDTO.getName()); + } + //获取monitor详细数据 + List monitorList = monitorService.getMonitorByCondition(deptIdList,pmsDeviceInfoParam); + pmsGeneralDeviceDTO.setPowerrIdList(monitorList.stream().map(PmsMonitorBaseDTO::getPowerrId).distinct().collect(Collectors.toList())); + pmsGeneralDeviceDTO.setTerminalIdList(monitorList.stream().map(PmsMonitorBaseDTO::getTerminalId).distinct().collect(Collectors.toList())); + pmsGeneralDeviceDTO.setGeneratrixIdList(monitorList.stream().map(PmsMonitorBaseDTO::getGeneratrixId).distinct().collect(Collectors.toList())); + pmsGeneralDeviceDTO.setMonitorIdList(monitorList.stream().map(PmsMonitorBaseDTO::getMonitorId).distinct().collect(Collectors.toList())); + return pmsGeneralDeviceDTO; + } + + + /** + * 查询当前部门pms台账信息 + * @param deptDTO 部门信息 + * @param deptIdList 所有子部门索引 + * @param pmsDeviceInfoParam 查询条件 + */ + private PmsGeneralDeviceDTO getPmsGeneralDeviceInfoByOrg(DeptDTO deptDTO, List deptIdList, PmsDeviceInfoParam pmsDeviceInfoParam) { + PmsGeneralDeviceDTO pmsGeneralDeviceDTO = new PmsGeneralDeviceDTO(); + pmsGeneralDeviceDTO.setIndex(deptDTO.getId()); + if (deptDTO.getType() == 0) { + pmsGeneralDeviceDTO.setName(deptDTO.getArea()); + } else { + pmsGeneralDeviceDTO.setName(deptDTO.getName()); + } + //获取monitor详细数据 + List monitorList = iDistributionMonitorService.getMonitorByCondition(deptIdList,pmsDeviceInfoParam); + pmsGeneralDeviceDTO.setPowerrIdList(monitorList.stream().map(PmsMonitorBaseDTO::getPowerrId).distinct().collect(Collectors.toList())); + pmsGeneralDeviceDTO.setLineIdList(monitorList.stream().map(PmsMonitorBaseDTO::getLineId).distinct().collect(Collectors.toList())); + pmsGeneralDeviceDTO.setMonitorIdList(monitorList.stream().map(PmsMonitorBaseDTO::getMonitorId).distinct().collect(Collectors.toList())); + return pmsGeneralDeviceDTO; + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PmsGeneratrixServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PmsGeneratrixServiceImpl.java new file mode 100644 index 000000000..5a3b06a9e --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PmsGeneratrixServiceImpl.java @@ -0,0 +1,72 @@ +package com.njcn.device.pms.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.device.pms.mapper.PmsGeneratrixMapper; +import com.njcn.device.pms.pojo.dto.PmsGeneratrixDTO; +import com.njcn.device.pms.pojo.param.GeneratrixParam; +import com.njcn.device.pms.pojo.param.PmsGeneratrixParam; +import com.njcn.device.pms.pojo.po.Generatrix; +import com.njcn.device.pms.service.IPmsGeneratrixService; + +import com.njcn.web.pojo.param.BaseParam; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * @author yzh + * @date 2022/10/18 + */ +@Slf4j +@Service +@RequiredArgsConstructor +public class PmsGeneratrixServiceImpl extends ServiceImpl implements IPmsGeneratrixService { + + private final PmsGeneratrixMapper pmsGeneratrixMapper; + + + /** + * 获取母线信息 + * + * @param pmsGeneratrixParam 入参 + * @return 母线信息 + */ + @Override + public List getGeneratrixInfo(PmsGeneratrixParam pmsGeneratrixParam) { + return pmsGeneratrixMapper.getGeneratrixInfo(pmsGeneratrixParam); + } + + + + @Override + public boolean addGeneratrix(GeneratrixParam generatrixParam) { + Generatrix generatrix = new Generatrix(); + BeanUtils.copyProperties(generatrixParam,generatrix); + return this.save(generatrix); + } + + @Override + public boolean updateGeneratrix(GeneratrixParam.UpdateGeneratrixParam generatrixParam) { + Generatrix generatrix = new Generatrix(); + BeanUtils.copyProperties(generatrixParam,generatrix); + return this.save(generatrix); + } + + @Override + public boolean delGeneratrix(List generatrixIds) { + return this.removeByIds(generatrixIds); + } + + @Override + public Generatrix getGeneratrixById(String generatrixId) { + return this.getById(generatrixId); + } + + @Override + public List getGeneratrixList(BaseParam baseParam) { + return this.list(); + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PowerClientServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PowerClientServiceImpl.java new file mode 100644 index 000000000..bb3ee6a88 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PowerClientServiceImpl.java @@ -0,0 +1,55 @@ +package com.njcn.device.pms.service.impl; + +import com.njcn.device.pms.mapper.PowerClientMapper; +import com.njcn.device.pms.pojo.param.PowerClientParam; +import com.njcn.device.pms.pojo.po.PowerClient; +import com.njcn.device.pms.pojo.po.PowerClient; +import com.njcn.device.pms.service.IPowerClientService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.web.pojo.param.BaseParam; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + *

+ * 服务实现类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Service +public class PowerClientServiceImpl extends ServiceImpl implements IPowerClientService { + + + @Override + public boolean addPowerClient(PowerClientParam powerClientParam) { + PowerClient powerClient = new PowerClient(); + BeanUtils.copyProperties(powerClientParam,powerClient); + return this.save(powerClient); + } + + @Override + public boolean updatePowerClient(PowerClientParam powerClientParam) { + PowerClient powerClient = new PowerClient(); + BeanUtils.copyProperties(powerClientParam,powerClient); + return this.save(powerClient); + } + + @Override + public boolean delPowerClient(List powerClientIds) { + return this.removeByIds(powerClientIds); + } + + @Override + public PowerClient getPowerClientById(String powerClientId) { + return this.getById(powerClientId); + } + + @Override + public List getPowerClientList(BaseParam baseParam) { + return this.list(); + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PowerDistributionareaServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PowerDistributionareaServiceImpl.java new file mode 100644 index 000000000..2b20cce84 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PowerDistributionareaServiceImpl.java @@ -0,0 +1,113 @@ +package com.njcn.device.pms.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.njcn.common.pojo.enums.common.DataStateEnum; +import com.njcn.common.pojo.exception.BusinessException; +import com.njcn.device.pms.enums.PmsDeviceResponseEnum; +import com.njcn.device.pms.mapper.PowerDistributionareaMapper; +import com.njcn.device.pms.pojo.param.PowerDistributionareaParam; +import com.njcn.device.pms.pojo.po.PowerDistributionarea; +import com.njcn.device.pms.pojo.vo.PowerDistributionareaVO; +import com.njcn.device.pms.service.IPowerDistributionareaService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.system.enums.EventResponseEnum; +import com.njcn.system.pojo.param.EventTemplateParam; +import com.njcn.system.pojo.po.EventTemplate; +import com.njcn.web.factory.PageFactory; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + *

+ * 台区信息 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Service +public class PowerDistributionareaServiceImpl extends ServiceImpl implements IPowerDistributionareaService { + + + @Override + public Page getList(PowerDistributionareaParam.QueryParam queryParam) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.ne("pms_power_distributionarea.status", DataStateEnum.DELETED.getCode()); + if (queryParam.getStatus().equals(1)){ + queryWrapper.eq("pms_power_distributionarea.status",1); + } + //初始化分页数据 + return this.baseMapper.page(new Page<>(PageFactory.getPageNum(queryParam), PageFactory.getPageSize(queryParam)), queryWrapper); + } + + /** + * 根据id查询 + * @author hany + * @date 2022/10/26 + */ + @Override + public PowerDistributionarea getDistrictById(String id) { + return this.getById(id); + } + + /** + * 新增台区信息 + * @author hany + * @date 2022/10/26 + */ + @Override + public boolean add(PowerDistributionareaParam newParam) { + checkName(newParam,true); + PowerDistributionarea powerDistributionarea = new PowerDistributionarea(); + BeanUtils.copyProperties(newParam,powerDistributionarea); + //设为正常状态 + powerDistributionarea.setStatus(DataStateEnum.ENABLE.getCode()); + return this.save(powerDistributionarea); + } + + /** + * 修改台区信息 + * @author hany + * @date 2022/10/26 + */ + @Override + public boolean update(PowerDistributionareaParam updateParam) { + checkName(updateParam,false); + PowerDistributionarea powerDistributionarea = new PowerDistributionarea(); + BeanUtils.copyProperties(updateParam,powerDistributionarea); + return this.updateById(powerDistributionarea); + } + + /** + * 删除 + * @param ids + */ + @Override + public boolean delete(List ids) { + return this.lambdaUpdate().set(PowerDistributionarea::getStatus, DataStateEnum.DELETED.getCode()).in(PowerDistributionarea::getId, ids).update(); + } + + /** + * 名称重复校验 + */ + private void checkName(PowerDistributionareaParam newParam, boolean flag){ + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); + lambdaQueryWrapper.eq(PowerDistributionarea::getName,newParam.getName()); + //修改 + if(!flag){ + if(newParam instanceof PowerDistributionareaParam){ + lambdaQueryWrapper.ne(PowerDistributionarea::getId,newParam.getId()); + } + } + int result = this.count(lambdaQueryWrapper); + //大于等于1个则表示重复 + if (result >= 1) { + throw new BusinessException(PmsDeviceResponseEnum.MODEL_NAME_REPEAT); + } + + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PowerGenerationUserServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PowerGenerationUserServiceImpl.java new file mode 100644 index 000000000..88f164578 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PowerGenerationUserServiceImpl.java @@ -0,0 +1,54 @@ +package com.njcn.device.pms.service.impl; + +import com.njcn.device.pms.mapper.PowerGenerationUserMapper; +import com.njcn.device.pms.pojo.param.PowerGenerationUserParam; +import com.njcn.device.pms.pojo.po.PowerGenerationUser; +import com.njcn.device.pms.pojo.po.PowerGenerationUser; +import com.njcn.device.pms.service.IPowerGenerationUserService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.web.pojo.param.BaseParam; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + *

+ * 服务实现类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Service +public class PowerGenerationUserServiceImpl extends ServiceImpl implements IPowerGenerationUserService { + + @Override + public boolean addPowerGenerationUser(PowerGenerationUserParam powerGenerationUserParam) { + PowerGenerationUser powerGenerationUser = new PowerGenerationUser(); + BeanUtils.copyProperties(powerGenerationUserParam,powerGenerationUser); + return this.save(powerGenerationUser); + } + + @Override + public boolean updatePowerGenerationUser(PowerGenerationUserParam powerGenerationUserParam) { + PowerGenerationUser powerGenerationUser = new PowerGenerationUser(); + BeanUtils.copyProperties(powerGenerationUserParam,powerGenerationUser); + return this.save(powerGenerationUser); + } + + @Override + public boolean delPowerGenerationUser(List powerGenerationUserIds) { + return this.removeByIds(powerGenerationUserIds); + } + + @Override + public PowerGenerationUser getPowerGenerationUserById(String powerGenerationUserId) { + return this.getById(powerGenerationUserId); + } + + @Override + public List getPowerGenerationUserList(BaseParam baseParam) { + return this.list(); + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PowerQualityMatterServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PowerQualityMatterServiceImpl.java new file mode 100644 index 000000000..c51bff16e --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PowerQualityMatterServiceImpl.java @@ -0,0 +1,20 @@ +package com.njcn.device.pms.service.impl; + +import com.njcn.device.pms.mapper.PowerQualityMatterMapper; +import com.njcn.device.pms.pojo.po.PowerQualityMatter; +import com.njcn.device.pms.service.IPowerQualityMatterService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Service +public class PowerQualityMatterServiceImpl extends ServiceImpl implements IPowerQualityMatterService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvDeviceRunExServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvDeviceRunExServiceImpl.java deleted file mode 100644 index ea39bc607..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvDeviceRunExServiceImpl.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.njcn.device.pms.service.impl; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.collection.CollectionUtil; -import cn.hutool.core.util.ObjectUtil; -import com.njcn.device.pms.pojo.bo.DeviceRunExBO; -import com.njcn.device.pms.pojo.dto.DeviceRunExDTO; -import com.njcn.device.pms.pojo.vo.DeviceRunExVO; -import com.njcn.influxdb.param.InfluxDBPublicParam; -import com.njcn.influxdb.utils.InfluxDbUtils; -import com.njcn.device.pms.mapper.PvDeviceRunExMapper; -import com.njcn.device.pms.service.IPvDeviceRunExService; -import lombok.RequiredArgsConstructor; -import org.influxdb.dto.QueryResult; -import org.influxdb.impl.InfluxDBResultMapper; -import org.springframework.stereotype.Service; - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * 终端异常实现类 - * - * @author yangj - * @date 2022/09/08 - */ -@Service -@RequiredArgsConstructor -public class PvDeviceRunExServiceImpl implements IPvDeviceRunExService { - - private final PvDeviceRunExMapper deviceRunExMapper; - - private final InfluxDbUtils influxDbUtils; - - @Override - public List getPvDeviceExList(DeviceRunExDTO deviceRunExDTO) { - List pqLineInfos = deviceRunExMapper.findPQLineInfo(deviceRunExDTO.getLineLevel(), "0"); - if (CollectionUtil.isEmpty(pqLineInfos)) { - return null; - } - List topDeviceExList = getTopDeviceExList(deviceRunExDTO); - if (CollectionUtil.isEmpty(topDeviceExList)) { - return pqLineInfos; - } - List topDevices = new ArrayList<>(); - Map> map = topDeviceExList.parallelStream().collect(Collectors.groupingBy(DeviceRunExVO::getDevId)); - map.forEach((k, v) -> { - DeviceRunExVO deviceRunExVO = map.get(k).parallelStream().reduce((t1, t2) -> { - t1.setAlarmNum(t1.getAlarmNum() + t2.getAlarmNum()); - t1.setComOutNum(t1.getComOutNum() + t2.getComOutNum()); - t1.setFlowNum(t1.getFlowNum() + t2.getFlowNum()); - return t1; - }).orElse(null); - - if (ObjectUtil.isNotNull(deviceRunExVO)) { - topDevices.add(deviceRunExVO); - } - }); - getPvDevices(pqLineInfos, topDevices); - return pqLineInfos; - } - - - /** - * 导入influx统计数据 - * - * @param deviceRunExBoS 展示数据 - * @param deviceRunExVoS influx统计数据 - */ - public void getPvDevices(List deviceRunExBoS, List deviceRunExVoS) { - for (DeviceRunExBO deviceRunExBO : deviceRunExBoS) { - if (CollectionUtil.isNotEmpty(deviceRunExBO.getChildren())) { - getPvDevices(deviceRunExBO.getChildren(), deviceRunExVoS); - } - deviceRunExVoS.parallelStream().forEach(deviceRunExVO -> { - if (deviceRunExBO.getId().equals(deviceRunExVO.getDevId())) { - BeanUtil.copyProperties(deviceRunExVO, deviceRunExBO); - } - }); - } - } - - /** - * @param deviceRunExDTO 终端运行异常dto - * @return List - */ - private List getTopDeviceExList(DeviceRunExDTO deviceRunExDTO) { - //组装sql语句 - StringBuilder sqlBuilder = new StringBuilder(); - sqlBuilder.append(InfluxDBPublicParam.TIME + " >= '") - .append(deviceRunExDTO.getStartTime()) - .append("' and ") - .append(InfluxDBPublicParam.TIME) - .append(" <= '") - .append(deviceRunExDTO.getEndTime()) - .append("'"); - //sql语句 - String sql = "SELECT * FROM pqs_top_msg WHERE " + sqlBuilder + InfluxDBPublicParam.TIME_ZONE; - QueryResult query = influxDbUtils.query(sql); - InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); - return resultMapper.toPOJO(query, DeviceRunExVO.class); - } - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvDeviceServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvDeviceServiceImpl.java deleted file mode 100644 index 56dc57b51..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvDeviceServiceImpl.java +++ /dev/null @@ -1,143 +0,0 @@ -package com.njcn.device.pms.service.impl; - -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.njcn.common.pojo.enums.common.DataStateEnum; -import com.njcn.common.pojo.exception.BusinessException; -import com.njcn.common.utils.PubUtils; -import com.njcn.device.pms.pojo.param.DeviceQueryParam; -import com.njcn.device.pms.pojo.param.PvDeviceParam; -import com.njcn.device.pms.pojo.po.PvDevice; -import com.njcn.device.pms.pojo.vo.PvDeviceVO; -import com.njcn.device.pms.mapper.PvDeviceMapper; -import com.njcn.device.pms.service.IPvDeviceService; -import com.njcn.device.pq.enums.PvDeviceResponseEnum; -import com.njcn.system.api.DicDataFeignClient; -import com.njcn.system.enums.SystemResponseEnum; -import com.njcn.web.factory.PageFactory; -import lombok.RequiredArgsConstructor; -import org.springframework.beans.BeanUtils; -import org.springframework.stereotype.Service; - -import java.util.List; -import java.util.Objects; - -/** - *

- * 终端台账实现类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Service -@RequiredArgsConstructor -public class PvDeviceServiceImpl extends ServiceImpl implements IPvDeviceService { - - private final DicDataFeignClient dicDataFeignClient; - - - @Override - public boolean addDevice(PvDeviceParam pvDeviceParam) { - checkNameAndParam(pvDeviceParam, false); - PvDevice pvDevice = new PvDevice(); - BeanUtils.copyProperties(pvDeviceParam, pvDevice); - pvDevice.setState(DataStateEnum.ENABLE.getCode()); - pvDevice.setThisTimeCheck(PubUtils.localDateFormat(pvDeviceParam.getThisTimeCheck())); - pvDevice.setNextTimeCheck(PubUtils.localDateFormat(pvDeviceParam.getNextTimeCheck())); - return this.save(pvDevice); - } - - @Override - public boolean updateDevice(PvDeviceParam.UpdatePvDeviceParam updatePvDeviceParam) { - checkNameAndParam(updatePvDeviceParam, true); - PvDevice pvDevice = new PvDevice(); - BeanUtils.copyProperties(updatePvDeviceParam, pvDevice); - pvDevice.setState(DataStateEnum.ENABLE.getCode()); - pvDevice.setThisTimeCheck(PubUtils.localDateFormat(updatePvDeviceParam.getThisTimeCheck())); - pvDevice.setNextTimeCheck(PubUtils.localDateFormat(updatePvDeviceParam.getNextTimeCheck())); - return this.updateById(pvDevice); - } - - @Override - public Page getPvDeviceList(DeviceQueryParam subsAreaQueryParam) { - Page page = new Page<>(PageFactory.getPageNum(subsAreaQueryParam), PageFactory.getPageSize(subsAreaQueryParam)); - return this.baseMapper.getPvDeviceList(page,subsAreaQueryParam); - } - - @Override - public List getAllPvDeviceList() { - return this.baseMapper.getAllPvDeviceList(); - } - - @Override - public PvDevice getPvDeviceById(String id) { - return this.getById(id); - } - - @Override - public boolean delPvDevice(List ids) { - return this.removeByIds(ids); - } - - - /** - * 校验单位名称是否重复 - */ - private void checkNameAndParam(PvDeviceParam pvDeviceParam, boolean isUpdate) { - - LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); - lambdaQueryWrapper.eq(PvDevice::getName, pvDeviceParam.getName()); - if (isUpdate) { - //更新操作 - if (pvDeviceParam instanceof PvDeviceParam.UpdatePvDeviceParam) { - lambdaQueryWrapper.ne(PvDevice::getId, ((PvDeviceParam.UpdatePvDeviceParam) pvDeviceParam).getId()); - } - } - int countName = this.count(lambdaQueryWrapper); - if (countName > 0) { - throw new BusinessException(PvDeviceResponseEnum.DVE_CODE_REPEAT); - } - - lambdaQueryWrapper.clear(); - lambdaQueryWrapper.eq(PvDevice::getDevCode, pvDeviceParam.getDevCode()); - if (isUpdate) { - //更新操作 - if (pvDeviceParam instanceof PvDeviceParam.UpdatePvDeviceParam) { - lambdaQueryWrapper.ne(PvDevice::getId, ((PvDeviceParam.UpdatePvDeviceParam) pvDeviceParam).getId()); - } - } - int count = this.count(lambdaQueryWrapper); - if (count > 0) { - throw new BusinessException(PvDeviceResponseEnum.DVE_CODE_REPEAT); - } - - /*校验终端类型*/ - if (Objects.isNull(dicDataFeignClient.getDicDataById(pvDeviceParam.getType()).getData())) { - throw new BusinessException(SystemResponseEnum.DEV_VARIETY); - } - - /*校验设备型号*/ - if (StrUtil.isNotBlank(pvDeviceParam.getDevType())) { - if (Objects.isNull(dicDataFeignClient.getDicDataById(pvDeviceParam.getDevType()).getData())) { - throw new BusinessException(SystemResponseEnum.DEV_TYPE_EMPTY); - } - } - - /*校验生产厂家*/ - - if (Objects.isNull(dicDataFeignClient.getDicDataById(pvDeviceParam.getManufacturer()).getData())) { - throw new BusinessException(SystemResponseEnum.MANUFACTURER); - } - - } - - /** - * 校验参数是否违规 - */ - private void checkParam(PvDeviceParam pvDeviceParam) { - - } -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvDispatchServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvDispatchServiceImpl.java deleted file mode 100644 index f52a9ae6c..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvDispatchServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.njcn.device.pms.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.njcn.device.pms.pojo.po.PvDispatch; -import com.njcn.device.pms.mapper.PvDispatchMapper; -import com.njcn.device.pms.service.IPvDispatchService; -import org.springframework.stereotype.Service; - -/** - *

- * 服务实现类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Service -public class PvDispatchServiceImpl extends ServiceImpl implements IPvDispatchService { - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvDistributedServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvDistributedServiceImpl.java deleted file mode 100644 index ca364466d..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvDistributedServiceImpl.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.njcn.device.pms.service.impl; - - -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.njcn.common.pojo.enums.common.DataStateEnum; -import com.njcn.common.pojo.exception.BusinessException; -import com.njcn.device.pms.pojo.param.DistributedQueryParam; -import com.njcn.device.pms.pojo.param.PvDistributedParam; -import com.njcn.device.pms.pojo.po.PvDistributed; -import com.njcn.device.pms.pojo.vo.PvDistributedVO; -import com.njcn.device.pms.mapper.PvDistributedMapper; -import com.njcn.device.pms.service.IPvDistributedService; -import com.njcn.device.pq.enums.PvDeviceResponseEnum; -import com.njcn.system.api.DicDataFeignClient; -import com.njcn.system.enums.SystemResponseEnum; -import com.njcn.web.factory.PageFactory; -import lombok.RequiredArgsConstructor; -import org.springframework.beans.BeanUtils; -import org.springframework.stereotype.Service; - -import java.util.List; -import java.util.Objects; - -/** - *

- * 服务实现类 - *

- * - * @author cdf - * @since 2022-07-06 - */ -@Service -@RequiredArgsConstructor -public class PvDistributedServiceImpl extends ServiceImpl implements IPvDistributedService { - - private final DicDataFeignClient dicDataFeignClient; - - - @Override - public boolean addDistributed(PvDistributedParam pvDistributedParam) { - checkNameAndParam(pvDistributedParam,false); - PvDistributed pvDistributed = new PvDistributed(); - BeanUtils.copyProperties(pvDistributedParam,pvDistributed); - pvDistributed.setState(DataStateEnum.ENABLE.getCode()); - return this.save(pvDistributed); - } - - @Override - public boolean updateDistributed(PvDistributedParam.UpdatePvDistributedParam updatePvDistributedParam) { - checkNameAndParam(updatePvDistributedParam,true); - PvDistributed pvDistributed = new PvDistributed(); - BeanUtils.copyProperties(updatePvDistributedParam,pvDistributed); - pvDistributed.setState(DataStateEnum.ENABLE.getCode()); - return this.updateById(pvDistributed); - } - - @Override - public Page getPvDistributedList(DistributedQueryParam distributedQueryParam) { - Page page = new Page<>(PageFactory.getPageNum(distributedQueryParam),PageFactory.getPageSize(distributedQueryParam)); - return this.baseMapper.getPvDistributedList(page,distributedQueryParam); - } - - @Override - public List getAllPvDistributedList() { - return this.list(); - } - - @Override - public PvDistributed getPvDistributedById(String id) { - return this.getById(id); - } - - @Override - public boolean delPvDistributed(List ids) { - return this.removeByIds(ids); - } - - - /** - * 校验单位名称是否重复 - */ - private void checkNameAndParam(PvDistributedParam pvDistributedParam, boolean isUpdate) { - - if(StrUtil.isNotBlank(pvDistributedParam.getScale())) { - if (Objects.isNull(dicDataFeignClient.getDicDataById(pvDistributedParam.getScale()).getData())) { - throw new BusinessException(SystemResponseEnum.VOLTAGE_EMPTY); - } - } - - LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); - lambdaQueryWrapper.eq(PvDistributed::getName, pvDistributedParam.getName()); - if (isUpdate) { - //更新操作 - if (pvDistributedParam instanceof PvDistributedParam.UpdatePvDistributedParam) { - lambdaQueryWrapper.ne(PvDistributed::getId, ((PvDistributedParam.UpdatePvDistributedParam) pvDistributedParam).getId()); - } - } - int count = this.count(lambdaQueryWrapper); - if (count > 0) { - throw new BusinessException(PvDeviceResponseEnum.SUB_AREA_REPEAT); - } - - lambdaQueryWrapper.clear(); - lambdaQueryWrapper.eq(PvDistributed::getUserCode, pvDistributedParam.getUserCode()); - if (isUpdate) { - //更新操作 - if (pvDistributedParam instanceof PvDistributedParam.UpdatePvDistributedParam) { - lambdaQueryWrapper.ne(PvDistributed::getId, ((PvDistributedParam.UpdatePvDistributedParam) pvDistributedParam).getId()); - } - } - int countUserCode = this.count(lambdaQueryWrapper); - if (countUserCode > 0) { - throw new BusinessException(PvDeviceResponseEnum.USER_CODE_REPEAT); - } - } - - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvLineDetailServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvLineDetailServiceImpl.java deleted file mode 100644 index db4285a9c..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvLineDetailServiceImpl.java +++ /dev/null @@ -1,271 +0,0 @@ -package com.njcn.device.pms.service.impl; - -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.njcn.common.pojo.enums.common.DataStateEnum; -import com.njcn.common.pojo.exception.BusinessException; -import com.njcn.common.utils.PubUtils; -import com.njcn.device.pms.service.*; -import com.njcn.device.pms.pojo.param.LineDetailQueryParam; -import com.njcn.device.pms.pojo.param.PvLineDetailParam; -import com.njcn.device.pms.pojo.po.PvDevice; -import com.njcn.device.pms.pojo.po.PvLineDetail; -import com.njcn.device.pms.pojo.vo.PvLineAllDetailVO; -import com.njcn.device.pms.mapper.PvLineDetailMapper; -import com.njcn.device.pq.enums.PvDeviceResponseEnum; -import com.njcn.system.api.DicDataFeignClient; -import com.njcn.system.enums.DicDataEnum; -import com.njcn.system.enums.SystemResponseEnum; -import com.njcn.system.pojo.po.DictData; -import com.njcn.web.factory.PageFactory; -import lombok.RequiredArgsConstructor; -import org.springframework.beans.BeanUtils; -import org.springframework.stereotype.Service; - -import java.util.List; -import java.util.Objects; - -/** - *

- * 监测点实现类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Service -@RequiredArgsConstructor -public class PvLineDetailServiceImpl extends ServiceImpl implements IPvLineDetailService { - - private final DicDataFeignClient dicDataFeignClient; - - private final IPvDeviceService iPvDeviceService; - - private final IPvSubstationService iPvSubstationService; - - private final IPvVoltageService iPvVoltageService; - - private final IPvSubAreaService iPvSubAreaService; - - - @Override - public boolean addLineDetail(PvLineDetailParam pvLineDetailParam) { - checkNameAndParam(pvLineDetailParam); - //判断同一台装置是否出现监测点序号重复或超过x路序号 - lineNumIsExit(pvLineDetailParam, false); - PvLineDetail pvLineDetail = commMonit(pvLineDetailParam); - return this.save(pvLineDetail); - } - - @Override - public boolean updateLineDetail(PvLineDetailParam.UpdatePvLineDetailParam updatePvLineDetailParam) { - checkNameAndParam(updatePvLineDetailParam); - lineNumIsExit(updatePvLineDetailParam, true); - PvLineDetail pvLineDetail = commMonit(updatePvLineDetailParam); - return this.updateById(pvLineDetail); - } - - - /** - * 公共代码提取 - */ - private PvLineDetail commMonit(PvLineDetailParam pvLineDetailParam) { - PvLineDetail pvLineDetail = new PvLineDetail(); - BeanUtils.copyProperties(pvLineDetailParam, pvLineDetail); - pvLineDetail.setState(DataStateEnum.ENABLE.getCode()); - if (StrUtil.isNotBlank(pvLineDetailParam.getAccess())) { - pvLineDetail.setAccess(PubUtils.localDateFormat(pvLineDetailParam.getAccess())); - } - if (StrUtil.isNotBlank(pvLineDetailParam.getPutIn())) { - pvLineDetail.setAccess(PubUtils.localDateFormat(pvLineDetailParam.getPutIn())); - } - return pvLineDetail; - } - - - /** - * 监测点序号是否重复判断 - * - * @author cdf - * @date 2022/7/11 - */ - private void lineNumIsExit(PvLineDetailParam pvLineDetailParam, Boolean isUpdate) { - LambdaQueryWrapper query = new LambdaQueryWrapper<>(); - query.eq(PvLineDetail::getDevId, pvLineDetailParam.getDevId()) - .eq(PvLineDetail::getNum, pvLineDetailParam.getNum()) - .eq(PvLineDetail::getState, DataStateEnum.ENABLE.getCode()); - if (isUpdate) { - if (pvLineDetailParam instanceof PvLineDetailParam.UpdatePvLineDetailParam) { - query.ne(PvLineDetail::getId, ((PvLineDetailParam.UpdatePvLineDetailParam) pvLineDetailParam).getId()); - } - } - int count = this.count(query); - if (count > 0) { - throw new BusinessException(PvDeviceResponseEnum.DEV_NUM_NULL); - } - - } - - @Override - public Page getPvLineDetailList(LineDetailQueryParam subsAreaQueryParam) { - Page page = new Page<>(PageFactory.getPageNum(subsAreaQueryParam), PageFactory.getPageSize(subsAreaQueryParam)); - LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); - return this.page(page, lambdaQueryWrapper); - } - - @Override - public List getAllPvLineDetailList() { - return this.list(); - } - - @Override - public PvLineDetail getPvLineDetailById(String id) { - return this.getById(id); - } - - @Override - public boolean delPvLineDetail(List ids) { - return this.removeByIds(ids); - } - - @Override - public Page getPvLineAllDetailMain(Integer pageNum, Integer pageSize, List subIds, List subAreaIds,String type,Integer lineStatus) { - - Page page = new Page<>(pageNum, pageSize); - - return this.baseMapper.getPvLineAllDetailMain(page, subIds, subAreaIds,type,lineStatus); - - - } - - - /** - * 校验单位名称是否重复 - */ - private void checkNameAndParam(PvLineDetailParam pvLineDetailParam) { - - PvDevice pvDevice = iPvDeviceService.getPvDeviceById(pvLineDetailParam.getDevId()); - if (Objects.isNull(pvDevice)) { - throw new BusinessException(PvDeviceResponseEnum.DEV_NULL); - } - DictData devType = dicDataFeignClient.getDicDataById(pvDevice.getType()).getData(); - - /*校验监测类型*/ - DictData lineType = dicDataFeignClient.getDicDataById(pvLineDetailParam.getType()).getData(); - if (Objects.isNull(lineType)) { - throw new BusinessException(SystemResponseEnum.LINE_TYPE_VARIETY_EMPTY); - } - - /* if (!pvDevice.getType().equals(lineType.getId())) { - throw new BusinessException(PvDeviceResponseEnum.LINE_DEVICE_NO_MATCH); - }*/ - - - - /*监测点类型*/ - if (DicDataEnum.ONE_LINE.getCode().equals(lineType.getCode())) { - /*校验变电站*/ - if (StrUtil.isNotBlank(pvLineDetailParam.getSubstationId())) { - if (Objects.isNull(iPvSubstationService.getPvSubstationById(pvLineDetailParam.getSubstationId()))) { - throw new BusinessException(PvDeviceResponseEnum.SUBSTATION_NULL); - } - }else{ - throw new BusinessException(PvDeviceResponseEnum.SUBSTATION_EMPTY); - } - //I类监测点 - if (StrUtil.hasBlank(pvLineDetailParam.getSubstationId(), pvLineDetailParam.getVoltageId())) { - throw new BusinessException(PvDeviceResponseEnum.ONE_SUB_VOLTAGE_EMPTY); - } - if (StrUtil.isNotBlank(pvLineDetailParam.getSubAreaId())) { - pvLineDetailParam.setSubAreaId(""); - } - - /*校验母线*/ - if (StrUtil.isBlank(pvLineDetailParam.getVoltageId())) { - throw new BusinessException(PvDeviceResponseEnum.VOLTAGE_PARAM_EMPTY); - } - - if (Objects.isNull(iPvVoltageService.getPvVoltageById(pvLineDetailParam.getVoltageId()))) { - throw new BusinessException(PvDeviceResponseEnum.VOLTAGE_NULL); - } - - /*I类监测点终端只能选电能质量监测终端*/ - if (!DicDataEnum.DEV_QUALITY.getCode().equals(devType.getCode())) { - throw new BusinessException(PvDeviceResponseEnum.LINE_DEVICE_NO_MATCH); - } - - - } else if (DicDataEnum.TWO_LINE.getCode().equals(lineType.getCode())) { - //II类监测点 - if (StrUtil.isNotBlank(pvLineDetailParam.getSubstationId()) || StrUtil.isNotBlank(pvLineDetailParam.getVoltageId())) { - throw new BusinessException(PvDeviceResponseEnum.TWO_SUB_VOLTAGE_EMPTY_MUST); - } - - //2类3类监测点必须存在台区 - if (StrUtil.isBlank(pvLineDetailParam.getSubAreaId())) { - throw new BusinessException(PvDeviceResponseEnum.SUB_AREA_EMPTY); - } - - //II III 类监测点所属母线id必须为空 - if (StrUtil.isNotBlank(pvLineDetailParam.getVoltageId())) { - throw new BusinessException(PvDeviceResponseEnum.VOLTAGE_PARAM_EMPTY_MUST); - } - - /*II类监测点终端只能选融合终端*/ - if (DicDataEnum.DEV_QUALITY.getCode().equals(devType.getCode())) { - throw new BusinessException(PvDeviceResponseEnum.LINE_DEVICE_NO_MATCH); - } - - - } else if (DicDataEnum.THREE_LINE.getCode().equals(lineType.getCode())) { - //III类监测点 - if (StrUtil.isNotBlank(pvLineDetailParam.getSubstationId()) || StrUtil.isNotBlank(pvLineDetailParam.getVoltageId())) { - throw new BusinessException(PvDeviceResponseEnum.TWO_SUB_VOLTAGE_EMPTY_MUST); - } - - //2类3类监测点必须存在台区 - if (StrUtil.isBlank(pvLineDetailParam.getSubAreaId())) { - throw new BusinessException(PvDeviceResponseEnum.SUB_AREA_EMPTY); - } - - /*III类监测点终端只能选智能电表终端*/ - if (!DicDataEnum.DEV_QUALITY.getCode().equals(devType.getCode())) { - throw new BusinessException(PvDeviceResponseEnum.LINE_DEVICE_NO_MATCH); - } - } - - /*校验台区*/ - if (StrUtil.isNotBlank(pvLineDetailParam.getSubAreaId())) { - if (Objects.isNull(iPvSubAreaService.getPvSubAreaById(pvLineDetailParam.getSubAreaId()))) { - throw new BusinessException(PvDeviceResponseEnum.SUB_AREA_NULL); - } - } - - - if (StrUtil.isNotBlank(pvLineDetailParam.getBusinessType())) { - if (Objects.isNull(dicDataFeignClient.getDicDataById(pvLineDetailParam.getBusinessType()).getData())) { - throw new BusinessException(SystemResponseEnum.BUSINESS_EMPTY); - } - } - - if (StrUtil.isNotBlank(pvLineDetailParam.getScale())) { - if (StrUtil.isNotBlank(pvLineDetailParam.getScale())) { - if (Objects.isNull(dicDataFeignClient.getDicDataById(pvLineDetailParam.getScale()).getData())) { - throw new BusinessException(SystemResponseEnum.LINE_TYPE_VARIETY_EMPTY); - } - } - } - - if (StrUtil.isNotBlank(pvLineDetailParam.getLoadType())) { - if (Objects.isNull(dicDataFeignClient.getDicDataById(pvLineDetailParam.getLoadType()).getData())) { - throw new BusinessException(SystemResponseEnum.INTERFERENCE_EMPTY); - } - } - - - } - - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvLvUserServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvLvUserServiceImpl.java deleted file mode 100644 index 47acd9abe..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvLvUserServiceImpl.java +++ /dev/null @@ -1,122 +0,0 @@ -package com.njcn.device.pms.service.impl; - -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.njcn.common.pojo.enums.common.DataStateEnum; -import com.njcn.common.pojo.exception.BusinessException; -import com.njcn.device.pms.pojo.param.LvUserQueryParam; -import com.njcn.device.pms.pojo.param.PvLvUserParam; -import com.njcn.device.pms.pojo.po.PvLvUser; -import com.njcn.device.pms.pojo.vo.PvLvUserVO; -import com.njcn.device.pms.mapper.PvLvUserMapper; -import com.njcn.device.pms.service.IPvLvUserService; -import com.njcn.device.pq.enums.PvDeviceResponseEnum; -import com.njcn.system.api.DicDataFeignClient; -import com.njcn.system.enums.SystemResponseEnum; -import com.njcn.web.factory.PageFactory; -import lombok.RequiredArgsConstructor; -import org.springframework.beans.BeanUtils; -import org.springframework.stereotype.Service; - -import java.util.List; -import java.util.Objects; - -/** - *

- * 分布式用户实现类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Service -@RequiredArgsConstructor -public class PvLvUserServiceImpl extends ServiceImpl implements IPvLvUserService { - - private final DicDataFeignClient dicDataFeignClient; - - - @Override - public boolean addLvUser(PvLvUserParam pvLvUserParam) { - checkNameAndParam(pvLvUserParam,false); - PvLvUser pvLvUser = new PvLvUser(); - BeanUtils.copyProperties(pvLvUserParam,pvLvUser); - pvLvUser.setState(DataStateEnum.ENABLE.getCode()); - return this.save(pvLvUser); - } - - @Override - public boolean updateLvUser(PvLvUserParam.UpdatePvLvUserParam updatePvLvUserParam) { - checkNameAndParam(updatePvLvUserParam,true); - PvLvUser pvLvUser = new PvLvUser(); - BeanUtils.copyProperties(updatePvLvUserParam,pvLvUser); - pvLvUser.setState(DataStateEnum.ENABLE.getCode()); - return this.updateById(pvLvUser); - } - - @Override - public Page getPvLvUserList(LvUserQueryParam lvUserQueryParam) { - Page page = new Page<>(PageFactory.getPageNum(lvUserQueryParam),PageFactory.getPageSize(lvUserQueryParam)); - return this.baseMapper.getPvLvUserList(page,lvUserQueryParam); - } - - @Override - public List getAllPvLvUserList() { - return this.list(); - } - - @Override - public PvLvUser getPvLvUserById(String id) { - return this.getById(id); - } - - @Override - public boolean delPvLvUser(List ids) { - return this.removeByIds(ids); - } - - - /** - * 校验单位名称是否重复 - */ - private void checkNameAndParam(PvLvUserParam pvLvUserParam, boolean isUpdate) { - - if(StrUtil.isNotBlank(pvLvUserParam.getScale())) { - if (Objects.isNull(dicDataFeignClient.getDicDataById(pvLvUserParam.getScale()).getData())) { - throw new BusinessException(SystemResponseEnum.VOLTAGE_EMPTY); - } - } - - LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); - lambdaQueryWrapper.eq(PvLvUser::getName, pvLvUserParam.getName()); - if (isUpdate) { - //更新操作 - if (pvLvUserParam instanceof PvLvUserParam.UpdatePvLvUserParam) { - lambdaQueryWrapper.ne(PvLvUser::getId, ((PvLvUserParam.UpdatePvLvUserParam) pvLvUserParam).getId()); - } - } - int count = this.count(lambdaQueryWrapper); - if (count > 0) { - throw new BusinessException(PvDeviceResponseEnum.LV_USER_REPEAT); - } - - - lambdaQueryWrapper.clear(); - lambdaQueryWrapper.eq(PvLvUser::getUserCode, pvLvUserParam.getUserCode()); - if (isUpdate) { - //更新操作 - if (pvLvUserParam instanceof PvLvUserParam.UpdatePvLvUserParam) { - lambdaQueryWrapper.ne(PvLvUser::getId, ((PvLvUserParam.UpdatePvLvUserParam) pvLvUserParam).getId()); - } - } - int countUserCode = this.count(lambdaQueryWrapper); - if (countUserCode > 0) { - throw new BusinessException(PvDeviceResponseEnum.USER_CODE_REPEAT); - } - } - - - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvSubAreaServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvSubAreaServiceImpl.java deleted file mode 100644 index e44433f69..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvSubAreaServiceImpl.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.njcn.device.pms.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.njcn.common.pojo.enums.common.DataStateEnum; -import com.njcn.common.pojo.exception.BusinessException; -import com.njcn.device.pms.pojo.param.PvSubAreaParam; -import com.njcn.device.pms.pojo.param.SubAreaQueryParam; -import com.njcn.device.pms.pojo.po.PvSubArea; -import com.njcn.device.pms.pojo.vo.PvSubAreaVO; -import com.njcn.device.pms.mapper.PvSubAreaMapper; -import com.njcn.device.pms.service.IPvSubAreaService; -import com.njcn.device.pms.service.IPvTenVoltageService; -import com.njcn.device.pms.service.IPvUnitService; -import com.njcn.device.pq.enums.PvDeviceResponseEnum; -import com.njcn.system.api.DicDataFeignClient; -import com.njcn.user.api.DeptFeignClient; -import com.njcn.web.factory.PageFactory; -import lombok.RequiredArgsConstructor; -import org.springframework.beans.BeanUtils; -import org.springframework.stereotype.Service; - -import java.util.List; -import java.util.Objects; - -/** - *

- * 服务实现类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Service -@RequiredArgsConstructor -public class PvSubAreaServiceImpl extends ServiceImpl implements IPvSubAreaService { - - - private final DicDataFeignClient dicDataFeignClient; - - private final IPvTenVoltageService iPvTenVoltageService; - - private final IPvUnitService iPvUnitService; - - private final DeptFeignClient deptFeignClient; - - @Override - public boolean addSubArea(PvSubAreaParam pvSubAreaParam) { - checkNameAndParam(pvSubAreaParam,false); - PvSubArea pvSubArea = new PvSubArea(); - BeanUtils.copyProperties(pvSubAreaParam,pvSubArea); - pvSubArea.setState(DataStateEnum.ENABLE.getCode()); - return this.save(pvSubArea); - } - - @Override - public boolean updateSubArea(PvSubAreaParam.UpdatePvSubAreaParam updatePvSubAreaParam) { - checkNameAndParam(updatePvSubAreaParam,true); - PvSubArea pvSubArea = new PvSubArea(); - BeanUtils.copyProperties(updatePvSubAreaParam,pvSubArea); - pvSubArea.setState(DataStateEnum.ENABLE.getCode()); - return this.updateById(pvSubArea); - } - - @Override - public Page getPvSubAreaList(SubAreaQueryParam subsAreaQueryParam) { - Page page = new Page<>(PageFactory.getPageNum(subsAreaQueryParam),PageFactory.getPageSize(subsAreaQueryParam)); - return this.baseMapper.getPvSubAreaList(page,subsAreaQueryParam); - } - - @Override - public List getAllPvSubAreaList() { - return this.list(); - } - - @Override - public PvSubArea getPvSubAreaById(String id) { - return this.getById(id); - } - - @Override - public boolean delPvSubArea(List ids) { - return this.removeByIds(ids); - } - - - /** - * 校验单位名称是否重复 - */ - private void checkNameAndParam(PvSubAreaParam pvSubAreaParam, boolean isUpdate) { - - if(Objects.isNull(iPvTenVoltageService.getPvTenVoltageById(pvSubAreaParam.getTenVoltageId()))){ - throw new BusinessException(PvDeviceResponseEnum.TEN_VOLTAGE_NULL); - } - if(Objects.isNull(deptFeignClient.getDeptById(pvSubAreaParam.getUnitId()))){ - throw new BusinessException(PvDeviceResponseEnum.UNIT_NULL); - } - - LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); - lambdaQueryWrapper.eq(PvSubArea::getName, pvSubAreaParam.getName()); - if (isUpdate) { - //更新操作 - if (pvSubAreaParam instanceof PvSubAreaParam.UpdatePvSubAreaParam) { - lambdaQueryWrapper.ne(PvSubArea::getId, ((PvSubAreaParam.UpdatePvSubAreaParam) pvSubAreaParam).getId()); - } - } - int count = this.count(lambdaQueryWrapper); - if (count > 0) { - throw new BusinessException(PvDeviceResponseEnum.SUB_AREA_REPEAT); - } - } - - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvSubstationServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvSubstationServiceImpl.java deleted file mode 100644 index 7f2cc359b..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvSubstationServiceImpl.java +++ /dev/null @@ -1,138 +0,0 @@ -package com.njcn.device.pms.service.impl; - -import cn.hutool.core.collection.CollUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.njcn.common.pojo.exception.BusinessException; -import com.njcn.device.pms.pojo.param.PvSubstationParam; -import com.njcn.device.pms.pojo.param.SubstationQueryParam; -import com.njcn.device.pms.pojo.po.PvSubstation; -import com.njcn.device.pms.pojo.vo.PvSubstationVO; -import com.njcn.device.pms.mapper.PvSubstationMapper; -import com.njcn.device.pms.service.IPvSubstationService; -import com.njcn.device.pms.service.IPvUnitService; -import com.njcn.device.pq.enums.PvDeviceResponseEnum; -import com.njcn.system.api.DicDataFeignClient; -import com.njcn.system.enums.SystemResponseEnum; -import com.njcn.system.pojo.po.DictData; -import com.njcn.user.api.DeptFeignClient; -import com.njcn.web.factory.PageFactory; -import lombok.RequiredArgsConstructor; -import org.springframework.beans.BeanUtils; -import org.springframework.stereotype.Service; - -import java.util.List; -import java.util.Objects; - -/** - *

- * 变电站管理实现类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Service -@RequiredArgsConstructor -public class PvSubstationServiceImpl extends ServiceImpl implements IPvSubstationService { - - private final DicDataFeignClient dicDataFeignClient; - - private final IPvUnitService iPvUnitService; - - private final DeptFeignClient deptFeignClient; - - - @Override - public boolean addSubstation(PvSubstationParam pvSubstationParam) { - checkNameAndParam(pvSubstationParam,false); - PvSubstation pvSubstation = new PvSubstation(); - BeanUtils.copyProperties(pvSubstationParam,pvSubstation); - return this.save(pvSubstation); - } - - @Override - public boolean updateSubstation(PvSubstationParam.UpdatePvSubstationParam updatePvSubstationParam) { - checkNameAndParam(updatePvSubstationParam,true); - PvSubstation pvSubstation = new PvSubstation(); - BeanUtils.copyProperties(updatePvSubstationParam,pvSubstation); - return this.updateById(pvSubstation); - } - - @Override - public Page getPvSubstationList(SubstationQueryParam substationQueryParam) { - Page page = new Page<>(PageFactory.getPageNum(substationQueryParam),PageFactory.getPageSize(substationQueryParam)); - if(CollUtil.isNotEmpty(substationQueryParam.getUnitId())){ - List tem = deptFeignClient.getDepSonIdtByDeptId(substationQueryParam.getUnitId().get(0)).getData(); - tem.add(substationQueryParam.getUnitId().get(0)); - substationQueryParam.setUnitId(tem); - } - return this.baseMapper.getPvSubstationList(page,substationQueryParam); - } - - @Override - public List getAllPvSubstationList() { - return this.list(); - } - - @Override - public PvSubstation getPvSubstationById(String id) { - return this.getById(id); - } - - @Override - public boolean delPvSubstation(List ids) { - return this.removeByIds(ids); - } - - - /** - * 校验单位名称是否重复 - * - * @author cdf - * @date 2022/7/5 - */ - private void checkNameAndParam(PvSubstationParam pvSubstationParam, boolean isUpdate) { - LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); - lambdaQueryWrapper.eq(PvSubstation::getName, pvSubstationParam.getName()); - - if (isUpdate) { - //更新操作 - if (pvSubstationParam instanceof PvSubstationParam.UpdatePvSubstationParam) { - lambdaQueryWrapper.ne(PvSubstation::getId, ((PvSubstationParam.UpdatePvSubstationParam) pvSubstationParam).getId()); - } - } - int count = this.count(lambdaQueryWrapper); - if (count > 0) { - throw new BusinessException(PvDeviceResponseEnum.SUBSTATION_REPEAT); - } - - - lambdaQueryWrapper.clear(); - lambdaQueryWrapper.eq(PvSubstation::getSubCode, pvSubstationParam.getSubCode()); - - if (isUpdate) { - //更新操作 - if (pvSubstationParam instanceof PvSubstationParam.UpdatePvSubstationParam) { - lambdaQueryWrapper.ne(PvSubstation::getId, ((PvSubstationParam.UpdatePvSubstationParam) pvSubstationParam).getId()); - } - } - int countCode = this.count(lambdaQueryWrapper); - if (countCode > 0) { - throw new BusinessException(PvDeviceResponseEnum.SUBSTATION_CODE_REPEAT); - } - - DictData dictData = dicDataFeignClient.getDicDataById(pvSubstationParam.getScale()).getData(); - if(Objects.isNull(dictData)){ - throw new BusinessException(SystemResponseEnum.VOLTAGE_EMPTY); - } - if(Objects.isNull(deptFeignClient.getDeptById(pvSubstationParam.getUnitId()))){ - throw new BusinessException(PvDeviceResponseEnum.UNIT_NULL); - } - - - } - - -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvTenVoltageServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvTenVoltageServiceImpl.java deleted file mode 100644 index 9d1662556..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvTenVoltageServiceImpl.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.njcn.device.pms.service.impl; - -import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.njcn.common.pojo.enums.common.DataStateEnum; -import com.njcn.common.pojo.exception.BusinessException; -import com.njcn.device.pms.pojo.param.PvTenVoltageParam; -import com.njcn.device.pms.pojo.param.TenVoltageQueryParam; -import com.njcn.device.pms.pojo.po.PvTenVoltage; -import com.njcn.device.pms.pojo.vo.PvTenVoltageVO; -import com.njcn.device.pms.mapper.PvTenVoltageMapper; -import com.njcn.device.pms.service.IPvTenVoltageService; -import com.njcn.device.pq.enums.PvDeviceResponseEnum; -import com.njcn.system.api.DicDataFeignClient; -import com.njcn.system.enums.SystemResponseEnum; -import com.njcn.system.pojo.po.DictData; -import com.njcn.web.factory.PageFactory; -import lombok.RequiredArgsConstructor; -import org.springframework.beans.BeanUtils; -import org.springframework.stereotype.Service; - -import java.util.List; -import java.util.Objects; - -/** - *

- * 服务实现类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Service -@RequiredArgsConstructor -public class PvTenVoltageServiceImpl extends ServiceImpl implements IPvTenVoltageService { - - private final DicDataFeignClient dicDataFeignClient; - - @Override - public boolean addTenVoltage(PvTenVoltageParam pvTenVoltageParam) { - checkNameAndParam(pvTenVoltageParam,false); - PvTenVoltage pvTenVoltage = new PvTenVoltage(); - BeanUtils.copyProperties(pvTenVoltageParam,pvTenVoltage); - pvTenVoltage.setState(DataStateEnum.ENABLE.getCode()); - return this.save(pvTenVoltage); - } - - @Override - public boolean updateTenVoltage(PvTenVoltageParam.UpdatePvTenVoltageParam updatePvTenVoltageParam) { - checkNameAndParam(updatePvTenVoltageParam,true); - PvTenVoltage pvTenVoltage = new PvTenVoltage(); - BeanUtils.copyProperties(updatePvTenVoltageParam,pvTenVoltage); - pvTenVoltage.setState(DataStateEnum.ENABLE.getCode()); - return this.updateById(pvTenVoltage); - } - - @Override - public Page getPvTenVoltageList(TenVoltageQueryParam tenVoltageQueryParam) { - Page page = new Page<>(PageFactory.getPageNum(tenVoltageQueryParam),PageFactory.getPageSize(tenVoltageQueryParam)); - return this.baseMapper.getPvTenVoltageList(page,tenVoltageQueryParam); - } - - @Override - public List getAllPvTenVoltageList(){ - return this.list(); - } - - @Override - public PvTenVoltage getPvTenVoltageById(String id) { - return this.getById(id); - } - - @Override - public boolean delPvTenVoltage(List ids) { - return this.removeByIds(ids); - } - - - /** - * 校验单位名称是否重复 - * - * @author cdf - * @date 2022/7/5 - */ - private void checkNameAndParam(PvTenVoltageParam pvTenVoltageParam, boolean isUpdate) { - - if(StrUtil.isNotBlank(pvTenVoltageParam.getScale())) { - DictData dictData = dicDataFeignClient.getDicDataById(pvTenVoltageParam.getScale()).getData(); - if (Objects.isNull(dictData)) { - throw new BusinessException(SystemResponseEnum.VOLTAGE_EMPTY); - } - } - if(StrUtil.isNotBlank(pvTenVoltageParam.getDesignScale())) { - DictData dictDesignScale = dicDataFeignClient.getDicDataById(pvTenVoltageParam.getDesignScale()).getData(); - if (Objects.isNull(dictDesignScale)) { - throw new BusinessException(SystemResponseEnum.VOLTAGE_EMPTY); - } - } - - - - LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); - lambdaQueryWrapper.eq(PvTenVoltage::getName, pvTenVoltageParam.getName()); - - if (isUpdate) { - //更新操作 - if (pvTenVoltageParam instanceof PvTenVoltageParam.UpdatePvTenVoltageParam) { - lambdaQueryWrapper.ne(PvTenVoltage::getId, ((PvTenVoltageParam.UpdatePvTenVoltageParam) pvTenVoltageParam).getId()); - } - } - int count = this.count(lambdaQueryWrapper); - if (count > 0) { - throw new BusinessException(PvDeviceResponseEnum.TEN_VOLTAGE_REPEAT); - } - - - } -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvTerminalBaseServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvTerminalBaseServiceImpl.java deleted file mode 100644 index 77addd7aa..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvTerminalBaseServiceImpl.java +++ /dev/null @@ -1,139 +0,0 @@ -package com.njcn.device.pms.service.impl; - -import cn.hutool.core.collection.CollUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.njcn.common.pojo.enums.common.DataStateEnum; -import com.njcn.common.pojo.enums.response.CommonResponseEnum; -import com.njcn.common.pojo.exception.BusinessException; -import com.njcn.device.pms.mapper.PvDistributedMapper; -import com.njcn.device.pms.mapper.PvLvUserMapper; -import com.njcn.device.pms.mapper.PvSubAreaMapper; -import com.njcn.device.pms.mapper.PvSubstationMapper; -import com.njcn.device.pms.service.IPvLineDetailService; -import com.njcn.device.pms.service.IPvSubAreaService; -import com.njcn.device.pms.service.IPvSubstationService; -import com.njcn.device.pms.service.PvTerminalBaseService; -import com.njcn.device.pms.pojo.param.PvTerminalBaseQuery; -import com.njcn.device.pms.pojo.po.PvDistributed; -import com.njcn.device.pms.pojo.po.PvLvUser; -import com.njcn.device.pms.pojo.po.PvSubArea; -import com.njcn.device.pms.pojo.po.PvSubstation; -import com.njcn.device.pms.pojo.vo.DisOrLvVO; -import com.njcn.device.pms.pojo.vo.PvLineAllDetailVO; -import com.njcn.device.pq.enums.LineBaseEnum; -import com.njcn.device.pq.enums.PvDeviceResponseEnum; -import com.njcn.user.api.DeptFeignClient; -import com.njcn.user.pojo.vo.PvTerminalTreeVO; -import com.njcn.web.factory.PageFactory; -import lombok.RequiredArgsConstructor; -import org.springframework.beans.BeanUtils; -import org.springframework.stereotype.Service; - -import java.util.List; -import java.util.Objects; -import java.util.stream.Collectors; -import java.util.stream.Stream; - -/** - * pqs - * - * @author cdf - * @date 2022/7/11 - */ -@Service -@RequiredArgsConstructor -public class PvTerminalBaseServiceImpl implements PvTerminalBaseService { - - private final IPvSubstationService iPvSubstationService; - - private final IPvSubAreaService iPvSubAreaService; - - private final IPvLineDetailService iPvLineDetailService; - - private final PvSubstationMapper pvSubstationMapper; - - private final PvSubAreaMapper pvSubAreaMapper; - - private final PvLvUserMapper pvLvUserMapper; - - private final PvDistributedMapper pvDistributedMapper; - - private final DeptFeignClient deptFeignClient; - - @Override - public List pvTerminalTree() { - List unitTreeList = deptFeignClient.allDeptList().getData(); - List subTreeList = pvSubstationMapper.getSubstationTreeList(); - List subAreaTreeList = pvSubAreaMapper.getSubAreaTreeList(); - unitTreeList.addAll(subTreeList); - unitTreeList.addAll(subAreaTreeList); - return unitTreeList.stream().filter(item->item.getPid().equals("0")).peek(tem->tem.setChildren(getChildren(tem,unitTreeList))).collect(Collectors.toList()); - } - - @Override - public Page lineDetailBySubId(PvTerminalBaseQuery pvTerminalBaseQuery) { - String id = pvTerminalBaseQuery.getId(); - Integer level = pvTerminalBaseQuery.getLevel(); - if(level.equals(LineBaseEnum.PV_UNIT_LEVEL.getCode())){ - //点击的是单位节点 - - List deptIds = deptFeignClient.getDepSonIdtByDeptId(id).getData(); - if(CollUtil.isEmpty(deptIds)){ - deptIds.add(id); - } - LambdaQueryWrapper subQuery= new LambdaQueryWrapper<>(); - subQuery.in(PvSubstation::getUnitId,deptIds); - List substationList = iPvSubstationService.list(subQuery); - List subIds = substationList.stream().map(PvSubstation::getId).collect(Collectors.toList()); - - LambdaQueryWrapper areaQuery= new LambdaQueryWrapper<>(); - areaQuery.in(PvSubArea::getUnitId,deptIds); - List subAreaList = iPvSubAreaService.list(areaQuery); - List subAreaIds = subAreaList.stream().map(PvSubArea::getId).collect(Collectors.toList()); - - if(CollUtil.isEmpty(subAreaIds) && CollUtil.isEmpty(subIds)){ - throw new BusinessException(PvDeviceResponseEnum.NO_SUB); - } - - return iPvLineDetailService.getPvLineAllDetailMain(PageFactory.getPageNum(pvTerminalBaseQuery),PageFactory.getPageSize(pvTerminalBaseQuery),subIds,subAreaIds,pvTerminalBaseQuery.getType(),pvTerminalBaseQuery.getLineStatus()); - }else if(level.equals(LineBaseEnum.PV_SUB_LEVEL.getCode())){ - return iPvLineDetailService.getPvLineAllDetailMain(PageFactory.getPageNum(pvTerminalBaseQuery),PageFactory.getPageSize(pvTerminalBaseQuery), Stream.of(pvTerminalBaseQuery.getId()).collect(Collectors.toList()), null,pvTerminalBaseQuery.getType(),pvTerminalBaseQuery.getLineStatus()); - }else if(level.equals(LineBaseEnum.PV_SUB_AREA_LEVEL.getCode())){ - return iPvLineDetailService.getPvLineAllDetailMain(PageFactory.getPageNum(pvTerminalBaseQuery),PageFactory.getPageSize(pvTerminalBaseQuery),null,Stream.of(pvTerminalBaseQuery.getId()).collect(Collectors.toList()),pvTerminalBaseQuery.getType(),pvTerminalBaseQuery.getLineStatus()); - } - throw new BusinessException(CommonResponseEnum.FAIL); - } - - @Override - public DisOrLvVO pvDisOrLv(String userCode, Integer userCodeType){ - DisOrLvVO disOrLvVO = new DisOrLvVO(); - if(userCodeType == 1){ - //低压 - LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); - lambdaQueryWrapper.eq(PvLvUser::getUserCode,userCode).eq(PvLvUser::getState, DataStateEnum.ENABLE.getCode()); - PvLvUser pvLvUser = pvLvUserMapper.selectOne(lambdaQueryWrapper); - if(Objects.nonNull(pvLvUser)){ - BeanUtils.copyProperties(pvLvUser,disOrLvVO); - } - - }else { - //分布式 - LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); - lambdaQueryWrapper.eq(PvDistributed::getUserCode,userCode).eq(PvDistributed::getState, DataStateEnum.ENABLE.getCode()); - PvDistributed pvDistributed = pvDistributedMapper.selectOne(lambdaQueryWrapper); - if(Objects.nonNull(pvDistributed)){ - BeanUtils.copyProperties(pvDistributed,disOrLvVO); - } - } - return disOrLvVO; - } - - - - - - private List getChildren(PvTerminalTreeVO tem, List children) { - return children.stream().filter(item -> item.getPid().equals(tem.getId())).peek(t->t.setChildren(getChildren(t,children))).collect(Collectors.toList()); - } -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvUnitServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvUnitServiceImpl.java deleted file mode 100644 index fbc833540..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvUnitServiceImpl.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.njcn.device.pms.service.impl; - - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.njcn.common.pojo.exception.BusinessException; -import com.njcn.device.pms.pojo.param.PvUnitParam; -import com.njcn.device.pms.pojo.po.PvUnit; -import com.njcn.device.pms.pojo.vo.UnitTreeVO; -import com.njcn.device.pms.mapper.PvUnitMapper; -import com.njcn.device.pms.service.IPvUnitService; -import com.njcn.device.pq.enums.PvDeviceResponseEnum; -import com.njcn.user.pojo.vo.PvTerminalTreeVO; -import com.njcn.web.pojo.param.BaseParam; -import org.springframework.beans.BeanUtils; -import org.springframework.stereotype.Service; - -import java.util.List; -import java.util.Objects; -import java.util.stream.Collectors; - -/** - *

- * 服务实现类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Service -public class PvUnitServiceImpl extends ServiceImpl implements IPvUnitService { - - - @Override - public boolean addUnit(PvUnitParam pvUnitParam) { - checkName(pvUnitParam, false); - PvUnit pvUnit = new PvUnit(); - BeanUtils.copyProperties(pvUnitParam, pvUnit); - return this.save(pvUnit); - } - - @Override - public boolean updateUnit(PvUnitParam.UpdatePvUnitParam updatePvUnitParam) { - checkName(updatePvUnitParam, true); - PvUnit pvUnit = new PvUnit(); - BeanUtils.copyProperties(updatePvUnitParam, pvUnit); - return this.updateById(pvUnit); - } - - @Override - public List getPvUnitList(BaseParam baseParam) { - List list = this.baseMapper.getPvUnitList(baseParam.getOrderBy(), baseParam.getSortBy()); - List parentList = list.stream().filter(item -> item.getPid().equals("0")).collect(Collectors.toList()); - parentList.forEach(item -> item.setChildren(getChildren(item,list))); - return parentList; - } - - - - /** - * 递归查询子节点 - * @param root 根节点 - * @param all 所有节点 - * @return 根节点信息 - */ - private List getChildren(UnitTreeVO root, List all) { - return all.stream().filter(m -> Objects.equals(m.getPid(), root.getId())) - .peek(m -> m.setChildren(getChildren(m, all))).collect(Collectors.toList()); - } - - private List getChildrens(PvTerminalTreeVO root, List all) { - return all.stream().filter(m -> Objects.equals(m.getPid(), root.getId())) - .peek(m -> m.setChildren(getChildrens(m, all))).collect(Collectors.toList()); - } - - @Override - public PvUnit getPvUnitById(String id) { - return this.getById(id); - } - - @Override - public boolean delPvUnit(String id) { - return this.removeById(id); - } - - - /** - * 校验单位名称是否重复 - * - * @author cdf - * @date 2022/7/5 - */ - private void checkName(PvUnitParam pvUnitParam, boolean isUpdate) { - LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); - lambdaQueryWrapper.eq(PvUnit::getName, pvUnitParam.getName()); - - if (isUpdate) { - //更新操作 - if (pvUnitParam instanceof PvUnitParam.UpdatePvUnitParam) { - lambdaQueryWrapper.eq(PvUnit::getId, ((PvUnitParam.UpdatePvUnitParam) pvUnitParam).getId()); - } - } - int count = this.count(lambdaQueryWrapper); - if (count > 0) { - throw new BusinessException(PvDeviceResponseEnum.UNIT_REPEAT); - } - } -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvVoltageServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvVoltageServiceImpl.java deleted file mode 100644 index 9e39f6f12..000000000 --- a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/PvVoltageServiceImpl.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.njcn.device.pms.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.njcn.common.pojo.exception.BusinessException; -import com.njcn.device.pms.pojo.param.PvVoltageParam; -import com.njcn.device.pms.pojo.param.VoltageQueryParam; -import com.njcn.device.pms.pojo.po.PvVoltage; -import com.njcn.device.pms.mapper.PvVoltageMapper; -import com.njcn.device.pms.service.IPvVoltageService; -import com.njcn.device.pq.enums.PvDeviceResponseEnum; -import com.njcn.system.api.DicDataFeignClient; -import com.njcn.system.enums.SystemResponseEnum; -import com.njcn.system.pojo.po.DictData; -import com.njcn.web.factory.PageFactory; -import lombok.RequiredArgsConstructor; -import org.springframework.beans.BeanUtils; -import org.springframework.stereotype.Service; - -import java.util.List; -import java.util.Objects; - -/** - *

- * 母线实现类 - *

- * - * @author cdf - * @since 2022-07-05 - */ -@Service -@RequiredArgsConstructor -public class PvVoltageServiceImpl extends ServiceImpl implements IPvVoltageService { - - private final DicDataFeignClient dicDataFeignClient; - - @Override - public boolean addVoltage(PvVoltageParam pvVoltageParam) { - DictData dictData = dicDataFeignClient.getDicDataById(pvVoltageParam.getScale()).getData(); - if(Objects.isNull(dictData)){ - throw new BusinessException(SystemResponseEnum.VOLTAGE_EMPTY); - } - checkName(pvVoltageParam,false); - PvVoltage pvVoltage = new PvVoltage(); - BeanUtils.copyProperties(pvVoltageParam,pvVoltage); - return this.save(pvVoltage); - } - - @Override - public boolean updateVoltage(PvVoltageParam.UpdatePvVoltageParam updatePvVoltageParam) { - DictData dictData = dicDataFeignClient.getDicDataById(updatePvVoltageParam.getScale()).getData(); - if(Objects.isNull(dictData)){ - throw new BusinessException(SystemResponseEnum.VOLTAGE_EMPTY); - } - checkName(updatePvVoltageParam,true); - PvVoltage pvVoltage = new PvVoltage(); - BeanUtils.copyProperties(updatePvVoltageParam,pvVoltage); - return this.updateById(pvVoltage); - } - - @Override - public Page getPvVoltageList(VoltageQueryParam voltageQueryParam) { - Page page = new Page<>(PageFactory.getPageNum(voltageQueryParam),PageFactory.getPageSize(voltageQueryParam)); - LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); - lambdaQueryWrapper.eq(PvVoltage::getName,voltageQueryParam.getSearchValue()) - .eq(PvVoltage::getScale,voltageQueryParam.getScale()); - return this.page(page,lambdaQueryWrapper); - } - - @Override - public List getAllPvVoltageList() { - return this.list(); - } - - @Override - public PvVoltage getPvVoltageById(String id) { - return this.getById(id); - } - - @Override - public boolean delPvVoltage(String id) { - return this.removeById(id); - } - - - /** - * 校验单位名称是否重复 - * - * @author cdf - * @date 2022/7/5 - */ - private void checkName(PvVoltageParam pvVoltageParam, boolean isUpdate) { - LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); - lambdaQueryWrapper.eq(PvVoltage::getName, pvVoltageParam.getName()); - if (isUpdate) { - //更新操作 - if (pvVoltageParam instanceof PvVoltageParam.UpdatePvVoltageParam) { - lambdaQueryWrapper.ne(PvVoltage::getId, ((PvVoltageParam.UpdatePvVoltageParam) pvVoltageParam).getId()); - } - } - int count = this.count(lambdaQueryWrapper); - if (count > 0) { - throw new BusinessException(PvDeviceResponseEnum.VOLTAGE_REPEAT); - } - - //校验序号 - /* lambdaQueryWrapper.clear(); - lambdaQueryWrapper.eq(PvVoltage::getNum, pvVoltageParam.getNum()); - if (isUpdate) { - //更新操作 - if (pvVoltageParam instanceof PvVoltageParam.UpdatePvVoltageParam) { - lambdaQueryWrapper.eq(PvVoltage::getId, ((PvVoltageParam.UpdatePvVoltageParam) pvVoltageParam).getId()); - } - } - int countNum = this.count(lambdaQueryWrapper); - if (countNum > 0) { - throw new BusinessException(PvDeviceResponseEnum.SUB_NUM_REPEAT); - }*/ - } -} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RMpMonitorAlarmCountMServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RMpMonitorAlarmCountMServiceImpl.java new file mode 100644 index 000000000..ae9cd80fe --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RMpMonitorAlarmCountMServiceImpl.java @@ -0,0 +1,127 @@ +package com.njcn.device.pms.service.impl; + +import cn.hutool.core.collection.CollUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.exception.BusinessException; +import com.njcn.device.pms.mapper.RMpMonitorAlarmCountMMapper; +import com.njcn.device.pms.pojo.param.RMpMonitorAlarmCountMParam; +import com.njcn.device.pms.pojo.po.Monitor; +import com.njcn.device.pms.pojo.po.RMpMonitorAlarmCountM; +import com.njcn.device.pms.pojo.vo.RMpMonitorAlarmCountMVO; +import com.njcn.device.pms.service.IMonitorService; +import com.njcn.device.pms.service.RMpMonitorAlarmCountMService; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataEnum; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.dto.DeptDTO; +import com.njcn.web.utils.WebUtil; +import lombok.RequiredArgsConstructor; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** + * 监测点告警统计service +* @author jianghf +* @description 针对表【r_mp_monitor_alarm_count_m】的数据库操作Service实现 +* @createDate 2022-10-12 20:08:33 +*/ +@Service +@RequiredArgsConstructor +public class RMpMonitorAlarmCountMServiceImpl extends ServiceImpl +implements RMpMonitorAlarmCountMService{ + + private final DeptFeignClient deptFeignClient; + + private final DicDataFeignClient dicDataFeignClient; + + private final IMonitorService iMonitorService; //【监测点】服务类 + + @Override + public List getRMpMonitorAlarmCountMList(RMpMonitorAlarmCountMParam rMpMonitorAlarmCountMParam) { + //提取查询条件 + String id = rMpMonitorAlarmCountMParam.getId(); //单位id + if (StringUtils.isBlank(id)) { + throw new BusinessException(CommonResponseEnum.NO_DATA, "单位id不可为空"); + } + String startTime = rMpMonitorAlarmCountMParam.getStartTime(); //开始时间 + String endTime = rMpMonitorAlarmCountMParam.getEndTime(); //结束时间 + String monitorObjectType = rMpMonitorAlarmCountMParam.getMonitorObjectType(); //监测点对象类型id + List voltageLevelParamList = StringUtils.isNotBlank(rMpMonitorAlarmCountMParam.getVoltageLevel()) ? Arrays.asList(rMpMonitorAlarmCountMParam.getVoltageLevel().split(",")) : null; //电压等级 + String monitorName = rMpMonitorAlarmCountMParam.getMeasurementPointName(); //监测点名称 + + //获取所有子部门信息 + List deptDTOList = deptFeignClient.getDeptDescendantIndexes(id, WebUtil.filterDeptType()).getData(); + if (CollUtil.isEmpty(deptDTOList)) { + throw new BusinessException(CommonResponseEnum.NO_DATA, "部门不存在"); + } + //单位id集合 + List orgNoList = deptDTOList.stream().map(DeptDTO::getId).collect(Collectors.toList()); + //将单位信息转为map集合 key: 单位id value: 单位实体 + Map deptDTOMap = deptDTOList.stream().collect(Collectors.toMap(DeptDTO::getId, deptDTO -> deptDTO)); + + //获取电压等级的字典 + List voltageLevelList = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.DEV_VOLTAGE.getCode()).getData(); + //将电压等级信息转成map,key:id value:name + Map voltageLevelMap = voltageLevelList.stream().collect(Collectors.toMap(DictData::getId, DictData::getName)); + //获取监测点类型字典 + List monitorTypeList = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.LINE_TYPE.getCode()).getData(); + //将监测点类型字典信息转为map集合 key: 字典id value: 字典名称 + Map monitorTypeMap = monitorTypeList.stream().collect(Collectors.toMap(DictData::getId, DictData::getName)); + //获取主网id + DictData mainId = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + //根据条件查询单位下面的所有监测点 + LambdaQueryWrapper monitorLambdaQueryWrapper = new LambdaQueryWrapper<>(); + monitorLambdaQueryWrapper.in(Monitor::getOrgId, orgNoList) //单位id + .eq(StringUtils.isNotBlank(monitorObjectType), Monitor::getMonitorObjectType, monitorObjectType) //监测点对象类型id + .in(CollUtil.isNotEmpty(voltageLevelParamList), Monitor::getVoltageLevel, voltageLevelParamList) //电压等级id + .like(StringUtils.isNotBlank(monitorName), Monitor::getName, monitorName); //监测点名称 + //监测点集合 + List monitorList = iMonitorService.list(monitorLambdaQueryWrapper); + //监测点id集合 + List monitorIdList = monitorList.stream().map(Monitor::getId).collect(Collectors.toList()); + if (CollUtil.isEmpty(monitorIdList)) { + return new ArrayList<>(); + } + //监测点map key:监测点id value:监测点实体 + Map monitorMap = monitorList.stream().collect(Collectors.toMap(Monitor::getId, monitor -> monitor)); + //根据监测点idList等条件查询【监测点告警月统计】表数据 + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); + lambdaQueryWrapper.in(RMpMonitorAlarmCountM::getMeasurementPointId, monitorIdList) + .ge(RMpMonitorAlarmCountM::getDataDate, startTime) + .le(RMpMonitorAlarmCountM::getDataDate, endTime) + .eq(RMpMonitorAlarmCountM::getDataType, mainId); + List alarmCountMList = this.list(lambdaQueryWrapper); + List resultList; + if (CollUtil.isNotEmpty(alarmCountMList)) { + //封装前端展示的数据 + resultList = alarmCountMList.stream().map(item -> { + RMpMonitorAlarmCountMVO rMpMonitorAlarmCountMVO = new RMpMonitorAlarmCountMVO(); + BeanUtils.copyProperties(item, rMpMonitorAlarmCountMVO); + //单位信息 + rMpMonitorAlarmCountMVO.setOrgName(deptDTOMap.get(item.getOrgNo()).getName()); //所属单位名称 + //监测点信息 + rMpMonitorAlarmCountMVO.setMeasurementPointName(monitorMap.get(item.getMeasurementPointId()).getName());//监测点名称 + rMpMonitorAlarmCountMVO.setMonitorTypeName(monitorTypeMap.get(monitorMap.get(item.getMeasurementPointId()).getMonitorType()));//监测点类型名称 + rMpMonitorAlarmCountMVO.setMonitorType(monitorMap.get(item.getMeasurementPointId()).getMonitorType());//监测点类型id + rMpMonitorAlarmCountMVO.setVoltageLevel(monitorMap.get(item.getMeasurementPointId()).getVoltageLevel()); //电压等级id + rMpMonitorAlarmCountMVO.setVoltageLevelName(voltageLevelMap.get(monitorMap.get(item.getMeasurementPointId()).getVoltageLevel())); //电压等级 + return rMpMonitorAlarmCountMVO; + }).collect(Collectors.toList()); + } else { + resultList = new ArrayList<>(); + } + return resultList; + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RMpPwAlarmDetailDServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RMpPwAlarmDetailDServiceImpl.java new file mode 100644 index 000000000..6340287c6 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RMpPwAlarmDetailDServiceImpl.java @@ -0,0 +1,18 @@ +package com.njcn.device.pms.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.device.pms.mapper.RMpPwAlarmDetailDMapper; +import com.njcn.device.pms.pojo.po.RMpPwAlarmDetailD; +import com.njcn.device.pms.service.RMpPwAlarmDetailDService; +import org.springframework.stereotype.Service; + +/** +* @author jianghf +* @description 针对表【r_mp_pw_alarm_detail_d】的数据库操作Service实现 +* @createDate 2022-10-17 09:00:27 +*/ +@Service +public class RMpPwAlarmDetailDServiceImpl extends ServiceImpl +implements RMpPwAlarmDetailDService{ + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RMpTargetWarnDServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RMpTargetWarnDServiceImpl.java new file mode 100644 index 000000000..78e689829 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RMpTargetWarnDServiceImpl.java @@ -0,0 +1,18 @@ +package com.njcn.device.pms.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.device.pms.mapper.RMpTargetWarnDMapper; +import com.njcn.device.pms.pojo.po.RMpTargetWarnD; +import com.njcn.device.pms.service.RMpTargetWarnDService; +import org.springframework.stereotype.Service; + +/** +* @author jianghf +* @description 针对表【r_mp_target_warn_d】的数据库操作Service实现 +* @createDate 2022-10-17 10:20:11 +*/ +@Service +public class RMpTargetWarnDServiceImpl extends ServiceImpl +implements RMpTargetWarnDService{ + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RStatAreaAlarmCountMServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RStatAreaAlarmCountMServiceImpl.java new file mode 100644 index 000000000..f8393190b --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RStatAreaAlarmCountMServiceImpl.java @@ -0,0 +1,91 @@ +package com.njcn.device.pms.service.impl; + +import cn.hutool.core.collection.CollUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.exception.BusinessException; +import com.njcn.device.pms.mapper.RStatAreaAlarmCountMMapper; +import com.njcn.device.pms.pojo.param.RStatAreaAlarmCountMParam; +import com.njcn.device.pms.pojo.po.RStatAreaAlarmCountM; +import com.njcn.device.pms.pojo.vo.RStatAreaAlarmCountMVO; +import com.njcn.device.pms.service.RStatAreaAlarmCountMService; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataEnum; +import com.njcn.system.pojo.po.DictData; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.dto.DeptDTO; +import com.njcn.web.utils.WebUtil; +import lombok.RequiredArgsConstructor; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** +* @author jianghf +* @description 针对表【r_stat_area_alarm_count_m】的数据库操作Service实现 +* @createDate 2022-10-10 14:36:46 +*/ +@Service +@RequiredArgsConstructor +public class RStatAreaAlarmCountMServiceImpl extends ServiceImpl +implements RStatAreaAlarmCountMService{ + + private final DeptFeignClient deptFeignClient; + + private final DicDataFeignClient dicDataFeignClient; + + @Override + public List getAllRStatAreaAlarmCountMList(RStatAreaAlarmCountMParam rStatAreaAlarmCountMParam) { + //获取查询条件 + String id = rStatAreaAlarmCountMParam.getId(); //单位id + if (StringUtils.isBlank(id)) { + throw new BusinessException(CommonResponseEnum.NO_DATA, "单位id不可为空"); + } + String startTime = rStatAreaAlarmCountMParam.getStartTime(); //开始时间 yyyy-MM-dd + String endTime = rStatAreaAlarmCountMParam.getEndTime(); //截止时间 yyyy-MM-dd + //获取所有子部门信息 + List deptDTOList = deptFeignClient.getDeptDescendantIndexes(id, WebUtil.filterDeptType()).getData(); + if (CollUtil.isEmpty(deptDTOList)) { + throw new BusinessException(CommonResponseEnum.NO_DATA, "部门不存在"); + } + //单位id集合 + List orgNoList = deptDTOList.stream().map(DeptDTO::getId).collect(Collectors.toList()); + //将单位信息转为map集合 key: 单位id value: 单位实体 + Map deptDTOMap = deptDTOList.stream().collect(Collectors.toMap(DeptDTO::getId, deptDTO -> deptDTO)); + //获取主网id + DictData mainId = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); + //条件组装: where org_no in (orgNoList) and data_date >= startTime and data_date <= endTime + lambdaQueryWrapper.in(CollUtil.isNotEmpty(orgNoList), RStatAreaAlarmCountM::getOrgNo, orgNoList) + .ge(StringUtils.isNotBlank(startTime), RStatAreaAlarmCountM::getDataDate, startTime) + .le(StringUtils.isNotBlank(endTime), RStatAreaAlarmCountM::getDataDate, endTime) + .eq(RStatAreaAlarmCountM::getDataType, mainId); + + //查询区域告警统计(月)集合 + List records = this.list(lambdaQueryWrapper); + + List resultList; + if (CollUtil.isNotEmpty(records)) { + //填充返回数据 + resultList = records.stream().map(item -> { + RStatAreaAlarmCountMVO rStatAreaAlarmCountMVO = new RStatAreaAlarmCountMVO(); + BeanUtils.copyProperties(item, rStatAreaAlarmCountMVO); + //设置单位名称 + rStatAreaAlarmCountMVO.setOrgName(deptDTOMap.get(rStatAreaAlarmCountMVO.getOrgNo()).getName()); + + return rStatAreaAlarmCountMVO; + }).collect(Collectors.toList()); + } else { + resultList = new ArrayList<>(); + } + return resultList; + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RStatBusbarHarmonicServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RStatBusbarHarmonicServiceImpl.java new file mode 100644 index 000000000..13434c10b --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RStatBusbarHarmonicServiceImpl.java @@ -0,0 +1,122 @@ +package com.njcn.device.pms.service.impl; + +import cn.hutool.core.collection.CollectionUtil; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.device.pms.mapper.RStatBusbarHarmonicMapper; +import com.njcn.device.pms.pojo.param.UniversalFrontEndParam; +import com.njcn.device.pms.pojo.po.PmsMonitorPO; +import com.njcn.device.pms.pojo.vo.RStatBusbarHarmonicVO; +import com.njcn.device.pms.service.RStatBusbarHarmonicService; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.dto.DeptDTO; +import com.njcn.web.utils.WebUtil; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.List; +import java.util.stream.Collectors; + +/** + * 变电站母线电压指标年报业务层实现类 + * + * @author yzh + * @date 2022/10/8 + */ + +@Service +@RequiredArgsConstructor +@Slf4j +public class RStatBusbarHarmonicServiceImpl extends ServiceImpl implements RStatBusbarHarmonicService { + + private final RStatBusbarHarmonicMapper rStatBusbarHarmonicMapper; + + private final DicDataFeignClient dicDataFeignClient; + + private final DeptFeignClient deptFeignClient; + + + /** + * 获取变电站母线电压指标年报 + * + * @param param 前端参数 + * @return 变电站母线电压指标年报返回前端实体类 + */ + @Override + public List getRStatBusbarHarmonic(UniversalFrontEndParam param) { + + // 获取登录用户的部门id +// String deptIndex = RequestUtil.getDeptIndex(); + + // 获取当前用户的部门的子部门信息 + List data = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData(); + + if (CollectionUtil.isNotEmpty(data)) { + // 创建集合用于封装数据 + List info = new ArrayList<>(); + + // 过滤出部门id + List deptIds = data.stream().map(DeptDTO::getId).collect(Collectors.toList()); + // 根据部门id 获取监测点信息 + List monitorInfo = rStatBusbarHarmonicMapper.getMonitorInfo(deptIds); + // 取出母线id + List generatrixIds = monitorInfo.stream().map(PmsMonitorPO::getGeneratrixId).collect(Collectors.toList()); + + // 获取电压字典 + List devVoltageData = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.DEV_VOLTAGE.getCode()).getData(); + + // 通过母线id查询变电站背景谐波年表 + info = rStatBusbarHarmonicMapper.getAnnualReportOfSubstationBusVoltageIndex(param.getStartTime(), param.getEndTime(), generatrixIds); + + // 属性赋值 + for (RStatBusbarHarmonicVO vo : info) { + for (PmsMonitorPO pmsMonitor : monitorInfo) { + if (vo.getBusbarId().equals(pmsMonitor.getGeneratrixId())){ + vo.setDeptId(pmsMonitor.getOrgId()); + } + } + } + + return info; + } else { + return new ArrayList<>(); + } + } + + /** + * 属性赋值 + * + * @param data 当前用户的部门的子部门信息 + * @param annualReportOfSubstationBusVoltageIndex 母线id查询变电站背景谐波年表 + * @param subAndVoltageInfos 母线和变电站信息 + * @return 返回前端集合 + */ + private void attributeCopy(List data, List annualReportOfSubstationBusVoltageIndex, List subAndVoltageInfos) { + // 属性赋值 + for (RStatBusbarHarmonicVO vo : annualReportOfSubstationBusVoltageIndex) { + for (RStatBusbarHarmonicVO subAndVoltageInfo : subAndVoltageInfos) { + if (subAndVoltageInfo.getBusbarId().equals(vo.getBusbarId())) { + vo.setDeptId(subAndVoltageInfo.getDeptId()); + vo.setSubName(subAndVoltageInfo.getSubName()); + vo.setSubVoltageLevel(subAndVoltageInfo.getSubVoltageLevel()); + vo.setBusbarName(subAndVoltageInfo.getBusbarName()); + } + } + } + + // 属性赋值 + for (RStatBusbarHarmonicVO vo : annualReportOfSubstationBusVoltageIndex) { + for (DeptDTO datum : data) { + if (datum.getId().equals(vo.getDeptId())) { + vo.setCompany(datum.getName()); + } + } + } + } + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RStatZwAlarmCountWServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RStatZwAlarmCountWServiceImpl.java new file mode 100644 index 000000000..f9afb4557 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RStatZwAlarmCountWServiceImpl.java @@ -0,0 +1,233 @@ +package com.njcn.device.pms.service.impl; + +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.date.Month; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.exception.BusinessException; +import com.njcn.device.pms.mapper.RStatZwAlarmCountWMapper; +import com.njcn.device.pms.pojo.param.RStatZwAlarmCountWParam; +import com.njcn.device.pms.pojo.po.*; +import com.njcn.device.pms.pojo.vo.ProblemMonitorDetailVO; +import com.njcn.device.pms.pojo.vo.RStatZwAlarmCountWVO; +import com.njcn.device.pms.service.*; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.dto.DeptDTO; +import com.njcn.web.utils.WebUtil; +import lombok.RequiredArgsConstructor; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.text.DecimalFormat; +import java.util.*; +import java.util.stream.Collectors; + +/** +* @author jianghf +* @description 针对表【r_stat_zw_alarm_count_w】的数据库操作Service实现 +* @createDate 2022-10-08 16:35:44 +*/ +@Service +@RequiredArgsConstructor +public class RStatZwAlarmCountWServiceImpl extends ServiceImpl +implements RStatZwAlarmCountWService { + + private final DeptFeignClient deptFeignClient; + + private final RMpPwAlarmDetailDService rMpPwAlarmDetailDService; //【告警明细-日表】服务类 + + private final RMpTargetWarnDService rMpTargetWarnDService; // 【监测点指标告警明细日表】服务类 + + private final IMonitorService iMonitorService; //【监测点】服务类 + + private final IStatationStatService iStatationStatService; //【变电站】服务类 + + private final DicDataFeignClient dicDataFeignClient; //字典 + /*** + * 查询所有告警统计(周) + * @author jianghaifei + * @date 2022-10-09 10:22 + * @param + * @return java.util.List + */ + @Override + public List getAllRStatZwAlarmCountWList(RStatZwAlarmCountWParam rStatZwAlarmCountWParam) { + //获取查询条件 + String id = rStatZwAlarmCountWParam.getId(); //单位id + if (StringUtils.isBlank(id)) { + throw new BusinessException(CommonResponseEnum.NO_DATA, "单位id不可为空"); + } + String startTime = rStatZwAlarmCountWParam.getStartTime(); //开始时间 yyyy-MM-dd + String endTime = rStatZwAlarmCountWParam.getEndTime(); //截止时间 yyyy-MM-dd + //获取所有子部门信息 + List deptDTOList = deptFeignClient.getDeptDescendantIndexes(id, WebUtil.filterDeptType()).getData(); + if (CollUtil.isEmpty(deptDTOList)) { + throw new BusinessException(CommonResponseEnum.NO_DATA, "部门不存在"); + } + //单位id集合 + List orgNoList = deptDTOList.stream().map(DeptDTO::getId).collect(Collectors.toList()); + //将单位信息转为map集合 key: 单位id value: 单位实体 + Map deptDTOMap = deptDTOList.stream().collect(Collectors.toMap(DeptDTO::getId, deptDTO -> deptDTO)); + + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); + //条件组装: where org_no in (orgNoList) and data_date >= startTime and data_date <= endTime + lambdaQueryWrapper.in(CollUtil.isNotEmpty(orgNoList), RStatZwAlarmCountW::getOrgNo, orgNoList) + .ge(StringUtils.isNotBlank(startTime), RStatZwAlarmCountW::getDataDate, startTime) + .le(StringUtils.isNotBlank(endTime), RStatZwAlarmCountW::getDataDate, endTime); + //查询告警统计(周)集合 + List records = this.list(lambdaQueryWrapper); + List resultList; + if (CollUtil.isNotEmpty(records)) { + resultList = records.stream().map(item -> { + RStatZwAlarmCountWVO rStatZwAlarmCountWVO = new RStatZwAlarmCountWVO(); + BeanUtils.copyProperties(item, rStatZwAlarmCountWVO); + //单位名称 + rStatZwAlarmCountWVO.setOrgName(deptDTOMap.get(rStatZwAlarmCountWVO.getOrgNo()).getName()); + DecimalFormat df = new DecimalFormat("###.00"); + //获取有效监测点数量 + Integer monitorEffectiveCount = item.getMonitorEffectiveCount(); + if (monitorEffectiveCount == null || monitorEffectiveCount <= 0) { + throw new BusinessException(CommonResponseEnum.NO_DATA, "有效监测点数量异常"); + } + //计算告警四次及以上监测点占比( * 100 是直接取到百分比) + Double warnMonitorRate = Double.parseDouble(df.format(item.getWarnMonitorCount() / (monitorEffectiveCount * 1.0) * 100)); + rStatZwAlarmCountWVO.setWarnMonitorRate(warnMonitorRate); + //级别'较差'监测点占比( * 100 是直接取到百分比) + Double monitorGradeRate = Double.parseDouble(df.format(item.getMonitorGradeCount() / (monitorEffectiveCount * 1.0) * 100)); + rStatZwAlarmCountWVO.setMonitorGradeRate(monitorGradeRate); + + return rStatZwAlarmCountWVO; + }).collect(Collectors.toList()); + } else { + resultList = new ArrayList<>(); + } + + return resultList; + } + + + /*** + * 查询问题严重的监测点信息 + * @author jianghaifei + * @date 2022-10-13 19:38 + * @param rStatZwAlarmCountWParam + * @return java.util.List + */ + @Override + public List getProblemMonitorDetailList(RStatZwAlarmCountWParam rStatZwAlarmCountWParam) { + //提取参数 + String id = rStatZwAlarmCountWParam.getId(); //单位id + String startTime = rStatZwAlarmCountWParam.getStartTime(); + String endTime = rStatZwAlarmCountWParam.getEndTime(); + + //获取电压等级的字典 + List voltageLevelList = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.DEV_VOLTAGE.getCode()).getData(); + //将电压信息转成map,key:id value:name + Map voltageLevelMap = voltageLevelList.stream().collect(Collectors.toMap(DictData::getId, DictData::getName)); + //查询当前单位下监测点idList + LambdaQueryWrapper monitorLambdaQueryWrapper = new LambdaQueryWrapper<>(); + monitorLambdaQueryWrapper.eq(Monitor::getOrgId, id); + List orgMeasurementPointIdList = iMonitorService.list(monitorLambdaQueryWrapper).stream().map(Monitor::getId).collect(Collectors.toList()); + //以周为时间段,查询告警超过四次的监测点信息 + LambdaQueryWrapper alarmDetailWrapper = new LambdaQueryWrapper<>(); + /* + 组装查询条件:select count(1) from r_mp_pw_alarm_detail_d where data_date <= '2022-10-23' + and data_date >= '2022-10-17' and measurement_point_id in (orgMeasurementPointIdList) + group by measurement_point_id having count(measurement_point_id) >= 4 + */ + alarmDetailWrapper.select(RMpPwAlarmDetailD::getMeasurementPointId) + .in(RMpPwAlarmDetailD::getMeasurementPointId, orgMeasurementPointIdList) + .ge(StringUtils.isNotBlank(startTime), RMpPwAlarmDetailD::getDataDate, startTime) + .le(StringUtils.isNotBlank(endTime), RMpPwAlarmDetailD::getDataDate, endTime) + .groupBy(RMpPwAlarmDetailD::getMeasurementPointId) + .having("count(measurement_point_id) >= {0}", 4); + //告警超过四次的监测点idList + List measurementPointIdList = rMpPwAlarmDetailDService.listObjs(alarmDetailWrapper, Object::toString); + + // 计算问题严重的监测点 + // 获取查询条件:月份开始时间、结束时间 + Date date = DateUtil.parse(startTime); + String startTimeOfMonth = DateUtil.format(DateUtil.beginOfMonth(date), "yyyy-MM-dd"); + String endTimeOfMonth = DateUtil.format(DateUtil.endOfMonth(date), "yyyy-MM-dd"); + //获取查询月份的自然月天数 + int monthDay = Month.of(DateUtil.month(date)).getLastDay(DateUtil.isLeapYear(DateUtil.year(date))); + + //根据单位下监测点idList、月份条件查询监测点告警信息 + LambdaQueryWrapper targetWarnWrapper = new LambdaQueryWrapper<>(); + //组装查询条件: + targetWarnWrapper.in(RMpTargetWarnD::getMeasurementPointId, orgMeasurementPointIdList) + .ge(StringUtils.isNotBlank(startTime), RMpTargetWarnD::getDataDate, startTimeOfMonth) + .le(StringUtils.isNotBlank(endTime), RMpTargetWarnD::getDataDate, endTimeOfMonth); + List targetWarnDList = rMpTargetWarnDService.list(targetWarnWrapper); + //使用stream的分组方法(Collectors.partitioningBy())对告警记录和没有告警的记录进行分组 true:有告警的记录 false:没有告警的记录 +// Map> booleanListMap = targetWarnDList.stream().collect(Collectors.groupingBy( +// item -> item.getIsEffective() == 1 || item.getIsHarmonic() == 1 || item.getIsEvent() == 1 || item.getIsWarn() == 1 +// || item.getIsVDevWarn() == 1 || item.getIsFreqWarn() == 1 || item.getIsUnbalanceWarn() == 1 || item.getIsVWarn() == 1 +// || item.getIsFlickerWarn() == 1 || item.getIsSagWarn() == 1 || item.getIsInterruptWarn() == 1)); + //提取有告警情况的记录 +// List rMpTargetWarnDS4Warn = booleanListMap.get(true); + //提取没有告警情况的记录 +// List rMpTargetWarnDS4Normal = booleanListMap.get(true); + //过滤出有告警信息的记录 + List rMpTargetWarnDS4Warn = targetWarnDList.stream().filter( + item -> item.getIsEffective() == 1 || item.getIsHarmonic() == 1 || item.getIsEvent() == 1 || item.getIsWarn() == 1 + || item.getIsVDevWarn() == 1 || item.getIsFreqWarn() == 1 || item.getIsUnbalanceWarn() == 1 || item.getIsVWarn() == 1 + || item.getIsFlickerWarn() == 1 || item.getIsSagWarn() == 1 || item.getIsInterruptWarn() == 1).collect(Collectors.toList()); + //创建map集合,用于统计某个监测点的记录条数 + HashMap monitorCountMap = new HashMap<>(); + for (RMpTargetWarnD item : rMpTargetWarnDS4Warn) { + if (monitorCountMap.containsKey(item.getMeasurementPointId())) { + monitorCountMap.put(item.getMeasurementPointId(), monitorCountMap.get(item.getMeasurementPointId()) + 1); + } else { + monitorCountMap.put(item.getMeasurementPointId(), 1); + } + } + //创建map集合,key:监测点id value:严重程度 + HashMap severityMap = new HashMap<>(); + for (String measurementPointId : monitorCountMap.keySet()) { + Integer integer = monitorCountMap.get(measurementPointId); //当前遍历的监测点告警天数 + double severity = integer / (monthDay * 1.0); //严重程度 + severityMap.put(measurementPointId, severity); + } + //给严重程度从大到小排序,并将严重程度前【30%】的监测点id放到List集合中 +// List severity = new ArrayList<>(); +// severityMap.entrySet().stream().sorted(Map.Entry.comparingByValue(Comparator.reverseOrder())).collect(Collectors.toList()) +// .subList(0, (int)(severityMap.size() * 0.3)).forEach(item -> severity.add(item.getKey())); + List severity = severityMap.entrySet().stream().sorted(Map.Entry.comparingByValue(Comparator.reverseOrder())) + .limit((int)Math.ceil(severityMap.size() * 0.3)).map(Map.Entry::getKey).collect(Collectors.toList()); + //合并告警超过四次的监测点ids和严重程度前30%监测点dis + measurementPointIdList.addAll(severity); + //去除集合中重复的监测点id,得到最终的有严重问题的监测点id集合 + List lastMeasurementPointList = measurementPointIdList.stream().distinct().collect(Collectors.toList()); + //根据监测点ids查询监测点信息 + monitorLambdaQueryWrapper.clear(); + monitorLambdaQueryWrapper.in(Monitor::getId, lastMeasurementPointList); + List monitorList = iMonitorService.list(monitorLambdaQueryWrapper); + //提取出监测点相关的变电站id,获取变电站电压等级map(key: 变电站id value: 电压等级) + List powerIdList = monitorList.stream().map(Monitor::getPowerrId).collect(Collectors.toList()); + LambdaQueryWrapper stationLambdaQueryWrapper = new LambdaQueryWrapper<>(); + stationLambdaQueryWrapper.in(StatationStat::getPowerId, powerIdList); + Map stationVoltageLevelMap = iStatationStatService.list(stationLambdaQueryWrapper).stream() + .collect(Collectors.toMap(StatationStat::getPowerId, StatationStat::getVoltageLevel)); + //封装返回数据 + List resultList = monitorList.stream().map(item -> { + ProblemMonitorDetailVO problemMonitorDetailVO = new ProblemMonitorDetailVO(); + problemMonitorDetailVO.setOrgNo(item.getOrgId()); //单位id + problemMonitorDetailVO.setOrgName(item.getOrgName()); //单位名称 + problemMonitorDetailVO.setMonitorId(item.getId()); //监测点id + problemMonitorDetailVO.setMonitorName(item.getName()); //监测点名称 + problemMonitorDetailVO.setPowerName(item.getPowerrName()); //变电站名称 + problemMonitorDetailVO.setVoltageLevel(stationVoltageLevelMap.get(item.getPowerrId())); //变电站电压等级id + problemMonitorDetailVO.setVoltageLevelName(voltageLevelMap.get(stationVoltageLevelMap.get(item.getPowerrId()))); //变电站电压等级 + + return problemMonitorDetailVO; + }).collect(Collectors.toList()); + return resultList; + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RmpEventDetailServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RmpEventDetailServiceImpl.java new file mode 100644 index 000000000..db093e70a --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/RmpEventDetailServiceImpl.java @@ -0,0 +1,37 @@ +package com.njcn.device.pms.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.device.pms.mapper.RmpEventDetailMapper; +import com.njcn.device.pms.pojo.param.UniversalFrontEndParam; +import com.njcn.device.pms.pojo.vo.RmpEventDetailVO; +import com.njcn.device.pms.service.RmpEventDetailService; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 暂态事件明细 + * + * @author yzh + * @date 2022/10/12 + */ +@Service +@Slf4j +@RequiredArgsConstructor +public class RmpEventDetailServiceImpl extends ServiceImpl implements RmpEventDetailService { + + private final RmpEventDetailMapper rmpEventDetailMapper; + + /** + * 获取暂态事件明细 + * + * @param param 前端参数 + * @return 暂态事件明细 + */ + @Override + public List getRmpEventDetail(UniversalFrontEndParam param) { + return null; + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/SourceManagementServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/SourceManagementServiceImpl.java new file mode 100644 index 000000000..2718245e1 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/SourceManagementServiceImpl.java @@ -0,0 +1,20 @@ +package com.njcn.device.pms.service.impl; + +import com.njcn.device.pms.mapper.SourceManagementMapper; +import com.njcn.device.pms.pojo.po.SourceManagement; +import com.njcn.device.pms.service.ISourceManagementService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Service +public class SourceManagementServiceImpl extends ServiceImpl implements ISourceManagementService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/StatationStatServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/StatationStatServiceImpl.java new file mode 100644 index 000000000..0dea3b711 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/StatationStatServiceImpl.java @@ -0,0 +1,72 @@ +package com.njcn.device.pms.service.impl; + +import com.njcn.device.pms.mapper.StatationStatMapper; +import com.njcn.device.pms.pojo.dto.PmsStatationStatInfoDTO; +import com.njcn.device.pms.pojo.param.StatationStatParam; +import com.njcn.device.pms.pojo.param.PmsStatationStatInfoParam; +import com.njcn.device.pms.pojo.po.StatationStat; +import com.njcn.device.pms.pojo.po.StatationStat; +import com.njcn.device.pms.service.IStatationStatService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.web.pojo.param.BaseParam; +import lombok.RequiredArgsConstructor; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + *

+ * 服务实现类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Service +@RequiredArgsConstructor +public class StatationStatServiceImpl extends ServiceImpl implements IStatationStatService { + + private final StatationStatMapper statationStatMapper; + + /** + * 获取指定的变电站信息 + * + * @param pmsStatationStatInfoParam 变电站详情数据入参 + * @return 指定的变电站信息 + */ + @Override + public List getStatationStatInfo(PmsStatationStatInfoParam pmsStatationStatInfoParam) { + return statationStatMapper.getStatationStatInfo(pmsStatationStatInfoParam); + } + + + @Override + public boolean addStatationStat(StatationStatParam statationStatParam) { + StatationStat statationStat = new StatationStat(); + BeanUtils.copyProperties(statationStatParam, statationStat); + return this.save(statationStat); + } + + @Override + public boolean updateStatationStat(StatationStatParam statationStatParam) { + StatationStat statationStat = new StatationStat(); + BeanUtils.copyProperties(statationStatParam, statationStat); + return this.save(statationStat); + } + + @Override + public boolean delStatationStat(List statationStatIds) { + return this.removeByIds(statationStatIds); + } + + @Override + public StatationStat getStatationStatById(String statationStatId) { + return this.getById(statationStatId); + } + + @Override + public List getStatationStatList(BaseParam baseParam) { + return this.list(); + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/StatisticsRunMonitorServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/StatisticsRunMonitorServiceImpl.java new file mode 100644 index 000000000..936a1aa5e --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/StatisticsRunMonitorServiceImpl.java @@ -0,0 +1,20 @@ +package com.njcn.device.pms.service.impl; + +import com.njcn.device.pms.mapper.StatisticsRunMonitorMapper; +import com.njcn.device.pms.pojo.po.StatisticsRunMonitor; +import com.njcn.device.pms.service.IStatisticsRunMonitorService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Service +public class StatisticsRunMonitorServiceImpl extends ServiceImpl implements IStatisticsRunMonitorService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/TerminalEliminateDataServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/TerminalEliminateDataServiceImpl.java new file mode 100644 index 000000000..907521cc2 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/TerminalEliminateDataServiceImpl.java @@ -0,0 +1,20 @@ +package com.njcn.device.pms.service.impl; + +import com.njcn.device.pms.mapper.TerminalEliminateDataMapper; +import com.njcn.device.pms.pojo.po.TerminalEliminateData; +import com.njcn.device.pms.service.ITerminalEliminateDataService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Service +public class TerminalEliminateDataServiceImpl extends ServiceImpl implements ITerminalEliminateDataService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/TerminalServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/TerminalServiceImpl.java new file mode 100644 index 000000000..59cf3002d --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/TerminalServiceImpl.java @@ -0,0 +1,109 @@ +package com.njcn.device.pms.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.njcn.common.pojo.enums.common.DataStateEnum; +import com.njcn.common.pojo.exception.BusinessException; +import com.njcn.device.pms.enums.PmsDeviceResponseEnum; +import com.njcn.device.pms.mapper.TerminalMapper; +import com.njcn.device.pms.pojo.param.PmsTerminalParam; +import com.njcn.device.pms.pojo.po.Terminal; +import com.njcn.device.pms.pojo.vo.PmsTerminalVO; +import com.njcn.device.pms.service.ITerminalService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.web.factory.PageFactory; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + *

+ * 监测终端台账 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Service +public class TerminalServiceImpl extends ServiceImpl implements ITerminalService { + + @Override + public Page getTerminalList(PmsTerminalParam.QueryParam queryParam) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.ne("pms_terminal.status", DataStateEnum.DELETED.getCode()); + if(queryParam.getStatus().equals(1)){ + queryWrapper.eq("pms_terminal.status",1); + } + //初始化分页数据 + return this.baseMapper.page(new Page<>(PageFactory.getPageNum(queryParam), PageFactory.getPageSize(queryParam)), queryWrapper); + } + + /** + * 根据id查询 + * @author hany + * @date 2022/10/27 + */ + @Override + public Terminal getTerminalById(String id) { + return this.getById(id); + } + + /** + * 新增监测终端台账 + * @author hany + * @date 2022/10/27 + */ + @Override + public boolean add(PmsTerminalParam terminalParam) { + checkName(terminalParam,true); + Terminal terminal = new Terminal(); + BeanUtils.copyProperties(terminalParam,terminal); + //设为正常状态 + terminal.setStatus(DataStateEnum.ENABLE.getCode()); + return this.save(terminal); + } + + /** + * 修改监测终端台账 + * @author hany + * @date 2022/10/27 + */ + @Override + public boolean update(PmsTerminalParam updateParam) { + checkName(updateParam,false); + Terminal terminal = new Terminal(); + BeanUtils.copyProperties(updateParam,terminal); + return this.updateById(terminal); + } + + /** + * 删除 + * @param ids + */ + @Override + public boolean delete(List ids) { + return this.lambdaUpdate().set(Terminal::getStatus, DataStateEnum.DELETED.getCode()).in(Terminal::getId, ids).update(); + } + + /** + * 名称重复校验 + */ + private void checkName(PmsTerminalParam terminalParam, boolean flag){ + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); + lambdaQueryWrapper.eq(Terminal::getName,terminalParam.getName()); + //修改 + if(!flag){ + if(terminalParam instanceof PmsTerminalParam){ + lambdaQueryWrapper.ne(Terminal::getId,terminalParam.getId()); + } + } + int result = this.count(lambdaQueryWrapper); + //大于等于1个则表示重复 + if (result >= 1) { + throw new BusinessException(PmsDeviceResponseEnum.MODEL_NAME_REPEAT); + } + + } +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/TractionStationServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/TractionStationServiceImpl.java new file mode 100644 index 000000000..1c78942d2 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/TractionStationServiceImpl.java @@ -0,0 +1,106 @@ +package com.njcn.device.pms.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.njcn.common.pojo.enums.common.DataStateEnum; +import com.njcn.common.pojo.exception.BusinessException; +import com.njcn.device.pms.enums.PmsDeviceResponseEnum; +import com.njcn.device.pms.mapper.TractionStationMapper; +import com.njcn.device.pms.pojo.param.TractionStationParam; +import com.njcn.device.pms.pojo.po.TractionStation; +import com.njcn.device.pms.service.ITractionStationService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.web.pojo.param.BaseParam; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + *

+ * 服务实现类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Service +public class TractionStationServiceImpl extends ServiceImpl implements ITractionStationService { + + /** + * 查询牵引站列表 + * @param baseParam + * @return + */ + @Override + public List getTractionStationList(BaseParam baseParam) { + return this.list(); + } + + /** + * 根据ID查询牵引站信息 + * @param tractionStationId + * @return + */ + @Override + public TractionStation getTractionStationById(String tractionStationId) { + return this.getById(tractionStationId); + } + + /** + * 新增牵引站信息 + * @author hany + * @date 2022/10/28 + */ + @Override + public boolean add(TractionStationParam tractionStationParam) { + checkName(tractionStationParam,true); + TractionStation tractionStation = new TractionStation(); + BeanUtils.copyProperties(tractionStationParam,tractionStation); + //设为正常状态 + tractionStation.setStatus(DataStateEnum.ENABLE.getCode()); + return this.save(tractionStation); + } + + /** + * 修改牵引站信息 + * @author hany + * @date 2022/10/28 + */ + @Override + public boolean update(TractionStationParam updateParam) { + checkName(updateParam,false); + TractionStation tractionStation = new TractionStation(); + BeanUtils.copyProperties(updateParam,tractionStation); + return this.updateById(tractionStation); + } + + /** + * 删除 + * @param ids + */ + @Override + public boolean delete(List ids) { + return this.lambdaUpdate().set(TractionStation::getStatus, DataStateEnum.DELETED.getCode()).in(TractionStation::getId, ids).update(); + } + + /** + * 名称重复校验 + */ + private void checkName(TractionStationParam tractionStationParam, boolean flag){ + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); + lambdaQueryWrapper.eq(TractionStation::getName,tractionStationParam.getName()); + //修改 + if(!flag){ + if(tractionStationParam instanceof TractionStationParam){ + lambdaQueryWrapper.ne(TractionStation::getId,tractionStationParam.getId()); + } + } + int result = this.count(lambdaQueryWrapper); + //大于等于1个则表示重复 + if (result >= 1) { + throw new BusinessException(PmsDeviceResponseEnum.MODEL_NAME_REPEAT); + } + + } + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/TransientStasticDataServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/TransientStasticDataServiceImpl.java new file mode 100644 index 000000000..280b2a503 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/TransientStasticDataServiceImpl.java @@ -0,0 +1,20 @@ +package com.njcn.device.pms.service.impl; + +import com.njcn.device.pms.mapper.TransientStasticDataMapper; +import com.njcn.device.pms.pojo.po.TransientStasticData; +import com.njcn.device.pms.service.ITransientStasticDataService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Service +public class TransientStasticDataServiceImpl extends ServiceImpl implements ITransientStasticDataService { + +} diff --git a/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/TreatTransientDetailDataServiceImpl.java b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/TreatTransientDetailDataServiceImpl.java new file mode 100644 index 000000000..8b1b9dd11 --- /dev/null +++ b/pqs-device/pms-device/pms-device-boot/src/main/java/com/njcn/device/pms/service/impl/TreatTransientDetailDataServiceImpl.java @@ -0,0 +1,20 @@ +package com.njcn.device.pms.service.impl; + +import com.njcn.device.pms.mapper.TreatTransientDetailDataMapper; +import com.njcn.device.pms.pojo.po.TreatTransientDetailData; +import com.njcn.device.pms.service.ITreatTransientDetailDataService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author hongawen + * @since 2022-10-14 + */ +@Service +public class TreatTransientDetailDataServiceImpl extends ServiceImpl implements ITreatTransientDetailDataService { + +} diff --git a/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/DeptLineFeignClient.java b/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/DeptLineFeignClient.java index 5d67f6004..b52a54a09 100644 --- a/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/DeptLineFeignClient.java +++ b/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/DeptLineFeignClient.java @@ -8,6 +8,7 @@ import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; import java.util.List; +import java.util.Map; /** * @author denghuajun @@ -24,4 +25,13 @@ public interface DeptLineFeignClient { @PostMapping("removeBind") HttpResult removeBind(@RequestParam("id") String id); + /** + * @Description:获取部门和监测点的关系(分稳态暂态) + * @Param: [devDataType] 0:暂态 1:稳态 + * @return: com.njcn.common.pojo.response.HttpResult + * @Author: clam + * @Date: 2022/10/19 + */ + @PostMapping("getLineByDeptRelation") + HttpResult>> getLineByDeptRelation(@RequestParam("devDataType") Integer devDataType); } diff --git a/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/LineFeignClient.java b/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/LineFeignClient.java index 5005db8ba..da8ae027d 100644 --- a/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/LineFeignClient.java +++ b/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/LineFeignClient.java @@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; import java.util.List; +import java.util.Map; /** * @author denghuajun @@ -255,4 +256,26 @@ public interface LineFeignClient { */ @PostMapping("getOnLineDevLine") HttpResult> getOnLineDevLine(@RequestBody List lineIds); + + /** + * @Description: 获取变电站和监测点的关系(分稳态暂态) + * @Param: [devDataType] 0:暂态 1:稳态 + * @return: com.njcn.common.pojo.response.HttpResult>> + * @Author: clam + * @Date: 2022/10/20 + */ + @PostMapping("getLineBySubstationRelation") + HttpResult>> getLineBySubstationRelation(@RequestParam("devDataType") Integer devDataType); + + /** + * 获取监测点基础详情 + * @param lineIds 监测点id集合 + * @return 监测点详情信息 + * @author cdf + * @date 2022/10/26 + */ + @PostMapping("getLineDetailList") + HttpResult> getLineDetailList(@RequestBody List lineIds); + + } diff --git a/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/fallback/DeptLineFeignClientFallbackFactory.java b/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/fallback/DeptLineFeignClientFallbackFactory.java index 2a6da3af7..f8deea0f1 100644 --- a/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/fallback/DeptLineFeignClientFallbackFactory.java +++ b/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/fallback/DeptLineFeignClientFallbackFactory.java @@ -10,6 +10,7 @@ import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; import java.util.List; +import java.util.Map; /** * @author denghuajun @@ -48,6 +49,12 @@ public class DeptLineFeignClientFallbackFactory implements FallbackFactory>> getLineByDeptRelation(Integer devDataType) { + log.error("{}异常,降级处理,异常为:{}", "获取部门和监测点的关系(分稳态暂态)", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } }; } } diff --git a/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/fallback/LineFeignClientFallbackFactory.java b/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/fallback/LineFeignClientFallbackFactory.java index 9d1543c5b..eb26e16f4 100644 --- a/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/fallback/LineFeignClientFallbackFactory.java +++ b/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/api/fallback/LineFeignClientFallbackFactory.java @@ -14,8 +14,11 @@ import com.njcn.device.pq.utils.DeviceEnumUtil; import feign.hystrix.FallbackFactory; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestParam; import java.util.List; +import java.util.Map; /** * @author denghuajun @@ -192,6 +195,18 @@ public class LineFeignClientFallbackFactory implements FallbackFactory>> getLineBySubstationRelation(@RequestParam("devDataType") Integer devDataType) { + log.error("{}异常,降级处理,异常为:{}", "获取变电站和监测点的关系(分稳态暂态): ", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + + @Override + public HttpResult> getLineDetailList(@RequestBody List lineIds) { + log.error("{}异常,降级处理,异常为:{}", "获取监测点基础详情异常: ", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + }; } diff --git a/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/pojo/vo/LineDetailDataVO.java b/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/pojo/vo/LineDetailDataVO.java index 48131a24d..fd12a2bee 100644 --- a/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/pojo/vo/LineDetailDataVO.java +++ b/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/pojo/vo/LineDetailDataVO.java @@ -75,4 +75,10 @@ public class LineDetailDataVO { @ApiModelProperty(name = "dealCapacity",value = "用户协议容量(MVA)") private Float dealCapacity; + /** + * 测量间隔(1-10分钟) + */ + @ApiModelProperty(name = "timeInterval",value = "测量间隔(1-10分钟)") + private Integer timeInterval; + } diff --git a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/controller/DeptLineController.java b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/controller/DeptLineController.java index ac1f91269..ae1bb47a1 100644 --- a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/controller/DeptLineController.java +++ b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/controller/DeptLineController.java @@ -19,6 +19,7 @@ import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import java.util.List; +import java.util.Map; /** * @author denghuajun @@ -107,5 +108,14 @@ public class DeptLineController extends BaseController { return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); } + @PostMapping("/getLineByDeptRelation") + @ApiOperation("获取部门和监测点的关系(分稳态暂态)") + @ApiImplicitParam(name = "devDataType", value = "数据类型(0:暂态系统;1:稳态系统;)", required = true) + public HttpResult> > getLineByDeptRelation(@RequestParam("devDataType") Integer devDataType) { + String methodDescribe = getMethodDescribe("getLineByDeptRelation"); + Map> map= deptLineService.getLineByDeptRelation(devDataType); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, map, methodDescribe); + } + } diff --git a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/controller/LineController.java b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/controller/LineController.java index e98234640..18e345de0 100644 --- a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/controller/LineController.java +++ b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/controller/LineController.java @@ -34,6 +34,7 @@ import springfox.documentation.annotations.ApiIgnore; import java.util.ArrayList; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.stream.Collectors; import java.util.stream.Stream; @@ -124,7 +125,7 @@ public class LineController extends BaseController { @ApiOperation("根据监测点id获取越限数值") @ApiImplicitParam(name = "id", value = "监测点id", required = true) public HttpResult getOverLimitData(@RequestParam("id") String id) { - String methodDescribe = getMethodDescribe("getLineOverLimitData"); + String methodDescribe = getMethodDescribe("getOverLimitData"); Overlimit result = lineService.getOverLimitData(id); return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe); } @@ -375,4 +376,28 @@ public class LineController extends BaseController { } + @PostMapping("/getLineBySubstationRelation") + @ApiOperation("获取变电站和监测点的关系(分稳态暂态)") + @ApiImplicitParam(name = "devDataType", value = "数据类型(0:暂态系统;1:稳态系统;)", required = true) + public HttpResult>> getLineBySubstationRelation(@RequestParam("devDataType") Integer devDataType) { + String methodDescribe = getMethodDescribe("getLineBySubstationRelation"); + Map> map= lineService.getLineBySubstationRelation(devDataType); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, map, methodDescribe); + } + + + /** + * 获取基础监测点详细信息 + * @author cdf + * @date 2022/10/26 + */ + @PostMapping("/getLineDetailList") + @ApiOperation("获取基础监测点详细信息") + @ApiImplicitParam(name = "lineIds", value = "监测点id集合", required = true) + public HttpResult> getLineDetailList(@RequestBody List lineIds) { + String methodDescribe = getMethodDescribe("getLineDetailList"); + List resList= lineService.getLineDetailList(lineIds); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, resList, methodDescribe); + } + } diff --git a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/DeptLineMapper.java b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/DeptLineMapper.java index 620b7768b..53d4f4e65 100644 --- a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/DeptLineMapper.java +++ b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/DeptLineMapper.java @@ -4,6 +4,7 @@ package com.njcn.device.pq.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.njcn.device.pq.pojo.po.DeptLine; import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; import org.springframework.web.bind.annotation.PostMapping; import java.util.List; @@ -44,4 +45,26 @@ public interface DeptLineMapper extends BaseMapper { * @return */ List getMyselfBindLine(@Param("deptId")String deptId); + + @Select ("SELECT\n" + + "\tpq_dept_line.Id,\n" + + "\tpq_dept_line.Line_Id\n" + + "FROM\n" + + "\tpq_dept_line\n" + + "WHERE\n" + + "\tEXISTS (\n" + + "\t\tSELECT\n" + + "\t\t\t1\n" + + "\t\tFROM\n" + + "\t\t\tpq_device,\n" + + "\t\t\tpq_line\n" + + "\t\tWHERE\n" + + "\t\t\tSUBSTRING_INDEX(\n" + + "\t\t\t\tSUBSTRING_INDEX(pq_line.Pids, ',', 5),\n" + + "\t\t\t\t',',\n" + + "\t\t\t\t- 1\n" + + "\t\t\t) = pq_device.Id\n" + + "\t\tAND pq_line.Id = pq_dept_line.Line_Id and (pq_device.Dev_Data_Type= 2 or pq_device.Dev_Data_Type = #{devDataType})\n" + + "\t)") + List getLineByDeptRelation(@Param("devDataType")Integer devDataType); } diff --git a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/LineDetailMapper.java b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/LineDetailMapper.java index 1ca0632ac..aa97fa3bb 100644 --- a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/LineDetailMapper.java +++ b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/LineDetailMapper.java @@ -3,6 +3,7 @@ package com.njcn.device.pq.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.njcn.device.pq.pojo.po.LineDetail; +import com.njcn.device.pq.pojo.vo.LineDetailDataVO; import org.apache.ibatis.annotations.Param; import java.util.List; @@ -33,4 +34,12 @@ public interface LineDetailMapper extends BaseMapper { */ List getSpecifyLineDetail(@Param("list") List list); + + /** + * 获取指定的监测点信息以及电压等级(需要其他字段可在基础上扩充) + * @param lineIds 监测点集合 + * @return 结果 + */ + List getLineDetailInfo(@Param("lineIds") List lineIds); + } diff --git a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/LineMapper.java b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/LineMapper.java index 8c2be30e5..22a39cb76 100644 --- a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/LineMapper.java +++ b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/LineMapper.java @@ -16,6 +16,7 @@ import com.njcn.device.pq.pojo.vo.*; import com.njcn.device.pq.pojo.dto.PollutionSubstationDTO; import com.njcn.web.pojo.vo.LineDataVO; import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; import java.util.List; @@ -330,4 +331,31 @@ public interface LineMapper extends BaseMapper { * @return 在线或离线监测点ids */ List getOnOrUnLine(@Param("list")List lineIds,@Param("comFlag")Integer comFlag); + /** + * @Description: 获取变电站id和监测点id用 + * @Param: [devDataType] + * @return: java.util.List + * @Author: clam + * @Date: 2022/10/20 + */ + @Select ("SELECT\n" + + "\tpq_line.Id,\n" + + "\tSUBSTRING_INDEX(\n" + + "\t\tSUBSTRING_INDEX(pq_line.Pids, ',', 4),\n" + + "\t\t',' ,- 1\n" + + "\t) AS Pids\n" + + "FROM\n" + + "\tpq_line,\n" + + "\tpq_device\n" + + "WHERE\n" + + "\tpq_line.`Level` = 6\n" + + "AND SUBSTRING_INDEX(\n" + + "\tSUBSTRING_INDEX(pq_line.Pids, ',', 5),\n" + + "\t',' ,- 1\n" + + ") = pq_device.Id\n" + + "AND (\n" + + "\tpq_device.Dev_Data_Type = 2\n" + + "\tOR pq_device.Dev_Data_Type = #{devDataType}\n" + + ") ") + List getLineBySubstationRelation(@Param("devDataType")Integer devDataType); } diff --git a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/mapping/LineDetailMapper.xml b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/mapping/LineDetailMapper.xml index 41dccd685..d727fbc89 100644 --- a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/mapping/LineDetailMapper.xml +++ b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/mapping/LineDetailMapper.xml @@ -36,4 +36,20 @@ A1.Pid = A2.Id AND A2.Pid = A3.Id AND A3.Id = C.Id AND C.Dev_Model = 1 AND C.Dev_Data_Type IN (1,2) AND C.Run_Flag = 0 AND A1.Id = D.Id + +
diff --git a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/DeptLineService.java b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/DeptLineService.java index b94bdee55..f5643ebee 100644 --- a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/DeptLineService.java +++ b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/DeptLineService.java @@ -5,6 +5,7 @@ import com.njcn.device.pq.pojo.po.DeptLine; import com.njcn.web.pojo.param.DeptLineParam; import java.util.List; +import java.util.Map; /** * @author denghuajun @@ -52,4 +53,12 @@ public interface DeptLineService extends IService { * @date 2022/1/25 9:28 */ List getLineByDeptId(String id); + /** + * @Description: 获取部门和监测点的关系(分稳态暂态) + * @Param: [devDataType] + * @return: java.util.Map> + * @Author: clam + * @Date: 2022/10/19 + */ + Map> getLineByDeptRelation(Integer devDataType); } diff --git a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/LineService.java b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/LineService.java index 0a68d31b5..dab667750 100644 --- a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/LineService.java +++ b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/LineService.java @@ -5,10 +5,13 @@ import com.njcn.device.pq.pojo.dto.PollutionParamDTO; import com.njcn.device.pq.pojo.dto.PollutionSubstationDTO; import com.njcn.device.pq.pojo.param.DeviceInfoParam; 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.web.bind.annotation.RequestBody; import java.util.List; +import java.util.Map; /** * 监测点类 @@ -155,4 +158,22 @@ public interface LineService { * @Date: 2022/10/10 */ List getDeptLineCount(DeviceInfoParam deviceInfoParam); + + /** + * @Description: 获取变电站和监测点的关系(分稳态暂态) + * @Param: [devDataType] + * @return: java.util.Map> + * @Author: clam + * @Date: 2022/10/20 + */ + Map> getLineBySubstationRelation(Integer devDataType); + + /** + * 获取监测点基础详情 + * @param lineIds 监测点id集合 + * @return 监测点详情信息 + * @author cdf + * @date 2022/10/26 + */ + List getLineDetailList(List lineIds); } diff --git a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/impl/DeptLineServiceImpl.java b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/impl/DeptLineServiceImpl.java index db582bf09..7fde625c7 100644 --- a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/impl/DeptLineServiceImpl.java +++ b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/impl/DeptLineServiceImpl.java @@ -11,7 +11,9 @@ import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.stream.Collectors; /** @@ -24,6 +26,8 @@ import java.util.stream.Collectors; @RequiredArgsConstructor public class DeptLineServiceImpl extends ServiceImpl implements DeptLineService { + private final DeptLineMapper deptLineMapper; + @Override @Transactional(rollbackFor = Exception.class) public void deptBindLine(DeptLineParam deptLineParam) { @@ -67,5 +71,24 @@ public class DeptLineServiceImpl extends ServiceImpl i return this.lambdaQuery().in(DeptLine::getId, id).list().stream().map(DeptLine::getLineId).distinct().collect(Collectors.toList()); } + /** + * @param devDataType + * @Description: 获取部门和监测点的关系(分稳态暂态) + * @Param: [devDataType] + * @return: java.util.Map> + * @Author: clam + * @Date: 2022/10/19 + */ + @Override + public Map> getLineByDeptRelation(Integer devDataType) { + + Map> map = new HashMap<> (); + + List deptLines = deptLineMapper.getLineByDeptRelation(devDataType); + Map> collect = deptLines.stream ( ).collect (Collectors.groupingBy (DeptLine::getId, Collectors.mapping (DeptLine::getLineId,Collectors.toList ()))); + + return collect; + } + } diff --git a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/impl/LineServiceImpl.java b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/impl/LineServiceImpl.java index e1bacba3b..1b430e6c6 100644 --- a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/impl/LineServiceImpl.java +++ b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/service/impl/LineServiceImpl.java @@ -776,6 +776,31 @@ public class LineServiceImpl extends ServiceImpl implements Li return deptLineCountVOList; } + /** + * @param devDataType + * @Description: 获取变电站和监测点的关系(分稳态暂态) + * @Param: [devDataType] + * @return: java.util.Map> + * @Author: clam + * @Date: 2022/10/20 + */ + @Override + public Map> getLineBySubstationRelation(Integer devDataType) { + + Map> map = new HashMap<> (); + + List deptLines = lineMapper.getLineBySubstationRelation(devDataType); + Map> collect = deptLines.stream ( ).collect (Collectors.groupingBy (Line::getPids, Collectors.mapping (Line::getId,Collectors.toList ()))); + + return collect; + } + + @Override + public List getLineDetailList(List lineIds){ + + return lineDetailMapper.getLineDetailInfo(lineIds); + } + /** * 根据用户选择的时间区间返回月份日期 */ diff --git a/pqs-event/event-boot/src/main/java/com/njcn/event/service/Impl/ReportController.java b/pqs-event/event-boot/src/main/java/com/njcn/event/service/Impl/ReportController.java new file mode 100644 index 000000000..a2b73ad75 --- /dev/null +++ b/pqs-event/event-boot/src/main/java/com/njcn/event/service/Impl/ReportController.java @@ -0,0 +1,1939 @@ +package com.njcn.event.service.Impl;//package com.njcn.event.service.Impl; +// +//import java.io.ByteArrayInputStream; +//import java.io.File; +//import java.io.FileInputStream; +//import java.io.FileOutputStream; +//import java.io.IOException; +//import java.io.InputStream; +//import java.io.OutputStream; +//import java.io.UnsupportedEncodingException; +//import java.math.BigInteger; +//import java.net.URLEncoder; +//import java.text.DecimalFormat; +//import java.text.SimpleDateFormat; +//import java.util.ArrayList; +//import java.util.Collections; +//import java.util.Comparator; +//import java.util.Date; +//import java.util.List; +//import java.util.Properties; +// +//import javax.annotation.Resource; +//import javax.servlet.http.HttpServletRequest; +//import javax.servlet.http.HttpServletResponse; +//import javax.servlet.http.HttpSession; +// +//import com.njcn.pojo.data.WaveSvg; +//import org.apache.commons.lang3.StringUtils; +//import org.apache.poi.openxml4j.exceptions.InvalidFormatException; +//import org.apache.poi.util.Units; +//import org.apache.poi.xwpf.usermodel.XWPFDocument; +//import org.apache.poi.xwpf.usermodel.XWPFParagraph; +//import org.apache.poi.xwpf.usermodel.XWPFRun; +//import org.apache.poi.xwpf.usermodel.XWPFTable; +//import org.apache.poi.xwpf.usermodel.XWPFTableRow; +//import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth; +//import org.openxmlformats.schemas.wordprocessingml.x2006.main.STTblWidth; +//import org.slf4j.Logger; +//import org.slf4j.LoggerFactory; +//import org.springframework.beans.factory.annotation.Autowired; +//import org.springframework.stereotype.Controller; +//import org.springframework.util.CollectionUtils; +//import org.springframework.web.bind.annotation.GetMapping; +//import org.springframework.web.bind.annotation.PostMapping; +//import org.springframework.web.bind.annotation.RequestMapping; +//import org.springframework.web.bind.annotation.RequestMethod; +//import org.springframework.web.bind.annotation.RequestParam; +//import org.springframework.web.bind.annotation.ResponseBody; +// +//import com.njcn.enums.LogTypeEnum; +//import com.njcn.mapper.advanced.RangeMapper; +//import com.njcn.mapper.configuration.RptAssMapper; +//import com.njcn.mapper.configuration.RptDataMapper; +//import com.njcn.mapper.configuration.RptPloyMapper; +//import com.njcn.pojo.advanced.EventAssObj; +//import com.njcn.pojo.commons.DatePojo; +//import com.njcn.pojo.commons.EventEigDetail; +//import com.njcn.pojo.commons.EventInfoDetail; +//import com.njcn.pojo.commons.HttpResult; +//import com.njcn.pojo.commons.RedisDB; +//import com.njcn.pojo.commons.ReportAreaPojo; +//import com.njcn.pojo.commons.ReportMonitorPojo; +//import com.njcn.pojo.commons.WaveData; +//import com.njcn.pojo.commons.area.Area; +//import com.njcn.pojo.commons.area.AreaGeneral; +//import com.njcn.pojo.commons.area.Iec28; +//import com.njcn.pojo.commons.area.Interval; +//import com.njcn.pojo.commons.area.Voltage; +//import com.njcn.pojo.commons.device.AnalyzeInfo; +//import com.njcn.pojo.commons.device.DeviceValue; +//import com.njcn.pojo.commons.device.EventCause; +//import com.njcn.pojo.commons.device.EventChance; +//import com.njcn.pojo.commons.device.EventDataList; +//import com.njcn.pojo.commons.device.EventDensity; +//import com.njcn.pojo.commons.device.EventTypeList; +//import com.njcn.pojo.commons.device.LineInfo; +//import com.njcn.pojo.configuration.RptPloy; +//import com.njcn.pojo.data.EventDetail; +//import com.njcn.pojo.data.LineMaps; +//import com.njcn.pojo.user.Depts; +//import com.njcn.pojo.wave.WaveDataDetail; +//import com.njcn.service.advanced.RangeService; +//import com.njcn.service.commons.IWaveService; +//import com.njcn.service.configuration.DeviceService; +//import com.njcn.service.configuration.ReportService; +//import com.njcn.service.data.EventDetailService; +//import com.njcn.service.log.UserLogDetailService; +//import com.njcn.shiro.token.TokenManager; +//import com.njcn.utils.AppConfig; +//import com.njcn.utils.ClearPathUtil; +//import com.njcn.utils.InstantiateUtil; +//import com.njcn.utils.PubUtils; +//import com.njcn.utils.UserUtil; +//import com.njcn.utils.redis.JedisManager; +//import com.pqs9200.pojo.commons.device.DevMapInfo; +//import com.pqs9200.service.area.IAreaService; +//import com.pqs9200.service.data.IOverviewServer; +//import com.pqs9200.utils.WordUtil; +//import com.pqs9200.utils.WordUtils; +// +//import net.sf.json.JSONArray; +//import net.sf.json.JSONObject; +//import sun.misc.BASE64Decoder; +// +//@Controller +//@RequestMapping("report") +//public class ReportController { +// @Resource +// private RptDataMapper rptDataMapper; +// +// @Resource +// private RptPloyMapper rptPloyMapper; +// +// @Resource +// private RptAssMapper rptAssMapper; +// +// @Resource +// private ReportService getreportInfo; +// +// @Autowired +// private ReportService reportService; +// +// @Autowired +// private IAreaService areaService; +// +// @Autowired +// private IOverviewServer iOverviewServer; +// +// @Resource +// UserLogDetailService userLog; +// +// @Autowired +// private RangeMapper rangeMapper; +// +// @Autowired +// private RangeService rangeService; +// +// @Autowired +// private EventDetailService eventDetailService; +// +// @Autowired +// private IWaveService waveService; +// @Autowired +// private AppConfig appConfig; +// // 日志记录 +// private static final Logger logger = LoggerFactory.getLogger(DeviceController.class); +// /** +// * 缓存每个方法查询的结果,缓存时间为半小时 +// *

+// * key:方法名+参数值(参数为对象时,约定某个属性值) +// */ +// @Autowired +// private JedisManager jedisManager; +// +// @Autowired +// private DeviceService deviceInfo; +// +// @Resource +// private UserUtil userUtil; +// +// @Autowired +// private UserLogDetailService userLogDetailService; +// +// private InstantiateUtil instantiateUtil; +// private InstantiateUtil jsonArrayInstantiateUtil; +// private InstantiateUtil stringInstantiateUtil; +// +// public ReportController() { +// instantiateUtil = new InstantiateUtil<>(); +// jsonArrayInstantiateUtil = new InstantiateUtil<>(); +// stringInstantiateUtil = new InstantiateUtil<>(); +// } +// +// /** +// * 获取模板引擎 +// * +// * @return +// */ +// @PostMapping("monitorTemplate") +// @ResponseBody +// public HttpResult monitorTemplate() { +// HttpResult result; +// List datas; +// datas = reportService.getTemplate(Integer.valueOf(0)); +// if (CollectionUtils.isEmpty(datas)) { +// result = PubUtils.assignmentResult(null, 500, "沒有对应的模板"); +// } else { +// result = PubUtils.assignmentResult(datas, 200, "获取模板成功"); +// } +// return result; +// } +// +// @PostMapping("monitor") +// @ResponseBody +// public HttpResult monitor(HttpServletRequest request, String startTime, String endTime, String lineIndex, String lineName, boolean jcdxq, +// boolean zjsjlb, boolean zjsjssbx, boolean zjmdbg, boolean zjmdtx, boolean zjsjditic, boolean zjsjdf47, boolean glfbzjfz, +// boolean glfbcxsj, boolean yftjbg, boolean yftjtx, boolean zjyybg, boolean zjyytx, boolean zjlxbg, boolean zjlxtx) throws Exception { +// HttpResult result; +// List reList = new ArrayList<>(); +// ReportMonitorPojo reportMonitorPojo = getMonitorChoose(request, startTime, endTime, lineIndex, lineName, jcdxq, zjsjlb, zjsjssbx, zjmdbg, zjmdtx, zjsjditic, zjsjdf47, glfbzjfz, glfbcxsj, yftjbg, yftjtx, zjyybg, zjyytx, zjlxbg, zjlxtx); +// DatePojo datePojo; +// datePojo = PubUtils.validateDate(reportMonitorPojo.getStartTime(), reportMonitorPojo.getEndTime(), "monitor"); +// String userIndex = TokenManager.getUserId(); +// if (!datePojo.getValidity()) { +// result = PubUtils.assignmentResult(null, 500, "解析前台传递的时间有误"); +// return result; +// } +// try { +// /* 监测点详情数据获取 */ +// LineInfo lineInfo; +// if (reportMonitorPojo.isJcdxq()) { +// lineInfo = deviceInfo.getDeviceInfo(Long.valueOf(reportMonitorPojo.getLineIndex())); +// JSONObject lineO = JSONObject.fromObject(lineInfo); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "lineInfo", instantiateUtil.stringInstantiate(lineO), RedisDB.SHORT_TIME); +// } +// /* 暂降事件列表 */ +// List analyzeInfos = null; +// if (reportMonitorPojo.isZjsjlb()) { +// analyzeInfos = deviceInfo.queryanalyzeinfo(datePojo.getStartTime(), datePojo.getEndTime(), +// reportMonitorPojo.getLineIndex()); +// JSONArray anArray = JSONArray.fromObject(analyzeInfos); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "analyzeInfos", jsonArrayInstantiateUtil.stringInstantiate(anArray), +// RedisDB.SHORT_TIME); +// } +// /* 暂降事件波形 */ +// List arry = new ArrayList<>(); +// int waveNum = 0; +// if (reportMonitorPojo.isZjsjssbx()) { +// List analyzeInfo = null; +// analyzeInfo = deviceInfo.queryanalyzeinfo(datePojo.getStartTime(), datePojo.getEndTime(), +// reportMonitorPojo.getLineIndex()); +// for (int i = 0; i < analyzeInfo.size(); i++) { +// if (Integer.parseInt(analyzeInfo.get(i).getFileFlag()) == 0) { +// analyzeInfo.remove(i); +// } +// } +// if (analyzeInfo.size() > 10) { +// waveNum = 10; +// } else { +// waveNum = analyzeInfo.size(); +// } +// for (int i = 0; i < waveNum; i++) { +// List shunS = new ArrayList<>(); +// WaveData waveData = waveService.getWavedata(analyzeInfo.get(i).getEventDetailIndex(), 1); +// if (waveData != null) { +// if (waveData.getiPhasic() > 0) { +// //数据筛选,如果是双路电压的话,会存在2个波形数据 +// List waveDataDetails = waveService.filteWaveData(waveData); +// if (waveData.getSunData().size() == 0) { +// +// } else { +// String time = waveData.getTime(); +// String title = "监测点名称:" + waveData.getLineName() + " 发生时刻:" + time + "特征幅值:" + waveData.getEventValue() + " 持续时间:" + waveData.getPersistTime() + "s"; +// if (waveDataDetails.size() == 1) { +// shunS.add(waveService.createShunSTitle(title, waveDataDetails.get(0))); +// } else { +// shunS.add(waveService.createShunSTitle(title, waveDataDetails.get(0))); +// for (int n = 1; n < waveDataDetails.size(); n++) { +// shunS.add(waveService.createShunS(waveDataDetails.get(n))); +// } +// } +// +// } +// arry.add(shunS); +// } +// } +// } +// } +// /* 暂降密度数据获取 */ +// List eventDensities = new ArrayList<>(); +// if (reportMonitorPojo.isZjmdtx()) { +// eventDensities = deviceInfo.getEventDensity(datePojo.getStartTime(), datePojo.getEndTime(), +// reportMonitorPojo.getLineIndex()); +// } +// List eventDisdip; +// List ec411; +// List ec28; +// if (reportMonitorPojo.isZjmdbg()) { +// eventDisdip = deviceInfo.getEventDisdip(datePojo.getStartTime(), datePojo.getEndTime(), +// reportMonitorPojo.getLineIndex()); +// ec411 = deviceInfo.getIEC411(datePojo.getStartTime(), datePojo.getEndTime(), +// reportMonitorPojo.getLineIndex()); +// ec28 = deviceInfo.getIEC28(datePojo.getStartTime(), datePojo.getEndTime(), +// reportMonitorPojo.getLineIndex()); +// JSONArray evArray = JSONArray.fromObject(eventDisdip); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "eventDisdip", jsonArrayInstantiateUtil.stringInstantiate(evArray), +// RedisDB.SHORT_TIME); +// JSONArray ec4Array = JSONArray.fromObject(ec411); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "ec411", jsonArrayInstantiateUtil.stringInstantiate(ec4Array), RedisDB.SHORT_TIME); +// JSONArray ec2Array = JSONArray.fromObject(ec28); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "ec28", jsonArrayInstantiateUtil.stringInstantiate(ec2Array), RedisDB.SHORT_TIME); +// } +// /* 暂降事件点图 */ +// List eventDataLists = new ArrayList<>(); +// if (reportMonitorPojo.isZjsjditic() || reportMonitorPojo.isZjsjdf47()) { +// eventDataLists = deviceInfo.getEventDataList(datePojo.getStartTime(), datePojo.getEndTime(), +// reportMonitorPojo.getLineIndex()); +// } +// /* 概率分布 */ +// EventChance eventChance = new EventChance(); +// if (reportMonitorPojo.isGlfbzjfz() || reportMonitorPojo.isGlfbcxsj()) { +// eventChance = deviceInfo.getEventChance(datePojo.getStartTime(), datePojo.getEndTime(), +// reportMonitorPojo.getLineIndex()); +// } +// /* 月份统计图 */ +// List intervals = new ArrayList<>(); +// if (reportMonitorPojo.isYftjbg() || reportMonitorPojo.isYftjtx()) { +// intervals = deviceInfo.getEventTime(datePojo.getStartTime(), datePojo.getEndTime(), +// reportMonitorPojo.getLineIndex()); +// JSONArray inArray = JSONArray.fromObject(intervals); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "intervals", jsonArrayInstantiateUtil.stringInstantiate(inArray), +// RedisDB.SHORT_TIME); +// } +// /* 暂降原因 */ +// List eventCauses = new ArrayList<>(); +// if (reportMonitorPojo.isZjyybg() || reportMonitorPojo.isZjyytx()) { +// eventCauses = deviceInfo.getEventCause(datePojo.getStartTime(), datePojo.getEndTime(), +// reportMonitorPojo.getLineIndex()); +// JSONArray caArray = JSONArray.fromObject(eventCauses); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "eventCauses", jsonArrayInstantiateUtil.stringInstantiate(caArray), +// RedisDB.SHORT_TIME); +// } +// /* 暂降类型 */ +// List eventTypeLists = new ArrayList<>(); +// if (reportMonitorPojo.isZjlxbg() || reportMonitorPojo.isZjlxtx()) { +// eventTypeLists = deviceInfo.getEventType(datePojo.getStartTime(), datePojo.getEndTime(), +// reportMonitorPojo.getLineIndex()); +// JSONArray tyArray = JSONArray.fromObject(eventTypeLists); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "eventTypeLists", jsonArrayInstantiateUtil.stringInstantiate(tyArray), +// RedisDB.SHORT_TIME); +// } +// JSONObject reportPojo = JSONObject.fromObject(reportMonitorPojo); +// String key = TokenManager.getUserId() + "reportPojo"; +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, key, instantiateUtil.stringInstantiate(reportPojo), RedisDB.SHORT_TIME); +// /* 将前台需要画图的数据返回 */ +// reList.add(eventDensities); +// reList.add(eventDataLists); +// reList.add(eventChance); +// reList.add(intervals); +// reList.add(eventCauses); +// reList.add(eventTypeLists); +// reList.add(arry); +// result = PubUtils.assignmentResult(reList, 200, "获取监测点图表数据成功"); +// } catch (Exception e) { +// logger.error("获取监测点图表数据异常,异常为:" + e.toString()); +// result = PubUtils.assignmentResult(null, 500, "获取监测点图表数据异常"); +// } +// +// return result; +// } +// +// /** +// * 根据用户页面的选择,指定我们需要查询的数据 +// * +// * @param request 请求 +// */ +// private ReportMonitorPojo getMonitorChoose(HttpServletRequest request, String startTime, String endTime, String lineIndex, String lineName, boolean jcdxq, +// boolean zjsjlb, boolean zjsjssbx, boolean zjmdbg, boolean zjmdtx, boolean zjsjditic, boolean zjsjdf47, boolean glfbzjfz, +// boolean glfbcxsj, boolean yftjbg, boolean yftjtx, boolean zjyybg, boolean zjyytx, boolean zjlxbg, boolean zjlxtx) { +// ReportMonitorPojo reportMonitorPojo = new ReportMonitorPojo(); +// reportMonitorPojo.setJcdxq(Boolean.valueOf(jcdxq)); +// reportMonitorPojo.setZjsjlb(Boolean.valueOf(zjsjlb)); +// reportMonitorPojo.setZjsjssbx(Boolean.valueOf(zjsjssbx)); +// reportMonitorPojo.setZjmdbg(Boolean.valueOf(zjmdbg)); +// reportMonitorPojo.setZjmdtx(Boolean.valueOf(zjmdtx)); +// reportMonitorPojo.setZjsjditic(Boolean.valueOf(zjsjditic)); +// reportMonitorPojo.setZjsjdf47(Boolean.valueOf(zjsjdf47)); +// reportMonitorPojo.setGlfbzjfz(Boolean.valueOf(glfbzjfz)); +// reportMonitorPojo.setGlfbcxsj(Boolean.valueOf(glfbcxsj)); +// reportMonitorPojo.setYftjbg(Boolean.valueOf(yftjbg)); +// reportMonitorPojo.setYftjtx(Boolean.valueOf(yftjtx)); +// reportMonitorPojo.setZjyybg(Boolean.valueOf(zjyybg)); +// reportMonitorPojo.setZjyytx(Boolean.valueOf(zjyytx)); +// reportMonitorPojo.setZjlxbg(Boolean.valueOf(zjlxbg)); +// reportMonitorPojo.setZjlxtx(Boolean.valueOf(zjlxtx)); +// reportMonitorPojo.setStartTime(startTime); +// reportMonitorPojo.setEndTime(endTime); +// reportMonitorPojo.setLineIndex(lineIndex); +// reportMonitorPojo.setLineName(lineName); +// return reportMonitorPojo; +// +// } +// +// @PostMapping("exportReport") +// @ResponseBody +// public String exportReport(HttpServletRequest request, String densityImage, String iticImage, String f47Image, String eventValueImage, +// String persisttimeImage, String shunSImg, String timeImage, String causeImage, String typeImage, String startTime, String endTime) throws Exception { +// String userIndex = TokenManager.getUserId(); +// JSONObject jsonObject = instantiateUtil.deInstantiate(instantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, +// TokenManager.getUserId() + "reportPojo"))); +// ReportMonitorPojo reportMonitorPojo = (ReportMonitorPojo) JSONObject.toBean(jsonObject, +// ReportMonitorPojo.class); +// // 需要展示的图 +// if (reportMonitorPojo.isZjmdtx()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "densityImage", stringInstantiateUtil.stringInstantiate(densityImage), RedisDB.SHORT_TIME); +// } +// if (reportMonitorPojo.isZjsjssbx()) { +// if (!shunSImg.equals("[]")) { +// JSONArray jsonArray = JSONArray.fromObject(shunSImg); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "shunSImage", jsonArrayInstantiateUtil.stringInstantiate(jsonArray), RedisDB.SHORT_TIME); +// } else { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "shunSImage", jsonArrayInstantiateUtil.stringInstantiate(null), RedisDB.SHORT_TIME); +// } +// } +// if (reportMonitorPojo.isZjsjditic()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "iticImage", stringInstantiateUtil.stringInstantiate(iticImage), RedisDB.SHORT_TIME); +// } +// if (reportMonitorPojo.isZjsjdf47()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "f47Image", stringInstantiateUtil.stringInstantiate(f47Image), RedisDB.SHORT_TIME); +// } +// if (reportMonitorPojo.isGlfbzjfz()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "eventValueImage", stringInstantiateUtil.stringInstantiate(eventValueImage), +// RedisDB.SHORT_TIME); +// } +// if (reportMonitorPojo.isGlfbcxsj()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "persisttimeImage", stringInstantiateUtil.stringInstantiate(persisttimeImage), +// RedisDB.SHORT_TIME); +// } +// if (reportMonitorPojo.isYftjtx()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "timeImage", stringInstantiateUtil.stringInstantiate(timeImage), RedisDB.SHORT_TIME); +// } +// if (reportMonitorPojo.isZjyytx()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "causeImage", stringInstantiateUtil.stringInstantiate(causeImage), RedisDB.SHORT_TIME); +// } +// if (reportMonitorPojo.isZjlxtx()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "typeImage", stringInstantiateUtil.stringInstantiate(typeImage), RedisDB.SHORT_TIME); +// } +// userLogDetailService.saveUserLog(TokenManager.getToken().getUserIndex(), TokenManager.getToken().getLoginName(), +// "生成监测点报告", "成功", appConfig.getSystemFlag(), PubUtils.getIpAddr(request), +// LogTypeEnum.BUSSINESS.toString(), 0); +// return "success"; +// } +// +// @GetMapping("downMonitorReport") +// public void downMonitorReport(HttpServletResponse response, HttpServletRequest request, String name) throws Exception { +// String userIndex = TokenManager.getUserId(); +// JSONObject jsonObject = instantiateUtil.deInstantiate(instantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, +// TokenManager.getUserId() + "reportPojo"))); +// jedisManager.hdel(RedisDB.SHORT_TIME_QUERY, userIndex, TokenManager.getUserId() + "reportPojo"); +// ReportMonitorPojo reportMonitorPojo = (ReportMonitorPojo) JSONObject.toBean(jsonObject, +// ReportMonitorPojo.class); +// int one = 1; +// // 开始做文档 +// XWPFDocument document = new XWPFDocument(); +// // 设定标题格式 +// WordUtils.setHeadingStyle(document); +// // 添加标题 +// XWPFParagraph titleParagraph = WordUtils.getCenterParagraph(document); +// WordUtils.addLine(titleParagraph, 11); +// // 设置段落居中 +// XWPFRun titleParagraphRun = titleParagraph.createRun(); +// Depts deptTmp = userUtil.getCurrentDept(); +// String titlename = deptTmp.getDeptsName(); +// WordUtils.addParagraph(titleParagraphRun, "宋体", 15, "000000", titlename, true); +// WordUtils.addLine(titleParagraph, 3); +// XWPFRun titleParagraphBigRun = titleParagraph.createRun(); +// WordUtils.addParagraph(titleParagraphBigRun, "宋体", 36, "000000", "电压暂降事件分析报告", true); +// WordUtils.addLine(titleParagraph, 19); +// XWPFRun titleParagraphDateRun = titleParagraph.createRun(); +// WordUtils.addParagraph(titleParagraphDateRun, "宋体", 14, "000000", "日期:" + WordUtils.getRightNow(), true); +// titleParagraph.setPageBreak(true); +// // 段落 +// XWPFParagraph statisticsParagraph = WordUtils.getCenterParagraph(document); +// // 段前分页 +// statisticsParagraph.setPageBreak(true); +// XWPFRun statisticsRun = statisticsParagraph.createRun(); +// WordUtils.addParagraph(statisticsRun, "宋体", 24, "000000", "电压暂降事件分析报告", false); +// createTitle(document, "1. 引言", "标题 1", 0, 15); +// XWPFParagraph introductionContentParagraph = WordUtils.getLeftParagraph(document); +// // 首行缩进---段落 +// introductionContentParagraph.setIndentationFirstLine(200); +// XWPFRun introductionContentRun = introductionContentParagraph.createRun(); +// WordUtils.addParagraph(introductionContentRun, "宋体", 11, "000000", "对所选中区间内电压暂降事件进行分析,能够直观清晰查看相应的暂降事件信息。", +// false); +// createTitle(document, "2. 报告分析对象", "标题 1", 0, 15); +// XWPFParagraph objectContentParagraph = WordUtils.getLeftParagraph(document); +// objectContentParagraph.setIndentationFirstLine(200); +// XWPFRun objectContentRun = objectContentParagraph.createRun(); +// WordUtils.addParagraph(objectContentRun, "宋体", 11, "000000", reportMonitorPojo.getLineName(), false); +// createTitle(document, "3. 报告分析时间", "标题 1", 0, 15); +// XWPFParagraph timeContentParagraph = WordUtils.getLeftParagraph(document); +// timeContentParagraph.setIndentationFirstLine(200); +// XWPFRun timeContentRun = timeContentParagraph.createRun(); +// WordUtils.addParagraph(timeContentRun, "宋体", 11, "000000", +// reportMonitorPojo.getStartTime() + " 至 " + reportMonitorPojo.getEndTime(), false); +// createTitle(document, "4. 汇总信息", "标题 1", 0, 15); +// /* 填充监测点详情 */ +// if (reportMonitorPojo.isJcdxq()) { +// createTitle(document, "4." + one + " 监测点信息", "标题 2", 200, 11); +// // 监测点信息 +// XWPFTable monitorInfo = createTable(document); +// XWPFParagraph monitorInfoExcelParagraph = WordUtils.getCenterParagraph(document); +// LineInfo lineInfo; +// JSONObject jo = instantiateUtil.deInstantiate(instantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "lineInfo"))); +// lineInfo = (LineInfo) JSONObject.toBean(jo, LineInfo.class); +// // 表格第一行 +// insertRow(document, monitorInfo, monitorInfoExcelParagraph, true, "项目", "描述"); +// insertRow(document, monitorInfo, monitorInfoExcelParagraph, false, "监测点名称", lineInfo.getName()); +// insertRow(document, monitorInfo, monitorInfoExcelParagraph, false, "电压等级", lineInfo.getScale()); +// insertRow(document, monitorInfo, monitorInfoExcelParagraph, false, "PT变比", lineInfo.getPT()); +// insertRow(document, monitorInfo, monitorInfoExcelParagraph, false, "CT变比", lineInfo.getCT()); +// insertRow(document, monitorInfo, monitorInfoExcelParagraph, false, "协议容量", +// String.valueOf(lineInfo.getXYCMP())); +// insertRow(document, monitorInfo, monitorInfoExcelParagraph, false, "基准容量", +// String.valueOf(lineInfo.getJZCMP())); +// insertRow(document, monitorInfo, monitorInfoExcelParagraph, false, "设备容量", +// String.valueOf(lineInfo.getDEVCMP())); +// insertRow(document, monitorInfo, monitorInfoExcelParagraph, false, "最小短路容量", +// String.valueOf(lineInfo.getDLCMP())); +// insertRow(document, monitorInfo, monitorInfoExcelParagraph, false, "接线方式", lineInfo.getPttype()); +// one++; +// } +// /* 暂降事件列表 */ +// List analyzeInfos = null; +// if (reportMonitorPojo.isZjsjlb()) { +// createTitle(document, "4." + one + " 暂降事件列表", "标题 2", 200, 11); +// XWPFTable sum = createTable(document); +// XWPFParagraph sumExcelParagraph = WordUtils.getCenterParagraph(document); +// JSONArray ja = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "analyzeInfos"))); +// analyzeInfos = (List) JSONArray.toCollection(ja, AnalyzeInfo.class); +// insertRow(document, sum, sumExcelParagraph, true, "序号", "暂降发生时刻", "暂降幅值(%)", "持续时间(s)", "暂降类型", "暂降原因", +// "严重度"); +// if (analyzeInfos.isEmpty()) { +// insertRow(document, sum, sumExcelParagraph, false, "", "", "", "", "", "", ""); +// } else { +// for (int i = 0; i < analyzeInfos.size(); i++) { +// insertRow(document, sum, sumExcelParagraph, false, String.valueOf(i + 1), +// analyzeInfos.get(i).getTime(), analyzeInfos.get(i).getEventvaule(), +// analyzeInfos.get(i).getPersisttime(), analyzeInfos.get(i).getType(), +// analyzeInfos.get(i).getReason(), String.valueOf(analyzeInfos.get(i).getYzd())); +// } +// } +// one++; +// } +// /* 暂降事件波形 */ +// if (reportMonitorPojo.isZjsjssbx()) { +// createTitle(document, "4." + one + " 暂降事件图形", "标题 2", 200, 11); +// int two = 1; +// if (reportMonitorPojo.isZjsjssbx()) { +// List analyzeInfo = null; +// JSONArray ja = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "analyzeInfos"))); +// analyzeInfo = (List) JSONArray.toCollection(ja, AnalyzeInfo.class); +// for (int i = 0; i < analyzeInfo.size(); i++) { +// if (Integer.parseInt(analyzeInfo.get(i).getFileFlag()) == 0) { +// analyzeInfo.remove(i); +// } +// } +// JSONArray shunSImages = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "shunSImage"))); +// if (shunSImages != null) { +// for (int i = 0; i < shunSImages.size(); i++) { +// if (Integer.parseInt(analyzeInfo.get(i).getFileFlag()) == 1) { +// createTitle(document, "事件" + (i + 1) + ":" + analyzeInfo.get(i).getTime(), "标题 3", 400, 11); +// List shunSImage; +// shunSImage = (List) JSONArray.toCollection((JSONArray) shunSImages.get(i)); +// for (int j = 0; j < shunSImage.size(); j++) { +// createPic(document, shunSImage.get(j), "暂降事件图形"); +// } +// } +// } +// +// } else { +// if (analyzeInfos.size() > 10) { +// two = 10; +// } else { +// two = analyzeInfos.size(); +// } +// for (int i = 0; i < two; i++) { +// if (Integer.parseInt(analyzeInfos.get(i).getFileFlag()) == 1) { +// createTitle(document, "事件" + (i + 1) + ":" + analyzeInfos.get(i).getTime() + "(未找到波形文件)", "标题 3", 400, 11); +// } +// } +// } +// +// } +// one++; +// } +// /* 暂降事件点图 */ +// if (reportMonitorPojo.isZjsjditic() || reportMonitorPojo.isZjsjdf47()) { +// createTitle(document, "4." + one + " 暂降事件点图", "标题 2", 200, 11); +// int two = 1; +// if (reportMonitorPojo.isZjsjditic()) { +// createTitle(document, "4." + one + "." + two + " ITIC曲线", "标题 3", 400, 11); +// String iticImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "iticImage"))); +// createPic(document, iticImage, "ITIC曲线"); +// two++; +// } +// if (reportMonitorPojo.isZjsjdf47()) { +// createTitle(document, "4." + one + "." + two + " F47曲线", "标题 3", 400, 11); +// String f47Image = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "f47Image"))); +// createPic(document, f47Image, "F47曲线"); +// } +// one++; +// } +// /* 暂降密度 */ +// if (reportMonitorPojo.isZjmdtx() || reportMonitorPojo.isZjmdbg()) { +// createTitle(document, "4." + one + " 暂降密度", "标题 2", 200, 11); +// int two = 1; +// if (reportMonitorPojo.isZjmdtx()) { +// createTitle(document, "4." + one + "." + two + " 暂降密度点图", "标题 3", 400, 11); +// String densityImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "densityImage"))); +// createPic(document, densityImage, "暂降密度点图"); +// two++; +// } +// if (reportMonitorPojo.isZjmdbg()) { +// createTitle(document, "4." + one + "." + two + " DISDIP表格:国际发配电联盟(UNIPEDE)", "标题 3", 400, 11); +// XWPFTable disdip = createTable(document); +// XWPFParagraph disdipExcelParagraph = WordUtils.getCenterParagraph(document); +// List eventDisdip; +// JSONArray arrayeventDisdip = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "eventDisdip"))); +// eventDisdip = (List) JSONArray.toCollection(arrayeventDisdip, ArrayList.class); +// insertRow(document, disdip, disdipExcelParagraph, true, "剩余电压", "20ms", "100ms", "500ms", "1s", "3s", +// "20s", "60s", "180s"); +// if (eventDisdip.isEmpty()) { +// insertRow(document, disdip, disdipExcelParagraph, false, "", "", "", "", "", "", "", "", ""); +// } else { +// for (List list : eventDisdip) { +// insertRow(document, disdip, disdipExcelParagraph, false, list.get(0).toString(), +// list.get(1).toString(), list.get(2).toString(), list.get(3).toString(), +// list.get(4).toString(), list.get(5).toString(), list.get(6).toString(), +// list.get(7).toString(), list.get(8).toString()); +// } +// } +// two++; +// createTitle(document, "4." + one + "." + two + " IEC 61000-4-11:(用电终端的电压暂降抗度)", "标题 3", 400, 11); +// XWPFTable ec411Table = createTable(document); +// XWPFParagraph ec411TableExcelParagraph = WordUtils.getCenterParagraph(document); +// List ec411; +// JSONArray arrayec411 = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "ec411"))); +// ec411 = (List) JSONArray.toCollection(arrayec411, ArrayList.class); +// insertRow(document, ec411Table, ec411TableExcelParagraph, true, "剩余电压", "10~20ms", "20~100ms", +// "0.1~0.2s", "0.2~0.5s", "0.5~1s", ">1s"); +// if (ec411.isEmpty()) { +// insertRow(document, ec411Table, ec411TableExcelParagraph, false, "", "", "", "", "", "", ""); +// } else { +// for (List list : ec411) { +// insertRow(document, ec411Table, ec411TableExcelParagraph, false, list.get(0).toString(), +// list.get(1).toString(), list.get(2).toString(), list.get(3).toString(), +// list.get(4).toString(), list.get(5).toString(), list.get(6).toString()); +// } +// } +// two++; +// createTitle(document, "4." + one + "." + two + " IEC 61000-2-8:(公共电网电压暂降测量统计)", "标题 3", 400, 11); +// XWPFTable ec28Table = createTable(document); +// XWPFParagraph ec28TableExcelParagraph = WordUtils.getCenterParagraph(document); +// List ec28; +// JSONArray arrayec28 = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "ec28"))); +// ec28 = (List) JSONArray.toCollection(arrayec28, ArrayList.class); +// insertRow(document, ec28Table, ec28TableExcelParagraph, true, "剩余电压", "0.02~0.1s", "0.1~0.25s", +// "0.25~0.5s", "0.5~1s", "1~3s", "3~20s", "20~60s", "60~180s"); +// if (ec28.isEmpty()) { +// insertRow(document, ec28Table, ec28TableExcelParagraph, false, "", "", "", "", "", "", "", "", ""); +// } else { +// for (List list : ec28) { +// insertRow(document, ec28Table, ec28TableExcelParagraph, false, list.get(0).toString(), +// list.get(1).toString(), list.get(2).toString(), list.get(3).toString(), +// list.get(4).toString(), list.get(5).toString(), list.get(6).toString(), +// list.get(7).toString(), list.get(8).toString()); +// } +// } +// } +// one++; +// } +// /* 概率分布 */ +// if (reportMonitorPojo.isGlfbcxsj() || reportMonitorPojo.isGlfbzjfz()) { +// createTitle(document, "4." + one + " 暂降幅值概率分布图", "标题 2", 200, 11); +// int two = 1; +// if (reportMonitorPojo.isGlfbzjfz()) { +// createTitle(document, "4." + one + "." + two + " 暂降幅值的概率分函数", "标题 3", 400, 11); +// String eventValueImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "eventValueImage"))); +// createPic(document, eventValueImage, "暂降幅值的概率分布函数"); +// two++; +// } +// if (reportMonitorPojo.isGlfbcxsj()) { +// createTitle(document, "4." + one + "." + two + " 持续时间的概率分函数", "标题 3", 400, 11); +// String persisttimeImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "persisttimeImage"))); +// createPic(document, persisttimeImage, "持续时间的概率分函数"); +// } +// one++; +// } +// /* 月份统计 */ +// if (reportMonitorPojo.isYftjtx() || reportMonitorPojo.isYftjbg()) { +// createTitle(document, "4." + one + " 月份统计", "标题 2", 200, 11); +// int two = 1; +// if (reportMonitorPojo.isYftjtx()) { +// createTitle(document, "4." + one + "." + two + " 月份统计图", "标题 3", 400, 11); +// String timeImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "timeImage"))); +// createPic(document, timeImage, "月份统计图"); +// two++; +// } +// if (reportMonitorPojo.isYftjbg()) { +// createTitle(document, "4." + one + "." + two + " 月份统计表格", "标题 3", 400, 11); +// XWPFTable intervalsTable = createTable(document); +// XWPFParagraph intervalsTableExcelParagraph = WordUtils.getCenterParagraph(document); +// List intervals; +// JSONArray arrayintervals = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "intervals"))); +// intervals = (List) JSONArray.toCollection(arrayintervals, Interval.class); +// insertRow(document, intervalsTable, intervalsTableExcelParagraph, true, "月份", "电压暂降次数"); +// if (intervals.isEmpty()) { +// insertRow(document, intervalsTable, intervalsTableExcelParagraph, false, "", ""); +// } else { +// for (Interval interval : intervals) { +// insertRow(document, intervalsTable, intervalsTableExcelParagraph, false, interval.getMonth(), +// String.valueOf(interval.getTimes())); +// } +// } +// } +// one++; +// } +// /* 原因统计 */ +// if (reportMonitorPojo.isZjyytx() || reportMonitorPojo.isZjyybg()) { +// createTitle(document, "4." + one + " 原因统计", "标题 2", 200, 11); +// int two = 1; +// if (reportMonitorPojo.isZjyytx()) { +// createTitle(document, "4." + one + "." + two + " 原因统计图", "标题 3", 400, 11); +// String causeImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "causeImage"))); +// createPic(document, causeImage, "原因统计图"); +// two++; +// } +// if (reportMonitorPojo.isZjyybg()) { +// createTitle(document, "4." + one + "." + two + " 原因统计表格", "标题 3", 400, 11); +// XWPFTable causeTable = createTable(document); +// XWPFParagraph causeTableExcelParagraph = WordUtils.getCenterParagraph(document); +// List eventCauses; +// JSONArray arrayeventCauses = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "eventCauses"))); +// eventCauses = (List) JSONArray.toCollection(arrayeventCauses, EventCause.class); +// insertRow(document, causeTable, causeTableExcelParagraph, true, "暂降原因", "电压暂降次数"); +// if (eventCauses.isEmpty()) { +// insertRow(document, causeTable, causeTableExcelParagraph, false, "", ""); +// } else { +// for (EventCause eventCause : eventCauses) { +// insertRow(document, causeTable, causeTableExcelParagraph, false, eventCause.getCause(), +// String.valueOf(eventCause.getCount())); +// } +// } +// } +// one++; +// } +// /* 类型统计 */ +// if (reportMonitorPojo.isZjlxtx() || reportMonitorPojo.isZjlxbg()) { +// createTitle(document, "4." + one + " 类型统计", "标题 2", 200, 11); +// int two = 1; +// if (reportMonitorPojo.isZjlxtx()) { +// createTitle(document, "4." + one + "." + two + " 类型统计图", "标题 3", 400, 11); +// String typeImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "typeImage"))); +// createPic(document, typeImage, "类型统计图"); +// two++; +// } +// if (reportMonitorPojo.isZjlxbg()) { +// createTitle(document, "4." + one + "." + two + " 类型统计表格", "标题 3", 400, 11); +// XWPFTable typeTable = createTable(document); +// XWPFParagraph typeTableExcelParagraph = WordUtils.getCenterParagraph(document); +// List eventTypeLists = new ArrayList(); +// JSONArray arrayeventTypes = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "eventTypeLists"))); +// eventTypeLists = (List) JSONArray.toCollection(arrayeventTypes, EventTypeList.class); +// insertRow(document, typeTable, typeTableExcelParagraph, true, "暂降类型", "电压暂降次数"); +// if (eventTypeLists.isEmpty()) { +// insertRow(document, typeTable, typeTableExcelParagraph, false, "", ""); +// } else { +// for (EventTypeList eventTypeList : eventTypeLists) { +// insertRow(document, typeTable, typeTableExcelParagraph, false, eventTypeList.getType(), +// String.valueOf(eventTypeList.getCount())); +// } +// } +// } +// } +// OutputStream out; +// try { +// response.setContentType("application/force-download");// 设置强制下载不打开 +// String agent = request.getHeader("User-Agent").toUpperCase(); // 获得浏览器信息并转换为大写 +// if (agent.indexOf("MSIE") > 0 || (agent.indexOf("GECKO") > 0 && agent.indexOf("RV:11") > 0)) { // IE浏览器和Edge浏览器 +// name = URLEncoder.encode(name, "UTF-8"); +// } else { // 其他浏览器 +//// name = new String(name.getBytes("UTF-8"), "iso-8859-1"); +// name = URLEncoder.encode(name, "UTF-8"); +// } +// response.addHeader("Content-Disposition", "attachment;fileName=" + name + ".docx");// 设置文件名 +// +// out = response.getOutputStream(); +// document.write(out); +// document.close(); +// out.close(); +// } catch (Exception e) { +// logger.error(e.getMessage()); +// } +// } +// +// /** +// * 创建标题 +// * +// * @param document 文档 +// * @param message 标题内容 +// * @param style 标题等级 +// * @param line 缩进 +// * @param fontSize 字体大小 +// */ +// public static void createTitle(XWPFDocument document, String message, String style, int line, int fontSize) { +// XWPFParagraph summaeTableParagraph = WordUtils.getLeftParagraph(document); +// summaeTableParagraph.setStyle(style); +// summaeTableParagraph.setIndentationFirstLine(line); +// XWPFRun summaeTableRun = summaeTableParagraph.createRun(); +// WordUtils.addParagraph(summaeTableRun, "宋体", fontSize, "000000", message, false); +// } +// +// /** +// * 创建图片在word中 +// * +// * @param document 文档 +// * @param image 图片base64 +// * @param name 图片名 +// * @throws IOException +// * @throws InvalidFormatException +// */ +// public void createPic(XWPFDocument document, String image, String name) throws IOException, InvalidFormatException { +// XWPFParagraph picParagraph = WordUtils.getCenterParagraph(document); +// XWPFRun createRun = picParagraph.createRun(); +// byte[] base64Info = decodeBase64(image); +// InputStream in = new ByteArrayInputStream(base64Info); +// createRun.addPicture(in, 5, name, Units.toEMU(410), Units.toEMU(170)); +// } +// +// /** +// * 创建地图 +// * +// * @param document 文档 +// * @param image 图片base64 +// * @param name 图片名 +// * @throws IOException +// * @throws InvalidFormatException +// */ +// public void createMap(XWPFDocument document, String image, String name) throws IOException, InvalidFormatException { +// XWPFParagraph picParagraph = WordUtils.getCenterParagraph(document); +// XWPFRun createRun = picParagraph.createRun(); +// byte[] base64Info = decodeBase64(image); +// InputStream in = new ByteArrayInputStream(base64Info); +// createRun.addPicture(in, 5, name, Units.toEMU(410), Units.toEMU(210)); +// } +// +// /** +// * 创建表格 +// * +// * @param document +// * @return +// */ +// public static XWPFTable createTable(XWPFDocument document) { +// XWPFTable summaTable = document.createTable(); +// // 列宽自动分割 +// CTTblWidth summaTableWidth = summaTable.getCTTbl().addNewTblPr().addNewTblW(); +// summaTableWidth.setType(STTblWidth.DXA); +// summaTableWidth.setW(BigInteger.valueOf(8160)); +// return summaTable; +// } +// +// /** +// * 表格插入行数据 +// * +// * @param document 文档 +// * @param table 表格 +// * @param head 是否是表头 +// * @param values 数据内容 +// */ +// public static void insertRow(XWPFDocument document, XWPFTable table, XWPFParagraph excelParagraph, boolean head, +// String... values) { +// if (head) { +// XWPFTableRow summaTableRowOne = table.getRow(0); +// WordUtils.setExcelHeadContent(excelParagraph, summaTableRowOne, values); +// } else { +// XWPFTableRow summaTableRowOne = table.createRow(); +// WordUtils.setExcelContent(excelParagraph, summaTableRowOne, values); +// } +// } +// +// /** +// * 解析base64,返回图片所在路径 +// * +// * @param base64Info +// * @return +// */ +// private byte[] decodeBase64(String base64Info) { +// if (StringUtils.isEmpty(base64Info)) { +// return null; +// } +// BASE64Decoder decoder = new BASE64Decoder(); +// if (!base64Info.contains("base64,")) +// return null; +// String[] arr = base64Info.split("base64,"); +// // 数据中:data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABI4AAAEsCAYAAAClh/jbAAA +// // ... 在"base64,"之后的才是图片信息 +// try { +// return decoder.decodeBuffer(arr[1]); +// } catch (IOException e) { +// return null; +// } +// } +// +// /** +// * 获取区域模板 +// * +// * @return +// */ +// @PostMapping("areaTemplate") +// @ResponseBody +// public HttpResult areaTemplate() { +// HttpResult result; +// List datas; +// datas = reportService.getTemplate(Integer.valueOf(1)); +// if (CollectionUtils.isEmpty(datas)) { +// result = PubUtils.assignmentResult(null, 500, "沒有对应的模板"); +// } else { +// result = PubUtils.assignmentResult(datas, 200, "获取模板成功"); +// } +// return result; +// } +// +// +// @PostMapping("area") +// @ResponseBody +// public HttpResult area(HttpServletRequest request, String startTime, String endTime, String area, String areaname, String jcwfb, String zjsjbg, +// String zjsjtx, String zjmdbg, String zjmdtx, String zjsjditic, String zjsjdf47, String glfbzjfz, String glfbcxsj, +// String sjglbg, String zjyybg, String zjyytx, String zjlxbg, String zjlxtx, String zjrlt) throws Exception { +// HttpResult result; +// List reList = new ArrayList<>(); +// ReportAreaPojo reportAreaPojo = getAreaChoose(request, startTime, endTime, area, areaname, jcwfb, zjsjbg, zjsjtx, zjmdbg, zjmdtx, +// zjsjditic, zjsjdf47, glfbzjfz, glfbcxsj, sjglbg, zjyybg, zjyytx, zjlxbg, zjlxtx, zjrlt); +// DatePojo datePojo; +// datePojo = PubUtils.validateDate(reportAreaPojo.getStartTime(), reportAreaPojo.getEndTime(), "monitor"); +// String userIndex = TokenManager.getUserId(); +// if (!datePojo.getValidity()) { +// result = PubUtils.assignmentResult(null, 500, "解析前台传递的时间有误"); +// return result; +// } +// try { +// DevMapInfo devMapInfo = new DevMapInfo(); +// devMapInfo = areaService.getDevMap(reportAreaPojo.getArea()); +// JSONArray devMapArray = JSONArray.fromObject(devMapInfo.getOnline()); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "linecount", +// stringInstantiateUtil.stringInstantiate(String.valueOf(devMapInfo.getMaps().size())), RedisDB.SHORT_TIME); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "devMapInfo", jsonArrayInstantiateUtil.stringInstantiate(devMapArray), +// RedisDB.SHORT_TIME); +// AreaGeneral eventcount = areaService.getGeneralDate(reportAreaPojo.getArea(), datePojo.getStartTime(), +// datePojo.getEndTime()); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "eventcount", stringInstantiateUtil.stringInstantiate(eventcount.getTotalTimes().toString()), +// RedisDB.SHORT_TIME); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "isPro", stringInstantiateUtil.stringInstantiate(eventcount.getPro()), RedisDB.SHORT_TIME); +// /* 监测网分布 */ +// List maps = new ArrayList<>(); +// if (reportAreaPojo.isJcwfb()) { +// maps = iOverviewServer.getLineMaps(); +// } +// /* 暂降事件列表 */ +// AreaGeneral analyzeInfos = new AreaGeneral(); +// if (reportAreaPojo.isZjsjbg() || reportAreaPojo.isZjsjtx()) { +// analyzeInfos = areaService.getGeneralDate(reportAreaPojo.getArea(), datePojo.getStartTime(), +// datePojo.getEndTime()); +// if (analyzeInfos == null) { +// result = PubUtils.assignmentResult(null, 500, "该区域暂无数据"); +// return result; +// } +// +// List areas = new ArrayList<>(); +// if (analyzeInfos.getPro() == "city") { +// for (int i = 0; i < analyzeInfos.getArea().size(); i++) { +// if (analyzeInfos.getArea().get(i).getCity().equals(analyzeInfos.getCityName())) { +// areas.add(analyzeInfos.getArea().get(i)); +// } +// } +// analyzeInfos.setArea(areas); +// } else { +// areas = analyzeInfos.getArea(); +// } +// List vol = analyzeInfos.getVol(); +// List interval = analyzeInfos.getInterval(); +// JSONArray areaArray = JSONArray.fromObject(areas); +// JSONArray volArray = JSONArray.fromObject(vol); +// JSONArray intervalArray = JSONArray.fromObject(interval); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "area", jsonArrayInstantiateUtil.stringInstantiate(areaArray), RedisDB.SHORT_TIME); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "vol", jsonArrayInstantiateUtil.stringInstantiate(volArray), RedisDB.SHORT_TIME); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "interval", jsonArrayInstantiateUtil.stringInstantiate(intervalArray), +// RedisDB.SHORT_TIME); +// } +// /* 暂降密度数据获取 */ +// List eventDensities = new ArrayList<>(); +// if (reportAreaPojo.isZjmdtx()) { +// eventDensities = areaService.getEventDensity(datePojo.getStartTime(), datePojo.getEndTime(), +// reportAreaPojo.getArea()); +// if (eventDensities == null) { +// result = PubUtils.assignmentResult(null, 500, "该区域暂无数据"); +// return result; +// } +// } +// List eventDisdip; +// List ec411; +// Iec28 iec28; +// if (reportAreaPojo.isZjmdbg()) { +// eventDisdip = areaService.getEventDisdip(datePojo.getStartTime(), datePojo.getEndTime(), +// reportAreaPojo.getArea()); +// ec411 = areaService.getIEC411(datePojo.getStartTime(), datePojo.getEndTime(), reportAreaPojo.getArea()); +// iec28 = areaService.getIEC28(datePojo.getStartTime(), datePojo.getEndTime(), reportAreaPojo.getArea()); +// if (eventDisdip == null || ec411 == null || iec28 == null) { +// result = PubUtils.assignmentResult(null, 500, "该区域暂无数据"); +// return result; +// } +// List ec28 = iec28.getData(); +// JSONArray evArray = JSONArray.fromObject(eventDisdip); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "eventDisdip", jsonArrayInstantiateUtil.stringInstantiate(evArray), +// RedisDB.SHORT_TIME); +// JSONArray ec4Array = JSONArray.fromObject(ec411); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "ec411", jsonArrayInstantiateUtil.stringInstantiate(ec4Array), RedisDB.SHORT_TIME); +// JSONArray ec2Array = JSONArray.fromObject(ec28); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "ec28", jsonArrayInstantiateUtil.stringInstantiate(ec2Array), RedisDB.SHORT_TIME); +// +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "pertime", stringInstantiateUtil.stringInstantiate(iec28.getPertime()), +// RedisDB.SHORT_TIME); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "eventvalue", stringInstantiateUtil.stringInstantiate(iec28.getEventvalue()), +// RedisDB.SHORT_TIME); +// } +// /* 暂降事件点图 */ +// List eventDataLists = new ArrayList<>(); +// if (reportAreaPojo.isZjsjditic() || reportAreaPojo.isZjsjdf47()) { +// eventDataLists = areaService.getEventDataList(datePojo.getStartTime(), datePojo.getEndTime(), +// reportAreaPojo.getArea()); +// if (eventDataLists == null) { +// result = PubUtils.assignmentResult(null, 500, "该区域暂无数据"); +// return result; +// } +// } +// /* 概率分布 */ +// EventChance eventChance = new EventChance(); +// if (reportAreaPojo.isGlfbzjfz() || reportAreaPojo.isGlfbcxsj()) { +// eventChance = areaService.getEventChance(datePojo.getStartTime(), datePojo.getEndTime(), +// reportAreaPojo.getArea()); +// if (eventChance == null) { +// result = PubUtils.assignmentResult(null, 500, "该区域暂无数据"); +// return result; +// } +// } +// /* 事件关联 */ +// List list = new ArrayList<>(); +// if (reportAreaPojo.isSjglbg()) { +// +// list = rangeService.queryEventsByTime(reportAreaPojo.getStartTime(), reportAreaPojo.getEndTime()); +// if (list == null) { +// result = PubUtils.assignmentResult(null, 500, "该区域暂无数据"); +// return result; +// } +// JSONArray inArray = JSONArray.fromObject(list); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "eventass", jsonArrayInstantiateUtil.stringInstantiate(inArray), +// RedisDB.SHORT_TIME); +// } +// /* 暂降原因 */ +// List eventCauses = new ArrayList<>(); +// if (reportAreaPojo.isZjyybg() || reportAreaPojo.isZjyytx()) { +// eventCauses = areaService.getEventCause(datePojo.getStartTime(), datePojo.getEndTime(), +// reportAreaPojo.getArea()); +// if (eventCauses == null) { +// result = PubUtils.assignmentResult(null, 500, "该区域暂无数据"); +// return result; +// } +// JSONArray caArray = JSONArray.fromObject(eventCauses); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "eventCauses", jsonArrayInstantiateUtil.stringInstantiate(caArray), +// RedisDB.SHORT_TIME); +// } +// /* 暂降类型 */ +// List eventTypeLists = new ArrayList<>(); +// if (reportAreaPojo.isZjlxbg() || reportAreaPojo.isZjlxtx()) { +// eventTypeLists = areaService.getEventType(datePojo.getStartTime(), datePojo.getEndTime(), +// reportAreaPojo.getArea()); +// if (eventTypeLists == null) { +// result = PubUtils.assignmentResult(null, 500, "该区域暂无数据"); +// return result; +// } +// JSONArray tyArray = JSONArray.fromObject(eventTypeLists); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "eventTypeLists", jsonArrayInstantiateUtil.stringInstantiate(tyArray), +// RedisDB.SHORT_TIME); +// } +// JSONObject reportPojo = JSONObject.fromObject(reportAreaPojo); +// String key = TokenManager.getUserId() + "reportPojo"; +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, key, instantiateUtil.stringInstantiate(reportPojo), RedisDB.SHORT_TIME); +// /* 暂降热力图 */ +// List eventMap = new ArrayList<>(); +// if (reportAreaPojo.isZjrlt()) { +// eventMap = areaService.getEventMaps(datePojo.getStartTime(), datePojo.getEndTime()); +// if (eventMap == null) { +// result = PubUtils.assignmentResult(null, 500, "该区域暂无数据"); +// return result; +// } +// } +// /* 将前台需要画图的数据返回 */ +// reList.add(analyzeInfos); +// reList.add(eventDensities); +// reList.add(eventDataLists); +// reList.add(eventChance); +// reList.add(eventCauses); +// reList.add(eventTypeLists); +// reList.add(maps); +// reList.add(eventMap); +// result = PubUtils.assignmentResult(reList, 200, "获取监测点图表数据成功"); +// userLog.getLog("查询区域报告", "成功", PubUtils.getIpAddr(request), LogTypeEnum.BUSSINESS.toString(), 0); +// } catch (Exception e) { +// // TODO: handle exception +// result = PubUtils.assignmentResult(null, 500, "获取监测点图表数据失败"); +// userLog.getLog("查询区域报告", "失败", PubUtils.getIpAddr(request), LogTypeEnum.BUSSINESS.toString(), 0); +// } +// return result; +// } +// +// /** +// * 根据用户页面的选择,指定我们需要查询的数据 +// * +// * @param request 请求 +// */ +// private ReportAreaPojo getAreaChoose(HttpServletRequest request, String startTime, String endTime, String area, String areaname, String jcwfb, String zjsjbg, +// String zjsjtx, String zjmdbg, String zjmdtx, String zjsjditic, String zjsjdf47, String glfbzjfz, String glfbcxsj, +// String sjglbg, String zjyybg, String zjyytx, String zjlxbg, String zjlxtx, String zjrlt) { +// ReportAreaPojo reportAreaPojo = new ReportAreaPojo(); +// reportAreaPojo.setJcwfb(Boolean.valueOf(jcwfb)); +// reportAreaPojo.setZjsjbg(Boolean.valueOf(zjsjbg)); +// reportAreaPojo.setZjsjtx(Boolean.valueOf(zjsjtx)); +// reportAreaPojo.setZjmdbg(Boolean.valueOf(zjmdbg)); +// reportAreaPojo.setZjmdtx(Boolean.valueOf(zjmdtx)); +// reportAreaPojo.setZjsjditic(Boolean.valueOf(zjsjditic)); +// reportAreaPojo.setZjsjdf47(Boolean.valueOf(zjsjdf47)); +// reportAreaPojo.setGlfbzjfz(Boolean.valueOf(glfbzjfz)); +// reportAreaPojo.setGlfbcxsj(Boolean.valueOf(glfbcxsj)); +// reportAreaPojo.setSjglbg(Boolean.valueOf(sjglbg)); +// reportAreaPojo.setZjyybg(Boolean.valueOf(zjyybg)); +// reportAreaPojo.setZjyytx(Boolean.valueOf(zjyytx)); +// reportAreaPojo.setZjlxbg(Boolean.valueOf(zjlxbg)); +// reportAreaPojo.setZjlxtx(Boolean.valueOf(zjlxtx)); +// reportAreaPojo.setZjrlt(Boolean.valueOf(zjrlt)); +// reportAreaPojo.setStartTime(startTime); +// reportAreaPojo.setEndTime(endTime); +// reportAreaPojo.setArea(area); +// reportAreaPojo.setAreaname(areaname); +// return reportAreaPojo; +// +// } +// +// +// @PostMapping("exportAreaReport") +// @ResponseBody +// public String exportAreaReport(HttpServletRequest request, String devmapImage, String intervalImage, String districtImage, String voltageImage, +// String densityImage, String iticImage, String f47Image, String eventValueImage, String persisttimeImage, +// String timeImage, String causeImage, String typeImage, String eventmapImage, String itictips, String f47tips, +// String startTime, String endTime) throws Exception { +// String userIndex = TokenManager.getUserId(); +// JSONObject jsonObject = instantiateUtil.deInstantiate(instantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, +// TokenManager.getUserId() + "reportPojo"))); +// ReportAreaPojo reportAreaPojo = (ReportAreaPojo) JSONObject.toBean(jsonObject, ReportAreaPojo.class); +// // 需要展示的图 +// if (reportAreaPojo.isJcwfb()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "devmapImage", stringInstantiateUtil.stringInstantiate(devmapImage), RedisDB.SHORT_TIME); +// } +// if (reportAreaPojo.isZjsjtx()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "intervalImage", stringInstantiateUtil.stringInstantiate(intervalImage), RedisDB.SHORT_TIME); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "districtImage", stringInstantiateUtil.stringInstantiate(districtImage), RedisDB.SHORT_TIME); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "voltageImage", stringInstantiateUtil.stringInstantiate(voltageImage), RedisDB.SHORT_TIME); +// } +// if (reportAreaPojo.isZjmdtx()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "densityImage", stringInstantiateUtil.stringInstantiate(densityImage), RedisDB.SHORT_TIME); +// } +// if (reportAreaPojo.isZjsjditic()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "iticImage", stringInstantiateUtil.stringInstantiate(iticImage), RedisDB.SHORT_TIME); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "itictips", stringInstantiateUtil.stringInstantiate(itictips), RedisDB.SHORT_TIME); +// } +// if (reportAreaPojo.isZjsjdf47()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "f47Image", stringInstantiateUtil.stringInstantiate(f47Image), RedisDB.SHORT_TIME); +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "f47tips", stringInstantiateUtil.stringInstantiate(f47tips), RedisDB.SHORT_TIME); +// } +// if (reportAreaPojo.isGlfbzjfz()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "eventValueImage", stringInstantiateUtil.stringInstantiate(eventValueImage), +// RedisDB.SHORT_TIME); +// } +// if (reportAreaPojo.isGlfbcxsj()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "persisttimeImage", stringInstantiateUtil.stringInstantiate(persisttimeImage), +// RedisDB.SHORT_TIME); +// } +// if (reportAreaPojo.isZjyytx()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "causeImage", stringInstantiateUtil.stringInstantiate(causeImage), RedisDB.SHORT_TIME); +// } +// if (reportAreaPojo.isZjlxtx()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "typeImage", stringInstantiateUtil.stringInstantiate(typeImage), RedisDB.SHORT_TIME); +// } +// if (reportAreaPojo.isZjrlt()) { +// jedisManager.hset(RedisDB.SHORT_TIME_QUERY, userIndex, "eventmapImage", stringInstantiateUtil.stringInstantiate(eventmapImage), RedisDB.SHORT_TIME); +// } +// return "success"; +// } +// +// @GetMapping("downAreaReport") +// public void downAreaReport(HttpServletResponse response, HttpServletRequest request, String name) throws Exception { +// String userIndex = TokenManager.getUserId(); +// JSONObject jsonObject = instantiateUtil.deInstantiate(instantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, +// TokenManager.getUserId() + "reportPojo"))); +// jedisManager.hdel(RedisDB.SHORT_TIME_QUERY, userIndex, TokenManager.getUserId() + "reportPojo"); +// ReportAreaPojo reportAreaPojo = (ReportAreaPojo) JSONObject.toBean(jsonObject, ReportAreaPojo.class); +// int one = 1; +// // 开始做文档 +// XWPFDocument document = new XWPFDocument(); +// // 设定标题格式 +// WordUtils.setHeadingStyle(document); +// // 添加标题 +// XWPFParagraph titleParagraph = WordUtils.getCenterParagraph(document); +// WordUtils.addLine(titleParagraph, 11); +// // 设置段落居中 +// XWPFRun titleParagraphRun = titleParagraph.createRun(); +// WordUtils.addParagraph(titleParagraphRun, "宋体", 15, "000000", reportAreaPojo.getAreaname() + "供电公司", true); +// WordUtils.addLine(titleParagraph, 3); +// XWPFRun titleParagraphBigRun = titleParagraph.createRun(); +// WordUtils.addParagraph(titleParagraphBigRun, "宋体", 36, "000000", "电压暂降事件区域报告", true); +// WordUtils.addLine(titleParagraph, 19); +// XWPFRun titleParagraphDateRun = titleParagraph.createRun(); +// WordUtils.addParagraph(titleParagraphDateRun, "宋体", 14, "000000", "日期:" + WordUtils.getRightNow(), true); +// titleParagraph.setPageBreak(true); +// // 段落 +// XWPFParagraph statisticsParagraph = WordUtils.getCenterParagraph(document); +// // 段前分页 +// statisticsParagraph.setPageBreak(true); +// XWPFRun statisticsRun = statisticsParagraph.createRun(); +// WordUtils.addParagraph(statisticsRun, "宋体", 24, "000000", "电压暂降事件区域报告", false); +// createTitle(document, "1. 引言", "标题 1", 0, 15); +// XWPFParagraph introductionContentParagraph = WordUtils.getLeftParagraph(document); +// // 首行缩进---段落 +// introductionContentParagraph.setIndentationFirstLine(200); +// XWPFRun introductionContentRun = introductionContentParagraph.createRun(); +// +// List devmap; +// JSONArray dev = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "devMapInfo"))); +// devmap = (List) JSONArray.toCollection(dev, DeviceValue.class); +// +// String pro = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "isPro"))); +// String yy; +// if (pro == "pro") { +// yy = reportAreaPojo.getAreaname() + "电网总共有" +// + stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "linecount") + "个监测点," +// + String.valueOf(devmap.size()))) + "个市(州)电压暂降监测点分布情况如下所示:"; +// for (int i = 0; i < devmap.size(); i++) { +// if (i != devmap.size() - 1) { +// yy = yy + devmap.get(i).getName() + ":" + devmap.get(i).getAmounts() + "个,"; +// } else { +// yy = yy + devmap.get(i).getName() + ":" + devmap.get(i).getAmounts() + "个。"; +// } +// } +// } else { +// yy = reportAreaPojo.getAreaname() + "电网总共有" +// + stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "linecount"))) + "个监测点。"; +// } +// WordUtils.addParagraph(introductionContentRun, "宋体", 11, "000000", yy, false); +// +// String eventcount = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "eventcount"))); +// WordUtils.addParagraph(introductionContentRun, "宋体", 11, "000000", +// reportAreaPojo.getAreaname() + "电网在所选择时间段" + reportAreaPojo.getStartTime() + " 至 " +// + reportAreaPojo.getEndTime() + "累计监测到暂降事件" + eventcount +// + "条,本报告按照监测点分布,暂降事件统计,暂降事件点图,暂降热力图,暂降密度图,暂降概率分布图,事件关联统计,暂降类型统计,暂降原因统计等方面进行数据分析。", +// false); +// createTitle(document, "2. 报告分析对象", "标题 1", 0, 15); +// XWPFParagraph objectContentParagraph = WordUtils.getLeftParagraph(document); +// objectContentParagraph.setIndentationFirstLine(200); +// XWPFRun objectContentRun = objectContentParagraph.createRun(); +// WordUtils.addParagraph(objectContentRun, "宋体", 11, "000000", reportAreaPojo.getAreaname() + "。", false); +// createTitle(document, "3. 报告分析时间", "标题 1", 0, 15); +// XWPFParagraph timeContentParagraph = WordUtils.getLeftParagraph(document); +// timeContentParagraph.setIndentationFirstLine(200); +// XWPFRun timeContentRun = timeContentParagraph.createRun(); +// WordUtils.addParagraph(timeContentRun, "宋体", 11, "000000", +// reportAreaPojo.getStartTime() + " 至 " + reportAreaPojo.getEndTime() + "。", false); +// createTitle(document, "4. 汇总信息", "标题 1", 0, 15); +// +// String tips; +// /* 监测网分布 */ +// if (reportAreaPojo.isJcwfb()) { +// createTitle(document, "4." + one + " 监测网分布", "标题 2", 200, 11); +// XWPFParagraph jcwfbtParagraph = WordUtils.getLeftParagraph(document); +// jcwfbtParagraph.setIndentationFirstLine(200); +// XWPFRun jcwfbContentRun = jcwfbtParagraph.createRun(); +// Integer oncount = 0; +// Integer offcount = 0; +// Integer totalcount = Integer.valueOf(stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "linecount")))); +// for (int i = 0; i < devmap.size(); i++) { +// oncount = oncount + devmap.get(i).getOncount(); +// offcount = offcount + devmap.get(i).getOffcount(); +// } +// float rate = (Float.valueOf(oncount) / Float.valueOf(totalcount)) * 100; +// DecimalFormat df = new DecimalFormat("0.00"); +// tips = new String(); +// if (pro == "pro") { +// tips = reportAreaPojo.getAreaname() + "电网总共有监测点" +// + stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "linecount"))) + "个,其中"; +// tips = tips + devmap.get(0).getName() + "、" + devmap.get(1).getName() + "监测点数量较多 ,监测点在线率达到" +// + df.format(rate) + "%(通讯正常为:" + String.valueOf(oncount) + "个,通讯异常为:" + String.valueOf(offcount) +// + "个)[在线率=通讯正常点数/总监测点数(统计时候排除检修和热备用监测点)],具体见下图"; +// } else { +// tips = reportAreaPojo.getAreaname() + "电网总共有监测点" +// + stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "linecount"))) + "个。"; +// tips = tips + "监测点在线率达到" + df.format(rate) + "%(通讯正常为:" + String.valueOf(oncount) + "个,通讯异常为:" +// + String.valueOf(offcount) + "个)[通讯正常/总监测点数(统计时候排除检修和热备用监测点)],具体见下图:"; +// } +// WordUtils.addParagraph(jcwfbContentRun, "宋体", 11, "000000", tips, false); +// String devmapImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "devmapImage"))); +// createMap(document, devmapImage, "监测网分布"); +// one++; +// } +// /* 暂降事件列表 */ +// if (reportAreaPojo.isZjsjbg() || reportAreaPojo.isZjsjtx()) { +// createTitle(document, "4." + one + " 暂降事件列表", "标题 2", 200, 11); +// XWPFParagraph zjsjlbParagraph = WordUtils.getLeftParagraph(document); +// zjsjlbParagraph.setIndentationFirstLine(200); +// XWPFRun zjsjlbContentRun = zjsjlbParagraph.createRun(); +// +// List area; +// List vol; +// List interval; +// JSONArray ar = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "area"))); +// area = (List) JSONArray.toCollection(ar, Area.class); +// +// JSONArray vo = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "vol"))); +// vol = (List) JSONArray.toCollection(vo, Voltage.class); +// +// JSONArray in = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "interval"))); +// interval = (List) JSONArray.toCollection(in, Interval.class); +// +// List voldesc = (List) JSONArray.toCollection(vo, Voltage.class); +// List intervaldesc = (List) JSONArray.toCollection(in, Interval.class); +// Collections.sort(voldesc, new Comparator() { +// /* +// * 返回一个基本类型的整型, 返回负数表示:p1 小于p2, 返回0 表示:p1和p2相等, 返回正数表示:p1大于p2 +// */ +// public int compare(Voltage p1, Voltage p2) { +// if (p2.getTimes() > p1.getTimes()) { +// return 1; +// } +// if (p2.getTimes() == p1.getTimes()) { +// return 0; +// } +// return -1; +// } +// }); +// Collections.sort(intervaldesc, new Comparator() { +// /* +// * 返回一个基本类型的整型, 返回负数表示:p1 小于p2, 返回0 表示:p1和p2相等, 返回正数表示:p1大于p2 +// */ +// public int compare(Interval p1, Interval p2) { +// if (p2.getTimes() > p1.getTimes()) { +// return 1; +// } +// if (p2.getTimes() == p1.getTimes()) { +// return 0; +// } +// return -1; +// } +// }); +// tips = new String(); +// tips = reportAreaPojo.getAreaname() + "电网在所选择的分析时间段内累计监测暂降记录" + eventcount + "条"; +// if (pro == "pro") { +// if (area.size() > 0) { +// tips = tips + ",其中" + area.get(0).getCity(); +// if (area.size() > 1) { +// tips = tips + "、" + area.get(1).getCity(); +// } +// tips = tips + "暂降事件居多"; +// } +// } +// if (voldesc.size() > 0) { +// tips = tips + "," + voldesc.get(0).getVoltageValue(); +// if (vol.size() > 1) { +// tips = tips + "、" + voldesc.get(1).getVoltageValue(); +// } +// tips = tips + "暂降事件居多"; +// } +// if (interval.size() > 0) { +// tips = tips + "," + intervaldesc.get(0).getMonth(); +// if (interval.size() > 1) { +// tips = tips + "、" + intervaldesc.get(1).getMonth(); +// } +// tips = tips + "月暂降事件居多"; +// } +// tips = tips + ",具体见下表(图):"; +// WordUtils.addParagraph(zjsjlbContentRun, "宋体", 11, "000000", tips, false); +// +// int two = 1; +// if (reportAreaPojo.isZjsjtx()) { +// createTitle(document, "4." + one + "." + two + " 暂降事件图形", "标题 3", 400, 11); +// String districtImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "districtImage"))); +// createPic(document, districtImage, "按区域统计"); +// +// String intervalImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "intervalImage"))); +// createPic(document, intervalImage, "按月份统计"); +// +// String voltageImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "voltageImage"))); +// createPic(document, voltageImage, "按区域统计"); +// two++; +// } +// if (reportAreaPojo.isZjsjbg()) { +// createTitle(document, "4." + one + "." + two + " 暂降事件表格", "标题 3", 400, 11); +// +// XWPFTable sum = createTable(document); +// XWPFParagraph sumExcelParagraph = WordUtils.getCenterParagraph(document); +// insertRow(document, sum, sumExcelParagraph, true, "区域 ", "电压暂降次数"); +// if (area.isEmpty()) { +// insertRow(document, sum, sumExcelParagraph, false, "", ""); +// } else { +// for (int i = 0; i < area.size(); i++) { +// insertRow(document, sum, sumExcelParagraph, false, area.get(i).getCity(), +// String.valueOf(area.get(i).getTimes())); +// } +// } +// +// XWPFTable volsum = createTable(document); +// XWPFParagraph volsumExcelParagraph = WordUtils.getCenterParagraph(document); +// insertRow(document, volsum, volsumExcelParagraph, true, "电压等级 ", "电压暂降次数"); +// if (vol.isEmpty()) { +// insertRow(document, volsum, volsumExcelParagraph, false, "", ""); +// } else { +// for (int i = 0; i < vol.size(); i++) { +// insertRow(document, volsum, volsumExcelParagraph, false, vol.get(i).getVoltageValue(), +// String.valueOf(vol.get(i).getTimes())); +// } +// } +// +// XWPFTable intsum = createTable(document); +// XWPFParagraph intsumExcelParagraph = WordUtils.getCenterParagraph(document); +// insertRow(document, intsum, intsumExcelParagraph, true, "月份 ", "电压暂降次数"); +// if (interval.isEmpty()) { +// insertRow(document, intsum, intsumExcelParagraph, false, "", ""); +// } else { +// for (int i = 0; i < interval.size(); i++) { +// insertRow(document, intsum, intsumExcelParagraph, false, interval.get(i).getMonth(), +// String.valueOf(interval.get(i).getTimes())); +// } +// } +// } +// one++; +// } +// /* 暂降事件点图 */ +// if (reportAreaPojo.isZjsjditic() || reportAreaPojo.isZjsjdf47()) { +// createTitle(document, "4." + one + " 暂降事件点图", "标题 2", 200, 11); +// +// XWPFParagraph zjsjdParagraph = WordUtils.getLeftParagraph(document); +// zjsjdParagraph.setIndentationFirstLine(200); +// XWPFRun zjsjdContentRun = zjsjdParagraph.createRun(); +// +// tips = new String(); +// tips = "暂降事件点图统计分成ITIC曲线和F47曲线展示。"; +// WordUtils.addParagraph(zjsjdContentRun, "宋体", 11, "000000", tips, false); +// int two = 1; +// if (reportAreaPojo.isZjsjditic()) { +// createTitle(document, "4." + one + "." + two + " ITIC曲线", "标题 3", 400, 11); +// +// XWPFParagraph iticParagraph = WordUtils.getLeftParagraph(document); +// iticParagraph.setIndentationFirstLine(200); +// XWPFRun iticContentRun = iticParagraph.createRun(); +// +// tips = new String(); +// tips = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "itictips"))); +// WordUtils.addParagraph(iticContentRun, "宋体", 11, "000000", tips, false); +// String iticImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "iticImage"))); +// createPic(document, iticImage, "ITIC曲线"); +// two++; +// } +// if (reportAreaPojo.isZjsjdf47()) { +// createTitle(document, "4." + one + "." + two + " F47曲线", "标题 3", 400, 11); +// +// XWPFParagraph f47Paragraph = WordUtils.getLeftParagraph(document); +// f47Paragraph.setIndentationFirstLine(200); +// XWPFRun f47ContentRun = f47Paragraph.createRun(); +// +// tips = new String(); +// tips = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "f47tips"))); +// WordUtils.addParagraph(f47ContentRun, "宋体", 11, "000000", tips, false); +// String f47Image = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "f47Image"))); +// createPic(document, f47Image, "F47曲线"); +// } +// one++; +// } +// /* 暂降密度 */ +// if (reportAreaPojo.isZjmdtx() || reportAreaPojo.isZjmdbg()) { +// createTitle(document, "4." + one + " 暂降密度", "标题 2", 200, 11); +// +// XWPFParagraph zjmdParagraph = WordUtils.getLeftParagraph(document); +// zjmdParagraph.setIndentationFirstLine(200); +// XWPFRun zjmdContentRun = zjmdParagraph.createRun(); +// String pertime = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "pertime"))); +// String eventvalue = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "eventvalue"))); +// tips = new String(); +// tips = "暂降密度统计可以从幅值和持续时间两个维度直接地反映暂降事件发生情况,主要反应事件的发生次数,"; +// tips = tips + reportAreaPojo.getAreaname() + "电网在所选择的分析时间内暂降事件主要集中在幅值为" + eventvalue + ",持续时间为" + pertime +// + "[根据 IEC 61000-2-8:(公共电网电压暂降测量统计)算出暂降事件发生最多的区间],具体见表(图):"; +// WordUtils.addParagraph(zjmdContentRun, "宋体", 11, "000000", tips, false); +// int two = 1; +// if (reportAreaPojo.isZjmdtx()) { +// createTitle(document, "4." + one + "." + two + " 暂降密度图", "标题 3", 400, 11); +// String densityImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "densityImage"))); +// createPic(document, densityImage, "暂降密度图"); +// two++; +// } +// if (reportAreaPojo.isZjmdbg()) { +// createTitle(document, "4." + one + "." + two + " DISDIP表格:国际发配电联盟(UNIPEDE)", "标题 3", 400, 11); +// XWPFTable disdip = createTable(document); +// XWPFParagraph disdipExcelParagraph = WordUtils.getCenterParagraph(document); +// List eventDisdip; +// JSONArray arrayeventDisdip = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "eventDisdip"))); +// eventDisdip = (List) JSONArray.toCollection(arrayeventDisdip, ArrayList.class); +// insertRow(document, disdip, disdipExcelParagraph, true, "剩余电压", "20ms", "100ms", "500ms", "1s", "3s", +// "20s", "60s", "180s"); +// if (eventDisdip.isEmpty()) { +// insertRow(document, disdip, disdipExcelParagraph, false, "", "", "", "", "", "", "", "", ""); +// } else { +// for (List list : eventDisdip) { +// insertRow(document, disdip, disdipExcelParagraph, false, list.get(0).toString(), +// list.get(1).toString(), list.get(2).toString(), list.get(3).toString(), +// list.get(4).toString(), list.get(5).toString(), list.get(6).toString(), +// list.get(7).toString(), list.get(8).toString()); +// } +// } +// two++; +// createTitle(document, "4." + one + "." + two + " IEC 61000-4-11:(用电终端的电压暂降抗度)", "标题 3", 400, 11); +// XWPFTable ec411Table = createTable(document); +// XWPFParagraph ec411TableExcelParagraph = WordUtils.getCenterParagraph(document); +// List ec411; +// JSONArray arrayec411 = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "ec411"))); +// ec411 = (List) JSONArray.toCollection(arrayec411, ArrayList.class); +// insertRow(document, ec411Table, ec411TableExcelParagraph, true, "剩余电压", "10~20ms", "20~100ms", +// "0.1~0.2s", "0.2~0.5s", "0.5~1s", ">1s"); +// if (ec411.isEmpty()) { +// insertRow(document, ec411Table, ec411TableExcelParagraph, false, "", "", "", "", "", "", ""); +// } else { +// for (List list : ec411) { +// insertRow(document, ec411Table, ec411TableExcelParagraph, false, list.get(0).toString(), +// list.get(1).toString(), list.get(2).toString(), list.get(3).toString(), +// list.get(4).toString(), list.get(5).toString(), list.get(6).toString()); +// } +// } +// two++; +// createTitle(document, "4." + one + "." + two + " IEC 61000-2-8:(公共电网电压暂降测量统计)", "标题 3", 400, 11); +// XWPFTable ec28Table = createTable(document); +// XWPFParagraph ec28TableExcelParagraph = WordUtils.getCenterParagraph(document); +// List ec28; +// JSONArray arrayec28 = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "ec28"))); +// ec28 = (List) JSONArray.toCollection(arrayec28, ArrayList.class); +// insertRow(document, ec28Table, ec28TableExcelParagraph, true, "剩余电压", "0.02~0.1s", "0.1~0.25s", +// "0.25~0.5s", "0.5~1s", "1~3s", "3~20s", "20~60s", "60~180s"); +// if (ec28.isEmpty()) { +// insertRow(document, ec28Table, ec28TableExcelParagraph, false, "", "", "", "", "", "", "", "", ""); +// } else { +// for (List list : ec28) { +// insertRow(document, ec28Table, ec28TableExcelParagraph, false, list.get(0).toString(), +// list.get(1).toString(), list.get(2).toString(), list.get(3).toString(), +// list.get(4).toString(), list.get(5).toString(), list.get(6).toString(), +// list.get(7).toString(), list.get(8).toString()); +// } +// } +// } +// one++; +// } +// /* 概率分布 */ +// if (reportAreaPojo.isGlfbcxsj() || reportAreaPojo.isGlfbzjfz()) { +// createTitle(document, "4." + one + " 暂降幅值概率分布图", "标题 2", 200, 11); +// +// XWPFParagraph glfbParagraph = WordUtils.getLeftParagraph(document); +// glfbParagraph.setIndentationFirstLine(200); +// XWPFRun glfbContentRun = glfbParagraph.createRun(); +// String pertime = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "pertime"))); +// String eventvalue = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "eventvalue"))); +// tips = new String(); +// tips = "暂降概率分布图分成暂降幅值概率分布和持续时间概率分布图,"; +// tips = tips + reportAreaPojo.getAreaname() + "电网在所选择的分析时间内暂降事件从幅值概率分布统计主要集中在幅值为" + eventvalue +// + "之间,从持续时间统计主要集中在持续时间为" + pertime + "[持续时间排序,选择暂降记录发生最多的区域],如下表(图):"; +// WordUtils.addParagraph(glfbContentRun, "宋体", 11, "000000", tips, false); +// int two = 1; +// if (reportAreaPojo.isGlfbzjfz()) { +// createTitle(document, "4." + one + "." + two + " 暂降幅值的概率分函数", "标题 3", 400, 11); +// String eventValueImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "eventValueImage"))); +// createPic(document, eventValueImage, "暂降幅值的概率分布函数"); +// two++; +// } +// if (reportAreaPojo.isGlfbcxsj()) { +// createTitle(document, "4." + one + "." + two + " 持续时间的概率分函数", "标题 3", 400, 11); +// String persisttimeImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "persisttimeImage"))); +// createPic(document, persisttimeImage, "持续时间的概率分函数"); +// } +// one++; +// } +// /* 事件关联分析 */ +// if (reportAreaPojo.isSjglbg()) { +// createTitle(document, "4." + one + " 事件关联分析", "标题 2", 200, 11); +// List eventass; +// JSONArray arrayeventass = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "eventass"))); +// eventass = (List) JSONArray.toCollection(arrayeventass, EventAssObj.class); +// +// XWPFParagraph sjglParagraph = WordUtils.getLeftParagraph(document); +// sjglParagraph.setIndentationFirstLine(200); +// XWPFRun sjglContentRun = sjglParagraph.createRun(); +// tips = new String(); +// tips = reportAreaPojo.getAreaname() + "电网在所选择的分析时间段内累计监测暂降记录" + eventcount + "条,归一化统计后共" +// + String.valueOf(eventass.size()) + "[此为归一化后的暂态事件结果]条,,具体如下图所示:"; +// WordUtils.addParagraph(sjglContentRun, "宋体", 11, "000000", tips, false); +// XWPFTable intervalsTable = createTable(document); +// XWPFParagraph intervalsTableExcelParagraph = WordUtils.getCenterParagraph(document); +// insertRow(document, intervalsTable, intervalsTableExcelParagraph, true, "时间", "事件关联分析名称", "事件关联分析描述"); +// if (eventass.isEmpty()) { +// insertRow(document, intervalsTable, intervalsTableExcelParagraph, false, "", ""); +// } else { +// for (EventAssObj eventas : eventass) { +// insertRow(document, intervalsTable, intervalsTableExcelParagraph, false, +// PubUtils.date2String(eventas.getTime(), "yyyy-MM-dd HH:mm:ss"), eventas.getName(), +// eventas.getDescribe()); +// } +// } +// one++; +// } +// /* 原因统计 */ +// if (reportAreaPojo.isZjyytx() || reportAreaPojo.isZjyybg()) { +// createTitle(document, "4." + one + " 原因统计", "标题 2", 200, 11); +// List eventCauses; +// JSONArray arrayeventCauses = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "eventCauses"))); +// eventCauses = (List) JSONArray.toCollection(arrayeventCauses, EventCause.class); +// +// Collections.sort(eventCauses, new Comparator() { +// /* +// * int compare(Person p1, Person p2) 返回一个基本类型的整型, 返回负数表示:p1 +// * 小于p2, 返回0 表示:p1和p2相等, 返回正数表示:p1大于p2 +// */ +// public int compare(EventCause p1, EventCause p2) { +// // 按照Person的年龄进行升序排列 +// if (p2.getCount() > p1.getCount()) { +// return 1; +// } +// if (p2.getCount() == p1.getCount()) { +// return 0; +// } +// return -1; +// } +// }); +// +// XWPFParagraph reasonParagraph = WordUtils.getLeftParagraph(document); +// reasonParagraph.setIndentationFirstLine(200); +// XWPFRun reasonContentRun = reasonParagraph.createRun(); +// tips = new String(); +// tips = reportAreaPojo.getAreaname() + "电网在所选择的分析时间内暂态事件主要的暂态原因为" + eventCauses.get(0).getCause() +// + "[根据表格中的次数来进行分析],见下表(图):"; +// WordUtils.addParagraph(reasonContentRun, "宋体", 11, "000000", tips, false); +// int two = 1; +// if (reportAreaPojo.isZjyytx()) { +// createTitle(document, "4." + one + "." + two + " 原因统计图", "标题 3", 400, 11); +// String causeImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "causeImage"))); +// createPic(document, causeImage, "原因统计图"); +// two++; +// } +// if (reportAreaPojo.isZjyybg()) { +// createTitle(document, "4." + one + "." + two + " 原因统计表格", "标题 3", 400, 11); +// XWPFTable causeTable = createTable(document); +// XWPFParagraph causeTableExcelParagraph = WordUtils.getCenterParagraph(document); +// insertRow(document, causeTable, causeTableExcelParagraph, true, "暂态原因", "电压暂降次数"); +// if (eventCauses.isEmpty()) { +// insertRow(document, causeTable, causeTableExcelParagraph, false, "", ""); +// } else { +// for (EventCause eventCause : eventCauses) { +// insertRow(document, causeTable, causeTableExcelParagraph, false, eventCause.getCause(), +// String.valueOf(eventCause.getCount())); +// } +// } +// } +// one++; +// } +// /* 类型统计 */ +// if (reportAreaPojo.isZjlxtx() || reportAreaPojo.isZjlxbg()) { +// createTitle(document, "4." + one + " 类型统计", "标题 2", 200, 11); +// List eventTypeLists = new ArrayList(); +// JSONArray arrayeventTypes = jsonArrayInstantiateUtil.deInstantiate(jsonArrayInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "eventTypeLists"))); +// eventTypeLists = (List) JSONArray.toCollection(arrayeventTypes, EventTypeList.class); +// +// Collections.sort(eventTypeLists, new Comparator() { +// /* +// * int compare(Person p1, Person p2) 返回一个基本类型的整型, 返回负数表示:p1 +// * 小于p2, 返回0 表示:p1和p2相等, 返回正数表示:p1大于p2 +// */ +// @Override +// public int compare(EventTypeList p1, EventTypeList p2) { +// // 按照Person的年龄进行升序排列 +// if (p2.getCount() > p1.getCount()) { +// return 1; +// } +// if (p2.getCount() == p1.getCount()) { +// return 0; +// } +// return -1; +// } +// }); +// +// XWPFParagraph typeParagraph = WordUtils.getLeftParagraph(document); +// typeParagraph.setIndentationFirstLine(200); +// XWPFRun typeContentRun = typeParagraph.createRun(); +// tips = new String(); +// tips = reportAreaPojo.getAreaname() + "电网在所选择的分析时间内暂态事件主要的暂态类型为" + eventTypeLists.get(0).getType() +// + "[根据表格中的次数来进行分析],见下表(图):"; +// WordUtils.addParagraph(typeContentRun, "宋体", 11, "000000", tips, false); +// int two = 1; +// if (reportAreaPojo.isZjlxtx()) { +// createTitle(document, "4." + one + "." + two + " 类型统计图", "标题 3", 400, 11); +// String typeImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "typeImage"))); +// createPic(document, typeImage, "类型统计图"); +// two++; +// } +// if (reportAreaPojo.isZjlxbg()) { +// createTitle(document, "4." + one + "." + two + " 类型统计表格", "标题 3", 400, 11); +// XWPFTable typeTable = createTable(document); +// XWPFParagraph typeTableExcelParagraph = WordUtils.getCenterParagraph(document); +// insertRow(document, typeTable, typeTableExcelParagraph, true, "暂态类型", "电压暂态次数"); +// if (eventTypeLists.isEmpty()) { +// insertRow(document, typeTable, typeTableExcelParagraph, false, "", ""); +// } else { +// for (EventTypeList eventTypeList : eventTypeLists) { +// insertRow(document, typeTable, typeTableExcelParagraph, false, eventTypeList.getType(), +// String.valueOf(eventTypeList.getCount())); +// } +// } +// } +// one++; +// } +// /* 暂降热力图 */ +// if (reportAreaPojo.isZjrlt()) { +// createTitle(document, "4." + one + " 暂降热力图", "标题 2", 200, 11); +// +// XWPFParagraph zjrltParagraph = WordUtils.getLeftParagraph(document); +// zjrltParagraph.setIndentationFirstLine(200); +// XWPFRun zjrltContentRun = zjrltParagraph.createRun(); +// tips = new String(); +// tips = reportAreaPojo.getAreaname() + "网在所选择的分析时间段内累计监测暂降记录" + eventcount +// + "条,使用颜色将地图上按照暂降记录发生频率进行描绘,所形成的热力具体见下图:"; +// WordUtils.addParagraph(zjrltContentRun, "宋体", 11, "000000", tips, false); +// String eventmapImage = stringInstantiateUtil.deInstantiate(stringInstantiateUtil.stringDeInstantiate(jedisManager.hget(RedisDB.SHORT_TIME_QUERY, userIndex, "eventmapImage"))); +// System.out.println(eventmapImage); +// createMap(document, eventmapImage, "暂降热力图"); +// one++; +// } +// OutputStream out; +// try { +// response.setContentType("application/force-download");// 设置强制下载不打开 +// // response.addHeader("Content-Disposition", +// // "attachment;fileName="+new +// // String(name.getBytes("GB2312"),"iso8859-1")+".docx" );// 设置文件名 +// String agent = request.getHeader("User-Agent").toUpperCase(); // 获得浏览器信息并转换为大写 +// if (agent.indexOf("MSIE") > 0 || (agent.indexOf("GECKO") > 0 && agent.indexOf("RV:11") > 0)) { // IE浏览器和Edge浏览器 +// name = URLEncoder.encode(name, "UTF-8"); +// } else { // 其他浏览器 +//// name = new String(name.getBytes("UTF-8"), "iso-8859-1"); +// name = URLEncoder.encode(name, "UTF-8"); +// } +// response.addHeader("Content-Disposition", "attachment;fileName=" + name + ".docx");// 设置文件名 +// out = response.getOutputStream(); +// document.write(out); +// document.close(); +// out.close(); +// } catch (Exception e) { +// logger.error(e.getMessage()); +// } +// } +// +// /** +// * 电压暂降列表,获取列表数据 +// * +// * @param startTime 起始时间 +// * @param endTime 结束事件 +// * @param area 区域名称 +// */ +// @RequestMapping(value = "getEventList", method = RequestMethod.POST) +// @ResponseBody +// public HttpResult getEventList(String startTime, String endTime, String area, String type, String waveType, HttpServletRequest request) { +// HttpResult result = PubUtils.initResult(TokenManager.getToken().getLoginName(), request, LogTypeEnum.BUSSINESS.toString(), 0); +// DatePojo datePojo; +// datePojo = PubUtils.validateDateTime(startTime, endTime, "getEventList"); +// if (!datePojo.getValidity()) { +// result = PubUtils.assignmentResult(null, 500, datePojo.getMsg()); +// return result; +// } +// // 统计时间段内的暂降原因次数、暂降类型次数 +// List voltageList; +// try { +// if (StringUtils.isEmpty(waveType) || waveType.equals("")) { +// voltageList = eventDetailService.getVolList(datePojo.getStartTime(), datePojo.getEndTime(), area, type, null, null, null, null, null, null, null, null, null, null); +// } else { +// voltageList = eventDetailService.getVolListByType(datePojo.getStartTime(), datePojo.getEndTime(), area, type, waveType, null, null, null, null, null, null, null, null, null, null); +// } +// if (null == voltageList) { +// result = PubUtils.assignmentResultLog(null, 500, "没有暂降列表的数据", "查询区域暂降列表", "成功", result); +// } else { +// result = PubUtils.assignmentResultLog(voltageList, 200, "获取暂降数据成功", "查询区域暂降列表", "成功", result); +// } +// } catch (Exception e) { +// logger.error("后台获取数据出错,方法名为:getEventList,异常为:" + e); +// result = PubUtils.assignmentResultLog(null, 500, "获取暂降数据失败", "查询区域暂降列表", "失败", result); +// } +// result.setResult(userUtil.getPro(area)); +// return result; +// } +// +// /** +// * 生成暂降事件报告 +// */ +// @PostMapping("createEventReport") +// @ResponseBody +// public HttpResult createEventReport(@RequestParam("index[]") List index, HttpSession session) { +// HttpResult result; +// if (CollectionUtils.isEmpty(index)) { +// result = PubUtils.assignmentResult(null, 500, "请选中需要下载的波形"); +// return result; +// } +// +// try { +// WordUtil wordUtil = new WordUtil(); +// for (int i = 0; i < index.size(); i++) { +// WaveData waveData = waveService.getWavedata(index.get(i), 1); +// //数据筛选,如果是双路电压的话,会存在2个波形数据 +// List waveDataDetails = waveService.filteWaveData(waveData); +// if (waveData.getSunData().size() == 0) { +// result = PubUtils.assignmentResult(null, 500, "没有波形数据"); +// } else { +// String time = waveData.getTime(); +// time = time.replace(" ", "%20"); +// String title = "监测点名称:" + waveData.getLineName() + "%20发生时刻:" + time + "%20特征幅值:" + waveData.getEventValue() + "%25%20持续时间:" + waveData.getPersistTime() + "s"; +// +// List shun = new ArrayList<>(); +// List rms = new ArrayList<>(); +// if (waveDataDetails.size() == 1) { +// shun.add(waveService.createShunTitle(title, waveDataDetails.get(0))); +// rms.add(waveService.createRMSTitle(title, waveDataDetails.get(0))); +// } else { +// shun.add(waveService.createShunTitle(title, waveDataDetails.get(0))); +// rms.add(waveService.createRMSTitle(title, waveDataDetails.get(0))); +// for (int n = 1; n < waveDataDetails.size(); n++) { +// shun.add(waveService.createShun(waveDataDetails.get(n))); +// rms.add(waveService.createRMS(waveDataDetails.get(n))); +// } +// } +// wordUtil.translateShun(i, shun); +// wordUtil.translateRms(i, rms); +// List eventDetailEigenvalue = eventDetailService.eventDetailEigenvalue(index.get(i)); +// wordUtil.setEventDetailEigenvalue(i, eventDetailEigenvalue); +// EventInfoDetail eventInfoList = eventDetailService.eventDetailBaseInfoByIndex(index.get(i)); +// wordUtil.setEventInfoList(i, eventInfoList); +// } +// } +// wordUtil.createReport(index.size()); +// result = PubUtils.assignmentResult(null, 200, "事件报告生成完毕"); +// +// SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMddHHmm");// 报告时分秒格式 +// String fileName = "暂降事件报告_" + formatter.format(new Date()) + ".docx"; +// //读取配置文件 +// Properties pros = PubUtils.readProperties(getClass().getClassLoader(), "java.properties"); +// String tmpPath = pros.get("TMP_PATH").toString() + File.separator + "eventreoprt"; +// tmpPath = ClearPathUtil.cleanString(tmpPath); +// OutputStream os = null; +// File tmpfile = new File(tmpPath); +// if (!tmpfile.exists()) { +// tmpfile.mkdir(); +// } +// tmpPath = tmpPath + File.separator + fileName; +// tmpPath = ClearPathUtil.cleanString(tmpPath); +// File tmp = new File(tmpPath); +// if (tmp.exists()) { +// tmp.delete(); +// } +// PubUtils.createFile(tmpPath); +// try { +// os = new FileOutputStream(tmpPath); +// if (null != wordUtil.getDocument()) { +// wordUtil.getDocument().write(os); +// session.setAttribute("eventFilePath", tmpPath); +// session.setAttribute("eventFileName", fileName); +// } +// } catch (Exception e) { +// session.setAttribute("eventFilePath", ""); +// session.setAttribute("eventFileName", ""); +// logger.error("输出暂态事件报告异常,原因为:" + e.toString()); +// } finally { +// try { +// if (os != null) { +// os.close(); +// } +// } catch (Exception e) { +// logger.error("关闭流异常,原因为:" + e.toString()); +// } +// } +// } catch (Exception e) { +// e.printStackTrace(); +// logger.error("生成事件报告失败,方法名为:getEventReport,异常为:" + e.toString()); +// result = PubUtils.assignmentResult(null, 500, "生成事件报告出错,请联系管理员"); +// } +// +// return result; +// } +// +// @GetMapping("downEventReport") +// public void downEventReport(HttpServletResponse response, HttpSession session) throws UnsupportedEncodingException { +// String tmpPath = (String) session.getAttribute("eventFilePath"); +// String filename = (String) session.getAttribute("eventFileName"); +// +// // 设置输出的格式 +// response.reset(); +// response.setContentType("application/docx"); +// response.addHeader("Content-Disposition", +// "attachment; filename=" + new String(filename.getBytes("gb2312"), "ISO8859-1")); +// // 循环取出流中的数据 +// byte[] b = new byte[100]; +// int len; +// if (StringUtils.isBlank(tmpPath)) { +// +// } else { +// if (!StringUtils.isBlank(tmpPath)) { +// tmpPath = ClearPathUtil.cleanString(tmpPath); +// // 读到流中 +// InputStream inStream = null; +// try { +// inStream = new FileInputStream(tmpPath); +// +// if (null != inStream) { +// while ((len = inStream.read(b)) > 0) +// response.getOutputStream().write(b, 0, len); +// } +// } catch (IOException e) { +// // TODO Auto-generated catch block +// logger.error("读取报告信息失败:" + e.getMessage()); +// } finally { +// if (inStream != null) { +// try { +// inStream.close(); +// } catch (Exception e) { +// logger.error("关闭输入流异常,异常为:" + e.toString()); +// } +// } +// } +// +// } +// // 清除session中的数据 +// session.removeAttribute("eventFilePath"); +// session.removeAttribute("eventFileName"); +// } +// +// } +//} diff --git a/pqs-harmonic/harmonic-api/pom.xml b/pqs-harmonic/harmonic-api/pom.xml index 6386ebb7e..50fd29d1b 100644 --- a/pqs-harmonic/harmonic-api/pom.xml +++ b/pqs-harmonic/harmonic-api/pom.xml @@ -38,6 +38,11 @@ common-poi ${project.version} + + com.njcn + pms-device-api + ${project.version} + org.influxdb influxdb-java @@ -48,6 +53,13 @@ 1.0.0 compile + + + com.github.jeffreyning + mybatisplus-plus + 1.5.1-RELEASE + compile + \ No newline at end of file diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/constant/Param.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/constant/Param.java index f5d36619f..b83c5980b 100644 --- a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/constant/Param.java +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/constant/Param.java @@ -62,4 +62,13 @@ public interface Param { String PHASIC_TYPE = "phasic_type"; String PARENT_ID = "0"; + /** + * 算法处理 + */ + String TARGET_FREQ = "freq"; + String TARGET_RMS = "rms"; + String TARGET_RMS_LVR = "rms_lvr"; + String TARGET_V_THD = "v_thd"; + String TARGET_V_UNBALANCE = "v_unbalance"; + } diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/enums/HarmonicResponseEnum.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/enums/HarmonicResponseEnum.java index 8977abe1b..abb53039c 100644 --- a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/enums/HarmonicResponseEnum.java +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/enums/HarmonicResponseEnum.java @@ -26,6 +26,14 @@ public enum HarmonicResponseEnum { CUSTOM_TYPE("A00555","字典中未查询到报表模板类型"), CUSTOM_REPORT_ACTIVE("A00556","不存在激活的自定义报告模板"), CUSTOM_REPORT_EMPTY("A00557","自定义报表模板异常,模板数据为空"), + + ALGORITHM_LINE_EMPTY("A00558","算法监测点数据为空"), + ALGORITHM_FREP_RULE("A00559","该监测点频率数据异常"), + ALGORITHM_RMS_RULE("A00560","该监测点相变压数据异常"), + ALGORITHM_RMS_LVR_RULE("A00561","该监测点线变压数据异常"), + ALGORITHM_V_THD_RULE("A00562","该监测点电压总谐波畸变率数据异常"), + ALGORITHM_V_UNBALANCE_RULE("A00563","该监测点负序电压不平衡度数据异常"), + ALGORITHM_DATA_ERROR("A00564","未获取到data数据"), ; private final String code; diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/AlgorithmSearchParam.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/AlgorithmSearchParam.java new file mode 100644 index 000000000..213f0f6ef --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/AlgorithmSearchParam.java @@ -0,0 +1,25 @@ +package com.njcn.harmonic.pojo.param; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 算法通用查询参数 + * + * @author qijian + * @date 2022/10/26 + */ +@Data +public class AlgorithmSearchParam { + + @ApiModelProperty(name = "id",value = "编号") + private String id; + + @ApiModelProperty(name = "type",value = "时间类型") + private Integer type; + + @ApiModelProperty(name = "datadate",value = "查询时间") + private String datadate; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/RMpBenchmarkLevelParam.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/RMpBenchmarkLevelParam.java new file mode 100644 index 000000000..7457f3e28 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/RMpBenchmarkLevelParam.java @@ -0,0 +1,24 @@ +package com.njcn.harmonic.pojo.param; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 【基准水平】参数 + * @Title RMpBenchmarkLevelParam + * @Package com.njcn.device.pms.pojo.param + * @Author jianghaifei + * @Date 2022-10-11 10:38 + * @Version V1.0 + */ +@Data +@EqualsAndHashCode(callSuper = true) +public class RMpBenchmarkLevelParam extends StatisticsBizBaseParam { + @ApiModelProperty(name = "voltageLevel", value = "电压等级id") + private String voltageLevel; //电压等级 + + @ApiModelProperty(name = "benchmarkIndicator", value = "基准水平评价指标") + private String benchmarkIndicator; +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/RMpHarmonicReportDParam.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/RMpHarmonicReportDParam.java new file mode 100644 index 000000000..e2f6d8a5a --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/RMpHarmonicReportDParam.java @@ -0,0 +1,24 @@ +package com.njcn.harmonic.pojo.param; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 【监测点稳态指标日报】查询参数实体 + * @Title RMpHarmonicReportDParam + * @Package com.njcn.harmonic.pojo.param + * @Author jianghaifei + * @Date 2022-10-20 19:13 + * @Version V1.0 + */ +@Data +@EqualsAndHashCode(callSuper = true) +public class RMpHarmonicReportDParam extends StatisticsBizBaseParam { +// @ApiModelProperty(name = "monitorName", value = "监测点名称") +// private String monitorName; + + @ApiModelProperty(name = "monitorId", value = "监测点id") + private String monitorId; +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/RStatHarmonicMParam.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/RStatHarmonicMParam.java new file mode 100644 index 000000000..279996429 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/RStatHarmonicMParam.java @@ -0,0 +1,28 @@ +package com.njcn.harmonic.pojo.param; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotBlank; + +/** + * <功能描述> + * + * @author 1754607820@qq.com + * @createTime: 2022-10-11 + */ +@Data +public class RStatHarmonicMParam extends StatisticsBizBaseParam { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "干扰源ID",required = true) + @NotBlank(message = "干扰源类型名称不为空") + private String monitorID; + + @ApiModelProperty(value = "指标类型ID",required = true) + @NotBlank(message = "指标类型名称不为空") + private String stasisID; + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/RStatOrgParam.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/RStatOrgParam.java new file mode 100644 index 000000000..215d581ed --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/RStatOrgParam.java @@ -0,0 +1,28 @@ +package com.njcn.harmonic.pojo.param; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.List; + +/** + * <功能描述> + * + * @author 1754607820@qq.com + * @createTime: 2022-10-31 + */ +@Data +public class RStatOrgParam extends StatisticsBizBaseParam { + + @ApiModelProperty(name = "monitorIds", value = "监测点名称") + private String monitorName; + + @ApiModelProperty(name = "voltageLevel", value = "电压等级") + private List voltageLevels; + + @ApiModelProperty(name = "powerrIds",value = "变电站id") + private List powerrIds; + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/StatSubstationBizBaseParam.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/StatSubstationBizBaseParam.java new file mode 100644 index 000000000..6f7d0a425 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/param/StatSubstationBizBaseParam.java @@ -0,0 +1,21 @@ +package com.njcn.harmonic.pojo.param; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.List; + +/** + * <功能描述> + * + * @author 1754607820@qq.com + * @createTime: 2022-10-18 + */ +@Data +public class StatSubstationBizBaseParam extends StatisticsBizBaseParam { + + @ApiModelProperty(value = "ids集合",required = true) + List ids; + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/DataV.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/DataV.java new file mode 100644 index 000000000..c3532cac6 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/DataV.java @@ -0,0 +1,56 @@ +package com.njcn.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * DataV influxDB别名映射表 + * + * @author qijian + * @version 1.0.0 + * @createTime 2022/10/27 15:27 + */ +@Data +@Measurement(name = "data_v") +public class DataV { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "freq_max") + private Double frepMAX; + + @Column(name = "freq_min") + private Double frepMIN; + + @Column(name = "rms_max") + private Double rmsMAX; + + @Column(name = "rms_min") + private Double rmsMIN; + + @Column(name = "rms_lvr_max") + private Double rmsLvrMAX; + + @Column(name = "rms_lvr_min") + private Double rmsLvrMIN; + + @Column(name = "v_thd_max") + private Double vThdMAX; + + @Column(name = "v_thd_min") + private Double vThdMIN; + + @Column(name = "v_unbalance_max") + private Double vUnbalanceMAX; + + @Column(name = "v_unbalance_min") + private Double vUnbalanceMIN; + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/LimitRatePO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/LimitRatePO.java index b356c050f..12d8d38f0 100644 --- a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/LimitRatePO.java +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/LimitRatePO.java @@ -1,5 +1,8 @@ package com.njcn.harmonic.pojo.po; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import com.github.jeffreyning.mybatisplus.anno.MppMultiId; import lombok.Data; import org.influxdb.annotation.Column; import org.influxdb.annotation.Measurement; @@ -13,237 +16,318 @@ import java.time.Instant; */ @Data @Measurement(name = "limit_rate") +@TableName(value = "limit_rate") public class LimitRatePO { //时间索引 + @MppMultiId @Column(name = "time") + @TableField(value = "time") private Instant time; //监测点索引 + @MppMultiId @Column(name = "line_id") + @TableField(value = "line_id") private String lineId; //数据类型 + @MppMultiId @Column(name = "phasic_type") + @TableField(value = "phasic_type") private String phasicType; //总次数 @Column(name = "all_time") + @TableField(value = "all_time") private Integer allTime; //闪变越限次数 @Column(name = "flicker_overtime") + @TableField(value = "flicker_overtime") private Integer flickerOverTime; //闪变总次数 @Column(name = "flicker_all_time") + @TableField(value = "flicker_all_time") private Integer flickerAllTime; //频率偏差越限次数 @Column(name = "freq_dev_overtime") + @TableField(value = "freq_dev_overtime") private Integer freqDevOverTime; //电压偏差越限次数 @Column(name = "voltage_dev_overtime") + @TableField(value = "voltage_dev_overtime") private Integer voltageDevOverTime; //电压不平衡度越限次数 @Column(name = "ubalance_overtime") + @TableField(value = "ubalance_overtime") private Integer uBalanceOverTime; //电压谐波畸变率越限次数 @Column(name = "uaberrance_overtime") + @TableField(value = "uaberrance_overtime") private Integer uAberranceOverTime; //负序电流限值次数 @Column(name = "i_neg_overtime") + @TableField(value = "i_neg_overtime") private Integer iNegOverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_2_overtime") + @TableField(value = "uharm_2_overtime") private Integer uHarm2OverTime; //3次电压谐波含有率越限次数 @Column(name = "uharm_3_overtime") + @TableField(value = "uharm_3_overtime") private Integer uHarm3OverTime; //4次电压谐波含有率越限次数 @Column(name = "uharm_4_overtime") + @TableField(value = "uharm_4_overtime") private Integer uHarm4OverTime; //5次电压谐波含有率越限次数 @Column(name = "uharm_5_overtime") + @TableField(value = "uharm_5_overtime") private Integer uHarm5OverTime; //6次电压谐波含有率越限次数 @Column(name = "uharm_6_overtime") + @TableField(value = "uharm_6_overtime") private Integer uHarm6OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_7_overtime") + @TableField(value = "uharm_7_overtime") private Integer uHarm7OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_8_overtime") + @TableField(value = "uharm_8_overtime") private Integer uHarm8OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_9_overtime") + @TableField(value = "uharm_9_overtime") private Integer uHarm9OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_10_overtime") + @TableField(value = "uharm_10_overtime") private Integer uHarm10OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_11_overtime") + @TableField(value = "uharm_11_overtime") private Integer uHarm11OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_12_overtime") + @TableField(value = "uharm_12_overtime") private Integer uHarm12OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_13_overtime") + @TableField(value = "uharm_13_overtime") private Integer uHarm13OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_14_overtime") + @TableField(value = "uharm_14_overtime") private Integer uHarm14OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_15_overtime") + @TableField(value = "uharm_15_overtime") private Integer uHarm15OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_16_overtime") + @TableField(value = "uharm_16_overtime") private Integer uHarm16OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_17_overtime") + @TableField(value = "uharm_17_overtime") private Integer uHarm17OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_18_overtime") + @TableField(value = "uharm_18_overtime") private Integer uHarm18OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_19_overtime") + @TableField(value = "uharm_19_overtime") private Integer uHarm19OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_20_overtime") + @TableField(value = "uharm_20_overtime") private Integer uHarm20OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_21_overtime") + @TableField(value = "uharm_21_overtime") private Integer uHarm21OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_22_overtime") + @TableField(value = "uharm_22_overtime") private Integer uHarm22OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_23_overtime") + @TableField(value = "uharm_23_overtime") private Integer uHarm23OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_24_overtime") + @TableField(value = "uharm_24_overtime") private Integer uHarm24OverTime; //2次电压谐波含有率越限次数 @Column(name = "uharm_25_overtime") + @TableField(value = "uharm_25_overtime") private Integer uHarm25OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_2_overtime") + @TableField(value = "iharm_2_overtime") private Integer iHarm2OverTime; //3次电流谐波幅值越限次数 @Column(name = "iharm_3_overtime") + @TableField(value = "iharm_3_overtime") private Integer iHarm3OverTime; //4次电流谐波幅值越限次数 @Column(name = "iharm_4_overtime") + @TableField(value = "iharm_4_overtime") private Integer iHarm4OverTime; //5次电流谐波幅值越限次数 @Column(name = "iharm_5_overtime") + @TableField(value = "iharm_5_overtime") private Integer iHarm5OverTime; //6次电流谐波幅值越限次数 @Column(name = "iharm_6_overtime") + @TableField(value = "iharm_6_overtime") private Integer iHarm6OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_7_overtime") + @TableField(value = "iharm_7_overtime") private Integer iHarm7OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_8_overtime") + @TableField(value = "iharm_8_overtime") private Integer iHarm8OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_9_overtime") + @TableField(value = "iharm_9_overtime") private Integer iHarm9OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_10_overtime") + @TableField(value = "iharm_10_overtime") private Integer iHarm10OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_11_overtime") + @TableField(value = "iharm_11_overtime") private Integer iHarm11OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_12_overtime") + @TableField(value = "iharm_12_overtime") private Integer iHarm12OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_13_overtime") + @TableField(value = "iharm_13_overtime") private Integer iHarm13OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_14_overtime") + @TableField(value = "iharm_14_overtime") private Integer iHarm14OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_15_overtime") + @TableField(value = "iharm_15_overtime") private Integer iHarm15OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_16_overtime") + @TableField(value = "iharm_16_overtime") private Integer iHarm16OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_17_overtime") + @TableField(value = "iharm_17_overtime") private Integer iHarm17OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_18_overtime") + @TableField(value = "iharm_18_overtime") private Integer iHarm18OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_19_overtime") + @TableField(value = "iharm_19_overtime") private Integer iHarm19OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_20_overtime") + @TableField(value = "iharm_20_overtime") private Integer iHarm20OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_21_overtime") + @TableField(value = "iharm_21_overtime") private Integer iHarm21OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_22_overtime") + @TableField(value = "iharm_22_overtime") private Integer iHarm22OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_23_overtime") + @TableField(value = "iharm_23_overtime") private Integer iHarm23OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_24_overtime") + @TableField(value = "iharm_24_overtime") private Integer iHarm24OverTime; //2次电流谐波幅值越限次数 @Column(name = "iharm_25_overtime") + @TableField(value = "iharm_25_overtime") private Integer iHarm25OverTime; //0.5次间谐波电压限值次数 @Column(name = "inuharm_1_overtime") + @TableField(value = "inuharm_1_overtime") private Integer inUHARM1OverTime; //1.5次间谐波电压限值次数 @Column(name = "inuharm_2_overtime") + @TableField(value = "inuharm_2_overtime") private Integer inUHARM2OverTime; //2.5次间谐波电压限值次数 @Column(name = "inuharm_3_overtime") + @TableField(value = "inuharm_3_overtime") private Integer inUHARM3OverTime; //3.5次间谐波电压限值次数 @Column(name = "inuharm_4_overtime") + @TableField(value = "inuharm_4_overtime") private Integer inUHARM4OverTime; //4.5次间谐波电压限值次数 @Column(name = "inuharm_5_overtime") + @TableField(value = "inuharm_5_overtime") private Integer inUHARM5OverTime; //5.5次间谐波电压限值次数 @Column(name = "inuharm_6_overtime") + @TableField(value = "inuharm_6_overtime") private Integer inUHARM6OverTime; //6.5次间谐波电压限值次数 @Column(name = "inuharm_7_overtime") + @TableField(value = "inuharm_7_overtime") private Integer inUHARM7OverTime; //7.5次间谐波电压限值次数 @Column(name = "inuharm_8_overtime") + @TableField(value = "inuharm_8_overtime") private Integer inUHARM8OverTime; //8.5次间谐波电压限值次数 @Column(name = "inuharm_9_overtime") + @TableField(value = "inuharm_9_overtime") private Integer inUHARM9OverTime; //9.5次间谐波电压限值次数 @Column(name = "inuharm_10_overtime") + @TableField(value = "inuharm_10_overtime") private Integer inUHARM10OverTime; //10.5次间谐波电压限值次数 @Column(name = "inuharm_11_overtime") + @TableField(value = "inuharm_11_overtime") private Integer inUHARM11OverTime; //11.5次间谐波电压限值次数 @Column(name = "inuharm_12_overtime") + @TableField(value = "inuharm_12_overtime") private Integer inUHARM12OverTime; //12.5次间谐波电压限值次数 @Column(name = "inuharm_13_overtime") + @TableField(value = "inuharm_13_overtime") private Integer inUHARM13OverTime; //13.5次间谐波电压限值次数 @Column(name = "inuharm_14_overtime") + @TableField(value = "inuharm_14_overtime") private Integer inUHARM14OverTime; //14.5次间谐波电压限值次数 @Column(name = "inuharm_15_overtime") + @TableField(value = "inuharm_15_overtime") private Integer inUHARM15OverTime; //15.5次间谐波电压限值次数 @Column(name = "inuharm_16_overtime") + @TableField(value = "inuharm_16_overtime") private Integer inUHARM16OverTime; //日类型数据 + @TableField(exist = false) private String dayStr; //月类型数据 + @TableField(exist = false) private String mouthStr; diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/PmsAbnormalRules.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/PmsAbnormalRules.java new file mode 100644 index 000000000..3652ee8f8 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/PmsAbnormalRules.java @@ -0,0 +1,44 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.io.Serializable; + +/** + * (PmsAbnormalRules)实体类 + * + * @author qijian + * @since 2022-10-27 14:49:22 + */ +@Data +@TableName(value = "pms_abnormal_rules") +public class PmsAbnormalRules implements Serializable { + private static final long serialVersionUID = -68797682413850371L; + /** + * 主键 + */ + private String id; + /** + * 规则类型(字典 0 数据异常 1......) + */ + private Integer type; + /** + * 指标名称 + */ + private String targetName; + /** + * 对应字段 + */ + private String target; + /** + * 下限 + */ + private Double lowerLimit; + /** + * 上限 + */ + private Double upperLimit; + +} + diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpBenchmarkLevelM.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpBenchmarkLevelM.java new file mode 100644 index 000000000..b6fddb553 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpBenchmarkLevelM.java @@ -0,0 +1,69 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * 【基准水平-月】 + * @author jianghf + * @TableName r_mp_benchmark_level_m + */ +@Data +@TableName("r_mp_benchmark_level_m") +public class RMpBenchmarkLevelM implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * 监测点ID + */ + private String measurementPointId; + + /** + * 生成数据的时间,每月统计一次 + */ + private Date dataDate; + + /** + * 电压水平均值 + */ + private Double voltageAvg; + + /** + * 电压水平标准差 + */ + private Double voltageSd; + + /** + * 三相电压不平衡水平均值 + */ + private Double unbalanceAvg; + + /** + * 三相电压不平衡水平标准差 + */ + private Double unbalanceSd; + + /** + * 电压总谐波畸变率水平均值 + */ + private Double vthdAvg; + + /** + * 电压总谐波畸变率水平标准差 + */ + private Double vthdSd; + + /** + * 长时间闪变水平均值 + */ + private Double flickerAvg; + + /** + * 长时间闪变水平标准差 + */ + private Double flickerSd; + +} \ No newline at end of file diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpBenchmarkLevelQ.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpBenchmarkLevelQ.java new file mode 100644 index 000000000..69d6a130d --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpBenchmarkLevelQ.java @@ -0,0 +1,70 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * 【基准水平-季】 + * @author jianghf + * @TableName r_mp_benchmark_level_q + */ +@Data +@TableName("r_mp_benchmark_level_q") +public class RMpBenchmarkLevelQ implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 监测点ID + */ + private String measurementPointId; + + /** + * 生成数据的时间,每季统计一次 + */ + private Date dataDate; + + /** + * 电压水平均值 + */ + private Double voltageAvg; + + /** + * 电压水平标准差 + */ + private Double voltageSd; + + /** + * 三相电压不平衡水平均值 + */ + private Double unbalanceAvg; + + /** + * 三相电压不平衡水平标准差 + */ + private Double unbalanceSd; + + /** + * 电压总谐波畸变率水平均值 + */ + private Double vthdAvg; + + /** + * 电压总谐波畸变率水平标准差 + */ + private Double vthdSd; + + /** + * 长时间闪变水平均值 + */ + private Double flickerAvg; + + /** + * 长时间闪变水平标准差 + */ + private Double flickerSd; + +} \ No newline at end of file diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpBenchmarkLevelY.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpBenchmarkLevelY.java new file mode 100644 index 000000000..2268770fb --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpBenchmarkLevelY.java @@ -0,0 +1,69 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * 【基准水平-年】 + * @author jianghf + * @TableName r_mp_benchmark_level_y + */ +@Data +@TableName("r_mp_benchmark_level_y") +public class RMpBenchmarkLevelY implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * 监测点ID + */ + private String measurementPointId; + + /** + * 生成数据的时间,每年统计一次 + */ + private Date dataDate; + + /** + * 电压水平均值 + */ + private Double voltageAvg; + + /** + * 电压水平标准差 + */ + private Double voltageSd; + + /** + * 三相电压不平衡水平均值 + */ + private Double unbalanceAvg; + + /** + * 三相电压不平衡水平标准差 + */ + private Double unbalanceSd; + + /** + * 电压总谐波畸变率水平均值 + */ + private Double vthdAvg; + + /** + * 电压总谐波畸变率水平标准差 + */ + private Double vthdSd; + + /** + * 长时间闪变水平均值 + */ + private Double flickerAvg; + + /** + * 长时间闪变水平标准差 + */ + private Double flickerSd; + +} \ No newline at end of file diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpHarmonicIMagReportD.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpHarmonicIMagReportD.java new file mode 100644 index 000000000..7e0366801 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpHarmonicIMagReportD.java @@ -0,0 +1,1074 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.util.Date; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 稳态监测点指标日报-日表(主配网表) /各次谐波电流有效值 + * @author jianghf + * @TableName r_mp_harmonic_i_mag_report_d + */ +@TableName(value ="r_mp_harmonic_i_mag_report_d") +@Data +public class RMpHarmonicIMagReportD implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 监测点ID + */ + @ApiModelProperty(name = "measurementPointId", value = "监测点id") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @ApiModelProperty(name = "dataDate", value = "dataDate") + private Date dataDate; + + /** + * 相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储 + */ + @ApiModelProperty(name = "phase", value = "相别") + private String phase; + + /** + * 基波电流-最大值 + */ + @ApiModelProperty(name = "fundamentalCurrentMax", value = "基波电流-最大值") + private Double fundamentalCurrentMax; + + /** + * 基波电流-最小值 + */ + @ApiModelProperty(name = "fundamentalCurrentMin", value = "基波电流-最小值") + private Double fundamentalCurrentMin; + + /** + * 基波电流-平均值 + */ + @ApiModelProperty(name = "fundamentalCurrentAvg", value = "基波电流-平均值") + private Double fundamentalCurrentAvg; + + /** + * 基波电流-95值 + */ + @ApiModelProperty(name = "fundamentalCurrent95", value = "基波电流-95值") + private Double fundamentalCurrent95; + + /** + * 电流总谐波畸变率-最大值 + */ + private Double harmonicCurrentThdMax; + + /** + * 电流总谐波畸变率-最小值 + */ + private Double harmonicCurrentThdMin; + + /** + * 电流总谐波畸变率-平均值 + */ + private Double harmonicCurrentThdAvg; + + /** + * 电流总谐波畸变率-95值 + */ + private Double harmonicCurrentThd95; + + /** + * 2次谐波电流有效值-最大值 + */ + @ApiModelProperty(name = "harmonicCurrentEffective2Max", value = "2次谐波电流有效值-最大值") + private Double harmonicCurrentEffective2Max; + + /** + * 2次谐波电流有效值-最小值 + */ + @ApiModelProperty(name = "harmonicCurrentEffective2Min", value = "2次谐波电流有效值-最小值") + private Double harmonicCurrentEffective2Min; + + /** + * 2次谐波电流有效值-平均值 + */ + @ApiModelProperty(name = "harmonicCurrentEffective2Avg", value = "2次谐波电流有效值-平均值") + private Double harmonicCurrentEffective2Avg; + + /** + * 2次谐波电流有效值-95值 + */ + @ApiModelProperty(name = "harmonicCurrentEffective295", value = "2次谐波电流有效值-95值") + private Double harmonicCurrentEffective295; + + /** + * 3次谐波电流有效值-最大值 + */ + @ApiModelProperty(name = "harmonicCurrentEffective3Max", value = "3次谐波电流有效值-最大值") + private Double harmonicCurrentEffective3Max; + + /** + * 3次谐波电流有效值-最小值 + */ + @ApiModelProperty(name = "harmonicCurrentEffective3Min", value = "3次谐波电流有效值-最小值") + private Double harmonicCurrentEffective3Min; + + /** + * 3次谐波电流有效值-平均值 + */ + @ApiModelProperty(name = "harmonicCurrentEffective3Avg", value = "3次谐波电流有效值-平均值") + private Double harmonicCurrentEffective3Avg; + + /** + * 3次谐波电流有效值-95值 + */ + @ApiModelProperty(name = "harmonicCurrentEffective395", value = "3次谐波电流有效值-95值") + private Double harmonicCurrentEffective395; + + /** + * 4次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective4Max; + + /** + * 4次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective4Min; + + /** + * 4次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective4Avg; + + /** + * 4次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective495; + + /** + * 5次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective5Max; + + /** + * 5次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective5Min; + + /** + * 5次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective5Avg; + + /** + * 5次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective595; + + /** + * 6次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective6Max; + + /** + * 6次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective6Min; + + /** + * 6次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective6Avg; + + /** + * 6次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective695; + + /** + * 7次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective7Max; + + /** + * 7次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective7Min; + + /** + * 7次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective7Avg; + + /** + * 7次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective795; + + /** + * 8次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective8Max; + + /** + * 8次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective8Min; + + /** + * 8次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective8Avg; + + /** + * 8次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective895; + + /** + * 9次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective9Max; + + /** + * 9次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective9Min; + + /** + * 9次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective9Avg; + + /** + * 9次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective995; + + /** + * 10次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective10Max; + + /** + * 10次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective10Min; + + /** + * 10次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective10Avg; + + /** + * 10次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective1095; + + /** + * 11次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective11Max; + + /** + * 11次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective11Min; + + /** + * 11次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective11Avg; + + /** + * 11次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective1195; + + /** + * 12次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective12Max; + + /** + * 12次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective12Min; + + /** + * 12次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective12Avg; + + /** + * 12次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective1295; + + /** + * 13次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective13Max; + + /** + * 13次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective13Min; + + /** + * 13次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective13Avg; + + /** + * 13次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective1395; + + /** + * 14次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective14Max; + + /** + * 14次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective14Min; + + /** + * 14次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective14Avg; + + /** + * 14次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective1495; + + /** + * 15次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective15Max; + + /** + * 15次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective15Min; + + /** + * 15次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective15Avg; + + /** + * 15次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective1595; + + /** + * 16次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective16Max; + + /** + * 16次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective16Min; + + /** + * 16次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective16Avg; + + /** + * 16次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective1695; + + /** + * 17次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective17Max; + + /** + * 17次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective17Min; + + /** + * 17次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective17Avg; + + /** + * 17次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective1795; + + /** + * 18次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective18Max; + + /** + * 18次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective18Min; + + /** + * 18次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective18Avg; + + /** + * 18次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective1895; + + /** + * 19次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective19Max; + + /** + * 19次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective19Min; + + /** + * 19次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective19Avg; + + /** + * 19次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective1995; + + /** + * 20次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective20Max; + + /** + * 20次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective20Min; + + /** + * 20次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective20Avg; + + /** + * 20次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective2095; + + /** + * 21次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective21Max; + + /** + * 21次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective21Min; + + /** + * 21次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective21Avg; + + /** + * 21次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective2195; + + /** + * 22次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective22Max; + + /** + * 22次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective22Min; + + /** + * 22次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective22Avg; + + /** + * 22次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective2295; + + /** + * 23次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective23Max; + + /** + * 23次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective23Min; + + /** + * 23次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective23Avg; + + /** + * 23次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective2395; + + /** + * 24次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective24Max; + + /** + * 24次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective24Min; + + /** + * 24次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective24Avg; + + /** + * 24次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective2495; + + /** + * 25次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective25Max; + + /** + * 25次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective25Min; + + /** + * 25次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective25Avg; + + /** + * 25次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective2595; + + /** + * 26次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective26Max; + + /** + * 26次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective26Min; + + /** + * 26次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective26Avg; + + /** + * 26次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective2695; + + /** + * 27次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective27Max; + + /** + * 27次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective27Min; + + /** + * 27次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective27Avg; + + /** + * 27次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective2795; + + /** + * 28次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective28Max; + + /** + * 28次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective28Min; + + /** + * 28次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective28Avg; + + /** + * 28次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective2895; + + /** + * 29次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective29Max; + + /** + * 29次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective29Min; + + /** + * 29次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective29Avg; + + /** + * 29次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective2995; + + /** + * 30次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective30Max; + + /** + * 30次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective30Min; + + /** + * 30次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective30Avg; + + /** + * 30次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective3095; + + /** + * 31次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective31Max; + + /** + * 31次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective31Min; + + /** + * 31次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective31Avg; + + /** + * 31次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective3195; + + /** + * 32次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective32Max; + + /** + * 32次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective32Min; + + /** + * 32次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective32Avg; + + /** + * 32次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective3295; + + /** + * 33次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective33Max; + + /** + * 33次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective33Min; + + /** + * 33次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective33Avg; + + /** + * 33次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective3395; + + /** + * 34次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective34Max; + + /** + * 34次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective34Min; + + /** + * 34次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective34Avg; + + /** + * 34次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective3495; + + /** + * 35次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective35Max; + + /** + * 35次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective35Min; + + /** + * 35次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective35Avg; + + /** + * 35次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective3595; + + /** + * 36次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective36Max; + + /** + * 36次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective36Min; + + /** + * 36次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective36Avg; + + /** + * 36次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective3695; + + /** + * 37次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective37Max; + + /** + * 37次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective37Min; + + /** + * 37次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective37Avg; + + /** + * 37次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective3795; + + /** + * 38次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective38Max; + + /** + * 38次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective38Min; + + /** + * 38次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective38Avg; + + /** + * 38次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective3895; + + /** + * 39次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective39Max; + + /** + * 39次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective39Min; + + /** + * 39次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective39Avg; + + /** + * 39次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective3995; + + /** + * 40次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective40Max; + + /** + * 40次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective40Min; + + /** + * 40次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective40Avg; + + /** + * 40次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective4095; + + /** + * 41次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective41Max; + + /** + * 41次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective41Min; + + /** + * 41次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective41Avg; + + /** + * 41次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective4195; + + /** + * 42次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective42Max; + + /** + * 42次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective42Min; + + /** + * 42次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective42Avg; + + /** + * 42次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective4295; + + /** + * 43次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective43Max; + + /** + * 43次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective43Min; + + /** + * 43次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective43Avg; + + /** + * 43次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective4395; + + /** + * 44次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective44Max; + + /** + * 44次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective44Min; + + /** + * 44次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective44Avg; + + /** + * 44次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective4495; + + /** + * 45次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective45Max; + + /** + * 45次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective45Min; + + /** + * 45次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective45Avg; + + /** + * 45次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective4595; + + /** + * 46次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective46Max; + + /** + * 46次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective46Min; + + /** + * 46次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective46Avg; + + /** + * 46次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective4695; + + /** + * 47次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective47Max; + + /** + * 47次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective47Min; + + /** + * 47次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective47Avg; + + /** + * 47次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective4795; + + /** + * 48次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective48Max; + + /** + * 48次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective48Min; + + /** + * 48次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective48Avg; + + /** + * 48次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective4895; + + /** + * 49次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective49Max; + + /** + * 49次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective49Min; + + /** + * 49次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective49Avg; + + /** + * 49次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective4995; + + /** + * 50次谐波电流有效值-最大值 + */ + private Double harmonicCurrentEffective50Max; + + /** + * 50次谐波电流有效值-最小值 + */ + private Double harmonicCurrentEffective50Min; + + /** + * 50次谐波电流有效值-平均值 + */ + private Double harmonicCurrentEffective50Avg; + + /** + * 50次谐波电流有效值-95值 + */ + private Double harmonicCurrentEffective5095; + + +} \ No newline at end of file diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpHarmonicIRateReportD.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpHarmonicIRateReportD.java new file mode 100644 index 000000000..e1440efd3 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpHarmonicIRateReportD.java @@ -0,0 +1,1029 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.util.Date; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 稳态监测点指标日报-日表(主网表) /各次谐波电流含有率 + * @TableName r_mp_harmonic_i_rate_report_d + */ +@TableName(value ="r_mp_harmonic_i_rate_report_d") +@Data +public class RMpHarmonicIRateReportD implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 监测点ID + */ + @ApiModelProperty(name = "measurementPointId", value = "监测点id") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @ApiModelProperty(name = "dataDate", value = "dataDate") + private Date dataDate; + + /** + * 相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储 + */ + @ApiModelProperty(name = "phase", value = "相别") + private String phase; + + /** + * 2次谐波电流含有率-最大值 + */ + @ApiModelProperty(name = "i2Max", value = "2次谐波电流含有率-最大值") + private Double i2Max; + + /** + * 2次谐波电流含有率-最小值 + */ + @ApiModelProperty(name = "i2Min", value = "2次谐波电流含有率-最小值") + private Double i2Min; + + /** + * 2次谐波电流含有率-平均值 + */ + @ApiModelProperty(name = "i2Avg", value = "2次谐波电流含有率-平均值") + private Double i2Avg; + + /** + * 2次谐波电流含有率-cp95值 + */ + @ApiModelProperty(name = "i2Cp95", value = "2次谐波电流含有率-cp95值") + private Double i2Cp95; + + /** + * 3次谐波电流含有率-最大值 + */ + @ApiModelProperty(name = "i3Max", value = "3次谐波电流含有率-最大值") + private Double i3Max; + + /** + * 3次谐波电流含有率-最小值 + */ + @ApiModelProperty(name = "i3Min", value = "3次谐波电流含有率-最小值") + private Double i3Min; + + /** + * 3次谐波电流含有率-平均值 + */ + @ApiModelProperty(name = "i3Avg", value = "3次谐波电流含有率-平均值") + private Double i3Avg; + + /** + * 3次谐波电流含有率-cp95值 + */ + @ApiModelProperty(name = "i3Cp95", value = "3次谐波电流含有率-cp95值") + private Double i3Cp95; + + /** + * 4次谐波电流含有率-最大值 + */ + private Double i4Max; + + /** + * 4次谐波电流含有率-最小值 + */ + private Double i4Min; + + /** + * 4次谐波电流含有率-平均值 + */ + private Double i4Avg; + + /** + * 4次谐波电流含有率-cp95值 + */ + private Double i4Cp95; + + /** + * 5次谐波电流含有率-最大值 + */ + private Double i5Max; + + /** + * 5次谐波电流含有率-最小值 + */ + private Double i5Min; + + /** + * 5次谐波电流含有率-平均值 + */ + private Double i5Avg; + + /** + * 5次谐波电流含有率-cp95值 + */ + private Double i5Cp95; + + /** + * 6次谐波电流含有率-最大值 + */ + private Double i6Max; + + /** + * 6次谐波电流含有率-最小值 + */ + private Double i6Min; + + /** + * 6次谐波电流含有率-平均值 + */ + private Double i6Avg; + + /** + * 6次谐波电流含有率-cp95值 + */ + private Double i6Cp95; + + /** + * 7次谐波电流含有率-最大值 + */ + private Double i7Max; + + /** + * 7次谐波电流含有率-最小值 + */ + private Double i7Min; + + /** + * 7次谐波电流含有率-平均值 + */ + private Double i7Avg; + + /** + * 7次谐波电流含有率-cp95值 + */ + private Double i7Cp95; + + /** + * 8次谐波电流含有率-最大值 + */ + private Double i8Max; + + /** + * 8次谐波电流含有率-最小值 + */ + private Double i8Min; + + /** + * 8次谐波电流含有率-平均值 + */ + private Double i8Avg; + + /** + * 8次谐波电流含有率-cp95值 + */ + private Double i8Cp95; + + /** + * 9次谐波电流含有率-最大值 + */ + private Double i9Max; + + /** + * 9次谐波电流含有率-最小值 + */ + private Double i9Min; + + /** + * 9次谐波电流含有率-平均值 + */ + private Double i9Avg; + + /** + * 9次谐波电流含有率-cp95值 + */ + private Double i9Cp95; + + /** + * 10次谐波电流含有率-最大值 + */ + private Double i10Max; + + /** + * 10次谐波电流含有率-最小值 + */ + private Double i10Min; + + /** + * 10次谐波电流含有率-平均值 + */ + private Double i10Avg; + + /** + * 10次谐波电流含有率-cp95值 + */ + private Double i10Cp95; + + /** + * 11次谐波电流含有率-最大值 + */ + private Double i11Max; + + /** + * 11次谐波电流含有率-最小值 + */ + private Double i11Min; + + /** + * 11次谐波电流含有率-平均值 + */ + private Double i11Avg; + + /** + * 11次谐波电流含有率-cp95值 + */ + private Double i11Cp95; + + /** + * 12次谐波电流含有率-最大值 + */ + private Double i12Max; + + /** + * 12次谐波电流含有率-最小值 + */ + private Double i12Min; + + /** + * 12次谐波电流含有率-平均值 + */ + private Double i12Avg; + + /** + * 12次谐波电流含有率-cp95值 + */ + private Double i12Cp95; + + /** + * 13次谐波电流含有率-最大值 + */ + private Double i13Max; + + /** + * 13次谐波电流含有率-最小值 + */ + private Double i13Min; + + /** + * 13次谐波电流含有率-平均值 + */ + private Double i13Avg; + + /** + * 13次谐波电流含有率-cp95值 + */ + private Double i13Cp95; + + /** + * 14次谐波电流含有率-最大值 + */ + private Double i14Max; + + /** + * 14次谐波电流含有率-最小值 + */ + private Double i14Min; + + /** + * 14次谐波电流含有率-平均值 + */ + private Double i14Avg; + + /** + * 14次谐波电流含有率-cp95值 + */ + private Double i14Cp95; + + /** + * 15次谐波电流含有率-最大值 + */ + private Double i15Max; + + /** + * 15次谐波电流含有率-最小值 + */ + private Double i15Min; + + /** + * 15次谐波电流含有率-平均值 + */ + private Double i15Avg; + + /** + * 15次谐波电流含有率-cp95值 + */ + private Double i15Cp95; + + /** + * 16次谐波电流含有率-最大值 + */ + private Double i16Max; + + /** + * 16次谐波电流含有率-最小值 + */ + private Double i16Min; + + /** + * 16次谐波电流含有率-平均值 + */ + private Double i16Avg; + + /** + * 16次谐波电流含有率-cp95值 + */ + private Double i16Cp95; + + /** + * 17次谐波电流含有率-最大值 + */ + private Double i17Max; + + /** + * 17次谐波电流含有率-最小值 + */ + private Double i17Min; + + /** + * 17次谐波电流含有率-平均值 + */ + private Double i17Avg; + + /** + * 17次谐波电流含有率-cp95值 + */ + private Double i17Cp95; + + /** + * 18次谐波电流含有率-最大值 + */ + private Double i18Max; + + /** + * 18次谐波电流含有率-最小值 + */ + private Double i18Min; + + /** + * 18次谐波电流含有率-平均值 + */ + private Double i18Avg; + + /** + * 18次谐波电流含有率-cp95值 + */ + private Double i18Cp95; + + /** + * 19次谐波电流含有率-最大值 + */ + private Double i19Max; + + /** + * 19次谐波电流含有率-最小值 + */ + private Double i19Min; + + /** + * 19次谐波电流含有率-平均值 + */ + private Double i19Avg; + + /** + * 19次谐波电流含有率-cp95值 + */ + private Double i19Cp95; + + /** + * 20次谐波电流含有率-最大值 + */ + private Double i20Max; + + /** + * 20次谐波电流含有率-最小值 + */ + private Double i20Min; + + /** + * 20次谐波电流含有率-平均值 + */ + private Double i20Avg; + + /** + * 20次谐波电流含有率-cp95值 + */ + private Double i20Cp95; + + /** + * 21次谐波电流含有率-最大值 + */ + private Double i21Max; + + /** + * 21次谐波电流含有率-最小值 + */ + private Double i21Min; + + /** + * 21次谐波电流含有率-平均值 + */ + private Double i21Avg; + + /** + * 21次谐波电流含有率-cp95值 + */ + private Double i21Cp95; + + /** + * 22次谐波电流含有率-最大值 + */ + private Double i22Max; + + /** + * 22次谐波电流含有率-最小值 + */ + private Double i22Min; + + /** + * 22次谐波电流含有率-平均值 + */ + private Double i22Avg; + + /** + * 22次谐波电流含有率-cp95值 + */ + private Double i22Cp95; + + /** + * 23次谐波电流含有率-最大值 + */ + private Double i23Max; + + /** + * 23次谐波电流含有率-最小值 + */ + private Double i23Min; + + /** + * 23次谐波电流含有率-平均值 + */ + private Double i23Avg; + + /** + * 23次谐波电流含有率-cp95值 + */ + private Double i23Cp95; + + /** + * 24次谐波电流含有率-最大值 + */ + private Double i24Max; + + /** + * 24次谐波电流含有率-最小值 + */ + private Double i24Min; + + /** + * 24次谐波电流含有率-平均值 + */ + private Double i24Avg; + + /** + * 24次谐波电流含有率-cp95值 + */ + private Double i24Cp95; + + /** + * 25次谐波电流含有率-最大值 + */ + private Double i25Max; + + /** + * 25次谐波电流含有率-最小值 + */ + private Double i25Min; + + /** + * 25次谐波电流含有率-平均值 + */ + private Double i25Avg; + + /** + * 25次谐波电流含有率-cp95值 + */ + private Double i25Cp95; + + /** + * 26次谐波电流含有率-最大值 + */ + private Double i26Max; + + /** + * 26次谐波电流含有率-最小值 + */ + private Double i26Min; + + /** + * 26次谐波电流含有率-平均值 + */ + private Double i26Avg; + + /** + * 26次谐波电流含有率-cp95值 + */ + private Double i26Cp95; + + /** + * 27次谐波电流含有率-最大值 + */ + private Double i27Max; + + /** + * 27次谐波电流含有率-最小值 + */ + private Double i27Min; + + /** + * 27次谐波电流含有率-平均值 + */ + private Double i27Avg; + + /** + * 27次谐波电流含有率-cp95值 + */ + private Double i27Cp95; + + /** + * 28次谐波电流含有率-最大值 + */ + private Double i28Max; + + /** + * 28次谐波电流含有率-最小值 + */ + private Double i28Min; + + /** + * 28次谐波电流含有率-平均值 + */ + private Double i28Avg; + + /** + * 28次谐波电流含有率-cp95值 + */ + private Double i28Cp95; + + /** + * 29次谐波电流含有率-最大值 + */ + private Double i29Max; + + /** + * 29次谐波电流含有率-最小值 + */ + private Double i29Min; + + /** + * 29次谐波电流含有率-平均值 + */ + private Double i29Avg; + + /** + * 29次谐波电流含有率-cp95值 + */ + private Double i29Cp95; + + /** + * 30次谐波电流含有率-最大值 + */ + private Double i30Max; + + /** + * 30次谐波电流含有率-最小值 + */ + private Double i30Min; + + /** + * 30次谐波电流含有率-平均值 + */ + private Double i30Avg; + + /** + * 30次谐波电流含有率-cp95值 + */ + private Double i30Cp95; + + /** + * 31次谐波电流含有率-最大值 + */ + private Double i31Max; + + /** + * 31次谐波电流含有率-最小值 + */ + private Double i31Min; + + /** + * 31次谐波电流含有率-平均值 + */ + private Double i31Avg; + + /** + * 31次谐波电流含有率-cp95值 + */ + private Double i31Cp95; + + /** + * 32次谐波电流含有率-最大值 + */ + private Double i32Max; + + /** + * 32次谐波电流含有率-最小值 + */ + private Double i32Min; + + /** + * 32次谐波电流含有率-平均值 + */ + private Double i32Avg; + + /** + * 32次谐波电流含有率-cp95值 + */ + private Double i32Cp95; + + /** + * 33次谐波电流含有率-最大值 + */ + private Double i33Max; + + /** + * 33次谐波电流含有率-最小值 + */ + private Double i33Min; + + /** + * 33次谐波电流含有率-平均值 + */ + private Double i33Avg; + + /** + * 33次谐波电流含有率-cp95值 + */ + private Double i33Cp95; + + /** + * 34次谐波电流含有率-最大值 + */ + private Double i34Max; + + /** + * 34次谐波电流含有率-最小值 + */ + private Double i34Min; + + /** + * 34次谐波电流含有率-平均值 + */ + private Double i34Avg; + + /** + * 34次谐波电流含有率-cp95值 + */ + private Double i34Cp95; + + /** + * 35次谐波电流含有率-最大值 + */ + private Double i35Max; + + /** + * 35次谐波电流含有率-最小值 + */ + private Double i35Min; + + /** + * 35次谐波电流含有率-平均值 + */ + private Double i35Avg; + + /** + * 35次谐波电流含有率-cp95值 + */ + private Double i35Cp95; + + /** + * 36次谐波电流含有率-最大值 + */ + private Double i36Max; + + /** + * 36次谐波电流含有率-最小值 + */ + private Double i36Min; + + /** + * 36次谐波电流含有率-平均值 + */ + private Double i36Avg; + + /** + * 36次谐波电流含有率-cp95值 + */ + private Double i36Cp95; + + /** + * 37次谐波电流含有率-最大值 + */ + private Double i37Max; + + /** + * 37次谐波电流含有率-最小值 + */ + private Double i37Min; + + /** + * 37次谐波电流含有率-平均值 + */ + private Double i37Avg; + + /** + * 37次谐波电流含有率-cp95值 + */ + private Double i37Cp95; + + /** + * 38次谐波电流含有率-最大值 + */ + private Double i38Max; + + /** + * 38次谐波电流含有率-最小值 + */ + private Double i38Min; + + /** + * 38次谐波电流含有率-平均值 + */ + private Double i38Avg; + + /** + * 38次谐波电流含有率-cp95值 + */ + private Double i38Cp95; + + /** + * 39次谐波电流含有率-最大值 + */ + private Double i39Max; + + /** + * 39次谐波电流含有率-最小值 + */ + private Double i39Min; + + /** + * 39次谐波电流含有率-平均值 + */ + private Double i39Avg; + + /** + * 39次谐波电流含有率-cp95值 + */ + private Double i39Cp95; + + /** + * 40次谐波电流含有率-最大值 + */ + private Double i40Max; + + /** + * 40次谐波电流含有率-最小值 + */ + private Double i40Min; + + /** + * 40次谐波电流含有率-平均值 + */ + private Double i40Avg; + + /** + * 40次谐波电流含有率-cp95值 + */ + private Double i40Cp95; + + /** + * 41次谐波电流含有率-最大值 + */ + private Double i41Max; + + /** + * 41次谐波电流含有率-最小值 + */ + private Double i41Min; + + /** + * 41次谐波电流含有率-平均值 + */ + private Double i41Avg; + + /** + * 41次谐波电流含有率-cp95值 + */ + private Double i41Cp95; + + /** + * 42次谐波电流含有率-最大值 + */ + private Double i42Max; + + /** + * 42次谐波电流含有率-最小值 + */ + private Double i42Min; + + /** + * 42次谐波电流含有率-平均值 + */ + private Double i42Avg; + + /** + * 42次谐波电流含有率-cp95值 + */ + private Double i42Cp95; + + /** + * 43次谐波电流含有率-最大值 + */ + private Double i43Max; + + /** + * 43次谐波电流含有率-最小值 + */ + private Double i43Min; + + /** + * 43次谐波电流含有率-平均值 + */ + private Double i43Avg; + + /** + * 43次谐波电流含有率-cp95值 + */ + private Double i43Cp95; + + /** + * 44次谐波电流含有率-最大值 + */ + private Double i44Max; + + /** + * 44次谐波电流含有率-最小值 + */ + private Double i44Min; + + /** + * 44次谐波电流含有率-平均值 + */ + private Double i44Avg; + + /** + * 44次谐波电流含有率-cp95值 + */ + private Double i44Cp95; + + /** + * 45次谐波电流含有率-最大值 + */ + private Double i45Max; + + /** + * 45次谐波电流含有率-最小值 + */ + private Double i45Min; + + /** + * 45次谐波电流含有率-平均值 + */ + private Double i45Avg; + + /** + * 45次谐波电流含有率-cp95值 + */ + private Double i45Cp95; + + /** + * 46次谐波电流含有率-最大值 + */ + private Double i46Max; + + /** + * 46次谐波电流含有率-最小值 + */ + private Double i46Min; + + /** + * 46次谐波电流含有率-平均值 + */ + private Double i46Avg; + + /** + * 46次谐波电流含有率-cp95值 + */ + private Double i46Cp95; + + /** + * 47次谐波电流含有率-最大值 + */ + private Double i47Max; + + /** + * 47次谐波电流含有率-最小值 + */ + private Double i47Min; + + /** + * 47次谐波电流含有率-平均值 + */ + private Double i47Avg; + + /** + * 47次谐波电流含有率-cp95值 + */ + private Double i47Cp95; + + /** + * 48次谐波电流含有率-最大值 + */ + private Double i48Max; + + /** + * 48次谐波电流含有率-最小值 + */ + private Double i48Min; + + /** + * 48次谐波电流含有率-平均值 + */ + private Double i48Avg; + + /** + * 48次谐波电流含有率-cp95值 + */ + private Double i48Cp95; + + /** + * 49次谐波电流含有率-最大值 + */ + private Double i49Max; + + /** + * 49次谐波电流含有率-最小值 + */ + private Double i49Min; + + /** + * 49次谐波电流含有率-平均值 + */ + private Double i49Avg; + + /** + * 49次谐波电流含有率-cp95值 + */ + private Double i49Cp95; + + /** + * 50次谐波电流含有率-最大值 + */ + private Double i50Max; + + /** + * 50次谐波电流含有率-最小值 + */ + private Double i50Min; + + /** + * 50次谐波电流含有率-平均值 + */ + private Double i50Avg; + + /** + * 50次谐波电流含有率-cp95值 + */ + private Double i50Cp95; + + +} \ No newline at end of file diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpHarmonicVRateReportD.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpHarmonicVRateReportD.java new file mode 100644 index 000000000..72150bb77 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpHarmonicVRateReportD.java @@ -0,0 +1,1075 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.util.Date; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * + * 稳态监测点指标日报-日表(主配网表) /各次谐波电压含有率 + * @author jianghf + * @TableName r_mp_harmonic_v_rate_report_d + */ +@TableName(value ="r_mp_harmonic_v_rate_report_d") +@Data +public class RMpHarmonicVRateReportD implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 监测点ID + */ + @ApiModelProperty(name = "measurementPointId", value = "监测点id") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @ApiModelProperty(name = "dataDate", value = "dataDate") + private Date dataDate; + + /** + * 相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储 + */ + @ApiModelProperty(name = "phase", value = "相别") + private String phase; + + /** + * 电压总谐波畸变率-最大值 + */ + private Double voltageHarmonicThdMax; + + /** + * 电压总谐波畸变率-最小值 + */ + private Double voltageHarmonicThdMin; + + /** + * 电压总谐波畸变率-平均值 + */ + private Double voltageHarmonicThdAvg; + + /** + * 电压总谐波畸变率-95值 + */ + private Double voltageHarmonicThd95; + + /** + * 相(线)电压基波有效值-最大值 + */ + @ApiModelProperty(name = "fundamentalVoltageMax", value = "基波电压-最大值") + private Double fundamentalVoltageMax; + + /** + * 相(线)电压基波有效值-最小值 + */ + @ApiModelProperty(name = "fundamentalVoltageMin", value = "基波电压-最小值") + private Double fundamentalVoltageMin; + + /** + * 相(线)电压基波有效值-平均值 + */ + @ApiModelProperty(name = "fundamentalVoltageAvg", value = "基波电压-平均值") + private Double fundamentalVoltageAvg; + + /** + * 相(线)电压基波有效值-95值 + */ + @ApiModelProperty(name = "fundamentalVoltage95", value = "基波电压-95值") + private Double fundamentalVoltage95; + + /** + * 2次谐波电压含有率最大值 + */ + @ApiModelProperty(name = "harmonicVoltageContent2Max", value = "2次谐波电压含有率最大值") + private Double harmonicVoltageContent2Max; + + /** + * 2次谐波电压含有率最小值 + */ + @ApiModelProperty(name = "harmonicVoltageContent2Min", value = "2次谐波电压含有率最小值") + private Double harmonicVoltageContent2Min; + + /** + * 2次谐波电压含有率平均值 + */ + @ApiModelProperty(name = "harmonicVoltageContent2Avg", value = "2次谐波电压含有率平均值") + private Double harmonicVoltageContent2Avg; + + /** + * 2次谐波电压含有率95值 + */ + @ApiModelProperty(name = "harmonicVoltageContent295", value = "2次谐波电压含有率95值") + private Double harmonicVoltageContent295; + + /** + * 3次谐波电压含有率最大值 + */ + @ApiModelProperty(name = "harmonicVoltageContent3Max", value = "3次谐波电压含有率最大值") + private Double harmonicVoltageContent3Max; + + /** + * 3次谐波电压含有率最小值 + */ + @ApiModelProperty(name = "harmonicVoltageContent3Min", value = "3次谐波电压含有率最小值") + private Double harmonicVoltageContent3Min; + + /** + * 3次谐波电压含有率平均值 + */ + @ApiModelProperty(name = "harmonicVoltageContent3Avg", value = "3次谐波电压含有率平均值") + private Double harmonicVoltageContent3Avg; + + /** + * 3次谐波电压含有率95值 + */ + @ApiModelProperty(name = "harmonicVoltageContent395", value = "3次谐波电压含有率95值") + private Double harmonicVoltageContent395; + + /** + * 4次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent4Max; + + /** + * 4次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent4Min; + + /** + * 4次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent4Avg; + + /** + * 4次谐波电压含有率95值 + */ + private Double harmonicVoltageContent495; + + /** + * 5次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent5Max; + + /** + * 5次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent5Min; + + /** + * 5次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent5Avg; + + /** + * 5次谐波电压含有率95值 + */ + private Double harmonicVoltageContent595; + + /** + * 6次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent6Max; + + /** + * 6次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent6Min; + + /** + * 6次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent6Avg; + + /** + * 6次谐波电压含有率95值 + */ + private Double harmonicVoltageContent695; + + /** + * 7次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent7Max; + + /** + * 7次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent7Min; + + /** + * 7次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent7Avg; + + /** + * 7次谐波电压含有率95值 + */ + private Double harmonicVoltageContent795; + + /** + * 8次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent8Max; + + /** + * 8次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent8Min; + + /** + * 8次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent8Avg; + + /** + * 8次谐波电压含有率95值 + */ + private Double harmonicVoltageContent895; + + /** + * 9次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent9Max; + + /** + * 9次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent9Min; + + /** + * 9次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent9Avg; + + /** + * 9次谐波电压含有率95值 + */ + private Double harmonicVoltageContent995; + + /** + * 10次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent10Max; + + /** + * 10次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent10Min; + + /** + * 10次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent10Avg; + + /** + * 10次谐波电压含有率95值 + */ + private Double harmonicVoltageContent1095; + + /** + * 11次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent11Max; + + /** + * 11次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent11Min; + + /** + * 11次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent11Avg; + + /** + * 11次谐波电压含有率95值 + */ + private Double harmonicVoltageContent1195; + + /** + * 12次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent12Max; + + /** + * 12次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent12Min; + + /** + * 12次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent12Avg; + + /** + * 12次谐波电压含有率95值 + */ + private Double harmonicVoltageContent1295; + + /** + * 13次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent13Max; + + /** + * 13次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent13Min; + + /** + * 13次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent13Avg; + + /** + * 13次谐波电压含有率95值 + */ + private Double harmonicVoltageContent1395; + + /** + * 14次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent14Max; + + /** + * 14次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent14Min; + + /** + * 14次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent14Avg; + + /** + * 14次谐波电压含有率95值 + */ + private Double harmonicVoltageContent1495; + + /** + * 15次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent15Max; + + /** + * 15次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent15Min; + + /** + * 15次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent15Avg; + + /** + * 15次谐波电压含有率95值 + */ + private Double harmonicVoltageContent1595; + + /** + * 16次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent16Max; + + /** + * 16次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent16Min; + + /** + * 16次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent16Avg; + + /** + * 16次谐波电压含有率95值 + */ + private Double harmonicVoltageContent1695; + + /** + * 17次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent17Max; + + /** + * 17次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent17Min; + + /** + * 17次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent17Avg; + + /** + * 17次谐波电压含有率95值 + */ + private Double harmonicVoltageContent1795; + + /** + * 18次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent18Max; + + /** + * 18次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent18Min; + + /** + * 18次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent18Avg; + + /** + * 18次谐波电压含有率95值 + */ + private Double harmonicVoltageContent1895; + + /** + * 19次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent19Max; + + /** + * 19次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent19Min; + + /** + * 19次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent19Avg; + + /** + * 19次谐波电压含有率95值 + */ + private Double harmonicVoltageContent1995; + + /** + * 20次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent20Max; + + /** + * 20次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent20Min; + + /** + * 20次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent20Avg; + + /** + * 20次谐波电压含有率95值 + */ + private Double harmonicVoltageContent2095; + + /** + * 21次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent21Max; + + /** + * 21次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent21Min; + + /** + * 21次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent21Avg; + + /** + * 21次谐波电压含有率95值 + */ + private Double harmonicVoltageContent2195; + + /** + * 22次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent22Max; + + /** + * 22次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent22Min; + + /** + * 22次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent22Avg; + + /** + * 22次谐波电压含有率95值 + */ + private Double harmonicVoltageContent2295; + + /** + * 23次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent23Max; + + /** + * 23次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent23Min; + + /** + * 23次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent23Avg; + + /** + * 23次谐波电压含有率95值 + */ + private Double harmonicVoltageContent2395; + + /** + * 24次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent24Max; + + /** + * 24次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent24Min; + + /** + * 24次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent24Avg; + + /** + * 24次谐波电压含有率95值 + */ + private Double harmonicVoltageContent2495; + + /** + * 25次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent25Max; + + /** + * 25次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent25Min; + + /** + * 25次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent25Avg; + + /** + * 25次谐波电压含有率95值 + */ + private Double harmonicVoltageContent2595; + + /** + * 26次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent26Max; + + /** + * 26次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent26Min; + + /** + * 26次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent26Avg; + + /** + * 26次谐波电压含有率95值 + */ + private Double harmonicVoltageContent2695; + + /** + * 27次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent27Max; + + /** + * 27次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent27Min; + + /** + * 27次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent27Avg; + + /** + * 27次谐波电压含有率95值 + */ + private Double harmonicVoltageContent2795; + + /** + * 28次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent28Max; + + /** + * 28次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent28Min; + + /** + * 28次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent28Avg; + + /** + * 28次谐波电压含有率95值 + */ + private Double harmonicVoltageContent2895; + + /** + * 29次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent29Max; + + /** + * 29次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent29Min; + + /** + * 29次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent29Avg; + + /** + * 29次谐波电压含有率95值 + */ + private Double harmonicVoltageContent2995; + + /** + * 30次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent30Max; + + /** + * 30次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent30Min; + + /** + * 30次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent30Avg; + + /** + * 30次谐波电压含有率95值 + */ + private Double harmonicVoltageContent3095; + + /** + * 31次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent31Max; + + /** + * 31次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent31Min; + + /** + * 31次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent31Avg; + + /** + * 31次谐波电压含有率95值 + */ + private Double harmonicVoltageContent3195; + + /** + * 32次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent32Max; + + /** + * 32次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent32Min; + + /** + * 32次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent32Avg; + + /** + * 32次谐波电压含有率95值 + */ + private Double harmonicVoltageContent3295; + + /** + * 33次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent33Max; + + /** + * 33次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent33Min; + + /** + * 33次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent33Avg; + + /** + * 33次谐波电压含有率95值 + */ + private Double harmonicVoltageContent3395; + + /** + * 34次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent34Max; + + /** + * 34次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent34Min; + + /** + * 34次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent34Avg; + + /** + * 34次谐波电压含有率95值 + */ + private Double harmonicVoltageContent3495; + + /** + * 35次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent35Max; + + /** + * 35次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent35Min; + + /** + * 35次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent35Avg; + + /** + * 35次谐波电压含有率95值 + */ + private Double harmonicVoltageContent3595; + + /** + * 36次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent36Max; + + /** + * 36次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent36Min; + + /** + * 36次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent36Avg; + + /** + * 36次谐波电压含有率95值 + */ + private Double harmonicVoltageContent3695; + + /** + * 37次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent37Max; + + /** + * 37次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent37Min; + + /** + * 37次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent37Avg; + + /** + * 37次谐波电压含有率95值 + */ + private Double harmonicVoltageContent3795; + + /** + * 38次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent38Max; + + /** + * 38次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent38Min; + + /** + * 38次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent38Avg; + + /** + * 38次谐波电压含有率95值 + */ + private Double harmonicVoltageContent3895; + + /** + * 39次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent39Max; + + /** + * 39次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent39Min; + + /** + * 39次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent39Avg; + + /** + * 39次谐波电压含有率95值 + */ + private Double harmonicVoltageContent3995; + + /** + * 40次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent40Max; + + /** + * 40次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent40Min; + + /** + * 40次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent40Avg; + + /** + * 40次谐波电压含有率95值 + */ + private Double harmonicVoltageContent4095; + + /** + * 41次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent41Max; + + /** + * 41次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent41Min; + + /** + * 41次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent41Avg; + + /** + * 41次谐波电压含有率95值 + */ + private Double harmonicVoltageContent4195; + + /** + * 42次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent42Max; + + /** + * 42次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent42Min; + + /** + * 42次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent42Avg; + + /** + * 42次谐波电压含有率95值 + */ + private Double harmonicVoltageContent4295; + + /** + * 43次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent43Max; + + /** + * 43次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent43Min; + + /** + * 43次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent43Avg; + + /** + * 43次谐波电压含有率95值 + */ + private Double harmonicVoltageContent4395; + + /** + * 44次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent44Max; + + /** + * 44次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent44Min; + + /** + * 44次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent44Avg; + + /** + * 44次谐波电压含有率95值 + */ + private Double harmonicVoltageContent4495; + + /** + * 45次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent45Max; + + /** + * 45次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent45Min; + + /** + * 45次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent45Avg; + + /** + * 45次谐波电压含有率95值 + */ + private Double harmonicVoltageContent4595; + + /** + * 46次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent46Max; + + /** + * 46次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent46Min; + + /** + * 46次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent46Avg; + + /** + * 46次谐波电压含有率95值 + */ + private Double harmonicVoltageContent4695; + + /** + * 47次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent47Max; + + /** + * 47次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent47Min; + + /** + * 47次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent47Avg; + + /** + * 47次谐波电压含有率95值 + */ + private Double harmonicVoltageContent4795; + + /** + * 48次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent48Max; + + /** + * 48次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent48Min; + + /** + * 48次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent48Avg; + + /** + * 48次谐波电压含有率95值 + */ + private Double harmonicVoltageContent4895; + + /** + * 49次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent49Max; + + /** + * 49次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent49Min; + + /** + * 49次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent49Avg; + + /** + * 49次谐波电压含有率95值 + */ + private Double harmonicVoltageContent4995; + + /** + * 50次谐波电压含有率最大值 + */ + private Double harmonicVoltageContent50Max; + + /** + * 50次谐波电压含有率最小值 + */ + private Double harmonicVoltageContent50Min; + + /** + * 50次谐波电压含有率平均值 + */ + private Double harmonicVoltageContent50Avg; + + /** + * 50次谐波电压含有率95值 + */ + private Double harmonicVoltageContent5095; + + +} \ No newline at end of file diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpInharmonicIRateReportD.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpInharmonicIRateReportD.java new file mode 100644 index 000000000..a45c9ecf4 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpInharmonicIRateReportD.java @@ -0,0 +1,1030 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.util.Date; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 稳态监测点指标日报-日表(主网表) /各次间谐波电流含有率 + * @TableName r_mp_inharmonic_i_rate_report_d + */ +@TableName(value ="r_mp_inharmonic_i_rate_report_d") +@Data +public class RMpInharmonicIRateReportD implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 监测点ID + */ + @ApiModelProperty(name = "measurementPointId", value = "监测点id") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @ApiModelProperty(name = "dataDate", value = "dataDate") + private Date dataDate; + + /** + * 相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储 + */ + @ApiModelProperty(name = "phase", value = "相别") + private String phase; + + /** + * 2次间谐波电流含有率-最大值 + */ + @ApiModelProperty(name = "inharmI2Max", value = "2次间谐波电流含有率-最大值") + private Double inharmI2Max; + + /** + * 2次间谐波电流含有率-最小值 + */ + @ApiModelProperty(name = "inharmI2Min", value = "2次间谐波电流含有率-最小值") + private Double inharmI2Min; + + /** + * 2次间谐波电流含有率-平均值 + */ + @ApiModelProperty(name = "inharmI2Avg", value = "2次间谐波电流含有率-平均值") + private Double inharmI2Avg; + + /** + * 2次间谐波电流含有率-cp95值 + */ + @ApiModelProperty(name = "inharmI2Cp95", value = "2次间谐波电流含有率-cp95值") + private Double inharmI2Cp95; + + /** + * 3次间谐波电流含有率-最大值 + */ + @ApiModelProperty(name = "inharmI3Max", value = "3次间谐波电流含有率-最大值") + private Double inharmI3Max; + + /** + * 3次间谐波电流含有率-最小值 + */ + @ApiModelProperty(name = "inharmI3Min", value = "3次间谐波电流含有率-最小值") + private Double inharmI3Min; + + /** + * 3次间谐波电流含有率-平均值 + */ + @ApiModelProperty(name = "inharmI3Avg", value = "3次间谐波电流含有率-平均值") + private Double inharmI3Avg; + + /** + * 3次间谐波电流含有率-cp95值 + */ + @ApiModelProperty(name = "inharmI3Cp95", value = "3次间谐波电流含有率-cp95值") + private Double inharmI3Cp95; + + /** + * 4次间谐波电流含有率-最大值 + */ + private Double inharmI4Max; + + /** + * 4次间谐波电流含有率-最小值 + */ + private Double inharmI4Min; + + /** + * 4次间谐波电流含有率-平均值 + */ + private Double inharmI4Avg; + + /** + * 4次间谐波电流含有率-cp95值 + */ + private Double inharmI4Cp95; + + /** + * 5次间谐波电流含有率-最大值 + */ + private Double inharmI5Max; + + /** + * 5次间谐波电流含有率-最小值 + */ + private Double inharmI5Min; + + /** + * 5次间谐波电流含有率-平均值 + */ + private Double inharmI5Avg; + + /** + * 5次间谐波电流含有率-cp95值 + */ + private Double inharmI5Cp95; + + /** + * 6次间谐波电流含有率-最大值 + */ + private Double inharmI6Max; + + /** + * 6次间谐波电流含有率-最小值 + */ + private Double inharmI6Min; + + /** + * 6次间谐波电流含有率-平均值 + */ + private Double inharmI6Avg; + + /** + * 6次间谐波电流含有率-cp95值 + */ + private Double inharmI6Cp95; + + /** + * 7次间谐波电流含有率-最大值 + */ + private Double inharmI7Max; + + /** + * 7次间谐波电流含有率-最小值 + */ + private Double inharmI7Min; + + /** + * 7次间谐波电流含有率-平均值 + */ + private Double inharmI7Avg; + + /** + * 7次间谐波电流含有率-cp95值 + */ + private Double inharmI7Cp95; + + /** + * 8次间谐波电流含有率-最大值 + */ + private Double inharmI8Max; + + /** + * 8次间谐波电流含有率-最小值 + */ + private Double inharmI8Min; + + /** + * 8次间谐波电流含有率-平均值 + */ + private Double inharmI8Avg; + + /** + * 8次间谐波电流含有率-cp95值 + */ + private Double inharmI8Cp95; + + /** + * 9次间谐波电流含有率-最大值 + */ + private Double inharmI9Max; + + /** + * 9次间谐波电流含有率-最小值 + */ + private Double inharmI9Min; + + /** + * 9次间谐波电流含有率-平均值 + */ + private Double inharmI9Avg; + + /** + * 9次间谐波电流含有率-cp95值 + */ + private Double inharmI9Cp95; + + /** + * 10次间谐波电流含有率-最大值 + */ + private Double inharmI10Max; + + /** + * 10次间谐波电流含有率-最小值 + */ + private Double inharmI10Min; + + /** + * 10次间谐波电流含有率-平均值 + */ + private Double inharmI10Avg; + + /** + * 10次间谐波电流含有率-cp95值 + */ + private Double inharmI10Cp95; + + /** + * 11次间谐波电流含有率-最大值 + */ + private Double inharmI11Max; + + /** + * 11次间谐波电流含有率-最小值 + */ + private Double inharmI11Min; + + /** + * 11次间谐波电流含有率-平均值 + */ + private Double inharmI11Avg; + + /** + * 11次间谐波电流含有率-cp95值 + */ + private Double inharmI11Cp95; + + /** + * 12次间谐波电流含有率-最大值 + */ + private Double inharmI12Max; + + /** + * 12次间谐波电流含有率-最小值 + */ + private Double inharmI12Min; + + /** + * 12次间谐波电流含有率-平均值 + */ + private Double inharmI12Avg; + + /** + * 12次间谐波电流含有率-cp95值 + */ + private Double inharmI12Cp95; + + /** + * 13次间谐波电流含有率-最大值 + */ + private Double inharmI13Max; + + /** + * 13次间谐波电流含有率-最小值 + */ + private Double inharmI13Min; + + /** + * 13次间谐波电流含有率-平均值 + */ + private Double inharmI13Avg; + + /** + * 13次间谐波电流含有率-cp95值 + */ + private Double inharmI13Cp95; + + /** + * 14次间谐波电流含有率-最大值 + */ + private Double inharmI14Max; + + /** + * 14次间谐波电流含有率-最小值 + */ + private Double inharmI14Min; + + /** + * 14次间谐波电流含有率-平均值 + */ + private Double inharmI14Avg; + + /** + * 14次间谐波电流含有率-cp95值 + */ + private Double inharmI14Cp95; + + /** + * 15次间谐波电流含有率-最大值 + */ + private Double inharmI15Max; + + /** + * 15次间谐波电流含有率-最小值 + */ + private Double inharmI15Min; + + /** + * 15次间谐波电流含有率-平均值 + */ + private Double inharmI15Avg; + + /** + * 15次间谐波电流含有率-cp95值 + */ + private Double inharmI15Cp95; + + /** + * 16次间谐波电流含有率-最大值 + */ + private Double inharmI16Max; + + /** + * 16次间谐波电流含有率-最小值 + */ + private Double inharmI16Min; + + /** + * 16次间谐波电流含有率-平均值 + */ + private Double inharmI16Avg; + + /** + * 16次间谐波电流含有率-cp95值 + */ + private Double inharmI16Cp95; + + /** + * 17次间谐波电流含有率-最大值 + */ + private Double inharmI17Max; + + /** + * 17次间谐波电流含有率-最小值 + */ + private Double inharmI17Min; + + /** + * 17次间谐波电流含有率-平均值 + */ + private Double inharmI17Avg; + + /** + * 17次间谐波电流含有率-cp95值 + */ + private Double inharmI17Cp95; + + /** + * 18次间谐波电流含有率-最大值 + */ + private Double inharmI18Max; + + /** + * 18次间谐波电流含有率-最小值 + */ + private Double inharmI18Min; + + /** + * 18次间谐波电流含有率-平均值 + */ + private Double inharmI18Avg; + + /** + * 18次间谐波电流含有率-cp95值 + */ + private Double inharmI18Cp95; + + /** + * 19次间谐波电流含有率-最大值 + */ + private Double inharmI19Max; + + /** + * 19次间谐波电流含有率-最小值 + */ + private Double inharmI19Min; + + /** + * 19次间谐波电流含有率-平均值 + */ + private Double inharmI19Avg; + + /** + * 19次间谐波电流含有率-cp95值 + */ + private Double inharmI19Cp95; + + /** + * 20次间谐波电流含有率-最大值 + */ + private Double inharmI20Max; + + /** + * 20次间谐波电流含有率-最小值 + */ + private Double inharmI20Min; + + /** + * 20次间谐波电流含有率-平均值 + */ + private Double inharmI20Avg; + + /** + * 20次间谐波电流含有率-cp95值 + */ + private Double inharmI20Cp95; + + /** + * 21次间谐波电流含有率-最大值 + */ + private Double inharmI21Max; + + /** + * 21次间谐波电流含有率-最小值 + */ + private Double inharmI21Min; + + /** + * 21次间谐波电流含有率-平均值 + */ + private Double inharmI21Avg; + + /** + * 21次间谐波电流含有率-cp95值 + */ + private Double inharmI21Cp95; + + /** + * 22次间谐波电流含有率-最大值 + */ + private Double inharmI22Max; + + /** + * 22次间谐波电流含有率-最小值 + */ + private Double inharmI22Min; + + /** + * 22次间谐波电流含有率-平均值 + */ + private Double inharmI22Avg; + + /** + * 22次间谐波电流含有率-cp95值 + */ + private Double inharmI22Cp95; + + /** + * 23次间谐波电流含有率-最大值 + */ + private Double inharmI23Max; + + /** + * 23次间谐波电流含有率-最小值 + */ + private Double inharmI23Min; + + /** + * 23次间谐波电流含有率-平均值 + */ + private Double inharmI23Avg; + + /** + * 23次间谐波电流含有率-cp95值 + */ + private Double inharmI23Cp95; + + /** + * 24次间谐波电流含有率-最大值 + */ + private Double inharmI24Max; + + /** + * 24次间谐波电流含有率-最小值 + */ + private Double inharmI24Min; + + /** + * 24次间谐波电流含有率-平均值 + */ + private Double inharmI24Avg; + + /** + * 24次间谐波电流含有率-cp95值 + */ + private Double inharmI24Cp95; + + /** + * 25次间谐波电流含有率-最大值 + */ + private Double inharmI25Max; + + /** + * 25次间谐波电流含有率-最小值 + */ + private Double inharmI25Min; + + /** + * 25次间谐波电流含有率-平均值 + */ + private Double inharmI25Avg; + + /** + * 25次间谐波电流含有率-cp95值 + */ + private Double inharmI25Cp95; + + /** + * 26次间谐波电流含有率-最大值 + */ + private Double inharmI26Max; + + /** + * 26次间谐波电流含有率-最小值 + */ + private Double inharmI26Min; + + /** + * 26次间谐波电流含有率-平均值 + */ + private Double inharmI26Avg; + + /** + * 26次间谐波电流含有率-cp95值 + */ + private Double inharmI26Cp95; + + /** + * 27次间谐波电流含有率-最大值 + */ + private Double inharmI27Max; + + /** + * 27次间谐波电流含有率-最小值 + */ + private Double inharmI27Min; + + /** + * 27次间谐波电流含有率-平均值 + */ + private Double inharmI27Avg; + + /** + * 27次间谐波电流含有率-cp95值 + */ + private Double inharmI27Cp95; + + /** + * 28次间谐波电流含有率-最大值 + */ + private Double inharmI28Max; + + /** + * 28次间谐波电流含有率-最小值 + */ + private Double inharmI28Min; + + /** + * 28次间谐波电流含有率-平均值 + */ + private Double inharmI28Avg; + + /** + * 28次间谐波电流含有率-cp95值 + */ + private Double inharmI28Cp95; + + /** + * 29次间谐波电流含有率-最大值 + */ + private Double inharmI29Max; + + /** + * 29次间谐波电流含有率-最小值 + */ + private Double inharmI29Min; + + /** + * 29次间谐波电流含有率-平均值 + */ + private Double inharmI29Avg; + + /** + * 29次间谐波电流含有率-cp95值 + */ + private Double inharmI29Cp95; + + /** + * 30次间谐波电流含有率-最大值 + */ + private Double inharmI30Max; + + /** + * 30次间谐波电流含有率-最小值 + */ + private Double inharmI30Min; + + /** + * 30次间谐波电流含有率-平均值 + */ + private Double inharmI30Avg; + + /** + * 30次间谐波电流含有率-cp95值 + */ + private Double inharmI30Cp95; + + /** + * 31次间谐波电流含有率-最大值 + */ + private Double inharmI31Max; + + /** + * 31次间谐波电流含有率-最小值 + */ + private Double inharmI31Min; + + /** + * 31次间谐波电流含有率-平均值 + */ + private Double inharmI31Avg; + + /** + * 31次间谐波电流含有率-cp95值 + */ + private Double inharmI31Cp95; + + /** + * 32次间谐波电流含有率-最大值 + */ + private Double inharmI32Max; + + /** + * 32次间谐波电流含有率-最小值 + */ + private Double inharmI32Min; + + /** + * 32次间谐波电流含有率-平均值 + */ + private Double inharmI32Avg; + + /** + * 32次间谐波电流含有率-cp95值 + */ + private Double inharmI32Cp95; + + /** + * 33次间谐波电流含有率-最大值 + */ + private Double inharmI33Max; + + /** + * 33次间谐波电流含有率-最小值 + */ + private Double inharmI33Min; + + /** + * 33次间谐波电流含有率-平均值 + */ + private Double inharmI33Avg; + + /** + * 33次间谐波电流含有率-cp95值 + */ + private Double inharmI33Cp95; + + /** + * 34次间谐波电流含有率-最大值 + */ + private Double inharmI34Max; + + /** + * 34次间谐波电流含有率-最小值 + */ + private Double inharmI34Min; + + /** + * 34次间谐波电流含有率-平均值 + */ + private Double inharmI34Avg; + + /** + * 34次间谐波电流含有率-cp95值 + */ + private Double inharmI34Cp95; + + /** + * 35次间谐波电流含有率-最大值 + */ + private Double inharmI35Max; + + /** + * 35次间谐波电流含有率-最小值 + */ + private Double inharmI35Min; + + /** + * 35次间谐波电流含有率-平均值 + */ + private Double inharmI35Avg; + + /** + * 35次间谐波电流含有率-cp95值 + */ + private Double inharmI35Cp95; + + /** + * 36次间谐波电流含有率-最大值 + */ + private Double inharmI36Max; + + /** + * 36次间谐波电流含有率-最小值 + */ + private Double inharmI36Min; + + /** + * 36次间谐波电流含有率-平均值 + */ + private Double inharmI36Avg; + + /** + * 36次间谐波电流含有率-cp95值 + */ + private Double inharmI36Cp95; + + /** + * 37次间谐波电流含有率-最大值 + */ + private Double inharmI37Max; + + /** + * 37次间谐波电流含有率-最小值 + */ + private Double inharmI37Min; + + /** + * 37次间谐波电流含有率-平均值 + */ + private Double inharmI37Avg; + + /** + * 37次间谐波电流含有率-cp95值 + */ + private Double inharmI37Cp95; + + /** + * 38次间谐波电流含有率-最大值 + */ + private Double inharmI38Max; + + /** + * 38次间谐波电流含有率-最小值 + */ + private Double inharmI38Min; + + /** + * 38次间谐波电流含有率-平均值 + */ + private Double inharmI38Avg; + + /** + * 38次间谐波电流含有率-cp95值 + */ + private Double inharmI38Cp95; + + /** + * 39次间谐波电流含有率-最大值 + */ + private Double inharmI39Max; + + /** + * 39次间谐波电流含有率-最小值 + */ + private Double inharmI39Min; + + /** + * 39次间谐波电流含有率-平均值 + */ + private Double inharmI39Avg; + + /** + * 39次间谐波电流含有率-cp95值 + */ + private Double inharmI39Cp95; + + /** + * 40次间谐波电流含有率-最大值 + */ + private Double inharmI40Max; + + /** + * 40次间谐波电流含有率-最小值 + */ + private Double inharmI40Min; + + /** + * 40次间谐波电流含有率-平均值 + */ + private Double inharmI40Avg; + + /** + * 40次间谐波电流含有率-cp95值 + */ + private Double inharmI40Cp95; + + /** + * 41次间谐波电流含有率-最大值 + */ + private Double inharmI41Max; + + /** + * 41次间谐波电流含有率-最小值 + */ + private Double inharmI41Min; + + /** + * 41次间谐波电流含有率-平均值 + */ + private Double inharmI41Avg; + + /** + * 41次间谐波电流含有率-cp95值 + */ + private Double inharmI41Cp95; + + /** + * 42次间谐波电流含有率-最大值 + */ + private Double inharmI42Max; + + /** + * 42次间谐波电流含有率-最小值 + */ + private Double inharmI42Min; + + /** + * 42次间谐波电流含有率-平均值 + */ + private Double inharmI42Avg; + + /** + * 42次间谐波电流含有率-cp95值 + */ + private Double inharmI42Cp95; + + /** + * 43次间谐波电流含有率-最大值 + */ + private Double inharmI43Max; + + /** + * 43次间谐波电流含有率-最小值 + */ + private Double inharmI43Min; + + /** + * 43次间谐波电流含有率-平均值 + */ + private Double inharmI43Avg; + + /** + * 43次间谐波电流含有率-cp95值 + */ + private Double inharmI43Cp95; + + /** + * 44次间谐波电流含有率-最大值 + */ + private Double inharmI44Max; + + /** + * 44次间谐波电流含有率-最小值 + */ + private Double inharmI44Min; + + /** + * 44次间谐波电流含有率-平均值 + */ + private Double inharmI44Avg; + + /** + * 44次间谐波电流含有率-cp95值 + */ + private Double inharmI44Cp95; + + /** + * 45次间谐波电流含有率-最大值 + */ + private Double inharmI45Max; + + /** + * 45次间谐波电流含有率-最小值 + */ + private Double inharmI45Min; + + /** + * 45次间谐波电流含有率-平均值 + */ + private Double inharmI45Avg; + + /** + * 45次间谐波电流含有率-cp95值 + */ + private Double inharmI45Cp95; + + /** + * 46次间谐波电流含有率-最大值 + */ + private Double inharmI46Max; + + /** + * 46次间谐波电流含有率-最小值 + */ + private Double inharmI46Min; + + /** + * 46次间谐波电流含有率-平均值 + */ + private Double inharmI46Avg; + + /** + * 46次间谐波电流含有率-cp95值 + */ + private Double inharmI46Cp95; + + /** + * 47次间谐波电流含有率-最大值 + */ + private Double inharmI47Max; + + /** + * 47次间谐波电流含有率-最小值 + */ + private Double inharmI47Min; + + /** + * 47次间谐波电流含有率-平均值 + */ + private Double inharmI47Avg; + + /** + * 47次间谐波电流含有率-cp95值 + */ + private Double inharmI47Cp95; + + /** + * 48次间谐波电流含有率-最大值 + */ + private Double inharmI48Max; + + /** + * 48次间谐波电流含有率-最小值 + */ + private Double inharmI48Min; + + /** + * 48次间谐波电流含有率-平均值 + */ + private Double inharmI48Avg; + + /** + * 48次间谐波电流含有率-cp95值 + */ + private Double inharmI48Cp95; + + /** + * 49次间谐波电流含有率-最大值 + */ + private Double inharmI49Max; + + /** + * 49次间谐波电流含有率-最小值 + */ + private Double inharmI49Min; + + /** + * 49次间谐波电流含有率-平均值 + */ + private Double inharmI49Avg; + + /** + * 49次间谐波电流含有率-cp95值 + */ + private Double inharmI49Cp95; + + /** + * 50次间谐波电流含有率-最大值 + */ + private Double inharmI50Max; + + /** + * 50次间谐波电流含有率-最小值 + */ + private Double inharmI50Min; + + /** + * 50次间谐波电流含有率-平均值 + */ + private Double inharmI50Avg; + + /** + * 50次间谐波电流含有率-cp95值 + */ + private Double inharmI50Cp95; + + +} \ No newline at end of file diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpInharmonicVRateReportD.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpInharmonicVRateReportD.java new file mode 100644 index 000000000..a3b42cd62 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpInharmonicVRateReportD.java @@ -0,0 +1,1050 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.util.Date; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * + * @TableName r_mp_inharmonic_v_rate_report_d + */ +@TableName(value ="r_mp_inharmonic_v_rate_report_d") +@Data +public class RMpInharmonicVRateReportD implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 监测点ID + */ + @ApiModelProperty(name = "measurementPointId", value = "监测点id") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @ApiModelProperty(name = "dataDate", value = "dataDate") + private Date dataDate; + + /** + * 相别:"A" "B" "C" "ABC" "T" 配网部分相别的数据采用T标志存储 + */ + @ApiModelProperty(name = "phase", value = "相别") + private String phase; + + /** + * 0.5次间谐波电压含有率最大值 + */ + @ApiModelProperty(name = "inharmV1Max", value = "0.5次间谐波电压含有率最大值") + private Double inharmV1Max; + + /** + * 0.5次间谐波电压含有率最小值 + */ + @ApiModelProperty(name = "inharmV1Min", value = "0.5次间谐波电压含有率最小值") + private Double inharmV1Min; + + /** + * 0.5次间谐波电压含有率平均值 + */ + @ApiModelProperty(name = "inharmV1Avg", value = "0.5次间谐波电压含有率平均值") + private Double inharmV1Avg; + + /** + * 0.5次间谐波电压含有率95值 + */ + @ApiModelProperty(name = "inharmV1Cp95", value = "0.5次间谐波电压含有率95值") + private Double inharmV1Cp95; + + /** + * 1.5次间谐波电压含有率最大值 + */ + @ApiModelProperty(name = "inharmV2Max", value = "1.5次间谐波电压含有率最大值") + private Double inharmV2Max; + + /** + * 1.5次间谐波电压含有率最小值 + */ + @ApiModelProperty(name = "inharmV2Min", value = "1.5次间谐波电压含有率最小值") + private Double inharmV2Min; + + /** + * 1.5次间谐波电压含有率平均值 + */ + @ApiModelProperty(name = "inharmV2Avg", value = "1.5次间谐波电压含有率平均值") + private Double inharmV2Avg; + + /** + * 1.5次间谐波电压含有率95值 + */ + @ApiModelProperty(name = "inharmV2Cp95", value = "1.5次间谐波电压含有率95值") + private Double inharmV2Cp95; + + /** + * 2.5次间谐波电压含有率最大值 + */ + private Double inharmV3Max; + + /** + * 2.5次间谐波电压含有率最小值 + */ + private Double inharmV3Min; + + /** + * 2.5次间谐波电压含有率平均值 + */ + private Double inharmV3Avg; + + /** + * 2.5次间谐波电压含有率95值 + */ + private Double inharmV3Cp95; + + /** + * 3.5次间谐波电压含有率最大值 + */ + private Double inharmV4Max; + + /** + * 3.5次间谐波电压含有率最小值 + */ + private Double inharmV4Min; + + /** + * 3.5次间谐波电压含有率平均值 + */ + private Double inharmV4Avg; + + /** + * 3.5次间谐波电压含有率95值 + */ + private Double inharmV4Cp95; + + /** + * 4.5次间谐波电压含有率最大值 + */ + private Double inharmV5Max; + + /** + * 4.5次间谐波电压含有率最小值 + */ + private Double inharmV5Min; + + /** + * 4.5次间谐波电压含有率平均值 + */ + private Double inharmV5Avg; + + /** + * 4.5次间谐波电压含有率95值 + */ + private Double inharmV5Cp95; + + /** + * 5.5次间谐波电压含有率最大值 + */ + private Double inharmV6Max; + + /** + * 5.5次间谐波电压含有率最小值 + */ + private Double inharmV6Min; + + /** + * 5.5次间谐波电压含有率平均值 + */ + private Double inharmV6Avg; + + /** + * 5.5次间谐波电压含有率95值 + */ + private Double inharmV6Cp95; + + /** + * 6.5次间谐波电压含有率最大值 + */ + private Double inharmV7Max; + + /** + * 6.5次间谐波电压含有率最小值 + */ + private Double inharmV7Min; + + /** + * 6.5次间谐波电压含有率平均值 + */ + private Double inharmV7Avg; + + /** + * 6.5次间谐波电压含有率95值 + */ + private Double inharmV7Cp95; + + /** + * 7.5次间谐波电压含有率最大值 + */ + private Double inharmV8Max; + + /** + * 7.5次间谐波电压含有率最小值 + */ + private Double inharmV8Min; + + /** + * 7.5次间谐波电压含有率平均值 + */ + private Double inharmV8Avg; + + /** + * 7.5次间谐波电压含有率95值 + */ + private Double inharmV8Cp95; + + /** + * 8.5次间谐波电压含有率最大值 + */ + private Double inharmV9Max; + + /** + * 8.5次间谐波电压含有率最小值 + */ + private Double inharmV9Min; + + /** + * 8.5次间谐波电压含有率平均值 + */ + private Double inharmV9Avg; + + /** + * 8.5次间谐波电压含有率95值 + */ + private Double inharmV9Cp95; + + /** + * 9.5次间谐波电压含有率最大值 + */ + private Double inharmV10Max; + + /** + * 9.5次间谐波电压含有率最小值 + */ + private Double inharmV10Min; + + /** + * 9.5次间谐波电压含有率平均值 + */ + private Double inharmV10Avg; + + /** + * 9.5次间谐波电压含有率95值 + */ + private Double inharmV10Cp95; + + /** + * 10.5次间谐波电压含有率最大值 + */ + private Double inharmV11Max; + + /** + * 10.5次间谐波电压含有率最小值 + */ + private Double inharmV11Min; + + /** + * 10.5次间谐波电压含有率平均值 + */ + private Double inharmV11Avg; + + /** + * 10.5次间谐波电压含有率95值 + */ + private Double inharmV11Cp95; + + /** + * 11.5次间谐波电压含有率最大值 + */ + private Double inharmV12Max; + + /** + * 11.5次间谐波电压含有率最小值 + */ + private Double inharmV12Min; + + /** + * 11.5次间谐波电压含有率平均值 + */ + private Double inharmV12Avg; + + /** + * 11.5次间谐波电压含有率95值 + */ + private Double inharmV12Cp95; + + /** + * 12.5次间谐波电压含有率最大值 + */ + private Double inharmV13Max; + + /** + * 12.5次间谐波电压含有率最小值 + */ + private Double inharmV13Min; + + /** + * 12.5次间谐波电压含有率平均值 + */ + private Double inharmV13Avg; + + /** + * 12.5次间谐波电压含有率95值 + */ + private Double inharmV13Cp95; + + /** + * 13.5次间谐波电压含有率最大值 + */ + private Double inharmV14Max; + + /** + * 13.5次间谐波电压含有率最小值 + */ + private Double inharmV14Min; + + /** + * 13.5次间谐波电压含有率平均值 + */ + private Double inharmV14Avg; + + /** + * 13.5次间谐波电压含有率95值 + */ + private Double inharmV14Cp95; + + /** + * 14.5次间谐波电压含有率最大值 + */ + private Double inharmV15Max; + + /** + * 14.5次间谐波电压含有率最小值 + */ + private Double inharmV15Min; + + /** + * 14.5次间谐波电压含有率平均值 + */ + private Double inharmV15Avg; + + /** + * 14.5次间谐波电压含有率95值 + */ + private Double inharmV15Cp95; + + /** + * 15.5次间谐波电压含有率最大值 + */ + private Double inharmV16Max; + + /** + * 15.5次间谐波电压含有率最小值 + */ + private Double inharmV16Min; + + /** + * 15.5次间谐波电压含有率平均值 + */ + private Double inharmV16Avg; + + /** + * 15.5次间谐波电压含有率95值 + */ + private Double inharmV16Cp95; + + /** + * 16.5次间谐波电压含有率最大值 + */ + private Double inharmV17Max; + + /** + * 16.5次间谐波电压含有率最小值 + */ + private Double inharmV17Min; + + /** + * 16.5次间谐波电压含有率平均值 + */ + private Double inharmV17Avg; + + /** + * 16.5次间谐波电压含有率95值 + */ + private Double inharmV17Cp95; + + /** + * 17.5次间谐波电压含有率最大值 + */ + private Double inharmV18Max; + + /** + * 17.5次间谐波电压含有率最小值 + */ + private Double inharmV18Min; + + /** + * 17.5次间谐波电压含有率平均值 + */ + private Double inharmV18Avg; + + /** + * 17.5次间谐波电压含有率95值 + */ + private Double inharmV18Cp95; + + /** + * 18.5次间谐波电压含有率最大值 + */ + private Double inharmV19Max; + + /** + * 18.5次间谐波电压含有率最小值 + */ + private Double inharmV19Min; + + /** + * 18.5次间谐波电压含有率平均值 + */ + private Double inharmV19Avg; + + /** + * 18.5次间谐波电压含有率95值 + */ + private Double inharmV19Cp95; + + /** + * 19.5次间谐波电压含有率最大值 + */ + private Double inharmV20Max; + + /** + * 19.5次间谐波电压含有率最小值 + */ + private Double inharmV20Min; + + /** + * 19.5次间谐波电压含有率平均值 + */ + private Double inharmV20Avg; + + /** + * 19.5次间谐波电压含有率95值 + */ + private Double inharmV20Cp95; + + /** + * 20.5次间谐波电压含有率最大值 + */ + private Double inharmV21Max; + + /** + * 20.5次间谐波电压含有率最小值 + */ + private Double inharmV21Min; + + /** + * 20.5次间谐波电压含有率平均值 + */ + private Double inharmV21Avg; + + /** + * 20.5次间谐波电压含有率95值 + */ + private Double inharmV21Cp95; + + /** + * 21.5次间谐波电压含有率最大值 + */ + private Double inharmV22Max; + + /** + * 21.5次间谐波电压含有率最小值 + */ + private Double inharmV22Min; + + /** + * 21.5次间谐波电压含有率平均值 + */ + private Double inharmV22Avg; + + /** + * 21.5次间谐波电压含有率95值 + */ + private Double inharmV22Cp95; + + /** + * 22.5次间谐波电压含有率最大值 + */ + private Double inharmV23Max; + + /** + * 22.5次间谐波电压含有率最小值 + */ + private Double inharmV23Min; + + /** + * 22.5次间谐波电压含有率平均值 + */ + private Double inharmV23Avg; + + /** + * 22.5次间谐波电压含有率95值 + */ + private Double inharmV23Cp95; + + /** + * 23.5次间谐波电压含有率最大值 + */ + private Double inharmV24Max; + + /** + * 23.5次间谐波电压含有率最小值 + */ + private Double inharmV24Min; + + /** + * 23.5次间谐波电压含有率平均值 + */ + private Double inharmV24Avg; + + /** + * 23.5次间谐波电压含有率95值 + */ + private Double inharmV24Cp95; + + /** + * 24.5次间谐波电压含有率最大值 + */ + private Double inharmV25Max; + + /** + * 24.5次间谐波电压含有率最小值 + */ + private Double inharmV25Min; + + /** + * 24.5次间谐波电压含有率平均值 + */ + private Double inharmV25Avg; + + /** + * 24.5次间谐波电压含有率95值 + */ + private Double inharmV25Cp95; + + /** + * 25.5次间谐波电压含有率最大值 + */ + private Double inharmV26Max; + + /** + * 25.5次间谐波电压含有率最小值 + */ + private Double inharmV26Min; + + /** + * 25.5次间谐波电压含有率平均值 + */ + private Double inharmV26Avg; + + /** + * 25.5次间谐波电压含有率95值 + */ + private Double inharmV26Cp95; + + /** + * 26.5次间谐波电压含有率最大值 + */ + private Double inharmV27Max; + + /** + * 26.5次间谐波电压含有率最小值 + */ + private Double inharmV27Min; + + /** + * 26.5次间谐波电压含有率平均值 + */ + private Double inharmV27Avg; + + /** + * 26.5次间谐波电压含有率95值 + */ + private Double inharmV27Cp95; + + /** + * 27.5次间谐波电压含有率最大值 + */ + private Double inharmV28Max; + + /** + * 27.5次间谐波电压含有率最小值 + */ + private Double inharmV28Min; + + /** + * 27.5次间谐波电压含有率平均值 + */ + private Double inharmV28Avg; + + /** + * 27.5次间谐波电压含有率95值 + */ + private Double inharmV28Cp95; + + /** + * 28.5次间谐波电压含有率最大值 + */ + private Double inharmV29Max; + + /** + * 28.5次间谐波电压含有率最小值 + */ + private Double inharmV29Min; + + /** + * 28.5次间谐波电压含有率平均值 + */ + private Double inharmV29Avg; + + /** + * 28.5次间谐波电压含有率95值 + */ + private Double inharmV29Cp95; + + /** + * 29.5次间谐波电压含有率最大值 + */ + private Double inharmV30Max; + + /** + * 29.5次间谐波电压含有率最小值 + */ + private Double inharmV30Min; + + /** + * 29.5次间谐波电压含有率平均值 + */ + private Double inharmV30Avg; + + /** + * 29.5次间谐波电压含有率95值 + */ + private Double inharmV30Cp95; + + /** + * 30.5次间谐波电压含有率最大值 + */ + private Double inharmV31Max; + + /** + * 30.5次间谐波电压含有率最小值 + */ + private Double inharmV31Min; + + /** + * 30.5次间谐波电压含有率平均值 + */ + private Double inharmV31Avg; + + /** + * 30.5次间谐波电压含有率95值 + */ + private Double inharmV31Cp95; + + /** + * 31.5次间谐波电压含有率最大值 + */ + private Double inharmV32Max; + + /** + * 31.5次间谐波电压含有率最小值 + */ + private Double inharmV32Min; + + /** + * 31.5次间谐波电压含有率平均值 + */ + private Double inharmV32Avg; + + /** + * 31.5次间谐波电压含有率95值 + */ + private Double inharmV32Cp95; + + /** + * 32.5次间谐波电压含有率最大值 + */ + private Double inharmV33Max; + + /** + * 32.5次间谐波电压含有率最小值 + */ + private Double inharmV33Min; + + /** + * 32.5次间谐波电压含有率平均值 + */ + private Double inharmV33Avg; + + /** + * 32.5次间谐波电压含有率95值 + */ + private Double inharmV33Cp95; + + /** + * 33.5次间谐波电压含有率最大值 + */ + private Double inharmV34Max; + + /** + * 33.5次间谐波电压含有率最小值 + */ + private Double inharmV34Min; + + /** + * 33.5次间谐波电压含有率平均值 + */ + private Double inharmV34Avg; + + /** + * 33.5次间谐波电压含有率95值 + */ + private Double inharmV34Cp95; + + /** + * 34.5次间谐波电压含有率最大值 + */ + private Double inharmV35Max; + + /** + * 34.5次间谐波电压含有率最小值 + */ + private Double inharmV35Min; + + /** + * 34.5次间谐波电压含有率平均值 + */ + private Double inharmV35Avg; + + /** + * 34.5次间谐波电压含有率95值 + */ + private Double inharmV35Cp95; + + /** + * 35.5次间谐波电压含有率最大值 + */ + private Double inharmV36Max; + + /** + * 35.5次间谐波电压含有率最小值 + */ + private Double inharmV36Min; + + /** + * 35.5次间谐波电压含有率平均值 + */ + private Double inharmV36Avg; + + /** + * 35.5次间谐波电压含有率95值 + */ + private Double inharmV36Cp95; + + /** + * 36.5次间谐波电压含有率最大值 + */ + private Double inharmV37Max; + + /** + * 36.5次间谐波电压含有率最小值 + */ + private Double inharmV37Min; + + /** + * 36.5次间谐波电压含有率平均值 + */ + private Double inharmV37Avg; + + /** + * 36.5次间谐波电压含有率95值 + */ + private Double inharmV37Cp95; + + /** + * 37.5次间谐波电压含有率最大值 + */ + private Double inharmV38Max; + + /** + * 37.5次间谐波电压含有率最小值 + */ + private Double inharmV38Min; + + /** + * 37.5次间谐波电压含有率平均值 + */ + private Double inharmV38Avg; + + /** + * 37.5次间谐波电压含有率95值 + */ + private Double inharmV38Cp95; + + /** + * 38.5次间谐波电压含有率最大值 + */ + private Double inharmV39Max; + + /** + * 38.5次间谐波电压含有率最小值 + */ + private Double inharmV39Min; + + /** + * 38.5次间谐波电压含有率平均值 + */ + private Double inharmV39Avg; + + /** + * 38.5次间谐波电压含有率95值 + */ + private Double inharmV39Cp95; + + /** + * 39.5次间谐波电压含有率最大值 + */ + private Double inharmV40Max; + + /** + * 39.5次间谐波电压含有率最小值 + */ + private Double inharmV40Min; + + /** + * 39.5次间谐波电压含有率平均值 + */ + private Double inharmV40Avg; + + /** + * 39.5次间谐波电压含有率95值 + */ + private Double inharmV40Cp95; + + /** + * 40.5次间谐波电压含有率最大值 + */ + private Double inharmV41Max; + + /** + * 40.5次间谐波电压含有率最小值 + */ + private Double inharmV41Min; + + /** + * 40.5次间谐波电压含有率平均值 + */ + private Double inharmV41Avg; + + /** + * 40.5次间谐波电压含有率95值 + */ + private Double inharmV41Cp95; + + /** + * 41.5次间谐波电压含有率最大值 + */ + private Double inharmV42Max; + + /** + * 41.5次间谐波电压含有率最小值 + */ + private Double inharmV42Min; + + /** + * 41.5次间谐波电压含有率平均值 + */ + private Double inharmV42Avg; + + /** + * 41.5次间谐波电压含有率95值 + */ + private Double inharmV42Cp95; + + /** + * 42.5次间谐波电压含有率最大值 + */ + private Double inharmV43Max; + + /** + * 42.5次间谐波电压含有率最小值 + */ + private Double inharmV43Min; + + /** + * 42.5次间谐波电压含有率平均值 + */ + private Double inharmV43Avg; + + /** + * 42.5次间谐波电压含有率95值 + */ + private Double inharmV43Cp95; + + /** + * 43.5次间谐波电压含有率最大值 + */ + private Double inharmV44Max; + + /** + * 43.5次间谐波电压含有率最小值 + */ + private Double inharmV44Min; + + /** + * 43.5次间谐波电压含有率平均值 + */ + private Double inharmV44Avg; + + /** + * 43.5次间谐波电压含有率95值 + */ + private Double inharmV44Cp95; + + /** + * 44.5次间谐波电压含有率最大值 + */ + private Double inharmV45Max; + + /** + * 44.5次间谐波电压含有率最小值 + */ + private Double inharmV45Min; + + /** + * 44.5次间谐波电压含有率平均值 + */ + private Double inharmV45Avg; + + /** + * 44.5次间谐波电压含有率95值 + */ + private Double inharmV45Cp95; + + /** + * 45.5次间谐波电压含有率最大值 + */ + private Double inharmV46Max; + + /** + * 45.5次间谐波电压含有率最小值 + */ + private Double inharmV46Min; + + /** + * 45.5次间谐波电压含有率平均值 + */ + private Double inharmV46Avg; + + /** + * 45.5次间谐波电压含有率95值 + */ + private Double inharmV46Cp95; + + /** + * 46.5次间谐波电压含有率最大值 + */ + private Double inharmV47Max; + + /** + * 46.5次间谐波电压含有率最小值 + */ + private Double inharmV47Min; + + /** + * 46.5次间谐波电压含有率平均值 + */ + private Double inharmV47Avg; + + /** + * 46.5次间谐波电压含有率95值 + */ + private Double inharmV47Cp95; + + /** + * 47.5次间谐波电压含有率最大值 + */ + private Double inharmV48Max; + + /** + * 47.5次间谐波电压含有率最小值 + */ + private Double inharmV48Min; + + /** + * 47.5次间谐波电压含有率平均值 + */ + private Double inharmV48Avg; + + /** + * 47.5次间谐波电压含有率95值 + */ + private Double inharmV48Cp95; + + /** + * 48.5次间谐波电压含有率最大值 + */ + private Double inharmV49Max; + + /** + * 48.5次间谐波电压含有率最小值 + */ + private Double inharmV49Min; + + /** + * 48.5次间谐波电压含有率平均值 + */ + private Double inharmV49Avg; + + /** + * 48.5次间谐波电压含有率95值 + */ + private Double inharmV49Cp95; + + /** + * 49.5次间谐波电压含有率最大值 + */ + private Double inharmV50Max; + + /** + * 49.5次间谐波电压含有率最小值 + */ + private Double inharmV50Min; + + /** + * 49.5次间谐波电压含有率平均值 + */ + private Double inharmV50Avg; + + /** + * 49.5次间谐波电压含有率95值 + */ + private Double inharmV50Cp95; + + +} \ No newline at end of file diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpIntegrityD.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpIntegrityD.java new file mode 100644 index 000000000..02a7faf29 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpIntegrityD.java @@ -0,0 +1,61 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * (RMpIntegrityD)实体类 + * + * @author qijian + * @since 2022-10-26 14:10:32 + */ +@Data +@TableName(value = "r_mp_integrity_d") +public class RMpIntegrityD implements Serializable { + private static final long serialVersionUID = 320784653665837465L; + /** + * 监测点id + */ + private String measurementPointId; + /** + * 生成数据的时间,每天统计一次 + */ + private Date dataDate; + /** + * 有效接入分钟数量 + */ + private Integer effectiveMinuteCount; + /** + * 频率平均值指标数据个数 + */ + private Integer freqCount; + /** + * 相电压有效值平均值指标数据个数 + */ + private Integer phaseVoltageCount; + /** + * 线电压有效值平均值指标数据个数 + */ + private Integer lineVoltageCount; + /** + * 电压总谐波畸变率平均值指标数据个数 + */ + private Integer vThdCount; + /** + * 三相电压不平衡度平均值指标数据个数 + */ + private Integer unbalanceCount; + /** + * 监测点短时闪变、电压波动类指标数据个数 + */ + private Integer pstCount; + /** + * 监测点长时闪变指标数据个数 + */ + private Integer pltCount; + +} + diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpMeasurePhaseReportD.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpMeasurePhaseReportD.java new file mode 100644 index 000000000..4c2b0d055 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpMeasurePhaseReportD.java @@ -0,0 +1,252 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.util.Date; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * + * @TableName r_mp_measure_phase_report_d + */ +@TableName(value ="r_mp_measure_phase_report_d") +@Data +public class RMpMeasurePhaseReportD implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 监测点ID + */ + @ApiModelProperty(name = "measurementPointId", value = "监测点id") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @ApiModelProperty(name = "dataDate", value = "监测日期") + private Date dataDate; + + /** + * 相别:‘A’ ‘B’ ‘C’ ‘ABC’ ‘T’ 配网部分相别的数据采用T标志存储 + */ + private String phase; + + /** + * 相电压有效值-最大值 + */ + private Double phaseVoltageEffectiveMax; + + /** + * 相电压有效值-最小值 + */ + private Double phaseVoltageEffectiveMin; + + /** + * 相电压有效值-平均值 + */ + private Double phaseVoltageEffectiveAvg; + + /** + * 相电压有效值-95值 + */ + + private Double phaseVoltageEffective95; + + /** + * 线电压有效值-最大值 + */ + private Double lineVoltageEffectiveMax; + + /** + * 线电压有效值-最小值 + */ + private Double lineVoltageEffectiveMin; + + /** + * 线电压有效值-平均值 + */ + private Double lineVoltageEffectiveAvg; + + /** + * 线电压有效值-95值 + */ + private Double lineVoltageEffective95; + + /** + * 电压上偏差-最大值 + */ + @ApiModelProperty(name = "vDeUpMax", value = "电压正偏差-最大值") + private Double vDeUpMax; + + /** + * 电压上偏差-最小值 + */ + private Double vDeUpMin; + + /** + * 电压上偏差-平均值 + */ + private Double vDeUpAvg; + + /** + * 电压上偏差-95值 + */ + private Double vDeUp95; + + /** + * 电压下偏差-最大值 + */ + @ApiModelProperty(name = "vDeLowMax", value = "电压负偏差-最大值") + private Double vDeLowMax; + + /** + * 电压下偏差-最小值 + */ + private Double vDeLowMin; + + /** + * 电压下偏差-平均值 + */ + private Double vDeLowAvg; + + /** + * 电压下偏差-95值 + */ + private Double vDeLow95; + + /** + * 电流有效值-最大值 + */ + private Double currentEffectiveMax; + + /** + * 电流有效值-最小值 + */ + private Double currentEffectiveMin; + + /** + * 电流有效值-平均值 + */ + private Double currentEffectiveAvg; + + /** + * 电流有效值-95值 + */ + private Double currentEffective95; + + /** + * 单相有功功率-最大值 + */ + private Double spActivePowerMax; + + /** + * 单相有功功率-最小值 + */ + private Double spActivePowerMin; + + /** + * 单相有功功率-平均值 + */ + private Double spActivePowerAvg; + + /** + * 单相有功功率-95值 + */ + private Double spActivePower95; + + /** + * 单相无功功率-最大值 + */ + private Double spReactivePowerMax; + + /** + * 单相无功功率-最小值 + */ + private Double spReactivePowerMin; + + /** + * 单相无功功率-平均值 + */ + private Double spReactivePowerAvg; + + /** + * 单相无功功率-95值 + */ + private Double spReactivePower95; + + /** + * 单相视在功率-最大值 + */ + @ApiModelProperty(name = "spApparentPowerMax", value = "视在功率-最大值") + private Double spApparentPowerMax; + + /** + * 单相视在功率-最小值 + */ + @ApiModelProperty(name = "spApparentPowerMin", value = "视在功率-最小值") + private Double spApparentPowerMin; + + /** + * 单相视在功率-平均值 + */ + @ApiModelProperty(name = "spApparentPowerAvg", value = "视在功率-平均值") + private Double spApparentPowerAvg; + + /** + * 单相视在功率-95值 + */ + @ApiModelProperty(name = "spApparentPower95", value = "视在功率-95值") + private Double spApparentPower95; + + /** + * 单相功率因数-最大值 + */ + @ApiModelProperty(name = "spPowerFactorMax", value = "功率因数-最大值") + private Double spPowerFactorMax; + + /** + * 单相功率因数-最小值 + */ + @ApiModelProperty(name = "spPowerFactorMin", value = "功率因数-最小值") + private Double spPowerFactorMin; + + /** + * 单相功率因数-平均值 + */ + @ApiModelProperty(name = "spPowerFactorAvg", value = "功率因数-平均值") + private Double spPowerFactorAvg; + + /** + * 单相功率因数-95值 + */ + @ApiModelProperty(name = "spPowerFactor95", value = "功率因数-95值") + private Double spPowerFactor95; + + /** + * 单相基波功率因数-最大值 + */ + private Double spFundamentalPowerFactorMax; + + /** + * 单相基波功率因数-最小值 + */ + private Double spFundamentalPowerFactorMin; + + /** + * 单相基波功率因数-平均值 + */ + private Double spFundamentalPowerFactorAvg; + + /** + * 单相基波功率因数-95值 + */ + private Double spFundamentalPowerFactor95; + + +} \ No newline at end of file diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpMeasureReportD.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpMeasureReportD.java new file mode 100644 index 000000000..f7d2e87a6 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpMeasureReportD.java @@ -0,0 +1,425 @@ +package com.njcn.harmonic.pojo.po; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.Size; +import javax.validation.constraints.NotNull; + +import java.io.Serializable; + +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import org.hibernate.validator.constraints.Length; + +/** +* 【稳态监测点非谐波不带相位指标日报-日表】 + * @author jianghf +* @TableName r_mp_measure_report_d +*/ +@Data +@TableName("r_mp_measure_report_d") +public class RMpMeasureReportD implements Serializable { + + /** + * 监测点ID + */ + @ApiModelProperty("监测点ID") + private String measurementPointId; + /** + * 生成数据的时间,每日统计一次 + */ + @ApiModelProperty("生成数据的时间,每日统计一次") + private Date dataDate; + /** + * 频率-最大值 + */ + private Double frequencyMax; + /** + * 频率-最小值 + */ + private Double frequencyMin; + /** + * 频率-平均值 + */ + private Double frequencyAvg; + /** + * 频率-95值 + */ + private Double frequency95; + /** + * 频率偏差-最大值 + */ + private Double frequencyDeviationMax; + /** + * 频率偏差-最小值 + */ + private Double frequencyDeviationMin; + /** + * 频率偏差-平均值 + */ + private Double frequencyDeviationAvg; + /** + * 频率偏差-95值 + */ + private Double frequencyDeviation95; + /** + * 总有功功率-最大值 + */ + @ApiModelProperty("总有功功率-最大值") + private Double totalActivePowerMax; + /** + * 总有功功率-最小值 + */ + @ApiModelProperty("总有功功率-最小值") + private Double totalActivePowerMin; + /** + * 总有功功率-平均值 + */ + @ApiModelProperty("总有功功率-平均值") + private Double totalActivePowerAvg; + /** + * 总有功功率-95值 + */ + @ApiModelProperty("总有功功率-95值") + private Double totalActivePower95; + /** + * 总无功功率-最大值 + */ + @ApiModelProperty("总无功功率-最大值") + private Double totalReactivePowerMax; + /** + * 总无功功率-最小值 + */ + @ApiModelProperty("总无功功率-最小值") + private Double totalReactivePowerMin; + /** + * 总无功功率-平均值 + */ + @ApiModelProperty("总无功功率-平均值") + private Double totalReactivePowerAvg; + /** + * 总无功功率-95值 + */ + @ApiModelProperty("总无功功率-95值") + private Double totalReactivePower95; + /** + * 总视在功率-最大值 + */ + @ApiModelProperty("总视在功率-最大值") + private Double totalApparentPowerMax; + /** + * 总视在功率-最小值 + */ + @ApiModelProperty("总视在功率-最小值") + private Double totalApparentPowerMin; + /** + * 总视在功率-平均值 + */ + @ApiModelProperty("总视在功率-平均值") + private Double totalApparentPowerAvg; + /** + * 总视在功率-95值 + */ + @ApiModelProperty("总视在功率-95值") + private Double totalApparentPower95; + /** + * 三相功率因数-最大值 + */ + private Double tpPowerFactorMax; + /** + * 三相功率因数-最小值 + */ + private Double tpPowerFactorMin; + /** + * 三相功率因数-平均值 + */ + private Double tpPowerFactorAvg; + /** + * 三相功率因数-95值 + */ + private Double tpPowerFactor95; + /** + * 基波功率因数-最大值 + */ + private Double fundamentalPowerFactorMax; + /** + * 基波功率因数-最小值 + */ + private Double fundamentalPowerFactorMin; + /** + * 基波功率因数-平均值 + */ + private Double fundamentalPowerFactorAvg; + /** + * 基波功率因数-95值 + */ + private Double fundamentalPowerFactor95; + /** + * 正序电压-最大值 + */ + private Double positiveSequenceVoltageMax; + /** + * 正序电压-最小值 + */ + private Double positiveSequenceVoltageMin; + /** + * 正序电压-平均值 + */ + private Double positiveSequenceVoltageAvg; + /** + * 正序电压-95值 + */ + private Double positiveSequenceVoltage95; + /** + * 负序电压-最大值 + */ + private Double negativeSequenceVoltageMax; + /** + * 负序电压-最小值 + */ + private Double negativeSequenceVoltageMin; + /** + * 负序电压-平均值 + */ + private Double negativeSequenceVoltageAvg; + /** + * 负序电压-95值 + */ + private Double negativeSequenceVoltage95; + /** + * 零序电压-最大值 + */ + private Double zeroSequenceVoltageMax; + /** + * 零序电压-最小值 + */ + private Double zeroSequenceVoltageMin; + /** + * 零序电压-平均值 + */ + private Double zeroSequenceVoltageAvg; + /** + * 零序电压-95值 + */ + private Double zeroSequenceVoltage95; + /** + * 负序电压不平衡度-最大值 + */ + @ApiModelProperty("负序电压(三相电压)不平衡度-最大值") + private Double negativeSequenceVoltageUnbalanceMax; + /** + * 负序电压不平衡度-最小值 + */ + @ApiModelProperty("负序电压(三相电压)不平衡度-最小值") + private Double negativeSequenceVoltageUnbalanceMin; + /** + * 负序电压不平衡度-平均值 + */ + @ApiModelProperty("负序电压(三相电压)不平衡度-平均值") + private Double negativeSequenceVoltageUnbalanceAvg; + /** + * 负序电压不平衡度-95值 + */ + @ApiModelProperty("负序电压(三相电压)不平衡度-95值") + private Double negativeSequenceVoltageUnbalance95; + /** + * 零序电压不平衡度-最大值 + */ + private Double zeroSequenceVoltageUnbalanceMax; + /** + * 零序电压不平衡度-最小值 + */ + private Double zeroSequenceVoltageUnbalanceMin; + /** + * 零序电压不平衡度-平均值 + */ + private Double zeroSequenceVoltageUnbalanceAvg; + /** + * 零序电压不平衡度-95值 + */ + private Double zeroSequenceVoltageUnbalance95; + /** + * 正序电流-最大值 + */ + private Double positiveSequenceCurrentMax; + /** + * 正序电流-最小值 + */ + private Double positiveSequenceCurrentMin; + /** + * 正序电流-平均值 + */ + private Double positiveSequenceCurrentAvg; + /** + * 正序电流-95值 + */ + private Double positiveSequenceCurrent95; + /** + * 负序电流-最大值 + */ + @ApiModelProperty("负序电流-最大值") + private Double negativeSequenceCurrentMax; + /** + * 负序电流-最小值 + */ + @ApiModelProperty("负序电流-最小值") + private Double negativeSequenceCurrentMin; + /** + * 负序电流-平均值 + */ + @ApiModelProperty("负序电流-平均值") + private Double negativeSequenceCurrentAvg; + /** + * 负序电流-95值 + */ + @ApiModelProperty("负序电流-95值") + private Double negativeSequenceCurrent95; + /** + * 零序电流-最大值 + */ + private Double zeroSequenceCurrentMax; + /** + * 零序电流-最小值 + */ + private Double zeroSequenceCurrentMin; + /** + * 零序电流-平均值 + */ + private Double zeroSequenceCurrentAvg; + /** + * 零序电流-95值 + */ + private Double zeroSequenceCurrent95; + /** + * 负序电流不平衡度-最大值 + */ + private Double negativeSequenceCurrentUnbalanceMax; + /** + * 负序电流不平衡度-最小值 + */ + private Double negativeSequenceCurrentUnbalanceMin; + /** + * 负序电流不平衡度-平均值 + */ + private Double negativeSequenceCurrentUnbalanceAvg; + /** + * 负序电流不平衡度-95值 + */ + private Double negativeSequenceCurrentUnbalance95; + /** + * 零序电流不平衡度-最大值 + */ + private Double zeroSequenceCurrentImbalanceMax; + /** + * 零序电流不平衡度-最小值 + */ + private Double zeroSequenceCurrentImbalanceMin; + /** + * 零序电流不平衡度-平均值 + */ + private Double zeroSequenceCurrentImbalanceAvg; + /** + * 零序电流不平衡度-95值 + */ + private Double zeroSequenceCurrentImbalance95; + /** + * 等效视在功率-最大值 + */ + private Double equivalentApparentPowerMax; + /** + * 等效视在功率-最小值 + */ + private Double equivalentApparentPowerMin; + /** + * 等效视在功率-平均值 + */ + private Double equivalentApparentPowerAvg; + /** + * 等效视在功率-95值 + */ + private Double equivalentApparentPower95; + /** + * 等效功率因数-最大值 + */ + private Double equivalentPowerFactorMax; + /** + * 等效功率因数-最小值 + */ + private Double equivalentPowerFactorMin; + /** + * 等效功率因数-平均值 + */ + private Double equivalentPowerFactorAvg; + /** + * 等效功率因数-95值 + */ + private Double equivalentPowerFactor95; + /** + * 基波正序视在功率-最大值 + */ + private Double fundamentalWaveRateoMax; + /** + * 基波正序视在功率-最小值 + */ + private Double fundamentalWaveRateoMin; + /** + * 基波正序视在功率-平均值 + */ + private Double fundamentalWaveRateoAvg; + /** + * 基波正序视在功率-95值 + */ + private Double fundamentalWaveRateo95; + /** + * 基波等效视在功率-最大值 + */ + private Double fundamentalWaveApparentMax; + /** + * 基波等效视在功率-最小值 + */ + private Double fundamentalWaveApparentMin; + /** + * 基波等效视在功率-平均值 + */ + private Double fundamentalWaveApparentAvg; + /** + * 基波等效视在功率-95值 + */ + private Double fundamentalWaveApparent95; + /** + * 非基波等效视在功率-最大值 + */ + private Double nonfundamentalWaveRateoMax; + /** + * 非基波等效视在功率-最小值 + */ + private Double nonfundamentalWaveRateoMin; + /** + * 非基波等效视在功率-平均值 + */ + private Double nonfundamentalWaveRateoAvg; + /** + * 非基波等效视在功率-95值 + */ + private Double nonfundamentalWaveRateo95; + /** + * 不平衡视在功率-最大值 + */ + private Double unbalancedApparentPowerMax; + /** + * 不平衡视在功率-最小值 + */ + private Double unbalancedApparentPowerMin; + /** + * 不平衡视在功率-平均值 + */ + private Double unbalancedApparentPowerAvg; + /** + * 不平衡视在功率-95值 + */ + private Double unbalancedApparentPower95; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpPartHarmonicDetailD.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpPartHarmonicDetailD.java new file mode 100644 index 000000000..6763ae5ac --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpPartHarmonicDetailD.java @@ -0,0 +1,379 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_mp_part_harmonic_detail_d") +@ApiModel(value="RMpPartHarmonicDetailD对象", description="") +public class RMpPartHarmonicDetailD implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "监测点ID") + @TableId(value = "measurement_point_id", type = IdType.ASSIGN_ID) + private String measurementPointId; + + @ApiModelProperty(value = "生成数据的时间,每月统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "稳态指标是否超标(0:否 1:是)") + private Integer isHarmonic; + + @ApiModelProperty(value = "频率偏差是否超标(0:否 1:是)") + private Integer isFreq; + + @ApiModelProperty(value = "频率偏差超标次数") + private Integer freqTimes; + + @ApiModelProperty(value = "电压上偏差是否超标(0:否 1:是)") + private Integer isVDevUp; + + @ApiModelProperty(value = "电压下偏差超是否超标(0:否 1:是)") + private Integer isVDevLow; + + @ApiModelProperty(value = "电压偏差是否超标(0:否 1:是)") + private Integer isVDev; + + @ApiModelProperty(value = "电压总谐波畸变率是否超标(0:否 1:是)") + private Integer isVThd; + + @ApiModelProperty(value = "电压偏差超标次数") + private Integer vDevTimes; + + @ApiModelProperty(value = "谐波电压是否超标(0:否 1:是)") + private Integer isV; + + @ApiModelProperty(value = "谐波电压超标次数") + private Integer vTimes; + + @ApiModelProperty(value = "谐波电流是否超标(0:否 1:是)") + private Integer isI; + + @ApiModelProperty(value = "谐波电流超标次数") + private Integer iTimes; + + @ApiModelProperty(value = "2次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV2; + + @ApiModelProperty(value = "3次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV3; + + @ApiModelProperty(value = "4次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV4; + + @ApiModelProperty(value = "5次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV5; + + @ApiModelProperty(value = "6次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV6; + + @ApiModelProperty(value = "7次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV7; + + @ApiModelProperty(value = "8次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV8; + + @ApiModelProperty(value = "9次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV9; + + @ApiModelProperty(value = "10次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV10; + + @ApiModelProperty(value = "11次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV11; + + @ApiModelProperty(value = "12次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV12; + + @ApiModelProperty(value = "13次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV13; + + @ApiModelProperty(value = "14次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV14; + + @ApiModelProperty(value = "15次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV15; + + @ApiModelProperty(value = "16次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV16; + + @ApiModelProperty(value = "17次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV17; + + @ApiModelProperty(value = "18次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV18; + + @ApiModelProperty(value = "19次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV19; + + @ApiModelProperty(value = "20次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV20; + + @ApiModelProperty(value = "21次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV21; + + @ApiModelProperty(value = "22次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV22; + + @ApiModelProperty(value = "23次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV23; + + @ApiModelProperty(value = "24次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV24; + + @ApiModelProperty(value = "25次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV25; + + @ApiModelProperty(value = "26次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV26; + + @ApiModelProperty(value = "27次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV27; + + @ApiModelProperty(value = "28次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV28; + + @ApiModelProperty(value = "29次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV29; + + @ApiModelProperty(value = "30次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV30; + + @ApiModelProperty(value = "31次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV31; + + @ApiModelProperty(value = "32次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV32; + + @ApiModelProperty(value = "33次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV33; + + @ApiModelProperty(value = "34次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV34; + + @ApiModelProperty(value = "35次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV35; + + @ApiModelProperty(value = "36次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV36; + + @ApiModelProperty(value = "37次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV37; + + @ApiModelProperty(value = "38次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV38; + + @ApiModelProperty(value = "39次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV39; + + @ApiModelProperty(value = "40次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV40; + + @ApiModelProperty(value = "41次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV41; + + @ApiModelProperty(value = "42次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV42; + + @ApiModelProperty(value = "43次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV43; + + @ApiModelProperty(value = "44次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV44; + + @ApiModelProperty(value = "45次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV45; + + @ApiModelProperty(value = "46次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV46; + + @ApiModelProperty(value = "47次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV47; + + @ApiModelProperty(value = "48次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV48; + + @ApiModelProperty(value = "49次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV49; + + @ApiModelProperty(value = "50次谐波电压含有率是否超标(0:否 1:是)") + private Integer isV50; + + @ApiModelProperty(value = "2次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI2; + + @ApiModelProperty(value = "3次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI3; + + @ApiModelProperty(value = "4次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI4; + + @ApiModelProperty(value = "5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI5; + + @ApiModelProperty(value = "6次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI6; + + @ApiModelProperty(value = "7次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI7; + + @ApiModelProperty(value = "8次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI8; + + @ApiModelProperty(value = "9次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI9; + + @ApiModelProperty(value = "10次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI10; + + @ApiModelProperty(value = "11次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI11; + + @ApiModelProperty(value = "12次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI12; + + @ApiModelProperty(value = "13次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI13; + + @ApiModelProperty(value = "14次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI14; + + @ApiModelProperty(value = "15次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI15; + + @ApiModelProperty(value = "16次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI16; + + @ApiModelProperty(value = "17次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI17; + + @ApiModelProperty(value = "18次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI18; + + @ApiModelProperty(value = "19次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI19; + + @ApiModelProperty(value = "20次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI20; + + @ApiModelProperty(value = "21次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI21; + + @ApiModelProperty(value = "22次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI22; + + @ApiModelProperty(value = "23次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI23; + + @ApiModelProperty(value = "24次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI24; + + @ApiModelProperty(value = "25次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI25; + + @ApiModelProperty(value = "26次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI26; + + @ApiModelProperty(value = "27次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI27; + + @ApiModelProperty(value = "28次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI28; + + @ApiModelProperty(value = "29次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI29; + + @ApiModelProperty(value = "30次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI30; + + @ApiModelProperty(value = "31次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI31; + + @ApiModelProperty(value = "32次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI32; + + @ApiModelProperty(value = "33次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI33; + + @ApiModelProperty(value = "34次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI34; + + @ApiModelProperty(value = "35次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI35; + + @ApiModelProperty(value = "36次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI36; + + @ApiModelProperty(value = "37次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI37; + + @ApiModelProperty(value = "38次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI38; + + @ApiModelProperty(value = "39次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI39; + + @ApiModelProperty(value = "40次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI40; + + @ApiModelProperty(value = "41次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI41; + + @ApiModelProperty(value = "42次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI42; + + @ApiModelProperty(value = "43次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI43; + + @ApiModelProperty(value = "44次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI44; + + @ApiModelProperty(value = "45次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI45; + + @ApiModelProperty(value = "46次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI46; + + @ApiModelProperty(value = "47次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI47; + + @ApiModelProperty(value = "48次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI48; + + @ApiModelProperty(value = "49次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI49; + + @ApiModelProperty(value = "50次谐波电流含有率是否超标(0:否 1:是)") + private Integer isI50; + + @ApiModelProperty(value = "三相电压不平衡度是否超标(0:否 1:是)") + private Integer isUnbalance; + + @ApiModelProperty(value = "负序电流是否超标(0:否 1:是)") + private Integer isINeg; + + @ApiModelProperty(value = "三相电压不平衡度超标次数") + private Integer unbalanceTimes; + + @ApiModelProperty(value = "负序电流超标次数") + private Integer iNegTimes; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpPartHarmonicDetailM.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpPartHarmonicDetailM.java new file mode 100644 index 000000000..8cf5e73e2 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpPartHarmonicDetailM.java @@ -0,0 +1,361 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_mp_part_harmonic_detail_m") +@ApiModel(value="RMpPartHarmonicDetailM对象", description="") +public class RMpPartHarmonicDetailM implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "监测点ID") + @TableId(value = "measurement_point_id", type = IdType.ASSIGN_ID) + private String measurementPointId; + + @ApiModelProperty(value = "生成数据的时间,每月统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "当月超标天数") + private Integer measurementOverDay; + + @ApiModelProperty(value = "频率偏差超标天数") + private Integer freqOverDay; + + @ApiModelProperty(value = "电压上偏差超标天数") + private Integer vDevUpOverDay; + + @ApiModelProperty(value = "电压下偏差超标天数") + private Integer vDevLowOverDay; + + @ApiModelProperty(value = "电压偏差超标天数") + private Integer vDevOverDay; + + @ApiModelProperty(value = "电压总谐波畸变率超标天数") + private Integer vThdOverDay; + + @ApiModelProperty(value = "谐波电压超标天数") + private Integer vOverDay; + + @ApiModelProperty(value = "谐波电流超标天数") + private Integer iOverDay; + + @ApiModelProperty(value = "2次谐波电压含有率超标天数") + private Integer v2OverDay; + + @ApiModelProperty(value = "3次谐波电压含有率超标天数") + private Integer v3OverDay; + + @ApiModelProperty(value = "4次谐波电压含有率超标天数") + private Integer v4OverDay; + + @ApiModelProperty(value = "5次谐波电压含有率超标天数") + private Integer v5OverDay; + + @ApiModelProperty(value = "6次谐波电压含有率超标天数") + private Integer v6OverDay; + + @ApiModelProperty(value = "7次谐波电压含有率超标天数") + private Integer v7OverDay; + + @ApiModelProperty(value = "8次谐波电压含有率超标天数") + private Integer v8OverDay; + + @ApiModelProperty(value = "9次谐波电压含有率超标天数") + private Integer v9OverDay; + + @ApiModelProperty(value = "10次谐波电压含有率超标天数") + private Integer v10OverDay; + + @ApiModelProperty(value = "11次谐波电压含有率超标天数") + private Integer v11OverDay; + + @ApiModelProperty(value = "12次谐波电压含有率超标天数") + private Integer v12OverDay; + + @ApiModelProperty(value = "13次谐波电压含有率超标天数") + private Integer v13OverDay; + + @ApiModelProperty(value = "14次谐波电压含有率超标天数") + private Integer v14OverDay; + + @ApiModelProperty(value = "15次谐波电压含有率超标天数") + private Integer v15OverDay; + + @ApiModelProperty(value = "16次谐波电压含有率超标天数") + private Integer v16OverDay; + + @ApiModelProperty(value = "17次谐波电压含有率超标天数") + private Integer v17OverDay; + + @ApiModelProperty(value = "18次谐波电压含有率超标天数") + private Integer v18OverDay; + + @ApiModelProperty(value = "19次谐波电压含有率超标天数") + private Integer v19OverDay; + + @ApiModelProperty(value = "20次谐波电压含有率超标天数") + private Integer v20OverDay; + + @ApiModelProperty(value = "21次谐波电压含有率超标天数") + private Integer v21OverDay; + + @ApiModelProperty(value = "22次谐波电压含有率超标天数") + private Integer v22OverDay; + + @ApiModelProperty(value = "23次谐波电压含有率超标天数") + private Integer v23OverDay; + + @ApiModelProperty(value = "24次谐波电压含有率超标天数") + private Integer v24OverDay; + + @ApiModelProperty(value = "25次谐波电压含有率超标天数") + private Integer v25OverDay; + + @ApiModelProperty(value = "26次谐波电压含有率超标天数") + private Integer v26OverDay; + + @ApiModelProperty(value = "27次谐波电压含有率超标天数") + private Integer v27OverDay; + + @ApiModelProperty(value = "28次谐波电压含有率超标天数") + private Integer v28OverDay; + + @ApiModelProperty(value = "29次谐波电压含有率超标天数") + private Integer v29OverDay; + + @ApiModelProperty(value = "30次谐波电压含有率超标天数") + private Integer v30OverDay; + + @ApiModelProperty(value = "31次谐波电压含有率超标天数") + private Integer v31OverDay; + + @ApiModelProperty(value = "32次谐波电压含有率超标天数") + private Integer v32OverDay; + + @ApiModelProperty(value = "33次谐波电压含有率超标天数") + private Integer v33OverDay; + + @ApiModelProperty(value = "34次谐波电压含有率超标天数") + private Integer v34OverDay; + + @ApiModelProperty(value = "35次谐波电压含有率超标天数") + private Integer v35OverDay; + + @ApiModelProperty(value = "36次谐波电压含有率超标天数") + private Integer v36OverDay; + + @ApiModelProperty(value = "37次谐波电压含有率超标天数") + private Integer v37OverDay; + + @ApiModelProperty(value = "38次谐波电压含有率超标天数") + private Integer v38OverDay; + + @ApiModelProperty(value = "39次谐波电压含有率超标天数") + private Integer v39OverDay; + + @ApiModelProperty(value = "40次谐波电压含有率超标天数") + private Integer v40OverDay; + + @ApiModelProperty(value = "41次谐波电压含有率超标天数") + private Integer v41OverDay; + + @ApiModelProperty(value = "42次谐波电压含有率超标天数") + private Integer v42OverDay; + + @ApiModelProperty(value = "43次谐波电压含有率超标天数") + private Integer v43OverDay; + + @ApiModelProperty(value = "44次谐波电压含有率超标天数") + private Integer v44OverDay; + + @ApiModelProperty(value = "45次谐波电压含有率超标天数") + private Integer v45OverDay; + + @ApiModelProperty(value = "46次谐波电压含有率超标天数") + private Integer v46OverDay; + + @ApiModelProperty(value = "47次谐波电压含有率超标天数") + private Integer v47OverDay; + + @ApiModelProperty(value = "48次谐波电压含有率超标天数") + private Integer v48OverDay; + + @ApiModelProperty(value = "49次谐波电压含有率超标天数") + private Integer v49OverDay; + + @ApiModelProperty(value = "50次谐波电压含有率超标天数") + private Integer v50OverDay; + + @ApiModelProperty(value = "2次谐波电流含有率超标天数") + private Integer i2OverDay; + + @ApiModelProperty(value = "3次谐波电流含有率超标天数") + private Integer i3OverDay; + + @ApiModelProperty(value = "4次谐波电流含有率超标天数") + private Integer i4OverDay; + + @ApiModelProperty(value = "5次谐波电流含有率超标天数") + private Integer i5OverDay; + + @ApiModelProperty(value = "6次谐波电流含有率超标天数") + private Integer i6OverDay; + + @ApiModelProperty(value = "7次谐波电流含有率超标天数") + private Integer i7OverDay; + + @ApiModelProperty(value = "8次谐波电流含有率超标天数") + private Integer i8OverDay; + + @ApiModelProperty(value = "9次谐波电流含有率超标天数") + private Integer i9OverDay; + + @ApiModelProperty(value = "10次谐波电流含有率超标天数") + private Integer i10OverDay; + + @ApiModelProperty(value = "11次谐波电流含有率超标天数") + private Integer i11OverDay; + + @ApiModelProperty(value = "12次谐波电流含有率超标天数") + private Integer i12OverDay; + + @ApiModelProperty(value = "13次谐波电流含有率超标天数") + private Integer i13OverDay; + + @ApiModelProperty(value = "14次谐波电流含有率超标天数") + private Integer i14OverDay; + + @ApiModelProperty(value = "15次谐波电流含有率超标天数") + private Integer i15OverDay; + + @ApiModelProperty(value = "16次谐波电流含有率超标天数") + private Integer i16OverDay; + + @ApiModelProperty(value = "17次谐波电流含有率超标天数") + private Integer i17OverDay; + + @ApiModelProperty(value = "18次谐波电流含有率超标天数") + private Integer i18OverDay; + + @ApiModelProperty(value = "19次谐波电流含有率超标天数") + private Integer i19OverDay; + + @ApiModelProperty(value = "20次谐波电流含有率超标天数") + private Integer i20OverDay; + + @ApiModelProperty(value = "21次谐波电流含有率超标天数") + private Integer i21OverDay; + + @ApiModelProperty(value = "22次谐波电流含有率超标天数") + private Integer i22OverDay; + + @ApiModelProperty(value = "23次谐波电流含有率超标天数") + private Integer i23OverDay; + + @ApiModelProperty(value = "24次谐波电流含有率超标天数") + private Integer i24OverDay; + + @ApiModelProperty(value = "25次谐波电流含有率超标天数") + private Integer i25OverDay; + + @ApiModelProperty(value = "26次谐波电流含有率超标天数") + private Integer i26OverDay; + + @ApiModelProperty(value = "27次谐波电流含有率超标天数") + private Integer i27OverDay; + + @ApiModelProperty(value = "28次谐波电流含有率超标天数") + private Integer i28OverDay; + + @ApiModelProperty(value = "29次谐波电流含有率超标天数") + private Integer i29OverDay; + + @ApiModelProperty(value = "30次谐波电流含有率超标天数") + private Integer i30OverDay; + + @ApiModelProperty(value = "31次谐波电流含有率超标天数") + private Integer i31OverDay; + + @ApiModelProperty(value = "32次谐波电流含有率超标天数") + private Integer i32OverDay; + + @ApiModelProperty(value = "33次谐波电流含有率超标天数") + private Integer i33OverDay; + + @ApiModelProperty(value = "34次谐波电流含有率超标天数") + private Integer i34OverDay; + + @ApiModelProperty(value = "35次谐波电流含有率超标天数") + private Integer i35OverDay; + + @ApiModelProperty(value = "36次谐波电流含有率超标天数") + private Integer i36OverDay; + + @ApiModelProperty(value = "37次谐波电流含有率超标天数") + private Integer i37OverDay; + + @ApiModelProperty(value = "38次谐波电流含有率超标天数") + private Integer i38OverDay; + + @ApiModelProperty(value = "39次谐波电流含有率超标天数") + private Integer i39OverDay; + + @ApiModelProperty(value = "40次谐波电流含有率超标天数") + private Integer i40OverDay; + + @ApiModelProperty(value = "41次谐波电流含有率超标天数") + private Integer i41OverDay; + + @ApiModelProperty(value = "42次谐波电流含有率超标天数") + private Integer i42OverDay; + + @ApiModelProperty(value = "43次谐波电流含有率超标天数") + private Integer i43OverDay; + + @ApiModelProperty(value = "44次谐波电流含有率超标天数") + private Integer i44OverDay; + + @ApiModelProperty(value = "45次谐波电流含有率超标天数") + private Integer i45OverDay; + + @ApiModelProperty(value = "46次谐波电流含有率超标天数") + private Integer i46OverDay; + + @ApiModelProperty(value = "47次谐波电流含有率超标天数") + private Integer i47OverDay; + + @ApiModelProperty(value = "48次谐波电流含有率超标天数") + private Integer i48OverDay; + + @ApiModelProperty(value = "49次谐波电流含有率超标天数") + private Integer i49OverDay; + + @ApiModelProperty(value = "50次谐波电流含有率超标天数") + private Integer i50OverDay; + + @ApiModelProperty(value = "三相电压不平衡度超标天数") + private Integer unbalanceOverDay; + + @ApiModelProperty(value = "负序电流超标天数") + private Integer iNegOverDay; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpPassRateM.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpPassRateM.java new file mode 100644 index 000000000..6a88e1312 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpPassRateM.java @@ -0,0 +1,46 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_mp_pass_rate_m") +@ApiModel(value="RMpPassRateM对象", description="") +public class RMpPassRateM implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "监测点ID") + @TableId(value = "measurement_point_id", type = IdType.ASSIGN_ID) + private String measurementPointId; + + @ApiModelProperty(value = "生成数据的时间,每月统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "频率偏差合格率") + private Float freqPassRate; + + @ApiModelProperty(value = "电压偏差合格率") + private Float vDevPassRate; + + @ApiModelProperty(value = "闪变合格率") + private Float flickerPassRate; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpPassRateQ.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpPassRateQ.java new file mode 100644 index 000000000..5e1206950 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpPassRateQ.java @@ -0,0 +1,46 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_mp_pass_rate_q") +@ApiModel(value="RMpPassRateQ对象", description="") +public class RMpPassRateQ implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "监测点ID") + @TableId(value = "measurement_point_id", type = IdType.ASSIGN_ID) + private String measurementPointId; + + @ApiModelProperty(value = "生成数据的时间,每季统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "频率偏差合格率") + private Float freqPassRate; + + @ApiModelProperty(value = "电压偏差合格率") + private Float vDevPassRate; + + @ApiModelProperty(value = "闪变合格率") + private Float flickerPassRate; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpPassRateY.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpPassRateY.java new file mode 100644 index 000000000..57482b04f --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpPassRateY.java @@ -0,0 +1,46 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_mp_pass_rate_y") +@ApiModel(value="RMpPassRateY对象", description="") +public class RMpPassRateY implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "监测点ID") + @TableId(value = "measurement_point_id", type = IdType.ASSIGN_ID) + private String measurementPointId; + + @ApiModelProperty(value = "生成数据的时间,每年统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "频率偏差合格率") + private Float freqPassRate; + + @ApiModelProperty(value = "电压偏差合格率") + private Float vDevPassRate; + + @ApiModelProperty(value = "闪变合格率") + private Float flickerPassRate; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpSurplusHarmonicDetailD.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpSurplusHarmonicDetailD.java new file mode 100644 index 000000000..b0cf41b74 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpSurplusHarmonicDetailD.java @@ -0,0 +1,199 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_mp_surplus_harmonic_detail_d") +@ApiModel(value="RMpSurplusHarmonicDetailD对象", description="") +public class RMpSurplusHarmonicDetailD implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "监测点ID") + @TableId(value = "measurement_point_id", type = IdType.ASSIGN_ID) + private String measurementPointId; + + @ApiModelProperty(value = "生成数据的时间,每月统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "闪变发生次数") + private Integer flickerTimes; + + @ApiModelProperty(value = "闪变是否超标(0:否 1:是)") + private Integer isFlicker; + + @ApiModelProperty(value = "间谐波电压超标次数") + private Integer inuharmTimes; + + @ApiModelProperty(value = "间谐波电压是否超标(0:否 1:是)") + private Integer isInuharm; + + @ApiModelProperty(value = "0.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm1; + + @ApiModelProperty(value = "1.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm2; + + @ApiModelProperty(value = "2.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm3; + + @ApiModelProperty(value = "3.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm4; + + @ApiModelProperty(value = "4.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm5; + + @ApiModelProperty(value = "5.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm6; + + @ApiModelProperty(value = "6.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm7; + + @ApiModelProperty(value = "7.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm8; + + @ApiModelProperty(value = "8.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm9; + + @ApiModelProperty(value = "9.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm10; + + @ApiModelProperty(value = "10.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm11; + + @ApiModelProperty(value = "11.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm12; + + @ApiModelProperty(value = "12.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm13; + + @ApiModelProperty(value = "13.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm14; + + @ApiModelProperty(value = "14.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm15; + + @ApiModelProperty(value = "15.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm16; + + @ApiModelProperty(value = "16.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm17; + + @ApiModelProperty(value = "17.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm18; + + @ApiModelProperty(value = "18.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm19; + + @ApiModelProperty(value = "19.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm20; + + @ApiModelProperty(value = "20.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm21; + + @ApiModelProperty(value = "21.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm22; + + @ApiModelProperty(value = "22.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm23; + + @ApiModelProperty(value = "23.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm24; + + @ApiModelProperty(value = "24.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm25; + + @ApiModelProperty(value = "25.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm26; + + @ApiModelProperty(value = "26.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm27; + + @ApiModelProperty(value = "27.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm28; + + @ApiModelProperty(value = "28.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm29; + + @ApiModelProperty(value = "29.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm30; + + @ApiModelProperty(value = "30.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm31; + + @ApiModelProperty(value = "31.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm32; + + @ApiModelProperty(value = "32.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm33; + + @ApiModelProperty(value = "33.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm34; + + @ApiModelProperty(value = "34.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm35; + + @ApiModelProperty(value = "35.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm36; + + @ApiModelProperty(value = "36.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm37; + + @ApiModelProperty(value = "37.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm38; + + @ApiModelProperty(value = "38.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm39; + + @ApiModelProperty(value = "39.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm40; + + @ApiModelProperty(value = "40.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm41; + + @ApiModelProperty(value = "41.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm42; + + @ApiModelProperty(value = "42.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm43; + + @ApiModelProperty(value = "43.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm44; + + @ApiModelProperty(value = "44.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm45; + + @ApiModelProperty(value = "45.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm46; + + @ApiModelProperty(value = "46.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm47; + + @ApiModelProperty(value = "47.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm48; + + @ApiModelProperty(value = "48.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm49; + + @ApiModelProperty(value = "49.5次谐波电流含有率是否超标(0:否 1:是)") + private Integer isInuharm50; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpSurplusHarmonicDetailM.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpSurplusHarmonicDetailM.java new file mode 100644 index 000000000..f89784c4e --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RMpSurplusHarmonicDetailM.java @@ -0,0 +1,193 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_mp_surplus_harmonic_detail_m") +@ApiModel(value="RMpSurplusHarmonicDetailM对象", description="") +public class RMpSurplusHarmonicDetailM implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "监测点ID") + @TableId(value = "measurement_point_id", type = IdType.ASSIGN_ID) + private String measurementPointId; + + @ApiModelProperty(value = "生成数据的时间,每月统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "间谐波电压超标天数") + private Integer inuharmOverDay; + + @ApiModelProperty(value = "0.5次间谐波电压含有率超标天数") + private Integer inuharm1OverDay; + + @ApiModelProperty(value = "1.5次间谐波电压含有率超标天数") + private Integer inuharm2OverDay; + + @ApiModelProperty(value = "2.5次间谐波电压含有率超标天数") + private Integer inuharm3OverDay; + + @ApiModelProperty(value = "3.5次间谐波电压含有率超标天数") + private Integer inuharm4OverDay; + + @ApiModelProperty(value = "4.5次间谐波电压含有率超标天数") + private Integer inuharm5OverDay; + + @ApiModelProperty(value = "5.5次间谐波电压含有率超标天数") + private Integer inuharm6OverDay; + + @ApiModelProperty(value = "6.5次间谐波电压含有率超标天数") + private Integer inuharm7OverDay; + + @ApiModelProperty(value = "7.5次间谐波电压含有率超标天数") + private Integer inuharm8OverDay; + + @ApiModelProperty(value = "8.5次间谐波电压含有率超标天数") + private Integer inuharm9OverDay; + + @ApiModelProperty(value = "9.5次间谐波电压含有率超标天数") + private Integer inuharm10OverDay; + + @ApiModelProperty(value = "10.5次间谐波电压含有率超标天数") + private Integer inuharm11OverDay; + + @ApiModelProperty(value = "11.5次间谐波电压含有率超标天数") + private Integer inuharm12OverDay; + + @ApiModelProperty(value = "12.5次间谐波电压含有率超标天数") + private Integer inuharm13OverDay; + + @ApiModelProperty(value = "13.5次间谐波电压含有率超标天数") + private Integer inuharm14OverDay; + + @ApiModelProperty(value = "14.5次间谐波电压含有率超标天数") + private Integer inuharm15OverDay; + + @ApiModelProperty(value = "15.5次间谐波电压含有率超标天数") + private Integer inuharm16OverDay; + + @ApiModelProperty(value = "16.5次间谐波电压含有率超标天数") + private Integer inuharm17OverDay; + + @ApiModelProperty(value = "17.5次间谐波电压含有率超标天数") + private Integer inuharm18OverDay; + + @ApiModelProperty(value = "18.5次间谐波电压含有率超标天数") + private Integer inuharm19OverDay; + + @ApiModelProperty(value = "19.5次间谐波电压含有率超标天数") + private Integer inuharm20OverDay; + + @ApiModelProperty(value = "20.5次间谐波电压含有率超标天数") + private Integer inuharm21OverDay; + + @ApiModelProperty(value = "21.5次间谐波电压含有率超标天数") + private Integer inuharm22OverDay; + + @ApiModelProperty(value = "22.5次间谐波电压含有率超标天数") + private Integer inuharm23OverDay; + + @ApiModelProperty(value = "23.5次间谐波电压含有率超标天数") + private Integer inuharm24OverDay; + + @ApiModelProperty(value = "24.5次间谐波电压含有率超标天数") + private Integer inuharm25OverDay; + + @ApiModelProperty(value = "25.5次间谐波电压含有率超标天数") + private Integer inuharm26OverDay; + + @ApiModelProperty(value = "26.5次间谐波电压含有率超标天数") + private Integer inuharm27OverDay; + + @ApiModelProperty(value = "27.5次间谐波电压含有率超标天数") + private Integer inuharm28OverDay; + + @ApiModelProperty(value = "28.5次间谐波电压含有率超标天数") + private Integer inuharm29OverDay; + + @ApiModelProperty(value = "29.5次间谐波电压含有率超标天数") + private Integer inuharm30OverDay; + + @ApiModelProperty(value = "30.5次间谐波电压含有率超标天数") + private Integer inuharm31OverDay; + + @ApiModelProperty(value = "31.5次间谐波电压含有率超标天数") + private Integer inuharm32OverDay; + + @ApiModelProperty(value = "32.5次间谐波电压含有率超标天数") + private Integer inuharm33OverDay; + + @ApiModelProperty(value = "33.5次间谐波电压含有率超标天数") + private Integer inuharm34OverDay; + + @ApiModelProperty(value = "34.5次间谐波电压含有率超标天数") + private Integer inuharm35OverDay; + + @ApiModelProperty(value = "35.5次间谐波电压含有率超标天数") + private Integer inuharm36OverDay; + + @ApiModelProperty(value = "36.5次间谐波电压含有率超标天数") + private Integer inuharm37OverDay; + + @ApiModelProperty(value = "37.5次间谐波电压含有率超标天数") + private Integer inuharm38OverDay; + + @ApiModelProperty(value = "38.5次间谐波电压含有率超标天数") + private Integer inuharm39OverDay; + + @ApiModelProperty(value = "39.5次间谐波电压含有率超标天数") + private Integer inuharm40OverDay; + + @ApiModelProperty(value = "40.5次间谐波电压含有率超标天数") + private Integer inuharm41OverDay; + + @ApiModelProperty(value = "41.5次间谐波电压含有率超标天数") + private Integer inuharm42OverDay; + + @ApiModelProperty(value = "42.5次间谐波电压含有率超标天数") + private Integer inuharm43OverDay; + + @ApiModelProperty(value = "43.5次间谐波电压含有率超标天数") + private Integer inuharm44OverDay; + + @ApiModelProperty(value = "44.5次间谐波电压含有率超标天数") + private Integer inuharm45OverDay; + + @ApiModelProperty(value = "45.5次间谐波电压含有率超标天数") + private Integer inuharm46OverDay; + + @ApiModelProperty(value = "46.5次间谐波电压含有率超标天数") + private Integer inuharm47OverDay; + + @ApiModelProperty(value = "47.5次间谐波电压含有率超标天数") + private Integer inuharm48OverDay; + + @ApiModelProperty(value = "48.5次间谐波电压含有率超标天数") + private Integer inuharm49OverDay; + + @ApiModelProperty(value = "49.5次间谐波电压含有率超标天数") + private Integer inuharm50OverDay; + + @ApiModelProperty(value = "闪变超标天数") + private Integer flickerOverDay; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatAbnormalD.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatAbnormalD.java new file mode 100644 index 000000000..a7e8d5d49 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatAbnormalD.java @@ -0,0 +1,33 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * (RStatAbnormalD)实体类 + * + * @author qijian + * @since 2022-10-27 14:49:43 + */ +@Data +@TableName(value = "r_stat_abnormal_d") +public class RStatAbnormalD implements Serializable { + private static final long serialVersionUID = 130540916944391303L; + /** + * 时间 + */ + private Date dataDate; + /** + * 监测点ID + */ + private String measurementPointId; + /** + * 数据是否异常(0异常,1正常) + */ + private Integer valueAlarm; + +} + diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicD.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicD.java new file mode 100644 index 000000000..f988dcb58 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicD.java @@ -0,0 +1,53 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.io.Serializable; +import java.time.LocalDate; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-12 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_harmonic_d") +@ApiModel(value="RStatHarmonicD对象", description="") +public class RStatHarmonicD implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每日统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "监测点类别ID、监测对象类型ID") + private String measurementTypeClass; + + @ApiModelProperty(value = "稳态指标类型Id,字典表ID") + private String harmonicType; + + @ApiModelProperty(value = "超标监测点数") + private Integer overLimitMeasurement; + + @ApiModelProperty(value = "超标监测点数占比") + private Float overLimitMeasurementRatio; + + @ApiModelProperty(value = "数据类型,字典表(01:主网测点 02:配网测点)") + private String dataType; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicM.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicM.java new file mode 100644 index 000000000..7377360af --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicM.java @@ -0,0 +1,59 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.Date; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-09 + */ +@Data +@TableName("r_stat_harmonic_m") +@ApiModel(value="RStatHarmonicM对象", description="") +public class RStatHarmonicM { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每月统计一次") + private Date dataDate; + + @ApiModelProperty(value = "监测点类别ID、监测对象类型ID") + private String measurementTypeClass; + + @ApiModelProperty(value = "稳态指标类型Id,字典表ID") + private String harmonicType; + + @ApiModelProperty(value = "日均超标监测点数(根据 日表的超标监测点数 取平均值)") + private Integer overLimitMeasurementAverage; + + @ApiModelProperty(value = "累计超标监测点数(监测点指标统计明细日表 统计)") + private Integer overLimitMeasurementAccrued; + + @ApiModelProperty(value = "累计超标天数(根据 日表的超标监测点数 求和)") + private Integer overDay; + + @ApiModelProperty(value = "日均超标监测点数占比(根据 日表的超标监测点数占比 取平均值)") + private Float overLimitMeasurementRatioAverage; + + @ApiModelProperty(value = "累计超标监测点数占比(此表的累计超标监测点数/区域统计表中的区域分类统计月表中的累计有效接入监测点数)") + private Float overLimitMeasurementRatioAccrued; + + @ApiModelProperty(value = "数据类型,字典表(01:主网测点 02:配网测点)") + private String dataType; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicQ.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicQ.java new file mode 100644 index 000000000..db475d241 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicQ.java @@ -0,0 +1,62 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.io.Serializable; +import java.time.LocalDate; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-12 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_harmonic_q") +@ApiModel(value="RStatHarmonicQ对象", description="") +public class RStatHarmonicQ implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每季度统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "监测点类别ID、监测对象类型ID") + private String measurementTypeClass; + + @ApiModelProperty(value = "稳态指标类型Id,字典表ID") + private String harmonicType; + + @ApiModelProperty(value = "日均超标监测点数(根据 日表的超标监测点数 取平均值)") + private Integer overLimitMeasurementAverage; + + @ApiModelProperty(value = "累计超标监测点数(监测点指标统计明细日表 统计)") + private Integer overLimitMeasurementAccrued; + + @ApiModelProperty(value = "平均超标天数(月表的累计超标天数之和/月表的累计超标监测点数之和)") + private Float averageOverDay; + + @ApiModelProperty(value = "日均超标监测点数占比(根据 日表的超标监测点数占比 取平均值)") + private Float overLimitMeasurementRatioAverage; + + @ApiModelProperty(value = "累计超标监测点数占比(此表的累计超标监测点数/区域统计表中的区域分类统计季表中的累计有效接入监测点数)") + private Float overLimitMeasurementRatioAccrued; + + @ApiModelProperty(value = "数据类型,字典表(01:主网测点 02:配网测点)") + private String dataType; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicVoltageD.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicVoltageD.java new file mode 100644 index 000000000..861d720f2 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicVoltageD.java @@ -0,0 +1,53 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.time.LocalDate; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-10 + */ +@Data +@TableName("r_stat_harmonic_voltage_d") +@ApiModel(value="RStatHarmonicVoltageD对象", description="") +public class RStatHarmonicVoltageD { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每日统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "监测对象类型ID") + private String measurementTypeClass; + + @ApiModelProperty(value = "稳态指标类型Id,字典表ID") + private String harmonicType; + + @ApiModelProperty(value = "电压等级Id,字典表ID") + private String voltageType; + + @ApiModelProperty(value = "超标监测点数") + private Integer overLimitMeasurementAverage; + + @ApiModelProperty(value = "超标监测点数占比") + private Float overLimitMeasurementRatioAverage; + + @ApiModelProperty(value = "数据类型,字典表(01:主网测点 02:配网测点)") + private String dataType; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicVoltageM.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicVoltageM.java new file mode 100644 index 000000000..b644fbedd --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicVoltageM.java @@ -0,0 +1,62 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.time.LocalDate; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-10 + */ +@Data +@TableName("r_stat_harmonic_voltage_m") +@ApiModel(value="RStatHarmonicVoltageM对象", description="") +public class RStatHarmonicVoltageM { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每日统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "监测对象类型ID") + private String measurementTypeClass; + + @ApiModelProperty(value = "稳态指标类型Id,字典表ID") + private String harmonicType; + + @ApiModelProperty(value = "电压等级Id,字典表ID") + private String voltageType; + + @ApiModelProperty(value = "日均超标监测点数") + private Integer overLimitMeasurementAverage; + + @ApiModelProperty(value = "累计超标监测点数") + private Integer overLimitMeasurementAccrued; + + @ApiModelProperty(value = "累计超标天数") + private Integer overDay; + + @ApiModelProperty(value = "日均超标监测点数占比") + private Float overLimitMeasurementRatioAverage; + + @ApiModelProperty(value = "累计超标监测点数占比") + private Float overLimitMeasurementRatioAccrued; + + @ApiModelProperty(value = "数据类型,字典表(01:主网测点 02:配网测点)") + private String dataType; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicY.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicY.java new file mode 100644 index 000000000..237717808 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatHarmonicY.java @@ -0,0 +1,62 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.io.Serializable; +import java.time.LocalDate; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-12 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_harmonic_y") +@ApiModel(value="RStatHarmonicY对象", description="") +public class RStatHarmonicY implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每季度统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "监测点类别ID、监测对象类型ID") + private String measurementTypeClass; + + @ApiModelProperty(value = "稳态指标类型Id,字典表ID") + private String harmonicType; + + @ApiModelProperty(value = "日均超标监测点数(根据 日表的超标监测点数 取平均值)") + private Integer overLimitMeasurementAverage; + + @ApiModelProperty(value = "累计超标监测点数(监测点指标统计明细日表 统计)") + private Integer overLimitMeasurementAccrued; + + @ApiModelProperty(value = "平均超标天数(月表的累计超标天数之和/月表的累计超标监测点数之和)") + private Float averageOverDay; + + @ApiModelProperty(value = "日均超标监测点数占比(根据 日表的超标监测点数占比 取平均值)") + private Float overLimitMeasurementRatioAverage; + + @ApiModelProperty(value = "累计超标监测点数占比(此表的累计超标监测点数/区域统计表中的区域分类统计季表中的累计有效接入监测点数)") + private Float overLimitMeasurementRatioAccrued; + + @ApiModelProperty(value = "数据类型,字典表(01:主网测点 02:配网测点)") + private String dataType; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatLoadTypeM.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatLoadTypeM.java new file mode 100644 index 000000000..17d01b63a --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatLoadTypeM.java @@ -0,0 +1,73 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_load_type_m") +@ApiModel(value="RStatLoadTypeM对象", description="") +public class RStatLoadTypeM implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每月统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "四类典型干扰源类型(风电、光伏、其他非线性负荷、电铁)") + private String loadType; + + @ApiModelProperty(value = "有效接入监测点数") + private Integer effectiveMeasurement; + + @ApiModelProperty(value = "日均谐波电压超标点占比") + private Float vAverage; + + @ApiModelProperty(value = "谐波电压超标点数") + private Integer vCount; + + @ApiModelProperty(value = "日均谐波电流超标点占比") + private Float iAverage; + + @ApiModelProperty(value = "谐波电流超标点数") + private Integer iCount; + + @ApiModelProperty(value = "日均三相电压不平衡度超标点占比") + private Float unbalanceAverage; + + @ApiModelProperty(value = "三相电压不平衡度超标点数") + private Integer unbalanceCount; + + @ApiModelProperty(value = "日均负序电流超标点占比") + private Float iNegAverage; + + @ApiModelProperty(value = "负序电流超标点数") + private Integer iNegCount; + + @ApiModelProperty(value = "日均闪变超标点占比") + private Float flickerAverage; + + @ApiModelProperty(value = "闪变超标点数") + private Integer flickerCount; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatLoadTypeQ.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatLoadTypeQ.java new file mode 100644 index 000000000..927dca5d3 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatLoadTypeQ.java @@ -0,0 +1,73 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_load_type_q") +@ApiModel(value="RStatLoadTypeQ对象", description="") +public class RStatLoadTypeQ implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每季统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "四类典型干扰源类型(风电、光伏、其他非线性负荷、电铁)") + private String loadType; + + @ApiModelProperty(value = "有效接入监测点数") + private Integer effectiveMeasurement; + + @ApiModelProperty(value = "日均谐波电压超标点占比") + private Float vAverage; + + @ApiModelProperty(value = "谐波电压超标点数") + private Integer vCount; + + @ApiModelProperty(value = "日均谐波电流超标点占比") + private Float iAverage; + + @ApiModelProperty(value = "谐波电流超标点数") + private Integer iCount; + + @ApiModelProperty(value = "日均三相电压不平衡度超标点占比") + private Float unbalanceAverage; + + @ApiModelProperty(value = "三相电压不平衡度超标点数") + private Integer unbalanceCount; + + @ApiModelProperty(value = "日均负序电流超标点占比") + private Float iNegAverage; + + @ApiModelProperty(value = "负序电流超标点数") + private Integer iNegCount; + + @ApiModelProperty(value = "日均闪变超标点占比") + private Float flickerAverage; + + @ApiModelProperty(value = "闪变超标点数") + private Integer flickerCount; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatLoadTypeY.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatLoadTypeY.java new file mode 100644 index 000000000..ae5ff048b --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatLoadTypeY.java @@ -0,0 +1,73 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_load_type_y") +@ApiModel(value="RStatLoadTypeY对象", description="") +public class RStatLoadTypeY implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每年统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "四类典型干扰源类型(风电、光伏、其他非线性负荷、电铁)") + private String loadType; + + @ApiModelProperty(value = "有效接入监测点数") + private Integer effectiveMeasurement; + + @ApiModelProperty(value = "日均谐波电压超标点占比") + private Float vAverage; + + @ApiModelProperty(value = "谐波电压超标点数") + private Integer vCount; + + @ApiModelProperty(value = "日均谐波电流超标点占比") + private Float iAverage; + + @ApiModelProperty(value = "谐波电流超标点数") + private Integer iCount; + + @ApiModelProperty(value = "日均三相电压不平衡度超标点占比") + private Float unbalanceAverage; + + @ApiModelProperty(value = "三相电压不平衡度超标点数") + private Integer unbalanceCount; + + @ApiModelProperty(value = "日均负序电流超标点占比") + private Float iNegAverage; + + @ApiModelProperty(value = "负序电流超标点数") + private Integer iNegCount; + + @ApiModelProperty(value = "日均闪变超标点占比") + private Float flickerAverage; + + @ApiModelProperty(value = "闪变超标点数") + private Integer flickerCount; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgBusbarVoltageM.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgBusbarVoltageM.java new file mode 100644 index 000000000..cb1e48b93 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgBusbarVoltageM.java @@ -0,0 +1,61 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_org_busbar_voltage_m") +@ApiModel(value="RStatOrgBusbarVoltageM对象", description="") +public class RStatOrgBusbarVoltageM implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每日统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "母线ID") + private String busbarId; + + @ApiModelProperty(value = "有效接入监测点总数量") + private Integer measurementCount; + + @ApiModelProperty(value = "日均谐波电压超标-占比") + private Float vAverage; + + @ApiModelProperty(value = "累计谐波电压超标-占比") + private Float vAccrued; + + @ApiModelProperty(value = "日均三相电压不平衡超标-占比") + private Float unbalanceAverage; + + @ApiModelProperty(value = "累计三相电压不平衡超标-占比") + private Float unbalanceAccrued; + + @ApiModelProperty(value = "日均闪变超标-占比") + private Float flickerAverage; + + @ApiModelProperty(value = "累计闪变超标-占比") + private Float flickerAccrued; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgBusbarVoltageQ.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgBusbarVoltageQ.java new file mode 100644 index 000000000..2f873023e --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgBusbarVoltageQ.java @@ -0,0 +1,61 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_org_busbar_voltage_q") +@ApiModel(value="RStatOrgBusbarVoltageQ对象", description="") +public class RStatOrgBusbarVoltageQ implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每日统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "母线ID") + private String busbarId; + + @ApiModelProperty(value = "有效接入监测点总数量") + private Integer measurementCount; + + @ApiModelProperty(value = "日均谐波电压超标-占比") + private Float vAverage; + + @ApiModelProperty(value = "累计谐波电压超标-占比") + private Float vAccrued; + + @ApiModelProperty(value = "日均三相电压不平衡超标-占比") + private Float unbalanceAverage; + + @ApiModelProperty(value = "累计三相电压不平衡超标-占比") + private Float unbalanceAccrued; + + @ApiModelProperty(value = "日均闪变超标-占比") + private Float flickerAverage; + + @ApiModelProperty(value = "累计闪变超标-占比") + private Float flickerAccrued; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgBusbarVoltageY.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgBusbarVoltageY.java new file mode 100644 index 000000000..ba331eb7a --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgBusbarVoltageY.java @@ -0,0 +1,61 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_org_busbar_voltage_y") +@ApiModel(value="RStatOrgBusbarVoltageY对象", description="") +public class RStatOrgBusbarVoltageY implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每日统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "母线ID") + private String busbarId; + + @ApiModelProperty(value = "有效接入监测点总数量") + private Integer measurementCount; + + @ApiModelProperty(value = "日均谐波电压超标-占比") + private Float vAverage; + + @ApiModelProperty(value = "累计谐波电压超标-占比") + private Float vAccrued; + + @ApiModelProperty(value = "日均三相电压不平衡超标-占比") + private Float unbalanceAverage; + + @ApiModelProperty(value = "累计三相电压不平衡超标-占比") + private Float unbalanceAccrued; + + @ApiModelProperty(value = "日均闪变超标-占比") + private Float flickerAverage; + + @ApiModelProperty(value = "累计闪变超标-占比") + private Float flickerAccrued; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgM.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgM.java new file mode 100644 index 000000000..988796a9b --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgM.java @@ -0,0 +1,94 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * 区域分类统计月表 + *

+ * + * @author rui.wu + * @since 2022-10-17 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_org_m") +@ApiModel(value="RStatOrgM对象", description="区域分类统计月表") +public class RStatOrgM implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每月统计一次") + private LocalDateTime dataDate; + + @ApiModelProperty(value = "监测点类别ID、监测对象类型ID") + private String measurementTypeClass; + + @ApiModelProperty(value = "总监测点数") + private Integer allCount; + + @ApiModelProperty(value = "日均有效接入监测点数") + private Integer effectiveMeasurementAverage; + + @ApiModelProperty(value = "累计有效接入监测点数") + private Integer effectiveMeasurementAccrued; + + @ApiModelProperty(value = "日均稳态超标监测点数") + private Integer harmonicMeasurementAverage; + + @ApiModelProperty(value = "累计稳态超标监测点数") + private Integer harmonicMeasurementAccrued; + + @ApiModelProperty(value = "日均稳态超标监测点数占比") + private Float harmonicMeasurementRatioAverage; + + @ApiModelProperty(value = "累计超标天数") + private Integer overDayAccrued; + + @ApiModelProperty(value = "频率偏差合格率") + private Float freqPassRate; + + @ApiModelProperty(value = "电压偏差合格率") + private Float vDevPassRate; + + @ApiModelProperty(value = "闪变合格率") + private Float flickerPassRate; + + @ApiModelProperty(value = "日均监测到暂态指标的监测点数") + private Integer eventMeasurementAverage; + + @ApiModelProperty(value = "累计监测到暂态指标的监测点数") + private Integer eventMeasurementAccrued; + + @ApiModelProperty(value = "日均暂态超标监测点数占比") + private Float eventMeasurementRatioAverage; + + @ApiModelProperty(value = "暂态指标发生频次") + private Float eventFreq; + + @ApiModelProperty(value = "暂态指标发生次数") + private Integer eventCount; + + @ApiModelProperty(value = "应设点数") + private Integer shouldCount; + + @ApiModelProperty(value = "告警监测点数") + private Integer warnCount; + + @ApiModelProperty(value = "数据类型,字典表(01:主网测点 02:配网测点)") + private String dataType; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgQ.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgQ.java new file mode 100644 index 000000000..8d8e8ea2a --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgQ.java @@ -0,0 +1,94 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * 区域分类统计季表 + *

+ * + * @author rui.wu + * @since 2022-10-17 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_org_q") +@ApiModel(value="RStatOrgQ对象", description="区域分类统计季表") +public class RStatOrgQ implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每季统计一次") + private LocalDateTime dataDate; + + @ApiModelProperty(value = "监测点类别ID、监测对象类型ID") + private String measurementTypeClass; + + @ApiModelProperty(value = "总监测点数") + private Integer allCount; + + @ApiModelProperty(value = "日均有效接入监测点数") + private Integer effectiveMeasurementAverage; + + @ApiModelProperty(value = "累计有效接入监测点数") + private Integer effectiveMeasurementAccrued; + + @ApiModelProperty(value = "日均稳态超标监测点数") + private Integer harmonicMeasurementAverage; + + @ApiModelProperty(value = "累计稳态超标监测点数") + private Integer harmonicMeasurementAccrued; + + @ApiModelProperty(value = "日均稳态超标监测点数占比") + private Float harmonicMeasurementRatioAverage; + + @ApiModelProperty(value = "稳态指标平均超标天数") + private Float averageOverDay; + + @ApiModelProperty(value = "频率偏差合格率") + private Float freqPassRate; + + @ApiModelProperty(value = "电压偏差合格率") + private Float vDevPassRate; + + @ApiModelProperty(value = "闪变合格率") + private Float flickerPassRate; + + @ApiModelProperty(value = "日均监测到暂态指标的监测点数") + private Integer eventMeasurementAverage; + + @ApiModelProperty(value = "累计监测到暂态指标的监测点数") + private Integer eventMeasurementAccrued; + + @ApiModelProperty(value = "日均暂态超标监测点数占比") + private Float eventMeasurementRatioAverage; + + @ApiModelProperty(value = "暂态指标发生频次") + private Float eventFreq; + + @ApiModelProperty(value = "暂态指标发生次数") + private Integer eventCount; + + @ApiModelProperty(value = "应设点数") + private Integer shouldCount; + + @ApiModelProperty(value = "告警监测点数") + private Integer warnCount; + + @ApiModelProperty(value = "数据类型,字典表(01:主网测点 02:配网测点)") + private String dataType; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgY.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgY.java new file mode 100644 index 000000000..7956b9ed2 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatOrgY.java @@ -0,0 +1,94 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * 区域分类统计年表 + *

+ * + * @author rui.wu + * @since 2022-10-17 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_org_y") +@ApiModel(value="RStatOrgY对象", description="区域分类统计年表") +public class RStatOrgY implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每年统计一次") + private LocalDateTime dataDate; + + @ApiModelProperty(value = "监测点类别ID、监测对象类型ID") + private String measurementTypeClass; + + @ApiModelProperty(value = "总监测点数") + private Integer allCount; + + @ApiModelProperty(value = "日均有效接入监测点数") + private Integer effectiveMeasurementAverage; + + @ApiModelProperty(value = "累计有效接入监测点数") + private Integer effectiveMeasurementAccrued; + + @ApiModelProperty(value = "日均稳态超标监测点数") + private Integer overLimitMeasurementAverage; + + @ApiModelProperty(value = "累计稳态超标监测点数") + private Integer overLimitMeasurementAccrued; + + @ApiModelProperty(value = "日均稳态超标监测点数占比") + private Float harmonicMeasurementRatioAverage; + + @ApiModelProperty(value = "稳态指标平均超标天数") + private Float averageOverDay; + + @ApiModelProperty(value = "频率偏差合格率") + private Float freqPassRate; + + @ApiModelProperty(value = "电压偏差合格率") + private Float vDevPassRate; + + @ApiModelProperty(value = "闪变合格率") + private Float flickerPassRate; + + @ApiModelProperty(value = "日均监测到暂态指标的监测点数") + private Integer eventMeasurementAverage; + + @ApiModelProperty(value = "累计监测到暂态指标的监测点数") + private Integer eventMeasurementAccrued; + + @ApiModelProperty(value = "日均暂态超标监测点数占比") + private Float eventMeasurementRatioAverage; + + @ApiModelProperty(value = "暂态指标发生频次") + private Float eventFreq; + + @ApiModelProperty(value = "暂态指标发生次数") + private Integer eventCount; + + @ApiModelProperty(value = "应设点数") + private Integer shouldCount; + + @ApiModelProperty(value = "告警监测点数") + private Integer warnCount; + + @ApiModelProperty(value = "数据类型,字典表(01:主网测点 02:配网测点)") + private String dataType; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatSubstationM.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatSubstationM.java new file mode 100644 index 000000000..ea73dddc4 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatSubstationM.java @@ -0,0 +1,121 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-18 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_substation_m") +@ApiModel(value="RStatSubstationM对象", description="") +public class RStatSubstationM implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "生成数据的时间,每月统计一次") + @TableId(value = "data_date", type = IdType.ASSIGN_ID) + private LocalDate dataDate; + + @ApiModelProperty(value = "变电站id") + private String substationId; + + @ApiModelProperty(value = "日均有效接入监测点数") + private Integer effectiveMeasurementAverage; + + @ApiModelProperty(value = "累计有效接入监测点数") + private Integer effectiveMeasurementAccrued; + + @ApiModelProperty(value = "稳态累计超标天数") + private Float harmonicOverDay; + + @ApiModelProperty(value = "稳态累计超标监测点数") + private Integer harmonicCount; + + @ApiModelProperty(value = "频率偏差累计超标天数") + private Float freqOverDay; + + @ApiModelProperty(value = "频率偏差累计超标监测点数") + private Integer freqCount; + + @ApiModelProperty(value = "电压偏差累计超标天数") + private Float vDevOverDay; + + @ApiModelProperty(value = "电压偏差累计超标监测点数") + private Integer vDevCount; + + @ApiModelProperty(value = "谐波电压累计超标天数") + private Float vOverDay; + + @ApiModelProperty(value = "谐波电压累计超标监测点数") + private Integer vCount; + + @ApiModelProperty(value = "谐波电流累计超标天数") + private Float iOverDay; + + @ApiModelProperty(value = "谐波电流累计超标监测点数") + private Integer iCount; + + @ApiModelProperty(value = "三相电压不平衡累计超标天数") + private Float unbalanceOverDay; + + @ApiModelProperty(value = "三相电压不平衡累计超标监测点数") + private Integer unbalanceCount; + + @ApiModelProperty(value = "负序电流累计超标天数") + private Float iNegOverDay; + + @ApiModelProperty(value = "负序电流累计超标监测点数") + private Integer iNegCount; + + @ApiModelProperty(value = "闪变累计超标天数") + private Float flickerOverDay; + + @ApiModelProperty(value = "闪变累计超标监测点数") + private Integer flickerCount; + + @ApiModelProperty(value = "间谐波电压累计超标天数") + private Float inuharmOverDay; + + @ApiModelProperty(value = "间谐波电压累计超标监测点数") + private Integer inuharmCount; + + @ApiModelProperty(value = "暂态指标发生次数") + private Integer eventCount; + + @ApiModelProperty(value = "暂态指标发生频次") + private Float eventFreq; + + @ApiModelProperty(value = "电压暂降发生次数") + private Integer sagCount; + + @ApiModelProperty(value = "电压暂降发生频次") + private Float sagFreq; + + @ApiModelProperty(value = "电压暂升发生次数") + private Integer swellCount; + + @ApiModelProperty(value = "电压暂升发生频次") + private Float swellFreq; + + @ApiModelProperty(value = "短时中断发生次数") + private Integer interruptCount; + + @ApiModelProperty(value = "短时中断发生频次") + private Float interruptFreq; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatSubstationQ.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatSubstationQ.java new file mode 100644 index 000000000..5d1ee2efe --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatSubstationQ.java @@ -0,0 +1,94 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-18 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_substation_q") +@ApiModel(value="RStatSubstationQ对象", description="") +public class RStatSubstationQ implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "生成数据的时间,每季统计一次") + @TableId(value = "data_date", type = IdType.ASSIGN_ID) + private LocalDate dataDate; + + @ApiModelProperty(value = "变电站id") + private String substationId; + + @ApiModelProperty(value = "日均有效接入监测点数") + private Integer effectiveMeasurementAverage; + + @ApiModelProperty(value = "累计有效接入监测点数") + private Integer effectiveMeasurementAccrued; + + @ApiModelProperty(value = "稳态平均超标天数") + private Float harmonicAverageOverDay; + + @ApiModelProperty(value = "频率偏差平均超标天数") + private Float freqAverageOverDay; + + @ApiModelProperty(value = "电压偏差平均超标天数") + private Float vDevAverageOverDay; + + @ApiModelProperty(value = "谐波电压平均超标天数") + private Float vAverageOverDay; + + @ApiModelProperty(value = "谐波电流平均超标天数") + private Float iAverageOverDay; + + @ApiModelProperty(value = "三相电压不平衡平均超标天数") + private Float unbalanceAverageOverDay; + + @ApiModelProperty(value = "负序电流平均超标天数") + private Float iNegAverageOverDay; + + @ApiModelProperty(value = "闪变平均超标天数") + private Float flickerAverageOverDay; + + @ApiModelProperty(value = "间谐波电压平均超标天数") + private Float inuharmAverageOverDay; + + @ApiModelProperty(value = "暂态指标发生次数") + private Integer eventCount; + + @ApiModelProperty(value = "暂态指标发生频次") + private Float eventFreq; + + @ApiModelProperty(value = "电压暂降发生次数") + private Integer sagCount; + + @ApiModelProperty(value = "电压暂降发生频次") + private Float sagFreq; + + @ApiModelProperty(value = "电压暂升发生次数") + private Integer swellCount; + + @ApiModelProperty(value = "电压暂升发生频次") + private Float swellFreq; + + @ApiModelProperty(value = "短时中断发生次数") + private Integer interruptCount; + + @ApiModelProperty(value = "短时中断发生频次") + private Float interruptFreq; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatSubstationVoltageM.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatSubstationVoltageM.java new file mode 100644 index 000000000..bb0933d4f --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatSubstationVoltageM.java @@ -0,0 +1,49 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-18 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_substation_voltage_m") +@ApiModel(value="RStatSubstationVoltageM对象", description="") +public class RStatSubstationVoltageM implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + @TableId(value = "org_no", type = IdType.ASSIGN_ID) + private String orgNo; + + @ApiModelProperty(value = "生成数据的时间,每月统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "电压等级") + private String substationVoltage; + + @ApiModelProperty(value = "变电站数量") + private Integer substationCount; + + @ApiModelProperty(value = "稳态超标变电站数量") + private Integer harmonicCount; + + @ApiModelProperty(value = "暂态变电站数量") + private Integer eventCount; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatSubstationY.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatSubstationY.java new file mode 100644 index 000000000..0fe743cd2 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/po/RStatSubstationY.java @@ -0,0 +1,94 @@ +package com.njcn.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDate; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-18 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("r_stat_substation_y") +@ApiModel(value="RStatSubstationY对象", description="") +public class RStatSubstationY implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "生成数据的时间,每年统计一次") + @TableId(value = "data_date", type = IdType.ASSIGN_ID) + private LocalDate dataDate; + + @ApiModelProperty(value = "变电站id") + private String substationId; + + @ApiModelProperty(value = "日均有效接入监测点数") + private Integer effectiveMeasurementAverage; + + @ApiModelProperty(value = "累计有效接入监测点数") + private Integer effectiveMeasurementAccrued; + + @ApiModelProperty(value = "稳态平均超标天数") + private Float harmonicOverDay; + + @ApiModelProperty(value = "频率偏差平均超标天数") + private Float freqAverageOverDay; + + @ApiModelProperty(value = "电压偏差平均超标天数") + private Float vDevAverageOverDay; + + @ApiModelProperty(value = "谐波电压平均超标天数") + private Float vAverageOverDay; + + @ApiModelProperty(value = "谐波电流平均超标天数") + private Float iAverageOverDay; + + @ApiModelProperty(value = "三相电压不平衡平均超标天数") + private Float unbalanceAverageOverDay; + + @ApiModelProperty(value = "负序电流平均超标天数") + private Float iNegAverageOverDay; + + @ApiModelProperty(value = "闪变平均超标天数") + private Float flickerAverageOverDay; + + @ApiModelProperty(value = "间谐波电压平均超标天数") + private Float inuharmAverageOverDay; + + @ApiModelProperty(value = "暂态指标发生次数") + private Integer eventCount; + + @ApiModelProperty(value = "暂态指标发生频次") + private Float eventFreq; + + @ApiModelProperty(value = "电压暂降发生次数") + private Integer sagCount; + + @ApiModelProperty(value = "电压暂降发生频次") + private Float sagFreq; + + @ApiModelProperty(value = "电压暂升发生次数") + private Integer swellCount; + + @ApiModelProperty(value = "电压暂升发生频次") + private Float swellFreq; + + @ApiModelProperty(value = "短时中断发生次数") + private Integer interruptCount; + + @ApiModelProperty(value = "短时中断发生频次") + private Float interruptFreq; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RArrayVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RArrayVO.java new file mode 100644 index 000000000..f7b76d2eb --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RArrayVO.java @@ -0,0 +1,27 @@ +package com.njcn.harmonic.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.List; + +/** + * <功能描述> + * + * @author 1754607820@qq.com + * @createTime: 2022-10-10 + */ +@Data +public class RArrayVO { + + @ApiModelProperty(value = "指标名称") + String rowName; + + @ApiModelProperty("排序") + private Integer sort; + + @ApiModelProperty(value = "检测点类型") + List columns; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RHarmonicPolylineVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RHarmonicPolylineVO.java new file mode 100644 index 000000000..8d9ab6036 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RHarmonicPolylineVO.java @@ -0,0 +1,30 @@ +package com.njcn.harmonic.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * <功能描述> + * + * @author 1754607820@qq.com + * @createTime: 2022-10-10 + */ +@Data +public class RHarmonicPolylineVO { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "时间") + private String date; + + @ApiModelProperty(value ="监测点数") + private Integer num; + + @ApiModelProperty(value = "超标监测点数占比") + private Float overLimitMeasurementRatioAverage; + + @ApiModelProperty(value = "平均超标天数") + private Integer averageOverDay; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RIconVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RIconVO.java new file mode 100644 index 000000000..964f94014 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RIconVO.java @@ -0,0 +1,36 @@ +package com.njcn.harmonic.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * <功能描述> + * + * @author 1754607820@qq.com + * @createTime: 2022-10-10 + */ +@Data +public class RIconVO { + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "指标名称") + private String rowName; + + @ApiModelProperty(value ="排序") + private Integer sort; + + @ApiModelProperty(value ="日均监测点数") + private Integer overLimitMeasurementAverage; + + @ApiModelProperty(value ="累计监测点数") + private Integer overLimitMeasurementAccrued; + + @ApiModelProperty(value = "日均超标监测点数占比") + private Float overLimitMeasurementRatioAverage; + + @ApiModelProperty(value = "累计超标监测点数占比") + private Float overLimitMeasurementRatioAccrued; + + @ApiModelProperty(value = "平均超标天数") + private Float averageOverDay; +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RMpBenchmarkLevelVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RMpBenchmarkLevelVO.java new file mode 100644 index 000000000..2bdb64bdf --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RMpBenchmarkLevelVO.java @@ -0,0 +1,71 @@ +package com.njcn.harmonic.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * 【基准水平】台账展示 + * @Title RMpBenchmarkLevelVO + * @Package com.njcn.device.pms.pojo.vo + * @Author jianghaifei + * @Date 2022-10-11 19:28 + * @Version V1.0 + */ +@Data +public class RMpBenchmarkLevelVO implements Serializable { + private static final long serialVersionUID = 1L; + + @ApiModelProperty(name = "orgNo", value = "单位id") + private String orgNo; + + @ApiModelProperty(name = "orgName", value = "单位名称") + private String orgName; + + @ApiModelProperty(name = "benchmarkIndicator", value = "基准水平评价指标id") + private String benchmarkIndicator; + + @ApiModelProperty(name = "benchmarkIndicator", value = "基准水平评价指标") + private String benchmarkIndicatorName; + + @ApiModelProperty(name = "measurementPointId", value = "监测点ID") + private String measurementPointId; + + @ApiModelProperty(name = "measurementPointName", value = "监测点名称") + private String measurementPointName; + + @ApiModelProperty(name = "voltage_Level", value = "电压等级id") + private String voltageLevel; + + @ApiModelProperty(name = "voltage_Level", value = "电压等级名称") + private String voltageLevelName; + + @ApiModelProperty(name = "dataDate", value = "生成数据的时间") + private Date dataDate; + + @ApiModelProperty(name = "voltageAvg", value = "电压水平均值") + private Double voltageAvg; + + @ApiModelProperty(name = "voltageSd", value = "电压水平标准差") + private Double voltageSd; + + @ApiModelProperty(name = "unbalanceAvg", value = "三相电压不平衡水平均值") + private Double unbalanceAvg; + + @ApiModelProperty(name = "unbalanceSd", value = "三相电压不平衡水平标准差") + private Double unbalanceSd; + + @ApiModelProperty(name = "vthdAvg", value = "电压总谐波畸变率水平均值") + private Double vthdAvg; + + @ApiModelProperty(name = "vthdSd", value = "电压总谐波畸变率水平标准差") + private Double vthdSd; + + @ApiModelProperty(name = "flickerAvg", value = "长时间闪变水平均值") + private Double flickerAvg; + + @ApiModelProperty(name = "flickerSd", value = "长时间闪变水平标准差") + private Double flickerSd; +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RMpHarmonicReportDVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RMpHarmonicReportDVO.java new file mode 100644 index 000000000..0f693bec9 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RMpHarmonicReportDVO.java @@ -0,0 +1,129 @@ +package com.njcn.harmonic.pojo.vo; + +import com.njcn.harmonic.pojo.po.*; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import org.json.JSONObject; + +import java.io.Serializable; +import java.util.Map; + +/** + * 【监测点稳态指标日报】展示字段 + * @Title RMpHarmonicReportDVO + * @Package com.njcn.harmonic.pojo.vo + * @Author jianghaifei + * @Date 2022-10-20 10:01 + * @Version V1.0 + */ +@Data +public class RMpHarmonicReportDVO implements Serializable { + private static final long serialVersionUID = 1L; + + // monitor + @ApiModelProperty(name = "orgNo", value = "单位ID") + private String orgNo; //单位ID + @ApiModelProperty(name = "orgName", value = "单位名称") + private String orgName; //单位名称 + @ApiModelProperty(name = "powerId", value = "变电站id") + private String powerId; //变电站id + @ApiModelProperty(name = "powerName", value = "变电站名称") + private String powerName; //变电站名称 + @ApiModelProperty(name = "measurementPointId", value = "监测点ID") + private String measurementPointId; //监测点ID + @ApiModelProperty(name = "measurementPointName", value = "监测点名称") + private String measurementPointName; //监测点名称 + @ApiModelProperty(name = "minShortCircuitCapacity", value = "最小短路容量") + private Float minShortCircuitCapacity; //最小短路容量 + + @ApiModelProperty(name = "voltageLevel", value = "变电站电压等级id") + private String voltageLevel; //变电站电压等级id + @ApiModelProperty(name = "voltageLevelName", value = "变电站电压等级") + private String voltageLevelName; //变电站电压等级 + + @ApiModelProperty(name = "dataDate", value = "监测日期") + private String dataDate; //监测日期 + + //r_mp_measure_report_d【稳态监测点非谐波不带相位指标日报-日表(主配网表) 】 + private RMpMeasureReportD rMpMeasureReportD; +// private Double totalActivePowerMax; //总有功功率-最大值 +// private Double totalActivePowerMin; //总有功功率-最小值 +// private Double totalActivePowerAvg; //总有功功率-平均值 +// private Double totalActivePower95; //总有功功率-95值 + + @ApiModelProperty(name = "frequencyDeviationMaxResult", value = "频率偏差-最大值限值结论") + private String frequencyDeviationMaxResult; //频率偏差-最大值限值结论(用接口调用(接口只返回一个值,用表中的最大值去对比)越限/正常) + +// private Double totalReactivePowerMax; //总无功功率-最大值 +// private Double totalReactivePowerMin; //总无功功率-最小值 +// private Double totalReactivePowerAvg; //总无功功率-平均值 +// private Double totalReactivePower95; //总无功功率-95值 + +// private Double negativeSequenceVoltageUnbalanceMax; //负序电压不平衡度-最大值(三相电压不平衡度) +// private Double negativeSequenceVoltageUnbalanceMin; //负序电压不平衡度-最小值 +// private Double negativeSequenceVoltageUnbalanceAvg; //负序电压不平衡度-平均值 +// private Double negativeSequenceVoltageUnbalance95; //负序电压不平衡度-95值 + @ApiModelProperty(name = "negativeSequenceVoltageUnbalance95Result", value = "负序电压(三相电压)不平衡度-95值限值结论") + private String negativeSequenceVoltageUnbalance95Result; //负序电压不平衡度-95值限值结论(用接口调用(接口只返回一个值,用表中的95值去对比)越限/正常) + private String negativeSequenceVoltageUnbalanceMaxResult; //负序电压不平衡度-最大值限值结论(用接口调用(接口只返回一个值,用表中的95值去对比)越限/正常) + +// private Double negativeSequenceCurrentMax; //负序电流-最大值 +// private Double negativeSequenceCurrentMin; //负序电流-最小值 +// private Double negativeSequenceCurrentAvg; //负序电流-平均值 +// private Double negativeSequenceCurrent95; //负序电流-95值 + @ApiModelProperty(name = "negativeSequenceCurrent95Result", value = "负序电流-95值限值结论") + private String negativeSequenceCurrent95Result; //负序电流-95值限值结论 (用接口调用(接口只返回一个值,用表中的95值去对比)越限/正常) + private String negativeSequenceCurrentMaxResult; //负序电流最大值限值结论 + + //r_mp_measure_phase_report_d 【稳态监测点非谐波带相位指标日报-日表(主配网表)】 + private Map phaseReportD; + // A/B/C三相 todo +// private Double spApparentPowerMax; //视在功率-最大值 (单相视在功率) +// private Double spApparentPowerMin; //视在功率-最小值 +// private Double spApparentPowerAvg; //视在功率-平均值 +// private Double spApparentPower95; //视在功率-95值 + // A/B/C三相 todo +// private Double spPowerFactorMax; //功率因数-最大值 (单相功率因数) +// private Double spPowerFactorMin; //功率因数-最小值 (单相功率因数) +// private Double spPowerFactorAvg; //功率因数-平均值 (单相功率因数) +// private Double spPowerFactor95; //功率因数-95值 (单相功率因数) + + // A/B/C三相 todo +// private Double vDeUpMax; //电压正偏差-最大值(电压上偏差-最大值) + + // A/B/C三相 todo +// private Double vDeLowMax; //电压负偏差-最大值(电压下偏差-最大值) + + //r_mp_harmonic_v_rate_report_d 【稳态监测点指标日报-日表(主配网表) /各次谐波电压含有率】 + // A/B/C三相 todo +// private Double fundamentalVoltageMax; //基波电压-最大值 (相(线)电压基波有效值-最大值) +// private Double fundamentalVoltageMin; //基波电压-最小值 +// private Double fundamentalVoltageAvg; //基波电压-平均值 +// private Double fundamentalVoltage95; //基波电压-95值 + + @ApiModelProperty(name = "voltageHarmonicWave95", value = "电压总谐波畸变率-95限值结论") + private Map voltageHarmonicWave95ResultMap; //电压总谐波畸变率-95限值结论(用接口调用(接口只返回一个值,用表中的95值去对比)越限/正常) + //各相各次谐波电压含有率 (key:相别 value:实体) + @ApiModelProperty(name = "rMpHarmonicVRateReportDMap", value = "各相各次谐波电压含有率") + private Map rMpHarmonicVRateReportDMap; + + //r_mp_harmonic_i_mag_report_d 【稳态监测点指标日报-日表(主配网表) /各次谐波电流有效值】 + // A/B/C三相 todo + @ApiModelProperty(name = "rMpHarmonicIMagReportDMap", value = "各次谐波电流有效值") + private Map rMpHarmonicIMagReportDMap; +// private Double fundamentalCurrentMax; //基波电流-最大值 +// private Double fundamentalCurrentMin; //基波电流-最小值 +// private Double fundamentalCurrentAvg; //基波电流-平均值 +// private Double fundamentalCurrent95; //基波电流-95值 + + //各相各次谐波电流含有率 r_mp_harmonic_i_rate_report_d + @ApiModelProperty(name = "rMpHarmonicIRateReportDMap", value = "各相各次谐波电流含有率") + private Map rMpHarmonicIRateReportDMap; + //各相各次间谐波电压含有率 r_mp_inharmonic_v_rate_report_d + @ApiModelProperty(name = "rMpInharmonicVRateReportDMap", value = "各相各次间谐波电压含有率") + private Map rMpInharmonicVRateReportDMap; + //各相各次间谐波电流含有率 r_mp_inharmonic_i_rate_report_d + @ApiModelProperty(name = "rMpInharmonicIRateReportDMap", value = "各相各次间谐波电流含有率") + private Map rMpInharmonicIRateReportDMap; +} + diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RMpHarmonicReportMVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RMpHarmonicReportMVO.java new file mode 100644 index 000000000..5be612264 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RMpHarmonicReportMVO.java @@ -0,0 +1,15 @@ +package com.njcn.harmonic.pojo.vo; + +import java.io.Serializable; + +/** + * 【基准水平】 + * @Title RMpHarmonicReportMVO + * @Package com.njcn.harmonic.pojo.vo + * @Author jianghaifei + * @Date 2022-10-20 13:53 + * @Version V1.0 + */ +public class RMpHarmonicReportMVO implements Serializable { + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RMpPartHarmonicDetailIconVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RMpPartHarmonicDetailIconVO.java new file mode 100644 index 000000000..a00b9f6ee --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RMpPartHarmonicDetailIconVO.java @@ -0,0 +1,47 @@ +package com.njcn.harmonic.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.time.LocalDate; + +/** + * <功能描述> + * + * @author wr + * @createTime: 2022-10-24 + */ +@Data +public class RMpPartHarmonicDetailIconVO { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "时间") + private String dataDate; + + @ApiModelProperty(value = "谐波电压超标次数") + private Integer vTimes; + + @ApiModelProperty(value = "谐波电流超标次数") + private Integer iTimes; + + @ApiModelProperty(value = "三相电压不平衡度超标次数") + private Integer unbalanceTimes; + + @ApiModelProperty(value = "负序电流超标次数") + private Integer iNegTimes; + + @ApiModelProperty(value = "频率偏差超标次数") + private Integer freqTimes; + + @ApiModelProperty(value = "电压偏差超标次数") + private Integer vDevTimes; + + @ApiModelProperty(value = "闪变发生次数") + private Integer flickerTimes; + + @ApiModelProperty(value = "间谐波电压超标次数") + private Integer inuharmTimes; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RMpPartHarmonicDetailVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RMpPartHarmonicDetailVO.java new file mode 100644 index 000000000..e9e1b9960 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RMpPartHarmonicDetailVO.java @@ -0,0 +1,218 @@ +package com.njcn.harmonic.pojo.vo; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.time.LocalDate; + +/** + * <功能描述> + * + * @author wr + * @createTime: 2022-10-24 + */ +@Data +public class RMpPartHarmonicDetailVO { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "监测点ID") + private String measurementPointId; + + @ApiModelProperty(value = "所属单位名称") + private String OrgName; + + @ApiModelProperty(value = "所属变电站名称") + private String powerrName; + + @ApiModelProperty(value = "电压等级名称") + private String monitorVoltageName; + + @ApiModelProperty(value = "监测点名称") + private String measurementPointName; + + @ApiModelProperty(value = "生成数据的时间,每月统计一次") + private LocalDate dataDate; + + @ApiModelProperty(value = "当月超标天数") + private Integer measurementOverDay; + + @ApiModelProperty(value = "频率偏差超标天数") + private Integer freqOverDay; + + @ApiModelProperty(value = "电压上偏差超标天数") + private Integer vDevUpOverDay; + + @ApiModelProperty(value = "电压下偏差超标天数") + private Integer vDevLowOverDay; + + @ApiModelProperty(value = "电压偏差超标天数") + private Integer vDevOverDay; + + @ApiModelProperty(value = "电压总谐波畸变率超标天数") + private Integer vThdOverDay; + + @ApiModelProperty(value = "谐波电压超标天数") + private Integer vOverDay; + + @ApiModelProperty(value = "谐波电流超标天数") + private Integer iOverDay; + + @ApiModelProperty(value = "2次谐波电压含有率超标天数") + private Integer v2OverDay; + + @ApiModelProperty(value = "3次谐波电压含有率超标天数") + private Integer v3OverDay; + + @ApiModelProperty(value = "4次谐波电压含有率超标天数") + private Integer v4OverDay; + + @ApiModelProperty(value = "5次谐波电压含有率超标天数") + private Integer v5OverDay; + + @ApiModelProperty(value = "6次谐波电压含有率超标天数") + private Integer v6OverDay; + + @ApiModelProperty(value = "7次谐波电压含有率超标天数") + private Integer v7OverDay; + + @ApiModelProperty(value = "8次谐波电压含有率超标天数") + private Integer v8OverDay; + + @ApiModelProperty(value = "9次谐波电压含有率超标天数") + private Integer v9OverDay; + + @ApiModelProperty(value = "10次谐波电压含有率超标天数") + private Integer v10OverDay; + + @ApiModelProperty(value = "11次谐波电压含有率超标天数") + private Integer v11OverDay; + + @ApiModelProperty(value = "12次谐波电压含有率超标天数") + private Integer v12OverDay; + + @ApiModelProperty(value = "13次谐波电压含有率超标天数") + private Integer v13OverDay; + + @ApiModelProperty(value = "14次谐波电压含有率超标天数") + private Integer v14OverDay; + + @ApiModelProperty(value = "15次谐波电压含有率超标天数") + private Integer v15OverDay; + + @ApiModelProperty(value = "16次谐波电压含有率超标天数") + private Integer v16OverDay; + + @ApiModelProperty(value = "17次谐波电压含有率超标天数") + private Integer v17OverDay; + + @ApiModelProperty(value = "18次谐波电压含有率超标天数") + private Integer v18OverDay; + + @ApiModelProperty(value = "19次谐波电压含有率超标天数") + private Integer v19OverDay; + + @ApiModelProperty(value = "20次谐波电压含有率超标天数") + private Integer v20OverDay; + + @ApiModelProperty(value = "21次谐波电压含有率超标天数") + private Integer v21OverDay; + + @ApiModelProperty(value = "22次谐波电压含有率超标天数") + private Integer v22OverDay; + + @ApiModelProperty(value = "23次谐波电压含有率超标天数") + private Integer v23OverDay; + + @ApiModelProperty(value = "24次谐波电压含有率超标天数") + private Integer v24OverDay; + + @ApiModelProperty(value = "25次谐波电压含有率超标天数") + private Integer v25OverDay; + + @ApiModelProperty(value = "2次谐波电流含有率超标天数") + private Integer i2OverDay; + + @ApiModelProperty(value = "3次谐波电流含有率超标天数") + private Integer i3OverDay; + + @ApiModelProperty(value = "4次谐波电流含有率超标天数") + private Integer i4OverDay; + + @ApiModelProperty(value = "5次谐波电流含有率超标天数") + private Integer i5OverDay; + + @ApiModelProperty(value = "6次谐波电流含有率超标天数") + private Integer i6OverDay; + + @ApiModelProperty(value = "7次谐波电流含有率超标天数") + private Integer i7OverDay; + + @ApiModelProperty(value = "8次谐波电流含有率超标天数") + private Integer i8OverDay; + + @ApiModelProperty(value = "9次谐波电流含有率超标天数") + private Integer i9OverDay; + + @ApiModelProperty(value = "10次谐波电流含有率超标天数") + private Integer i10OverDay; + + @ApiModelProperty(value = "11次谐波电流含有率超标天数") + private Integer i11OverDay; + + @ApiModelProperty(value = "12次谐波电流含有率超标天数") + private Integer i12OverDay; + + @ApiModelProperty(value = "13次谐波电流含有率超标天数") + private Integer i13OverDay; + + @ApiModelProperty(value = "14次谐波电流含有率超标天数") + private Integer i14OverDay; + + @ApiModelProperty(value = "15次谐波电流含有率超标天数") + private Integer i15OverDay; + + @ApiModelProperty(value = "16次谐波电流含有率超标天数") + private Integer i16OverDay; + + @ApiModelProperty(value = "17次谐波电流含有率超标天数") + private Integer i17OverDay; + + @ApiModelProperty(value = "18次谐波电流含有率超标天数") + private Integer i18OverDay; + + @ApiModelProperty(value = "19次谐波电流含有率超标天数") + private Integer i19OverDay; + + @ApiModelProperty(value = "20次谐波电流含有率超标天数") + private Integer i20OverDay; + + @ApiModelProperty(value = "21次谐波电流含有率超标天数") + private Integer i21OverDay; + + @ApiModelProperty(value = "22次谐波电流含有率超标天数") + private Integer i22OverDay; + + @ApiModelProperty(value = "23次谐波电流含有率超标天数") + private Integer i23OverDay; + + @ApiModelProperty(value = "24次谐波电流含有率超标天数") + private Integer i24OverDay; + + @ApiModelProperty(value = "25次谐波电流含有率超标天数") + private Integer i25OverDay; + + @ApiModelProperty(value = "间谐波电压超标天数") + private Integer inuharmOverDay; + + @ApiModelProperty(value = "三相电压不平衡度超标天数") + private Integer unbalanceOverDay; + + @ApiModelProperty(value = "负序电流超标天数") + private Integer iNegOverDay; + + @ApiModelProperty(value = "闪变超标天数") + private Integer flickerOverDay; +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatHarmonicMVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatHarmonicMVO.java new file mode 100644 index 000000000..ca52ec297 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatHarmonicMVO.java @@ -0,0 +1,42 @@ +package com.njcn.harmonic.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-09 + */ +@Data +public class RStatHarmonicMVO { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("排序") + private Integer sort; + + @ApiModelProperty(value = "稳态指标类型名称") + private String harmonicName; + + @ApiModelProperty(value = "日均超标监测点数") + private Integer overLimitMeasurementAverage; + + @ApiModelProperty(value = "累计超标监测点数") + private Integer overLimitMeasurementAccrued; + + @ApiModelProperty(value = "累计超标天数") + private Integer overDay; + + @ApiModelProperty(value = "日均超标监测点数占比") + private Float overLimitMeasurementRatioAverage; + + @ApiModelProperty(value = "累计超标监测点数占比") + private Float overLimitMeasurementRatioAccrued; + + @ApiModelProperty(value = "平均超标天数") + private Float averageOverDay; +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatLoadTypeVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatLoadTypeVO.java new file mode 100644 index 000000000..84c7f6c9b --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatLoadTypeVO.java @@ -0,0 +1,72 @@ +package com.njcn.harmonic.pojo.vo; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.io.Serializable; +import java.time.LocalDate; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +@Data +public class RStatLoadTypeVO { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "排序") + private Integer sort; + + @ApiModelProperty(value = "单位ID") + private String orgNo; + + @ApiModelProperty(value = "单位名称") + private String orgName; + + @ApiModelProperty(value = "四类典型干扰源类型(风电、光伏、其他非线性负荷、电铁)") + private String loadType; + + @ApiModelProperty(value = "四类典型干扰源类型(风电、光伏、其他非线性负荷、电铁)") + private String loadName; + + @ApiModelProperty(value = "日均谐波电压超标点占比") + private Float vAverage; + + @ApiModelProperty(value = "累计谐波电压超标占比") + private Float vAccrued; + + @ApiModelProperty(value = "日均谐波电流超标点占比") + private Float iAverage; + + @ApiModelProperty(value = "累计谐波电流超标占比") + private Float iAccrued; + + @ApiModelProperty(value = "日均三相电压不平衡度超标点占比") + private Float unbalanceAverage; + + @ApiModelProperty(value = "累计三相电压不平衡度超标占比") + private Float unbalanceAccrued; + + @ApiModelProperty(value = "日均负序电流超标点占比") + private Float iNegAverage; + + @ApiModelProperty(value = "累计负序电流超标占比") + private Float iNegAccrued; + + @ApiModelProperty(value = "日均闪变超标点占比") + private Float flickerAverage; + + @ApiModelProperty(value = "累计闪变超标占比") + private Float flickerAccrued; + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatOrgBusbarVoltageVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatOrgBusbarVoltageVO.java new file mode 100644 index 000000000..bd10d3126 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatOrgBusbarVoltageVO.java @@ -0,0 +1,64 @@ +package com.njcn.harmonic.pojo.vo; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.io.Serializable; +import java.time.LocalDate; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +@Data +public class RStatOrgBusbarVoltageVO implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位ID") + private String orgNo; + + @ApiModelProperty(value = "单位名称") + private String orgName; + + @ApiModelProperty(value = "变电站ID") + private String PowerStationID; + + @ApiModelProperty(value = "变电站名称") + private String PowerStationName; + + @ApiModelProperty(value = "母线ID") + private String busbarId; + + @ApiModelProperty(value = "母线电压等级") + private String busbarName; + + @ApiModelProperty(value = "日均谐波电压超标-占比") + private Float vAverage; + + @ApiModelProperty(value = "累计谐波电压超标-占比") + private Float vAccrued; + + @ApiModelProperty(value = "日均三相电压不平衡超标-占比") + private Float unbalanceAverage; + + @ApiModelProperty(value = "累计三相电压不平衡超标-占比") + private Float unbalanceAccrued; + + @ApiModelProperty(value = "日均闪变超标-占比") + private Float flickerAverage; + + @ApiModelProperty(value = "累计闪变超标-占比") + private Float flickerAccrued; + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatOrgIndexVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatOrgIndexVO.java new file mode 100644 index 000000000..241f86401 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatOrgIndexVO.java @@ -0,0 +1,68 @@ +package com.njcn.harmonic.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-18 + */ +@Data +public class RStatOrgIndexVO { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位id") + private String orgNo; + + @ApiModelProperty(value = "单位名称") + private String orgName; + + @ApiModelProperty(value = "监测点ID") + private String measurementPointId; + + @ApiModelProperty(value = "监测点名称") + private String measurementPointName; + + @ApiModelProperty(value = "监测点电压等级名称") + private String monitorVoltageName; + + @ApiModelProperty(value = "电站名称") + private String powerrName; + + @ApiModelProperty(value = "频率偏差合格率月") + private Float freqPassRate; + + @ApiModelProperty(value = "电压偏差合格率月") + private Float vDevPassRate; + + @ApiModelProperty(value = "闪变合格率月") + private Float flickerPassRate; + + @Data + @EqualsAndHashCode(callSuper = true) + public static class RStatOrgIndexInfoVO extends RStatOrgIndexVO { + + @ApiModelProperty(value = "在线监测点数") + private Integer allCount; + + @ApiModelProperty(value = "频率偏差合格率年") + private Float freqPassRateYear; + + @ApiModelProperty(value = "电压偏差合格率年") + private Float vDevPassRateYear; + + @ApiModelProperty(value = "闪变合格率年") + private Float flickerPassRateYear; + + + } + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatOrgVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatOrgVO.java new file mode 100644 index 000000000..e9f6b1313 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatOrgVO.java @@ -0,0 +1,47 @@ +package com.njcn.harmonic.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; + +/** + *

+ * 区域分类统计季表 + *

+ * + * @author rui.wu + * @since 2022-10-17 + */ +@Data +public class RStatOrgVO { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "单位名称") + private String orgName; + + @ApiModelProperty(value = "日均有效接入监测点数") + private Integer effectiveMeasurementAverage; + + @ApiModelProperty(value = "累计有效接入监测点数") + private Integer effectiveMeasurementAccrued; + + @ApiModelProperty(value = "日均稳态超标监测点数") + private Integer overLimitMeasurementAverage; + + @ApiModelProperty(value = "累计稳态超标监测点数") + private Integer overLimitMeasurementAccrued; + + @ApiModelProperty(value = "日均稳态超标监测点数占比") + private Float harmonicMeasurementRatioAverage; + + @ApiModelProperty(value = "累计稳态超标监测点数占比") + private Float harmonicMeasurementRatioAccrued; + + @ApiModelProperty(value = "稳态指标平均超标天数") + private Float averageOverDay; + + + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatSubstationOrg2VO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatSubstationOrg2VO.java new file mode 100644 index 000000000..0bf5248ff --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatSubstationOrg2VO.java @@ -0,0 +1,212 @@ +package com.njcn.harmonic.pojo.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * 变电站指标统计表实体类 + * + * @author rui.wu + * @since 2022-10-18 + */ +@Data +@ApiModel(value = "变电站指标统计表实体类") +public class RStatSubstationOrg2VO implements Serializable { + private static final long serialVersionUID = 117875946877905400L; + + public static final String FREQUENCY_DEV = "Frequency_Dev"; + public static final String VOLTAGE_DEV = "Voltage_Dev"; + public static final String FLICKER = "Flicker"; + public static final String HARMONIC_VOLTAGE = "Harmonic_Voltage"; + public static final String HARMONIC_CURRENT = "Harmonic_Current"; + public static final String INTERHARMONIC_VOLTAGE = "Interharmonic_Voltage"; + public static final String PHASE_VOLTAGE = "phase_Voltage"; + public static final String NEG_CURRENT = "Neg_Current"; + public static final String TOTAL_INDICATOR = "Total_Indicator"; + + /** + * 单位ID + */ + @ApiModelProperty(name = "orgNo", value = "单位ID") + private String orgNo; + + /** + * 单位名称 + */ + @ApiModelProperty(name = "orgName", value = "单位名称") + private String orgName; + + /** + * 生成数据的时间,每年统计一次 + */ + @ApiModelProperty(name = "dataDate", value = "生成数据的时间,每年统计一次") + private Date dataDate; + + /** + * 日均有效接入监测点数 + */ + @ApiModelProperty(name = "effectiveMeasurementAverage", value = "日均有效接入监测点数") + private Integer effectiveMeasurementAverage; + + /** + * 累计有效接入监测点数 + */ + @ApiModelProperty(name = "effectiveMeasurementAccrued", value = "累计有效接入监测点数") + private Integer effectiveMeasurementAccrued; + + /** + * 日均稳态超标监测点数 + */ + @ApiModelProperty(name = "eventMeasurementAverage", value = "日均监测到暂态指标的监测点数") + private Integer harmonicMeasurementAverage; + + /** + * 累计稳态超标监测点数 + */ + @ApiModelProperty(name = "eventMeasurementAccrued", value = "累计监测到暂态指标的监测点数") + private Integer harmonicMeasurementAccrued; + + /** + * 日均暂态超标监测点数占比 + */ + @ApiModelProperty(name = "eventMeasurementRatioAverage", value = "日均暂态超标监测点数占比") + private Integer harmonicMeasurementRatioAverage; + + /** + * 累计暂态超标监测点数占比 + */ + @ApiModelProperty(name = "eventMeasurementRatioAccrued", value = "累计暂态超标监测点数占比") + private Integer harmonicMeasurementRatioAccrued; + + /** + * 暂态指标类型Id,字典表ID + */ + @ApiModelProperty(name = "eventType", value = "暂态指标类型Id,字典表ID") + private String harmonicType; + + /** + * 频率偏差 + */ + private Integer tAverage; + private Integer tAccrued; + private Float oAverage; + private Float oAccrued; + private Integer chainAverage; + private Integer chainAccrued; + private Integer sameAverage; + private Integer sameAccrued; + private Float averageOverDay; + + /** + * 电压偏差 + */ + private Integer tAverage1; + private Integer tAccrued1; + private Float oAverage1; + private Float oAccrued1; + private Integer chainAverage1; + private Integer chainAccrued1; + private Integer sameAverage1; + private Integer sameAccrued1; + private Float averageOverDay1; + + /** + * 闪变 + */ + private Integer tAverage2; + private Integer tAccrued2; + private Float oAverage2; + private Float oAccrued2; + private Integer chainAverage2; + private Integer chainAccrued2; + private Integer sameAverage2; + private Integer sameAccrued2; + private Float averageOverDay2; + + /** + * 谐波电压 + */ + private Integer tAverage3; + private Integer tAccrued3; + private Float oAverage3; + private Float oAccrued3; + private Integer chainAverage3; + private Integer chainAccrued3; + private Integer sameAverage3; + private Integer sameAccrued3; + private Float averageOverDay3; + + /** + *谐波电流 + */ + private Integer tAverage4; + private Integer tAccrued4; + private Float oAverage4; + private Float oAccrued4; + private Integer chainAverage4; + private Integer chainAccrued4; + private Integer sameAverage4; + private Integer sameAccrued4; + private Float averageOverDay4; + + + /** + *间谐波电压 + */ + private Integer tAverage5; + private Integer tAccrued5; + private Float oAverage5; + private Float oAccrued5; + private Integer chainAverage5; + private Integer chainAccrued5; + private Integer sameAverage5; + private Integer sameAccrued5; + private Float averageOverDay5; + + + /** + *三相电压不平衡度 + */ + private Integer tAverage6; + private Integer tAccrued6; + private Float oAverage6; + private Float oAccrued6; + private Integer chainAverage6; + private Integer chainAccrued6; + private Integer sameAverage6; + private Integer sameAccrued6; + private Float averageOverDay6; + + /** + *负序电流 + */ + private Integer tAverage7; + private Integer tAccrued7; + private Float oAverage7; + private Float oAccrued7; + private Integer chainAverage7; + private Integer chainAccrued7; + private Integer sameAverage7; + private Integer sameAccrued7; + private Float averageOverDay7; + + /** + *总稳态指标 + */ + private Integer tAverage8; + private Integer tAccrued8; + private Float oAverage8; + private Float oAccrued8; + private Integer chainAverage8; + private Integer chainAccrued8; + private Integer sameAverage8; + private Integer sameAccrued8; + private Float averageOverDay8; + + +} + diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatSubstationOrgVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatSubstationOrgVO.java new file mode 100644 index 000000000..ef11f1c86 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RStatSubstationOrgVO.java @@ -0,0 +1,121 @@ +package com.njcn.harmonic.pojo.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * 变电站指标统计表实体类 + * + * @author rui.wu + * @since 2022-10-18 + */ +@Data +@ApiModel(value = "变电站指标统计表实体类") +public class RStatSubstationOrgVO implements Serializable { + private static final long serialVersionUID = 117875946877905400L; + + public static final String Frequency_Dev = "Frequency_Dev"; + public static final String Voltage_Dev = "Voltage_Dev"; + public static final String Flicker = "Flicker"; + public static final String Harmonic_Voltage = "Harmonic_Voltage"; + public static final String Harmonic_Current = "Harmonic_Current"; + public static final String Interharmonic_Voltage = "Interharmonic_Voltage"; + public static final String phase_Voltage = "phase_Voltage"; + public static final String Neg_Current = "Neg_Current"; + public static final String Total_Indicator = "Total_Indicator"; + + /** + * 单位ID + */ + @ApiModelProperty(name = "orgNo", value = "单位ID") + private String orgNo; + + /** + * 单位名称 + */ + @ApiModelProperty(name = "orgName", value = "单位名称") + private String orgName; + + /** + * 生成数据的时间,每年统计一次 + */ + @ApiModelProperty(name = "dataDate", value = "生成数据的时间,每年统计一次") + private Date dataDate; + + /** + * 日均有效接入监测点数 + */ + @ApiModelProperty(name = "effectiveMeasurementAverage", value = "日均有效接入监测点数") + private Integer effectiveMeasurementAverage; + + /** + * 累计有效接入监测点数 + */ + @ApiModelProperty(name = "effectiveMeasurementAccrued", value = "累计有效接入监测点数") + private Integer effectiveMeasurementAccrued; + + /** + * 日均稳态超标监测点数 + */ + @ApiModelProperty(name = "eventMeasurementAverage", value = "日均监测到暂态指标的监测点数") + private Integer harmonicMeasurementAverage; + + /** + * 累计稳态超标监测点数 + */ + @ApiModelProperty(name = "eventMeasurementAccrued", value = "累计监测到暂态指标的监测点数") + private Integer harmonicMeasurementAccrued; + + /** + * 日均暂态超标监测点数占比 + */ + @ApiModelProperty(name = "eventMeasurementRatioAverage", value = "日均暂态超标监测点数占比") + private Integer harmonicMeasurementRatioAverage; + + /** + * 累计暂态超标监测点数占比 + */ + @ApiModelProperty(name = "eventMeasurementRatioAccrued", value = "累计暂态超标监测点数占比") + private Integer harmonicMeasurementRatioAccrued; + + /** + * 暂态指标类型Id,字典表ID + */ + @ApiModelProperty(name = "eventType", value = "暂态指标类型Id,字典表ID") + private String harmonicType; + + /** + * 日均超标监测点数(根据 日表的超标监测点数 取平均值) + */ + private Integer overLimitMeasurementAverage; + /** + * 累计超标监测点数(监测点指标统计明细日表 统计) + */ + private Integer overLimitMeasurementAccrued; + /** + * 累计超标天数(根据 日表的超标监测点数 求和) + */ + private Integer overDay; + /** + * 日均超标监测点数占比(根据 日表的超标监测点数占比 取平均值) + */ + private Float overLimitMeasurementRatioAverage; + /** + * 累计超标监测点数占比(此表的累计超标监测点数/区域统计表中的区域分类统计月表中的累计有效接入监测点数) + */ + private Float overLimitMeasurementRatioAccrued; + //同比,环比,平均天数 + private Integer chainAverage; + private Integer chainAccrued; + private Integer sameAverage; + private Integer sameAccrued; + private Float averageOverDay; + + + +} + diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RSubstationIcon2VO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RSubstationIcon2VO.java new file mode 100644 index 000000000..2ea833ad8 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RSubstationIcon2VO.java @@ -0,0 +1,65 @@ +package com.njcn.harmonic.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.io.Serializable; + +/** + *

+ * + *

+ * + * @author rui.wu + * @since 2022-10-18 + */ +@Data +public class RSubstationIcon2VO implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "变电站id") + private String substationId; + + @ApiModelProperty(value = "变电站名称") + private String substationName; + + @ApiModelProperty(value = "在线监测点数") + private Integer effectiveMeasurementAccrued; + + @ApiModelProperty(value = "频率偏差天数") + private Float freqAverageOverDay; + + @ApiModelProperty(value = "电压偏差天数") + private Float vDevAverageOverDay; + + @ApiModelProperty(value = "闪变天数") + private Float flickerAverageOverDay; + + @ApiModelProperty(value = "谐波电压天数") + private Float vAverageOverDay; + + @ApiModelProperty(value = "谐波电流天数") + private Float iAverageOverDay; + + @ApiModelProperty(value = "间谐波电压天数") + private Float inuharmAverageOverDay; + + @ApiModelProperty(value = "三相电压不平衡天数") + private Float unbalanceAverageOverDay; + + @ApiModelProperty(value = "负序电流天数") + private Float iNegAverageOverDay; + + @Data + @EqualsAndHashCode(callSuper = true) + public static class RSubstationInfoVO extends RSubstationIcon2VO { +// @ApiModelProperty(value = "省公司") +// private String provinceName; + + @ApiModelProperty(value = "市公司") + private String cityName; + } + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RSubstationIconVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RSubstationIconVO.java new file mode 100644 index 000000000..a7877f467 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RSubstationIconVO.java @@ -0,0 +1,42 @@ +package com.njcn.harmonic.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * <功能描述> + * + * @author 1754607820@qq.com + * @createTime: 2022-10-18 + */ +@Data +public class RSubstationIconVO { + private static final long serialVersionUID = 1L; + /** + * 柱状图 + */ + private String num1; + private String num2; + private String num3; + private String num4; + private String num5; + private String num6; + private String num7; + private String num8; + private String num9; + private String num10; + /** + * 折线图 + */ + private String upRatio1; + private String upRatio2; + private String upRatio3; + private String upRatio4; + private String upRatio5; + private String upRatio6; + private String upRatio7; + private String upRatio8; + private String upRatio9; + private String upRatio10; + +} diff --git a/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RVoltageIconVO.java b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RVoltageIconVO.java new file mode 100644 index 000000000..0cd59e665 --- /dev/null +++ b/pqs-harmonic/harmonic-api/src/main/java/com/njcn/harmonic/pojo/vo/RVoltageIconVO.java @@ -0,0 +1,26 @@ +package com.njcn.harmonic.pojo.vo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * <功能描述> + * + * @author 1754607820@qq.com + * @createTime: 2022-10-18 + */ +@Data +public class RVoltageIconVO { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "电压等级") + private String substationVoltage; + + @ApiModelProperty(value = "变电站数量") + private Integer substationCount; + + @ApiModelProperty(value = "稳态超标变电站数量") + private Integer harmonicCount; + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/DataExceptionController.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/DataExceptionController.java new file mode 100644 index 000000000..da726468f --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/DataExceptionController.java @@ -0,0 +1,51 @@ +package com.njcn.harmonic.controller; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.harmonic.pojo.param.AlgorithmSearchParam; +import com.njcn.harmonic.service.DataExceptionService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * @author qijian + * @date 2022/10/26 + * 数据是否异常 + */ +@Validated +@Slf4j +@RestController +@RequestMapping("/dataException") +@Api(tags = "数据是否异常") +@AllArgsConstructor +public class DataExceptionController extends BaseController { + + private final DataExceptionService dataExceptionService; + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/lineDataException") + @ApiOperation("监测点数据是否异常") + @ApiImplicitParam(name = "algorithmSearchParam", value = "算法通用查询参数", required = true) + public HttpResult lineDataException(@RequestBody @Validated AlgorithmSearchParam algorithmSearchParam) { + String methodDescribe = getMethodDescribe("lineDataException"); + boolean res = dataExceptionService.lineDataException(algorithmSearchParam); + if(res){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + }else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + } + + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/DataIntegrityRateController.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/DataIntegrityRateController.java new file mode 100644 index 000000000..4d6a72e35 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/DataIntegrityRateController.java @@ -0,0 +1,51 @@ +package com.njcn.harmonic.controller; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.harmonic.pojo.param.AlgorithmSearchParam; +import com.njcn.harmonic.service.DataIntegrityRateService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * @author qijian + * @date 2022/10/26 + * 数据完整率算法 + */ +@Validated +@Slf4j +@RestController +@RequestMapping("/dataIntegrityRate") +@Api(tags = "数据完整率算法") +@AllArgsConstructor +public class DataIntegrityRateController extends BaseController { + + private final DataIntegrityRateService dataIntegrityRateService; + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/lineDataIntegrityRate") + @ApiOperation("监测点日数据完整率") + @ApiImplicitParam(name = "algorithmSearchParam", value = "算法通用查询参数", required = true) + public HttpResult lineDataIntegrityRate(@RequestBody @Validated AlgorithmSearchParam algorithmSearchParam) { + String methodDescribe = getMethodDescribe("lineDataIntegrityRate"); + boolean res = dataIntegrityRateService.lineDataIntegrityRate(algorithmSearchParam); + if(res){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + }else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + } + + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RMpBenchmarkLevelController.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RMpBenchmarkLevelController.java new file mode 100644 index 000000000..0b05502bf --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RMpBenchmarkLevelController.java @@ -0,0 +1,72 @@ +package com.njcn.harmonic.controller; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.constant.BizParamConstant; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.harmonic.pojo.param.RMpBenchmarkLevelParam; +import com.njcn.harmonic.pojo.vo.RMpBenchmarkLevelVO; +import com.njcn.harmonic.service.RMpBenchmarkLevelMService; +import com.njcn.harmonic.service.RMpBenchmarkLevelQService; +import com.njcn.harmonic.service.RMpBenchmarkLevelYService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +/** + * @Title RMpBenchmarkLevelController + * @Package com.njcn.device.pms.controller + * @Author jianghaifei + * @Date 2022-10-11 10:34 + * @Version V1.0 + */ +@RestController +@Api(tags = "主网-区域稳态电能质量水平评估") +@RequiredArgsConstructor +@RequestMapping("/rMpBenchmarkLevel") +public class RMpBenchmarkLevelController extends BaseController { + + private final RMpBenchmarkLevelMService rMpBenchmarkLevelMService; //基准水平-月 + + private final RMpBenchmarkLevelQService rMpBenchmarkLevelQService; //基准水平-季 + + private final RMpBenchmarkLevelYService rMpBenchmarkLevelYService; //基准水平-年 + + + @PostMapping("getAllRMpBenchmarkLevelList") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("查询区域稳态电能质量水平评估") + public HttpResult> getAllRMpBenchmarkLevelList(@RequestBody RMpBenchmarkLevelParam rMpBenchmarkLevelParam) { + String methodDescribe = getMethodDescribe("getAllRMpBenchmarkLevelList"); + //获取查询条件-时间类型 + String type = rMpBenchmarkLevelParam.getType().toString(); + List rMpBenchmarkLevelList; + switch (type) { + case BizParamConstant.STAT_BIZ_YEAR: + //查询基准水平-年数据 + rMpBenchmarkLevelList = rMpBenchmarkLevelYService.getRMpBenchmarkLevelList(rMpBenchmarkLevelParam); + break; + case BizParamConstant.STAT_BIZ_QUARTER: + //查询基准水平-季数据 + rMpBenchmarkLevelList = rMpBenchmarkLevelQService.getRMpBenchmarkLevelList(rMpBenchmarkLevelParam); + break; + case BizParamConstant.STAT_BIZ_MONTH: + //查询基准水平-月数据 + rMpBenchmarkLevelList = rMpBenchmarkLevelMService.getRMpBenchmarkLevelList(rMpBenchmarkLevelParam); + break; + default: + //如果前端没有传type默认查询月数据 + rMpBenchmarkLevelList = rMpBenchmarkLevelMService.getRMpBenchmarkLevelList(rMpBenchmarkLevelParam); + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, rMpBenchmarkLevelList, methodDescribe); + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RMpHarmonicReportDController.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RMpHarmonicReportDController.java new file mode 100644 index 000000000..4d514e192 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RMpHarmonicReportDController.java @@ -0,0 +1,45 @@ +package com.njcn.harmonic.controller; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.harmonic.pojo.param.RMpHarmonicReportDParam; +import com.njcn.harmonic.pojo.vo.RMpHarmonicReportDVO; +import com.njcn.harmonic.service.RMpHarmonicReportDService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +/** + * @Title RMpHarmonicReportDController + * @Package com.njcn.harmonic.controller + * @Author jianghaifei + * @Date 2022-10-20 19:08 + * @Version V1.0 + */ +@RestController +@RequestMapping("/rMpHarmonicReportD") +@Api(tags = "主网-监测点稳态指标日报") +@RequiredArgsConstructor +public class RMpHarmonicReportDController extends BaseController { + + private final RMpHarmonicReportDService rMpHarmonicReportDService; + + @PostMapping("getMonitorStatisticsD") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("查询监测点日统计信息") + public HttpResult> getMonitorStatisticsD(@RequestBody RMpHarmonicReportDParam rMpHarmonicReportDParam) { + String methodDescribe = getMethodDescribe("getMonitorStatisticsD"); + List list = rMpHarmonicReportDService.getMonitorStatisticsD(rMpHarmonicReportDParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RStatHarmonicMController.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RStatHarmonicMController.java new file mode 100644 index 000000000..d81e90a01 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RStatHarmonicMController.java @@ -0,0 +1,97 @@ +package com.njcn.harmonic.controller; + + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.constant.BizParamConstant; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.harmonic.pojo.param.RStatHarmonicMParam; +import com.njcn.harmonic.pojo.vo.*; +import com.njcn.harmonic.service.*; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +/** + *

+ * 前端控制器 + *

+ * + * @author rui.wu + * @since 2022-10-09 + */ +@RestController +@RequiredArgsConstructor +@Api(tags = "主网指标分类概览-监测点分类总览") +@RequestMapping("/harmonic/rStatHarmonic") +public class RStatHarmonicMController extends BaseController { + + private final RStatHarmonicMService rStatHarmonicMService; + private final RStatHarmonicQService rStatHarmonicQService; + private final RStatHarmonicYService rStatHarmonicYService; + + /** + * 查询查询监测点稳态指标 日/月点数 + */ + @GetMapping("/getAllRStatHarmonic") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("查询稳态累计超标监测点数") + public HttpResult> getAllRStatHarmonicM(StatisticsBizBaseParam param){ + String methodDescribe = getMethodDescribe("getAllRStatHarmonic"); + List rStatHarmonicMAll = null; + String string = param.getType().toString(); + switch (string) { + //查询超标监测点数-年数据 + case BizParamConstant.STAT_BIZ_YEAR: + rStatHarmonicMAll = rStatHarmonicYService.getRStatHarmonicYAll(param); + break; + //查询超标监测点数-季数据 + case BizParamConstant.STAT_BIZ_QUARTER: + rStatHarmonicMAll = rStatHarmonicQService.getRStatHarmonicQAll(param); + break; + //查询超标监测点数-月数据 + case BizParamConstant.STAT_BIZ_MONTH: + rStatHarmonicMAll = rStatHarmonicMService.getRStatHarmonicMAll(param); + break; + default: + break; + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, rStatHarmonicMAll, methodDescribe); + } + + /** + * 电铁-频率偏差-电压统计图 + */ + @GetMapping("/getRStatHarmonicIconVoltage") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("稳态电铁-频率偏差-电压统计图") + public HttpResult> getRStatHarmonicIcon(RStatHarmonicMParam param){ + String methodDescribe = getMethodDescribe("getRStatHarmonicIconVoltage"); + List rStatHarmonicIcon = rStatHarmonicMService.getRStatHarmonicIcon(param); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, rStatHarmonicIcon, methodDescribe); + } + + /** + * 电铁-频率偏差-电压统计图 + */ + @GetMapping("/getRStatHarmonicIconDate") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("稳态电铁-频率偏差-越线日期统计图") + public HttpResult> getRStatHarmonicIcon2(RStatHarmonicMParam param){ + String methodDescribe = getMethodDescribe("getRStatHarmonicIconDate"); + List rStatHarmonicIcon = rStatHarmonicMService.getRStatHarmonicIcon2(param); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, rStatHarmonicIcon, methodDescribe); + } + + +} + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RStatHarmonicOrgMController.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RStatHarmonicOrgMController.java new file mode 100644 index 000000000..f3665b8bf --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RStatHarmonicOrgMController.java @@ -0,0 +1,104 @@ +package com.njcn.harmonic.controller; + + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.constant.BizParamConstant; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.harmonic.pojo.param.RStatHarmonicMParam; +import com.njcn.harmonic.pojo.vo.RArrayVO; +import com.njcn.harmonic.pojo.vo.RIconVO; +import com.njcn.harmonic.service.*; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +/** + *

+ * 前端控制器 + *

+ * + * @author rui.wu + * @since 2022-10-14 + */ +@RestController +@RequiredArgsConstructor +@Api(tags = "主网指标分类概览-各单位分类总览") +@RequestMapping("/harmonic/rStatHarmonicOrg") +public class RStatHarmonicOrgMController extends BaseController { + + private final RStatHarmonicOrgYService rStatHarmonicOrgYService; + private final RStatHarmonicOrgQService rStatHarmonicOrgQService; + private final RStatHarmonicOrgMService rStatHarmonicOrgMService; + + /** + * 查询查询监测点稳态指标 日/月点数 + */ + @GetMapping("/getAllRStatHarmonicOrg") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("查询稳态累计超标监测点数") + public HttpResult> getAllRStatHarmonicOrgM(StatisticsBizBaseParam param){ + String methodDescribe = getMethodDescribe("getAllRStatHarmonicOrg"); + List rStatHarmonicOrgMAll = null; + String string = param.getType().toString(); + switch (string) { + //查询各单位累计超标监测点数-年数据 + case BizParamConstant.STAT_BIZ_YEAR: + rStatHarmonicOrgMAll = rStatHarmonicOrgYService.getRStatHarmonicYAll(param); + break; + //查询各单位累计超标监测点数-季数据 + case BizParamConstant.STAT_BIZ_QUARTER: + rStatHarmonicOrgMAll = rStatHarmonicOrgQService.getRStatHarmonicQAll(param); + break; + //查询各单位累计超标监测点数-月数据 + case BizParamConstant.STAT_BIZ_MONTH: + rStatHarmonicOrgMAll = rStatHarmonicOrgMService.getRStatHarmonicMAll(param); + break; + default: + break; + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, rStatHarmonicOrgMAll, methodDescribe); + } + + + /** + * 查询查询监测点稳态指标 日/月点数 + */ + @GetMapping("/getAllRStatHarmonicOrgIcon") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("查询稳态各单位超标监测统计图") + public HttpResult> getAllRStatHarmonicOrgIcon(RStatHarmonicMParam param){ + String methodDescribe = getMethodDescribe("getAllRStatHarmonicOrgIcon"); + List getAllRStatHarmonicOrgIcon = null; + String string = param.getType().toString(); + switch (string) { + //查询各单位累计超标监测点数统计图-年数据 + case BizParamConstant.STAT_BIZ_YEAR: + getAllRStatHarmonicOrgIcon = rStatHarmonicOrgYService.getRStatHarmonicOrgYIcon(param); + break; + //查询各单位累计超标监测点数-季数据 + case BizParamConstant.STAT_BIZ_QUARTER: + getAllRStatHarmonicOrgIcon = rStatHarmonicOrgQService.getRStatHarmonicOrgQIcon(param); + break; + //查询各单位累计超标监测点数-月数据 + case BizParamConstant.STAT_BIZ_MONTH: + getAllRStatHarmonicOrgIcon = rStatHarmonicOrgMService.getRStatHarmonicOrgMIcon(param); + break; + default: + break; + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, getAllRStatHarmonicOrgIcon, methodDescribe); + } + +} + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RStatOrgController.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RStatOrgController.java new file mode 100644 index 000000000..363a9572f --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RStatOrgController.java @@ -0,0 +1,188 @@ +package com.njcn.harmonic.controller; + + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.constant.BizParamConstant; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.harmonic.pojo.param.RStatOrgParam; +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.vo.*; +import com.njcn.harmonic.service.*; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; + + +import java.util.List; + + +/** + *

+ * 区域分类统计月表 前端控制器 + *

+ * + * @author rui.wu + * @since 2022-10-17 + */ +@RestController +@RequiredArgsConstructor +@Api(tags = "主网指标-稳态指标") +@RequestMapping("/harmonic/rStatOrg") +public class RStatOrgController extends BaseController { + + private final RStatOrgYService rStatOrgYService; + private final RStatOrgQService rStatOrgQService; + private final RStatOrgMService rStatOrgMService; + private final RStatOrgBusbarVoltageService rStatOrgBusbarVoltageService; + private final RStatLoadTypeService rStatLoadTypeService; + private final RMpPartHarmonicDetailMService rMpPartHarmonicDetailMService; + private final RMpPartHarmonicDetailDService rMpPartHarmonicDetailDService; + private final RMpPassRateService rMpPassRateService; + + + /** + * 查询区域超标统计 + */ + @GetMapping("/getAllRStatHarmonicOrg") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("区域超标统计") + public HttpResult> getAllRStatHarmonicOrgM(StatisticsBizBaseParam param){ + String methodDescribe = getMethodDescribe("getAllRStatHarmonicOrg"); + List rStatHarmonicOrgMAll = null; + String string = param.getType().toString(); + switch (string) { + //查询区域超标统计-年数据 + case BizParamConstant.STAT_BIZ_YEAR: + rStatHarmonicOrgMAll = rStatOrgYService.getRStatHarmonicYAll(param); + break; + //查询区域超标统计-季数据 + case BizParamConstant.STAT_BIZ_QUARTER: + rStatHarmonicOrgMAll = rStatOrgQService.getRStatHarmonicQAll(param); + break; + //查询各区域超标统计-月数据 + case BizParamConstant.STAT_BIZ_MONTH: + rStatHarmonicOrgMAll = rStatOrgMService.getRStatHarmonicMAll(param); + break; + default: + break; + } + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, rStatHarmonicOrgMAll, methodDescribe); + } + + + /** + * 区域稳态指标超标分类统计表 + */ + @GetMapping("/getRStatSubstation") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("区域稳态指标超标分类统计表") + public HttpResult> getAllRStatSubstation(StatisticsBizBaseParam param){ + String methodDescribe = getMethodDescribe("getRStatSubstation"); + List statSubstationIcon = rStatOrgYService.getRStatSubstationOrg(param); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, statSubstationIcon, methodDescribe); + } + + /** + * 区域稳态指标超标分类统计表 + */ +// @GetMapping("/getRStatOrgBusbarVoltage") +// @OperateInfo(info = LogEnum.BUSINESS_COMMON) +// @ApiOperation("区域电站母线电压类指标超标计") +// public HttpResult> getRStatOrgBusbarVoltage(StatisticsBizBaseParam param){ +// String methodDescribe = getMethodDescribe("getRStatSubstation"); +// List statSubstationIcon = rStatOrgBusbarVoltageService.getRStatOrgBusbarVoltage(param); +// return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, statSubstationIcon, methodDescribe); +// } + + /** + * 区域干扰源电流类指标超标统计 + * @param param + * @return + */ + @GetMapping("/getRStatLoadType") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("区域干扰源电流类指标超标统计") + public HttpResult> getRStatLoadType(StatisticsBizBaseParam param){ + String methodDescribe = getMethodDescribe("getRStatLoadType"); + List rStatLoadType = rStatLoadTypeService.getRStatLoadType(param); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, rStatLoadType, methodDescribe); + } + + /** + * 变电站(换流站)稳态指标超标分类统计表 + * @param param + * @return + */ + @PostMapping("/getRStatSubstationOrg") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("变电站(换流站)稳态指标超标分类统计表") + public HttpResult> getRStatSubstationOrg(@RequestBody StatSubstationBizBaseParam param + ){ + String methodDescribe = getMethodDescribe("getRStatSubstationOrg"); + List rStatOrg = rStatOrgYService.getRStatSubstation(param); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, rStatOrg, methodDescribe); + } + + /** + * 稳态指标超标明细表 + * @param param + * @return + */ + @PostMapping("/getRMpPartHarmonicDetail") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("稳态指标超标明细表") + public HttpResult> getRMpPartHarmonicDetail(@RequestBody RStatOrgParam param){ + String methodDescribe = getMethodDescribe("getRMpPartHarmonicDetail"); + List rMpPartHarmonicDetail = rMpPartHarmonicDetailMService.getRMpPartHarmonicDetail(param); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, rMpPartHarmonicDetail, methodDescribe); + } + /** + * 稳态指标超标明细表-指标趋势图 + * @param param + * @return + */ + @GetMapping("/getRMpPartHarmonicDetailIcon") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("稳态指标超标明细表-指标趋势图") + public HttpResult> getRMpPartHarmonicDetailIcon(StatisticsBizBaseParam param){ + String methodDescribe = getMethodDescribe("getRMpPartHarmonicDetailIcon"); + List rMpPartHarmonicDetail = rMpPartHarmonicDetailDService.getRMpPartHarmonicDetailIcon(param); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, rMpPartHarmonicDetail, methodDescribe); + } + + /** + * 区域稳态指标合格率统计表-主网(稳态指标合格率统计) + * @param param + * @return + */ + @GetMapping("/getRStatOrgIndex") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("区域稳态指标合格率统计表") + public HttpResult> getRStatOrgIndex(StatisticsBizBaseParam param){ + String methodDescribe = getMethodDescribe("getRStatOrgIndex"); + List rStatOrg = rStatOrgYService.getRStatOrgIndex(param); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, rStatOrg, methodDescribe); + } + + /** + * 区域稳态指标合格率统计表-主网(稳态指标合格率统计) + * @param param + * @return + */ + @PostMapping("/getRMpPassRateInfo") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("稳态指标合格率明细表") + public HttpResult> getRMpPassRateInfo(@RequestBody RStatOrgParam param){ + String methodDescribe = getMethodDescribe("getRMpPassRateInfo"); + List rStatOrg = rMpPassRateService.getRMpPassRateInfo(param); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, rStatOrg, methodDescribe); + } + +} + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RStatSubstationMController.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RStatSubstationMController.java new file mode 100644 index 000000000..c56672b09 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/controller/RStatSubstationMController.java @@ -0,0 +1,81 @@ +package com.njcn.harmonic.controller; + + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.harmonic.pojo.vo.RSubstationIcon2VO; +import com.njcn.harmonic.pojo.vo.RSubstationIconVO; +import com.njcn.harmonic.pojo.vo.RVoltageIconVO; +import com.njcn.harmonic.service.RStatSubstationMService; +import com.njcn.harmonic.service.RStatSubstationVoltageMService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + + +/** + *

+ * 前端控制器 + *

+ * + * @author rui.wu + * @since 2022-10-18 + */ +@RestController +@RequiredArgsConstructor +@Api(tags = "主网指标分类概览-变电站分类总览") +@RequestMapping("/harmonic/rStatSubstation") +public class RStatSubstationMController extends BaseController { + + private final RStatSubstationMService rStatSubstationMService; + private final RStatSubstationVoltageMService rStatSubstationVoltageMService; + + /** + * 变电站稳态指标超标分布(按超标天数) + */ + @GetMapping("/getAllRStatSubstationIconDays") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("变电站稳态指标超标分布(按超标天数)") + public HttpResult getAllRStatSubstation(StatisticsBizBaseParam param){ + String methodDescribe = getMethodDescribe("getAllRStatSubstationIconDays"); + RSubstationIconVO statSubstationIcon = rStatSubstationMService.getStatSubstationIcon(param); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, statSubstationIcon, methodDescribe); + } + + /** + * 变电站稳态指标超标分布(按电压等级) + */ + @GetMapping("/getAllRStatSubstationIconVoltage") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("变电站稳态指标超标分布(按电压等级)") + public HttpResult> getAllRStatSubstationIcon2(StatisticsBizBaseParam param){ + String methodDescribe = getMethodDescribe("getAllRStatSubstationIconVoltage"); + List statSubstationIcon = rStatSubstationVoltageMService.getStatSubstationIcon(param); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, statSubstationIcon, methodDescribe); + } + + + /** + * 变电站稳态指标平均超标天数 + */ + @GetMapping("/getAllRStatSubstationIconAvgDays") + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @ApiOperation("变电站稳态指标平均超标天数") + public HttpResult> getAllRStatSubstationIcon3(StatisticsBizBaseParam param){ + String methodDescribe = getMethodDescribe("getAllRStatSubstationIconAvgDays"); + List statSubstationIcon = rStatSubstationMService.getStatSubstationIcon2(param); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, statSubstationIcon, methodDescribe); + } +} + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/PmsAbnormalRulesMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/PmsAbnormalRulesMapper.java new file mode 100644 index 000000000..c0432d6a7 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/PmsAbnormalRulesMapper.java @@ -0,0 +1,14 @@ +package com.njcn.harmonic.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.po.PmsAbnormalRules; + +/** + * PmsAbnormalRulesMapper + * + * @author qijian + * @date 2022/10/26 + */ +public interface PmsAbnormalRulesMapper extends BaseMapper { + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpBenchmarkLevelMMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpBenchmarkLevelMMapper.java new file mode 100644 index 000000000..626ad8a08 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpBenchmarkLevelMMapper.java @@ -0,0 +1,15 @@ +package com.njcn.harmonic.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.po.RMpBenchmarkLevelM; + +/** +* @author jianghf +* @description 针对表【r_mp_benchmark_level_m】的数据库操作Mapper +* @createDate 2022-10-11 10:32:18 +* @Entity com.njcn.device.pms.pojo.po.RMpBenchmarkLevelM +*/ +public interface RMpBenchmarkLevelMMapper extends BaseMapper { + + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpBenchmarkLevelQMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpBenchmarkLevelQMapper.java new file mode 100644 index 000000000..81136dd6c --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpBenchmarkLevelQMapper.java @@ -0,0 +1,15 @@ +package com.njcn.harmonic.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.po.RMpBenchmarkLevelQ; + +/** +* @author jianghf +* @description 针对表【r_mp_benchmark_level_q】的数据库操作Mapper +* @createDate 2022-10-11 10:32:18 +* @Entity com.njcn.device.pms.pojo.po.RMpBenchmarkLevelQ +*/ +public interface RMpBenchmarkLevelQMapper extends BaseMapper { + + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpBenchmarkLevelYMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpBenchmarkLevelYMapper.java new file mode 100644 index 000000000..dbf91c41a --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpBenchmarkLevelYMapper.java @@ -0,0 +1,15 @@ +package com.njcn.harmonic.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.po.RMpBenchmarkLevelY; + +/** +* @author jianghf +* @description 针对表【r_mp_benchmark_level_y】的数据库操作Mapper +* @createDate 2022-10-11 10:32:18 +* @Entity com.njcn.device.pms.pojo.po.RMpBenchmarkLevelY +*/ +public interface RMpBenchmarkLevelYMapper extends BaseMapper { + + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpHarmonicIMagReportDMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpHarmonicIMagReportDMapper.java new file mode 100644 index 000000000..e0c579475 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpHarmonicIMagReportDMapper.java @@ -0,0 +1,22 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.po.RMpHarmonicIMagReportD; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_harmonic_i_mag_report_d(稳态监测点指标日报-日表(主配网表) /各次谐波电流有效值)】的数据库操作Mapper +* @createDate 2022-10-20 18:38:15 +* @Entity com.njcn.harmonic.pojo.po.RMpHarmonicIMagReportD +*/ +public interface RMpHarmonicIMagReportDMapper extends BaseMapper { + + List getListByCond(Map condMap); +} + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpHarmonicIRateReportDMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpHarmonicIRateReportDMapper.java new file mode 100644 index 000000000..4e3bfb6e8 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpHarmonicIRateReportDMapper.java @@ -0,0 +1,22 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.po.RMpHarmonicIRateReportD; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_harmonic_i_rate_report_d(稳态监测点指标日报-日表(主网表) /各次谐波电流含有率)】的数据库操作Mapper +* @createDate 2022-10-20 18:43:52 +* @Entity com.njcn.harmonic.pojo.po.RMpHarmonicIRateReportD +*/ +public interface RMpHarmonicIRateReportDMapper extends BaseMapper { + + List getListByCond(Map condMap); +} + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpHarmonicVRateReportDMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpHarmonicVRateReportDMapper.java new file mode 100644 index 000000000..224bcce51 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpHarmonicVRateReportDMapper.java @@ -0,0 +1,22 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.po.RMpHarmonicVRateReportD; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.List; +import java.util.Map; + +/** +* @author jianghf +* @description 针对表【r_mp_harmonic_v_rate_report_d(稳态监测点指标日报-日表(主配网表) /各次谐波电压含有率 )】的数据库操作Mapper +* @createDate 2022-10-20 18:34:05 +* @Entity com.njcn.harmonic.pojo.po.RMpHarmonicVRateReportD +*/ +public interface RMpHarmonicVRateReportDMapper extends BaseMapper { + + List getListByCond(Map map); +} + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpInharmonicIRateReportDMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpInharmonicIRateReportDMapper.java new file mode 100644 index 000000000..d38ffff32 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpInharmonicIRateReportDMapper.java @@ -0,0 +1,22 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.po.RMpInharmonicIRateReportD; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_inharmonic_i_rate_report_d(稳态监测点指标日报-日表(主网表) /各次间谐波电流含有率)】的数据库操作Mapper +* @createDate 2022-10-20 18:45:58 +* @Entity com.njcn.harmonic.pojo.po.RMpInharmonicIRateReportD +*/ +public interface RMpInharmonicIRateReportDMapper extends BaseMapper { + + List getListByCond(Map condMap); +} + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpInharmonicVRateReportDMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpInharmonicVRateReportDMapper.java new file mode 100644 index 000000000..976a8b119 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpInharmonicVRateReportDMapper.java @@ -0,0 +1,22 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.po.RMpInharmonicVRateReportD; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_inharmonic_v_rate_report_d】的数据库操作Mapper +* @createDate 2022-10-20 18:45:36 +* @Entity com.njcn.harmonic.pojo.po.RMpInharmonicVRateReportD +*/ +public interface RMpInharmonicVRateReportDMapper extends BaseMapper { + + List getListByCond(Map condMap); +} + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpIntegrityDMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpIntegrityDMapper.java new file mode 100644 index 000000000..908c761fd --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpIntegrityDMapper.java @@ -0,0 +1,14 @@ +package com.njcn.harmonic.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.po.RMpIntegrityD; + +/** + * RMpIntegrityDMapper + * + * @author qijian + * @date 2022/10/26 + */ +public interface RMpIntegrityDMapper extends BaseMapper { + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpMeasurePhaseReportDMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpMeasurePhaseReportDMapper.java new file mode 100644 index 000000000..c7b4fdbb8 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpMeasurePhaseReportDMapper.java @@ -0,0 +1,23 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.po.RMpMeasurePhaseReportD; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_measure_phase_report_d】的数据库操作Mapper +* @createDate 2022-10-20 18:20:08 +* @Entity com.njcn.harmonic.pojo.po.RMpMeasurePhaseReportD +*/ +public interface RMpMeasurePhaseReportDMapper extends BaseMapper { + + List getListByCond(Map condMap); +} + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpMeasureReportDMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpMeasureReportDMapper.java new file mode 100644 index 000000000..5e4174695 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpMeasureReportDMapper.java @@ -0,0 +1,19 @@ +package com.njcn.harmonic.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.po.RMpMeasureReportD; + +import java.util.List; +import java.util.Map; + +/** +* @author jianghf +* @description 针对表【r_mp_measure_report_d】的数据库操作Mapper +* @createDate 2022-10-20 16:32:37 +* @Entity com.njcn.harmonic.pojo.po.RMpMeasureReportD +*/ +public interface RMpMeasureReportDMapper extends BaseMapper { + + + List getListByCond(Map condMap); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpPartHarmonicDetailDMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpPartHarmonicDetailDMapper.java new file mode 100644 index 000000000..c94da4811 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpPartHarmonicDetailDMapper.java @@ -0,0 +1,27 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.po.RMpPartHarmonicDetailD; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.vo.RMpPartHarmonicDetailIconVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +public interface RMpPartHarmonicDetailDMapper extends BaseMapper { + + /** + * 稳态指标超标明细表-指标趋势图 + * @param param + * @return + */ + List getRMpPartHarmonicDetailIcon(@Param("param") StatisticsBizBaseParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpPartHarmonicDetailMMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpPartHarmonicDetailMMapper.java new file mode 100644 index 000000000..51051d966 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpPartHarmonicDetailMMapper.java @@ -0,0 +1,16 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.po.RMpPartHarmonicDetailM; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +public interface RMpPartHarmonicDetailMMapper extends BaseMapper { + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpPassRateMMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpPassRateMMapper.java new file mode 100644 index 000000000..a50fed663 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpPassRateMMapper.java @@ -0,0 +1,27 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RMpPassRateM; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.vo.RStatOrgIndexVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +public interface RMpPassRateMMapper extends BaseMapper { + + /** + * 获取月稳态指标合格率明细表 + * @param baseParam + * @return + */ + List getMonthPassRate(@Param("param") StatSubstationBizBaseParam baseParam); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpPassRateQMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpPassRateQMapper.java new file mode 100644 index 000000000..48d1975b9 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpPassRateQMapper.java @@ -0,0 +1,27 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RMpPassRateQ; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.vo.RStatOrgIndexVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +public interface RMpPassRateQMapper extends BaseMapper { + + /** + * 获取季稳态指标合格率明细表 + * @param baseParam + * @return + */ + List getQuarterPassRate(@Param("param") StatSubstationBizBaseParam baseParam); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpPassRateYMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpPassRateYMapper.java new file mode 100644 index 000000000..c45283170 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpPassRateYMapper.java @@ -0,0 +1,27 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RMpPassRateY; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.vo.RStatOrgIndexVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +public interface RMpPassRateYMapper extends BaseMapper { + + /** + * 获取年稳态指标合格率明细表 + * @param baseParam + * @return + */ + List getYearPassRate(@Param("param") StatSubstationBizBaseParam baseParam); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpSurplusHarmonicDetailDMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpSurplusHarmonicDetailDMapper.java new file mode 100644 index 000000000..495de0a14 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpSurplusHarmonicDetailDMapper.java @@ -0,0 +1,16 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.po.RMpSurplusHarmonicDetailD; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +public interface RMpSurplusHarmonicDetailDMapper extends BaseMapper { + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpSurplusHarmonicDetailMMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpSurplusHarmonicDetailMMapper.java new file mode 100644 index 000000000..81b88ed28 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RMpSurplusHarmonicDetailMMapper.java @@ -0,0 +1,27 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RMpSurplusHarmonicDetailM; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.vo.RMpPartHarmonicDetailVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +public interface RMpSurplusHarmonicDetailMMapper extends BaseMapper { + + /** + * 稳态指标超标明细表 + * @param param + * @return + */ + List getRMpPartHarmonicDetail(@Param("param") StatSubstationBizBaseParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatAbnormalDMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatAbnormalDMapper.java new file mode 100644 index 000000000..47464fd72 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatAbnormalDMapper.java @@ -0,0 +1,14 @@ +package com.njcn.harmonic.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.po.RStatAbnormalD; + +/** + * RStatAbnormalDMapper + * + * @author qijian + * @date 2022/10/26 + */ +public interface RStatAbnormalDMapper extends BaseMapper { + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicDMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicDMapper.java new file mode 100644 index 000000000..b9989aaaa --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicDMapper.java @@ -0,0 +1,16 @@ +package com.njcn.harmonic.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.po.RStatHarmonicD; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-12 + */ +public interface RStatHarmonicDMapper extends BaseMapper { + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicMMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicMMapper.java new file mode 100644 index 000000000..905c69b80 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicMMapper.java @@ -0,0 +1,17 @@ +package com.njcn.harmonic.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.po.RStatHarmonicM; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-09 + */ +public interface RStatHarmonicMMapper extends BaseMapper { + + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicQMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicQMapper.java new file mode 100644 index 000000000..68f032f90 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicQMapper.java @@ -0,0 +1,16 @@ +package com.njcn.harmonic.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.po.RStatHarmonicQ; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-12 + */ +public interface RStatHarmonicQMapper extends BaseMapper { + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicVoltageDMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicVoltageDMapper.java new file mode 100644 index 000000000..60d596b03 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicVoltageDMapper.java @@ -0,0 +1,16 @@ +package com.njcn.harmonic.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.po.RStatHarmonicVoltageD; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-10 + */ +public interface RStatHarmonicVoltageDMapper extends BaseMapper { + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicVoltageMMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicVoltageMMapper.java new file mode 100644 index 000000000..ad0a48b40 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicVoltageMMapper.java @@ -0,0 +1,16 @@ +package com.njcn.harmonic.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.po.RStatHarmonicVoltageM; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-10 + */ +public interface RStatHarmonicVoltageMMapper extends BaseMapper { + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicYMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicYMapper.java new file mode 100644 index 000000000..173f9bb36 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatHarmonicYMapper.java @@ -0,0 +1,16 @@ +package com.njcn.harmonic.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.po.RStatHarmonicY; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-12 + */ +public interface RStatHarmonicYMapper extends BaseMapper { + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatLoadTypeMMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatLoadTypeMMapper.java new file mode 100644 index 000000000..20df48f53 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatLoadTypeMMapper.java @@ -0,0 +1,27 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatLoadTypeM; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.vo.RStatLoadTypeVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +public interface RStatLoadTypeMMapper extends BaseMapper { + + /** + * 获取月区域暂态指标分类统计表 + * @param param + * @return + */ + List getMonthStatLoadType(@Param("param") StatSubstationBizBaseParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatLoadTypeQMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatLoadTypeQMapper.java new file mode 100644 index 000000000..8ef60dd32 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatLoadTypeQMapper.java @@ -0,0 +1,27 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatLoadTypeQ; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.vo.RStatLoadTypeVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +public interface RStatLoadTypeQMapper extends BaseMapper { + + /** + * 获取季区域暂态指标分类统计表 + * @param param + * @return + */ + List getQuarterStatLoadType(@Param("param") StatSubstationBizBaseParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatLoadTypeYMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatLoadTypeYMapper.java new file mode 100644 index 000000000..fb8112ea0 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatLoadTypeYMapper.java @@ -0,0 +1,26 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatLoadTypeY; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.vo.RStatLoadTypeVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +public interface RStatLoadTypeYMapper extends BaseMapper { + + /** + * 获取年区域暂态指标分类统计表 + * @return + */ + List getYearStatLoadType(@Param("param") StatSubstationBizBaseParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgBusbarVoltageMMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgBusbarVoltageMMapper.java new file mode 100644 index 000000000..79230efca --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgBusbarVoltageMMapper.java @@ -0,0 +1,16 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.po.RStatOrgBusbarVoltageM; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +public interface RStatOrgBusbarVoltageMMapper extends BaseMapper { + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgBusbarVoltageQMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgBusbarVoltageQMapper.java new file mode 100644 index 000000000..56d148af9 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgBusbarVoltageQMapper.java @@ -0,0 +1,16 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.po.RStatOrgBusbarVoltageQ; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +public interface RStatOrgBusbarVoltageQMapper extends BaseMapper { + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgBusbarVoltageYMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgBusbarVoltageYMapper.java new file mode 100644 index 000000000..3f9d9f557 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgBusbarVoltageYMapper.java @@ -0,0 +1,16 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.po.RStatOrgBusbarVoltageY; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +public interface RStatOrgBusbarVoltageYMapper extends BaseMapper { + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgMMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgMMapper.java new file mode 100644 index 000000000..38553399d --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgMMapper.java @@ -0,0 +1,39 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatOrgM; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.vo.RStatOrgIndexVO; +import com.njcn.harmonic.pojo.vo.RStatSubstationOrgVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * 区域分类统计月表 Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-17 + */ +public interface RStatOrgMMapper extends BaseMapper { + + /** + * 区域稳态指标超标分类统计表--月表数据 + * @param param + * @param dataType + * @return + */ + List getMonthRStatHarmonicOrgInfo(@Param("param") StatSubstationBizBaseParam param + ,@Param("dataType") String dataType); + + /** + * 获取月区域稳态指标合格率统计表 + * @param param + * @param dataType + * @return + */ + List getMonthRStatOrgIndex(@Param("param") StatSubstationBizBaseParam param + ,@Param("dataType") String dataType); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgQMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgQMapper.java new file mode 100644 index 000000000..231d2898c --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgQMapper.java @@ -0,0 +1,39 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatOrgQ; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.vo.RStatOrgIndexVO; +import com.njcn.harmonic.pojo.vo.RStatSubstationOrgVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * 区域分类统计季表 Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-17 + */ +public interface RStatOrgQMapper extends BaseMapper { + + /** + * 区域稳态指标超标分类统计表--年表数据 + * @param param + * @param dataType + * @return + */ + List getQuarterRStatHarmonicOrgInfo(@Param("param") StatSubstationBizBaseParam param + ,@Param("dataType") String dataType); + + /** + * 获取季区域稳态指标合格率统计表 + * @param param + * @param dataType + * @return + */ + List getQuarterRStatOrgIndex(@Param("param") StatSubstationBizBaseParam param + ,@Param("dataType") String dataType); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgYMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgYMapper.java new file mode 100644 index 000000000..678e96efd --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatOrgYMapper.java @@ -0,0 +1,39 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatOrgY; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.vo.RStatOrgIndexVO; +import com.njcn.harmonic.pojo.vo.RStatSubstationOrgVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * 区域分类统计年表 Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-17 + */ +public interface RStatOrgYMapper extends BaseMapper { + + /** + * 区域稳态指标超标分类统计表--年表数据 + * @param param + * @param dataType + * @return + */ + List getYearRStatHarmonicOrgInfo(@Param("param") StatSubstationBizBaseParam param + ,@Param("dataType") String dataType); + + /** + * 获取年区域稳态指标合格率统计表 + * @param param + * @param dataType + * @return + */ + List getYearRStatOrgIndex(@Param("param") StatSubstationBizBaseParam param + ,@Param("dataType") String dataType); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatSubstationMMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatSubstationMMapper.java new file mode 100644 index 000000000..4a117373d --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatSubstationMMapper.java @@ -0,0 +1,35 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatSubstationM; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.vo.RSubstationIcon2VO; +import com.njcn.harmonic.pojo.vo.RSubstationIconVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-18 + */ +public interface RStatSubstationMMapper extends BaseMapper { + + /** + * 变电站稳态指标超标分布(按超标天数) + * @param param + * @return + */ + RSubstationIconVO getStatSubstationIconM(@Param("param") StatSubstationBizBaseParam param); + + /** + * 变电站稳态指标平均超标天数 + * @param param + * @return + */ + List getStatSubstationIcon2M(@Param("param") StatSubstationBizBaseParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatSubstationQMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatSubstationQMapper.java new file mode 100644 index 000000000..fb624d72f --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatSubstationQMapper.java @@ -0,0 +1,35 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatSubstationQ; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.vo.RSubstationIcon2VO; +import com.njcn.harmonic.pojo.vo.RSubstationIconVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-18 + */ +public interface RStatSubstationQMapper extends BaseMapper { + + /** + * 变电站稳态指标超标分布(按超标天数) + * @param param + * @return + */ + RSubstationIconVO getStatSubstationIconQ(@Param("param") StatSubstationBizBaseParam param); + + /** + * 变电站稳态指标平均超标天数 + * @param param + * @return + */ + List getStatSubstationIcon2Q(@Param("param") StatSubstationBizBaseParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatSubstationVoltageMMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatSubstationVoltageMMapper.java new file mode 100644 index 000000000..b5eeddc7f --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatSubstationVoltageMMapper.java @@ -0,0 +1,30 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatSubstationVoltageM; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.vo.RSubstationIconVO; +import com.njcn.harmonic.pojo.vo.RVoltageIconVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-18 + */ +public interface RStatSubstationVoltageMMapper extends BaseMapper { + + /** + * 变电站稳态指标超标分布(按电压等级) + * @param param + * @return + */ + List getStatSubstationIcon(@Param("param") StatSubstationBizBaseParam param); + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatSubstationYMapper.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatSubstationYMapper.java new file mode 100644 index 000000000..25e927eb0 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/RStatSubstationYMapper.java @@ -0,0 +1,36 @@ +package com.njcn.harmonic.mapper; + +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatSubstationY; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.harmonic.pojo.vo.RSubstationIcon2VO; +import com.njcn.harmonic.pojo.vo.RSubstationIconVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author rui.wu + * @since 2022-10-18 + */ +public interface RStatSubstationYMapper extends BaseMapper { + + /** + * 变电站稳态指标超标分布(按超标天数) + * @param param + * @return + */ + RSubstationIconVO getStatSubstationIconY(@Param("param") StatSubstationBizBaseParam param); + + + /** + * 变电站稳态指标平均超标天数 + * @param param + * @return + */ + List getStatSubstationIcon2Y(@Param("param") StatSubstationBizBaseParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpBenchmarkLevelMMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpBenchmarkLevelMMapper.xml new file mode 100644 index 000000000..e9f73200b --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpBenchmarkLevelMMapper.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + measurement_point_id,data_date,voltage_avg, + voltage_sd,unbalance_avg,unbalance_sd, + vthd_avg,vthd_sd,flicker_avg, + flicker_sd + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpBenchmarkLevelQMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpBenchmarkLevelQMapper.xml new file mode 100644 index 000000000..e07939dfb --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpBenchmarkLevelQMapper.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + measurement_point_id,data_date,voltage_avg, + voltage_sd,unbalance_avg,unbalance_sd, + vthd_avg,vthd_sd,flicker_avg, + flicker_sd + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpBenchmarkLevelYMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpBenchmarkLevelYMapper.xml new file mode 100644 index 000000000..9dcf0e43a --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpBenchmarkLevelYMapper.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + measurement_point_id,data_date,voltage_avg, + voltage_sd,unbalance_avg,unbalance_sd, + vthd_avg,vthd_sd,flicker_avg, + flicker_sd + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpHarmonicIMagReportDMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpHarmonicIMagReportDMapper.xml new file mode 100644 index 000000000..efd105bad --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpHarmonicIMagReportDMapper.xml @@ -0,0 +1,303 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id,data_date,phase, + fundamental_current_max,fundamental_current_min,fundamental_current_avg, + fundamental_current_95,harmonic_current_thd_max,harmonic_current_thd_min, + harmonic_current_thd_avg,harmonic_current_thd_95,harmonic_current_effective_2_max, + harmonic_current_effective_2_min,harmonic_current_effective_2_avg,harmonic_current_effective_2_95, + harmonic_current_effective_3_max,harmonic_current_effective_3_min,harmonic_current_effective_3_avg, + harmonic_current_effective_3_95,harmonic_current_effective_4_max,harmonic_current_effective_4_min, + harmonic_current_effective_4_avg,harmonic_current_effective_4_95,harmonic_current_effective_5_max, + harmonic_current_effective_5_min,harmonic_current_effective_5_avg,harmonic_current_effective_5_95, + harmonic_current_effective_6_max,harmonic_current_effective_6_min,harmonic_current_effective_6_avg, + harmonic_current_effective_6_95,harmonic_current_effective_7_max,harmonic_current_effective_7_min, + harmonic_current_effective_7_avg,harmonic_current_effective_7_95,harmonic_current_effective_8_max, + harmonic_current_effective_8_min,harmonic_current_effective_8_avg,harmonic_current_effective_8_95, + harmonic_current_effective_9_max,harmonic_current_effective_9_min,harmonic_current_effective_9_avg, + harmonic_current_effective_9_95,harmonic_current_effective_10_max,harmonic_current_effective_10_min, + harmonic_current_effective_10_avg,harmonic_current_effective_10_95,harmonic_current_effective_11_max, + harmonic_current_effective_11_min,harmonic_current_effective_11_avg,harmonic_current_effective_11_95, + harmonic_current_effective_12_max,harmonic_current_effective_12_min,harmonic_current_effective_12_avg, + harmonic_current_effective_12_95,harmonic_current_effective_13_max,harmonic_current_effective_13_min, + harmonic_current_effective_13_avg,harmonic_current_effective_13_95,harmonic_current_effective_14_max, + harmonic_current_effective_14_min,harmonic_current_effective_14_avg,harmonic_current_effective_14_95, + harmonic_current_effective_15_max,harmonic_current_effective_15_min,harmonic_current_effective_15_avg, + harmonic_current_effective_15_95,harmonic_current_effective_16_max,harmonic_current_effective_16_min, + harmonic_current_effective_16_avg,harmonic_current_effective_16_95,harmonic_current_effective_17_max, + harmonic_current_effective_17_min,harmonic_current_effective_17_avg,harmonic_current_effective_17_95, + harmonic_current_effective_18_max,harmonic_current_effective_18_min,harmonic_current_effective_18_avg, + harmonic_current_effective_18_95,harmonic_current_effective_19_max,harmonic_current_effective_19_min, + harmonic_current_effective_19_avg,harmonic_current_effective_19_95,harmonic_current_effective_20_max, + harmonic_current_effective_20_min,harmonic_current_effective_20_avg,harmonic_current_effective_20_95, + harmonic_current_effective_21_max,harmonic_current_effective_21_min,harmonic_current_effective_21_avg, + harmonic_current_effective_21_95,harmonic_current_effective_22_max,harmonic_current_effective_22_min, + harmonic_current_effective_22_avg,harmonic_current_effective_22_95,harmonic_current_effective_23_max, + harmonic_current_effective_23_min,harmonic_current_effective_23_avg,harmonic_current_effective_23_95, + harmonic_current_effective_24_max,harmonic_current_effective_24_min,harmonic_current_effective_24_avg, + harmonic_current_effective_24_95,harmonic_current_effective_25_max,harmonic_current_effective_25_min, + harmonic_current_effective_25_avg,harmonic_current_effective_25_95,harmonic_current_effective_26_max, + harmonic_current_effective_26_min,harmonic_current_effective_26_avg,harmonic_current_effective_26_95, + harmonic_current_effective_27_max,harmonic_current_effective_27_min,harmonic_current_effective_27_avg, + harmonic_current_effective_27_95,harmonic_current_effective_28_max,harmonic_current_effective_28_min, + harmonic_current_effective_28_avg,harmonic_current_effective_28_95,harmonic_current_effective_29_max, + harmonic_current_effective_29_min,harmonic_current_effective_29_avg,harmonic_current_effective_29_95, + harmonic_current_effective_30_max,harmonic_current_effective_30_min,harmonic_current_effective_30_avg, + harmonic_current_effective_30_95,harmonic_current_effective_31_max,harmonic_current_effective_31_min, + harmonic_current_effective_31_avg,harmonic_current_effective_31_95,harmonic_current_effective_32_max, + harmonic_current_effective_32_min,harmonic_current_effective_32_avg,harmonic_current_effective_32_95, + harmonic_current_effective_33_max,harmonic_current_effective_33_min,harmonic_current_effective_33_avg, + harmonic_current_effective_33_95,harmonic_current_effective_34_max,harmonic_current_effective_34_min, + harmonic_current_effective_34_avg,harmonic_current_effective_34_95,harmonic_current_effective_35_max, + harmonic_current_effective_35_min,harmonic_current_effective_35_avg,harmonic_current_effective_35_95, + harmonic_current_effective_36_max,harmonic_current_effective_36_min,harmonic_current_effective_36_avg, + harmonic_current_effective_36_95,harmonic_current_effective_37_max,harmonic_current_effective_37_min, + harmonic_current_effective_37_avg,harmonic_current_effective_37_95,harmonic_current_effective_38_max, + harmonic_current_effective_38_min,harmonic_current_effective_38_avg,harmonic_current_effective_38_95, + harmonic_current_effective_39_max,harmonic_current_effective_39_min,harmonic_current_effective_39_avg, + harmonic_current_effective_39_95,harmonic_current_effective_40_max,harmonic_current_effective_40_min, + harmonic_current_effective_40_avg,harmonic_current_effective_40_95,harmonic_current_effective_41_max, + harmonic_current_effective_41_min,harmonic_current_effective_41_avg,harmonic_current_effective_41_95, + harmonic_current_effective_42_max,harmonic_current_effective_42_min,harmonic_current_effective_42_avg, + harmonic_current_effective_42_95,harmonic_current_effective_43_max,harmonic_current_effective_43_min, + harmonic_current_effective_43_avg,harmonic_current_effective_43_95,harmonic_current_effective_44_max, + harmonic_current_effective_44_min,harmonic_current_effective_44_avg,harmonic_current_effective_44_95, + harmonic_current_effective_45_max,harmonic_current_effective_45_min,harmonic_current_effective_45_avg, + harmonic_current_effective_45_95,harmonic_current_effective_46_max,harmonic_current_effective_46_min, + harmonic_current_effective_46_avg,harmonic_current_effective_46_95,harmonic_current_effective_47_max, + harmonic_current_effective_47_min,harmonic_current_effective_47_avg,harmonic_current_effective_47_95, + harmonic_current_effective_48_max,harmonic_current_effective_48_min,harmonic_current_effective_48_avg, + harmonic_current_effective_48_95,harmonic_current_effective_49_max,harmonic_current_effective_49_min, + harmonic_current_effective_49_avg,harmonic_current_effective_49_95,harmonic_current_effective_50_max, + harmonic_current_effective_50_min,harmonic_current_effective_50_avg,harmonic_current_effective_50_95 + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpHarmonicIRateReportDMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpHarmonicIRateReportDMapper.xml new file mode 100644 index 000000000..b75cc55dd --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpHarmonicIRateReportDMapper.xml @@ -0,0 +1,294 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id,data_date,phase, + i_2_max,i_2_min,i_2_avg, + i_2_cp95,i_3_max,i_3_min, + i_3_avg,i_3_cp95,i_4_max, + i_4_min,i_4_avg,i_4_cp95, + i_5_max,i_5_min,i_5_avg, + i_5_cp95,i_6_max,i_6_min, + i_6_avg,i_6_cp95,i_7_max, + i_7_min,i_7_avg,i_7_cp95, + i_8_max,i_8_min,i_8_avg, + i_8_cp95,i_9_max,i_9_min, + i_9_avg,i_9_cp95,i_10_max, + i_10_min,i_10_avg,i_10_cp95, + i_11_max,i_11_min,i_11_avg, + i_11_cp95,i_12_max,i_12_min, + i_12_avg,i_12_cp95,i_13_max, + i_13_min,i_13_avg,i_13_cp95, + i_14_max,i_14_min,i_14_avg, + i_14_cp95,i_15_max,i_15_min, + i_15_avg,i_15_cp95,i_16_max, + i_16_min,i_16_avg,i_16_cp95, + i_17_max,i_17_min,i_17_avg, + i_17_cp95,i_18_max,i_18_min, + i_18_avg,i_18_cp95,i_19_max, + i_19_min,i_19_avg,i_19_cp95, + i_20_max,i_20_min,i_20_avg, + i_20_cp95,i_21_max,i_21_min, + i_21_avg,i_21_cp95,i_22_max, + i_22_min,i_22_avg,i_22_cp95, + i_23_max,i_23_min,i_23_avg, + i_23_cp95,i_24_max,i_24_min, + i_24_avg,i_24_cp95,i_25_max, + i_25_min,i_25_avg,i_25_cp95, + i_26_max,i_26_min,i_26_avg, + i_26_cp95,i_27_max,i_27_min, + i_27_avg,i_27_cp95,i_28_max, + i_28_min,i_28_avg,i_28_cp95, + i_29_max,i_29_min,i_29_avg, + i_29_cp95,i_30_max,i_30_min, + i_30_avg,i_30_cp95,i_31_max, + i_31_min,i_31_avg,i_31_cp95, + i_32_max,i_32_min,i_32_avg, + i_32_cp95,i_33_max,i_33_min, + i_33_avg,i_33_cp95,i_34_max, + i_34_min,i_34_avg,i_34_cp95, + i_35_max,i_35_min,i_35_avg, + i_35_cp95,i_36_max,i_36_min, + i_36_avg,i_36_cp95,i_37_max, + i_37_min,i_37_avg,i_37_cp95, + i_38_max,i_38_min,i_38_avg, + i_38_cp95,i_39_max,i_39_min, + i_39_avg,i_39_cp95,i_40_max, + i_40_min,i_40_avg,i_40_cp95, + i_41_max,i_41_min,i_41_avg, + i_41_cp95,i_42_max,i_42_min, + i_42_avg,i_42_cp95,i_43_max, + i_43_min,i_43_avg,i_43_cp95, + i_44_max,i_44_min,i_44_avg, + i_44_cp95,i_45_max,i_45_min, + i_45_avg,i_45_cp95,i_46_max, + i_46_min,i_46_avg,i_46_cp95, + i_47_max,i_47_min,i_47_avg, + i_47_cp95,i_48_max,i_48_min, + i_48_avg,i_48_cp95,i_49_max, + i_49_min,i_49_avg,i_49_cp95, + i_50_max,i_50_min,i_50_avg, + i_50_cp95 + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpHarmonicVRateReportDMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpHarmonicVRateReportDMapper.xml new file mode 100644 index 000000000..a7eb55b29 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpHarmonicVRateReportDMapper.xml @@ -0,0 +1,303 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id,data_date,phase, + voltage_harmonic_thd_max,voltage_harmonic_thd_min,voltage_harmonic_thd_avg, + voltage_harmonic_thd_95,fundamental_voltage_max,fundamental_voltage_min, + fundamental_voltage_avg,fundamental_voltage_95,harmonic_voltage_content_2_max, + harmonic_voltage_content_2_min,harmonic_voltage_content_2_avg,harmonic_voltage_content_2_95, + harmonic_voltage_content_3_max,harmonic_voltage_content_3_min,harmonic_voltage_content_3_avg, + harmonic_voltage_content_3_95,harmonic_voltage_content_4_max,harmonic_voltage_content_4_min, + harmonic_voltage_content_4_avg,harmonic_voltage_content_4_95,harmonic_voltage_content_5_max, + harmonic_voltage_content_5_min,harmonic_voltage_content_5_avg,harmonic_voltage_content_5_95, + harmonic_voltage_content_6_max,harmonic_voltage_content_6_min,harmonic_voltage_content_6_avg, + harmonic_voltage_content_6_95,harmonic_voltage_content_7_max,harmonic_voltage_content_7_min, + harmonic_voltage_content_7_avg,harmonic_voltage_content_7_95,harmonic_voltage_content_8_max, + harmonic_voltage_content_8_min,harmonic_voltage_content_8_avg,harmonic_voltage_content_8_95, + harmonic_voltage_content_9_max,harmonic_voltage_content_9_min,harmonic_voltage_content_9_avg, + harmonic_voltage_content_9_95,harmonic_voltage_content_10_max,harmonic_voltage_content_10_min, + harmonic_voltage_content_10_avg,harmonic_voltage_content_10_95,harmonic_voltage_content_11_max, + harmonic_voltage_content_11_min,harmonic_voltage_content_11_avg,harmonic_voltage_content_11_95, + harmonic_voltage_content_12_max,harmonic_voltage_content_12_min,harmonic_voltage_content_12_avg, + harmonic_voltage_content_12_95,harmonic_voltage_content_13_max,harmonic_voltage_content_13_min, + harmonic_voltage_content_13_avg,harmonic_voltage_content_13_95,harmonic_voltage_content_14_max, + harmonic_voltage_content_14_min,harmonic_voltage_content_14_avg,harmonic_voltage_content_14_95, + harmonic_voltage_content_15_max,harmonic_voltage_content_15_min,harmonic_voltage_content_15_avg, + harmonic_voltage_content_15_95,harmonic_voltage_content_16_max,harmonic_voltage_content_16_min, + harmonic_voltage_content_16_avg,harmonic_voltage_content_16_95,harmonic_voltage_content_17_max, + harmonic_voltage_content_17_min,harmonic_voltage_content_17_avg,harmonic_voltage_content_17_95, + harmonic_voltage_content_18_max,harmonic_voltage_content_18_min,harmonic_voltage_content_18_avg, + harmonic_voltage_content_18_95,harmonic_voltage_content_19_max,harmonic_voltage_content_19_min, + harmonic_voltage_content_19_avg,harmonic_voltage_content_19_95,harmonic_voltage_content_20_max, + harmonic_voltage_content_20_min,harmonic_voltage_content_20_avg,harmonic_voltage_content_20_95, + harmonic_voltage_content_21_max,harmonic_voltage_content_21_min,harmonic_voltage_content_21_avg, + harmonic_voltage_content_21_95,harmonic_voltage_content_22_max,harmonic_voltage_content_22_min, + harmonic_voltage_content_22_avg,harmonic_voltage_content_22_95,harmonic_voltage_content_23_max, + harmonic_voltage_content_23_min,harmonic_voltage_content_23_avg,harmonic_voltage_content_23_95, + harmonic_voltage_content_24_max,harmonic_voltage_content_24_min,harmonic_voltage_content_24_avg, + harmonic_voltage_content_24_95,harmonic_voltage_content_25_max,harmonic_voltage_content_25_min, + harmonic_voltage_content_25_avg,harmonic_voltage_content_25_95,harmonic_voltage_content_26_max, + harmonic_voltage_content_26_min,harmonic_voltage_content_26_avg,harmonic_voltage_content_26_95, + harmonic_voltage_content_27_max,harmonic_voltage_content_27_min,harmonic_voltage_content_27_avg, + harmonic_voltage_content_27_95,harmonic_voltage_content_28_max,harmonic_voltage_content_28_min, + harmonic_voltage_content_28_avg,harmonic_voltage_content_28_95,harmonic_voltage_content_29_max, + harmonic_voltage_content_29_min,harmonic_voltage_content_29_avg,harmonic_voltage_content_29_95, + harmonic_voltage_content_30_max,harmonic_voltage_content_30_min,harmonic_voltage_content_30_avg, + harmonic_voltage_content_30_95,harmonic_voltage_content_31_max,harmonic_voltage_content_31_min, + harmonic_voltage_content_31_avg,harmonic_voltage_content_31_95,harmonic_voltage_content_32_max, + harmonic_voltage_content_32_min,harmonic_voltage_content_32_avg,harmonic_voltage_content_32_95, + harmonic_voltage_content_33_max,harmonic_voltage_content_33_min,harmonic_voltage_content_33_avg, + harmonic_voltage_content_33_95,harmonic_voltage_content_34_max,harmonic_voltage_content_34_min, + harmonic_voltage_content_34_avg,harmonic_voltage_content_34_95,harmonic_voltage_content_35_max, + harmonic_voltage_content_35_min,harmonic_voltage_content_35_avg,harmonic_voltage_content_35_95, + harmonic_voltage_content_36_max,harmonic_voltage_content_36_min,harmonic_voltage_content_36_avg, + harmonic_voltage_content_36_95,harmonic_voltage_content_37_max,harmonic_voltage_content_37_min, + harmonic_voltage_content_37_avg,harmonic_voltage_content_37_95,harmonic_voltage_content_38_max, + harmonic_voltage_content_38_min,harmonic_voltage_content_38_avg,harmonic_voltage_content_38_95, + harmonic_voltage_content_39_max,harmonic_voltage_content_39_min,harmonic_voltage_content_39_avg, + harmonic_voltage_content_39_95,harmonic_voltage_content_40_max,harmonic_voltage_content_40_min, + harmonic_voltage_content_40_avg,harmonic_voltage_content_40_95,harmonic_voltage_content_41_max, + harmonic_voltage_content_41_min,harmonic_voltage_content_41_avg,harmonic_voltage_content_41_95, + harmonic_voltage_content_42_max,harmonic_voltage_content_42_min,harmonic_voltage_content_42_avg, + harmonic_voltage_content_42_95,harmonic_voltage_content_43_max,harmonic_voltage_content_43_min, + harmonic_voltage_content_43_avg,harmonic_voltage_content_43_95,harmonic_voltage_content_44_max, + harmonic_voltage_content_44_min,harmonic_voltage_content_44_avg,harmonic_voltage_content_44_95, + harmonic_voltage_content_45_max,harmonic_voltage_content_45_min,harmonic_voltage_content_45_avg, + harmonic_voltage_content_45_95,harmonic_voltage_content_46_max,harmonic_voltage_content_46_min, + harmonic_voltage_content_46_avg,harmonic_voltage_content_46_95,harmonic_voltage_content_47_max, + harmonic_voltage_content_47_min,harmonic_voltage_content_47_avg,harmonic_voltage_content_47_95, + harmonic_voltage_content_48_max,harmonic_voltage_content_48_min,harmonic_voltage_content_48_avg, + harmonic_voltage_content_48_95,harmonic_voltage_content_49_max,harmonic_voltage_content_49_min, + harmonic_voltage_content_49_avg,harmonic_voltage_content_49_95,harmonic_voltage_content_50_max, + harmonic_voltage_content_50_min,harmonic_voltage_content_50_avg,harmonic_voltage_content_50_95 + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpInharmonicIRateReportDMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpInharmonicIRateReportDMapper.xml new file mode 100644 index 000000000..c72224277 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpInharmonicIRateReportDMapper.xml @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id,data_date,phase, + inharm_i_2_max,inharm_i_2_min,inharm_i_2_avg, + inharm_i_2_cp95,inharm_i_3_max,inharm_i_3_min, + inharm_i_3_avg,inharm_i_3_cp95,inharm_i_4_max, + inharm_i_4_min,inharm_i_4_avg,inharm_i_4_cp95, + inharm_i_5_max,inharm_i_5_min,inharm_i_5_avg, + inharm_i_5_cp95,inharm_i_6_max,inharm_i_6_min, + inharm_i_6_avg,inharm_i_6_cp95,inharm_i_7_max, + inharm_i_7_min,inharm_i_7_avg,inharm_i_7_cp95, + inharm_i_8_max,inharm_i_8_min,inharm_i_8_avg, + inharm_i_8_cp95,inharm_i_9_max,inharm_i_9_min, + inharm_i_9_avg,inharm_i_9_cp95,inharm_i_10_max, + inharm_i_10_min,inharm_i_10_avg,inharm_i_10_cp95, + inharm_i_11_max,inharm_i_11_min,inharm_i_11_avg, + inharm_i_11_cp95,inharm_i_12_max,inharm_i_12_min, + inharm_i_12_avg,inharm_i_12_cp95,inharm_i_13_max, + inharm_i_13_min,inharm_i_13_avg,inharm_i_13_cp95, + inharm_i_14_max,inharm_i_14_min,inharm_i_14_avg, + inharm_i_14_cp95,inharm_i_15_max,inharm_i_15_min, + inharm_i_15_avg,inharm_i_15_cp95,inharm_i_16_max, + inharm_i_16_min,inharm_i_16_avg,inharm_i_16_cp95, + inharm_i_17_max,inharm_i_17_min,inharm_i_17_avg, + inharm_i_17_cp95,inharm_i_18_max,inharm_i_18_min, + inharm_i_18_avg,inharm_i_18_cp95,inharm_i_19_max, + inharm_i_19_min,inharm_i_19_avg,inharm_i_19_cp95, + inharm_i_20_max,inharm_i_20_min,inharm_i_20_avg, + inharm_i_20_cp95,inharm_i_21_max,inharm_i_21_min, + inharm_i_21_avg,inharm_i_21_cp95,inharm_i_22_max, + inharm_i_22_min,inharm_i_22_avg,inharm_i_22_cp95, + inharm_i_23_max,inharm_i_23_min,inharm_i_23_avg, + inharm_i_23_cp95,inharm_i_24_max,inharm_i_24_min, + inharm_i_24_avg,inharm_i_24_cp95,inharm_i_25_max, + inharm_i_25_min,inharm_i_25_avg,inharm_i_25_cp95, + inharm_i_26_max,inharm_i_26_min,inharm_i_26_avg, + inharm_i_26_cp95,inharm_i_27_max,inharm_i_27_min, + inharm_i_27_avg,inharm_i_27_cp95,inharm_i_28_max, + inharm_i_28_min,inharm_i_28_avg,inharm_i_28_cp95, + inharm_i_29_max,inharm_i_29_min,inharm_i_29_avg, + inharm_i_29_cp95,inharm_i_30_max,inharm_i_30_min, + inharm_i_30_avg,inharm_i_30_cp95,inharm_i_31_max, + inharm_i_31_min,inharm_i_31_avg,inharm_i_31_cp95, + inharm_i_32_max,inharm_i_32_min,inharm_i_32_avg, + inharm_i_32_cp95,inharm_i_33_max,inharm_i_33_min, + inharm_i_33_avg,inharm_i_33_cp95,inharm_i_34_max, + inharm_i_34_min,inharm_i_34_avg,inharm_i_34_cp95, + inharm_i_35_max,inharm_i_35_min,inharm_i_35_avg, + inharm_i_35_cp95,inharm_i_36_max,inharm_i_36_min, + inharm_i_36_avg,inharm_i_36_cp95,inharm_i_37_max, + inharm_i_37_min,inharm_i_37_avg,inharm_i_37_cp95, + inharm_i_38_max,inharm_i_38_min,inharm_i_38_avg, + inharm_i_38_cp95,inharm_i_39_max,inharm_i_39_min, + inharm_i_39_avg,inharm_i_39_cp95,inharm_i_40_max, + inharm_i_40_min,inharm_i_40_avg,inharm_i_40_cp95, + inharm_i_41_max,inharm_i_41_min,inharm_i_41_avg, + inharm_i_41_cp95,inharm_i_42_max,inharm_i_42_min, + inharm_i_42_avg,inharm_i_42_cp95,inharm_i_43_max, + inharm_i_43_min,inharm_i_43_avg,inharm_i_43_cp95, + inharm_i_44_max,inharm_i_44_min,inharm_i_44_avg, + inharm_i_44_cp95,inharm_i_45_max,inharm_i_45_min, + inharm_i_45_avg,inharm_i_45_cp95,inharm_i_46_max, + inharm_i_46_min,inharm_i_46_avg,inharm_i_46_cp95, + inharm_i_47_max,inharm_i_47_min,inharm_i_47_avg, + inharm_i_47_cp95,inharm_i_48_max,inharm_i_48_min, + inharm_i_48_avg,inharm_i_48_cp95,inharm_i_49_max, + inharm_i_49_min,inharm_i_49_avg,inharm_i_49_cp95, + inharm_i_50_max,inharm_i_50_min,inharm_i_50_avg, + inharm_i_50_cp95 + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpInharmonicVRateReportDMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpInharmonicVRateReportDMapper.xml new file mode 100644 index 000000000..ceb89eba0 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpInharmonicVRateReportDMapper.xml @@ -0,0 +1,298 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id,data_date,phase, + inharm_v_1_max,inharm_v_1_min,inharm_v_1_avg, + inharm_v_1_cp95,inharm_v_2_max,inharm_v_2_min, + inharm_v_2_avg,inharm_v_2_cp95,inharm_v_3_max, + inharm_v_3_min,inharm_v_3_avg,inharm_v_3_cp95, + inharm_v_4_max,inharm_v_4_min,inharm_v_4_avg, + inharm_v_4_cp95,inharm_v_5_max,inharm_v_5_min, + inharm_v_5_avg,inharm_v_5_cp95,inharm_v_6_max, + inharm_v_6_min,inharm_v_6_avg,inharm_v_6_cp95, + inharm_v_7_max,inharm_v_7_min,inharm_v_7_avg, + inharm_v_7_cp95,inharm_v_8_max,inharm_v_8_min, + inharm_v_8_avg,inharm_v_8_cp95,inharm_v_9_max, + inharm_v_9_min,inharm_v_9_avg,inharm_v_9_cp95, + inharm_v_10_max,inharm_v_10_min,inharm_v_10_avg, + inharm_v_10_cp95,inharm_v_11_max,inharm_v_11_min, + inharm_v_11_avg,inharm_v_11_cp95,inharm_v_12_max, + inharm_v_12_min,inharm_v_12_avg,inharm_v_12_cp95, + inharm_v_13_max,inharm_v_13_min,inharm_v_13_avg, + inharm_v_13_cp95,inharm_v_14_max,inharm_v_14_min, + inharm_v_14_avg,inharm_v_14_cp95,inharm_v_15_max, + inharm_v_15_min,inharm_v_15_avg,inharm_v_15_cp95, + inharm_v_16_max,inharm_v_16_min,inharm_v_16_avg, + inharm_v_16_cp95,inharm_v_17_max,inharm_v_17_min, + inharm_v_17_avg,inharm_v_17_cp95,inharm_v_18_max, + inharm_v_18_min,inharm_v_18_avg,inharm_v_18_cp95, + inharm_v_19_max,inharm_v_19_min,inharm_v_19_avg, + inharm_v_19_cp95,inharm_v_20_max,inharm_v_20_min, + inharm_v_20_avg,inharm_v_20_cp95,inharm_v_21_max, + inharm_v_21_min,inharm_v_21_avg,inharm_v_21_cp95, + inharm_v_22_max,inharm_v_22_min,inharm_v_22_avg, + inharm_v_22_cp95,inharm_v_23_max,inharm_v_23_min, + inharm_v_23_avg,inharm_v_23_cp95,inharm_v_24_max, + inharm_v_24_min,inharm_v_24_avg,inharm_v_24_cp95, + inharm_v_25_max,inharm_v_25_min,inharm_v_25_avg, + inharm_v_25_cp95,inharm_v_26_max,inharm_v_26_min, + inharm_v_26_avg,inharm_v_26_cp95,inharm_v_27_max, + inharm_v_27_min,inharm_v_27_avg,inharm_v_27_cp95, + inharm_v_28_max,inharm_v_28_min,inharm_v_28_avg, + inharm_v_28_cp95,inharm_v_29_max,inharm_v_29_min, + inharm_v_29_avg,inharm_v_29_cp95,inharm_v_30_max, + inharm_v_30_min,inharm_v_30_avg,inharm_v_30_cp95, + inharm_v_31_max,inharm_v_31_min,inharm_v_31_avg, + inharm_v_31_cp95,inharm_v_32_max,inharm_v_32_min, + inharm_v_32_avg,inharm_v_32_cp95,inharm_v_33_max, + inharm_v_33_min,inharm_v_33_avg,inharm_v_33_cp95, + inharm_v_34_max,inharm_v_34_min,inharm_v_34_avg, + inharm_v_34_cp95,inharm_v_35_max,inharm_v_35_min, + inharm_v_35_avg,inharm_v_35_cp95,inharm_v_36_max, + inharm_v_36_min,inharm_v_36_avg,inharm_v_36_cp95, + inharm_v_37_max,inharm_v_37_min,inharm_v_37_avg, + inharm_v_37_cp95,inharm_v_38_max,inharm_v_38_min, + inharm_v_38_avg,inharm_v_38_cp95,inharm_v_39_max, + inharm_v_39_min,inharm_v_39_avg,inharm_v_39_cp95, + inharm_v_40_max,inharm_v_40_min,inharm_v_40_avg, + inharm_v_40_cp95,inharm_v_41_max,inharm_v_41_min, + inharm_v_41_avg,inharm_v_41_cp95,inharm_v_42_max, + inharm_v_42_min,inharm_v_42_avg,inharm_v_42_cp95, + inharm_v_43_max,inharm_v_43_min,inharm_v_43_avg, + inharm_v_43_cp95,inharm_v_44_max,inharm_v_44_min, + inharm_v_44_avg,inharm_v_44_cp95,inharm_v_45_max, + inharm_v_45_min,inharm_v_45_avg,inharm_v_45_cp95, + inharm_v_46_max,inharm_v_46_min,inharm_v_46_avg, + inharm_v_46_cp95,inharm_v_47_max,inharm_v_47_min, + inharm_v_47_avg,inharm_v_47_cp95,inharm_v_48_max, + inharm_v_48_min,inharm_v_48_avg,inharm_v_48_cp95, + inharm_v_49_max,inharm_v_49_min,inharm_v_49_avg, + inharm_v_49_cp95,inharm_v_50_max,inharm_v_50_min, + inharm_v_50_avg,inharm_v_50_cp95 + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpMeasurePhaseReportDMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpMeasurePhaseReportDMapper.xml new file mode 100644 index 000000000..0ce316427 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpMeasurePhaseReportDMapper.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id,data_date,phase, + phase_voltage_effective_max,phase_voltage_effective_min,phase_voltage_effective_avg, + phase_voltage_effective_95,line_voltage_effective_max,line_voltage_effective_min, + line_voltage_effective_avg,line_voltage_effective_95,v_de_up_max, + v_de_up_min,v_de_up_avg,v_de_up_95, + v_de_low_max,v_de_low_min,v_de_low_avg, + v_de_low_95,current_effective_max,current_effective_min, + current_effective_avg,current_effective_95,sp_active_power_max, + sp_active_power_min,sp_active_power_avg,sp_active_power_95, + sp_reactive_power_max,sp_reactive_power_min,sp_reactive_power_avg, + sp_reactive_power_95,sp_apparent_power_max,sp_apparent_power_min, + sp_apparent_power_avg,sp_apparent_power_95,sp_power_factor_max, + sp_power_factor_min,sp_power_factor_avg,sp_power_factor_95, + sp_fundamental_power_factor_max,sp_fundamental_power_factor_min,sp_fundamental_power_factor_avg, + sp_fundamental_power_factor_95 + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpMeasureReportDMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpMeasureReportDMapper.xml new file mode 100644 index 000000000..4212bd859 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpMeasureReportDMapper.xml @@ -0,0 +1,153 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id,data_date,frequency_max, + frequency_min,frequency_avg,frequency_95, + frequency_deviation_max,frequency_deviation_min,frequency_deviation_avg, + frequency_deviation_95,total_active_power_max,total_active_power_min, + total_active_power_avg,total_active_power_95,total_reactive_power_max, + total_reactive_power_min,total_reactive_power_avg,total_reactive_power_95, + total_apparent_power_max,total_apparent_power_min,total_apparent_power_avg, + total_apparent_power_95,tp_power_factor_max,tp_power_factor_min, + tp_power_factor_avg,tp_power_factor_95,fundamental_power_factor_max, + fundamental_power_factor_min,fundamental_power_factor_avg,fundamental_power_factor_95, + positive_sequence_voltage_max,positive_sequence_voltage_min,positive_sequence_voltage_avg, + positive_sequence_voltage_95,negative_sequence_voltage_max,negative_sequence_voltage_min, + negative_sequence_voltage_avg,negative_sequence_voltage_95,zero_sequence_voltage_max, + zero_sequence_voltage_min,zero_sequence_voltage_avg,zero_sequence_voltage_95, + negative_sequence_voltage_unbalance_max,negative_sequence_voltage_unbalance_min,negative_sequence_voltage_unbalance_avg, + negative_sequence_voltage_unbalance_95,zero_sequence_voltage_unbalance_max,zero_sequence_voltage_unbalance_min, + zero_sequence_voltage_unbalance_avg,zero_sequence_voltage_unbalance_95,positive_sequence_current_max, + positive_sequence_current_min,positive_sequence_current_avg,positive_sequence_current_95, + negative_sequence_current_max,negative_sequence_current_min,negative_sequence_current_avg, + negative_sequence_current_95,zero_sequence_current_max,zero_sequence_current_min, + zero_sequence_current_avg,zero_sequence_current_95,negative_sequence_current_unbalance_max, + negative_sequence_current_unbalance_min,negative_sequence_current_unbalance_avg,negative_sequence_current_unbalance_95, + zero_sequence_current_imbalance_max,zero_sequence_current_imbalance_min,zero_sequence_current_imbalance_avg, + zero_sequence_current_imbalance_95,equivalent_apparent_power_max,equivalent_apparent_power_min, + equivalent_apparent_power_avg,equivalent_apparent_power_95,equivalent_power_factor_max, + equivalent_power_factor_min,equivalent_power_factor_avg,equivalent_power_factor_95, + fundamental_wave_rateo_max,fundamental_wave_rateo_min,fundamental_wave_rateo_avg, + fundamental_wave_rateo_95,fundamental_wave_apparent_max,fundamental_wave_apparent_min, + fundamental_wave_apparent_avg,fundamental_wave_apparent_95,nonfundamental_wave_rateo_max, + nonfundamental_wave_rateo_min,nonfundamental_wave_rateo_avg,nonfundamental_wave_rateo_95, + unbalanced_apparent_power_max,unbalanced_apparent_power_min,unbalanced_apparent_power_avg, + unbalanced_apparent_power_95 + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpPartHarmonicDetailDMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpPartHarmonicDetailDMapper.xml new file mode 100644 index 000000000..93b22a26e --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpPartHarmonicDetailDMapper.xml @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpPartHarmonicDetailMMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpPartHarmonicDetailMMapper.xml new file mode 100644 index 000000000..dca90b662 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpPartHarmonicDetailMMapper.xml @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpPassRateMMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpPassRateMMapper.xml new file mode 100644 index 000000000..1f787c4a1 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpPassRateMMapper.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpPassRateQMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpPassRateQMapper.xml new file mode 100644 index 000000000..83f16baaa --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpPassRateQMapper.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpPassRateYMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpPassRateYMapper.xml new file mode 100644 index 000000000..4a088189f --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpPassRateYMapper.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpSurplusHarmonicDetailDMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpSurplusHarmonicDetailDMapper.xml new file mode 100644 index 000000000..68830faff --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpSurplusHarmonicDetailDMapper.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpSurplusHarmonicDetailMMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpSurplusHarmonicDetailMMapper.xml new file mode 100644 index 000000000..867ddf4b6 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RMpSurplusHarmonicDetailMMapper.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicDMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicDMapper.xml new file mode 100644 index 000000000..a06087370 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicDMapper.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicMMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicMMapper.xml new file mode 100644 index 000000000..8a82b2adf --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicMMapper.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicQMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicQMapper.xml new file mode 100644 index 000000000..2c8892e91 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicQMapper.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicVoltageDMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicVoltageDMapper.xml new file mode 100644 index 000000000..e4a264b2b --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicVoltageDMapper.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicVoltageMMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicVoltageMMapper.xml new file mode 100644 index 000000000..489f0a6da --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicVoltageMMapper.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicYMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicYMapper.xml new file mode 100644 index 000000000..84ff5edb0 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatHarmonicYMapper.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatLoadTypeMMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatLoadTypeMMapper.xml new file mode 100644 index 000000000..e16d27e83 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatLoadTypeMMapper.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatLoadTypeQMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatLoadTypeQMapper.xml new file mode 100644 index 000000000..01c1743bb --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatLoadTypeQMapper.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatLoadTypeYMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatLoadTypeYMapper.xml new file mode 100644 index 000000000..1ae5791d0 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatLoadTypeYMapper.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgBusbarVoltageMMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgBusbarVoltageMMapper.xml new file mode 100644 index 000000000..3ba556921 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgBusbarVoltageMMapper.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgBusbarVoltageQMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgBusbarVoltageQMapper.xml new file mode 100644 index 000000000..55c0f0e5a --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgBusbarVoltageQMapper.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgBusbarVoltageYMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgBusbarVoltageYMapper.xml new file mode 100644 index 000000000..c905a571a --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgBusbarVoltageYMapper.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgMMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgMMapper.xml new file mode 100644 index 000000000..c7b0aa3c8 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgMMapper.xml @@ -0,0 +1,164 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgQMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgQMapper.xml new file mode 100644 index 000000000..21a65cdfe --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgQMapper.xml @@ -0,0 +1,164 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgYMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgYMapper.xml new file mode 100644 index 000000000..3b6bec94d --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatOrgYMapper.xml @@ -0,0 +1,164 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatSubstationMMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatSubstationMMapper.xml new file mode 100644 index 000000000..f85c3830a --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatSubstationMMapper.xml @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatSubstationQMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatSubstationQMapper.xml new file mode 100644 index 000000000..42f5e7765 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatSubstationQMapper.xml @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatSubstationVoltageMMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatSubstationVoltageMMapper.xml new file mode 100644 index 000000000..b53c75846 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatSubstationVoltageMMapper.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatSubstationYMapper.xml b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatSubstationYMapper.xml new file mode 100644 index 000000000..4c1121da5 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/mapper/mapping/RStatSubstationYMapper.xml @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/DataExceptionService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/DataExceptionService.java new file mode 100644 index 000000000..3fe269b18 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/DataExceptionService.java @@ -0,0 +1,20 @@ +package com.njcn.harmonic.service; + +import com.njcn.harmonic.pojo.param.AlgorithmSearchParam; + +/** + * 数据是否异常 + * + * @author qijian + * @version 1.0.0 + * @createTime 2022/10/26 - 10:09 + */ +public interface DataExceptionService { + + /** + * 监测点数据是否异常 + * @author qijian + * @date 2022/10/26 + */ + boolean lineDataException(AlgorithmSearchParam algorithmSearchParam); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/DataIntegrityRateService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/DataIntegrityRateService.java new file mode 100644 index 000000000..8fcbec654 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/DataIntegrityRateService.java @@ -0,0 +1,20 @@ +package com.njcn.harmonic.service; + +import com.njcn.harmonic.pojo.param.AlgorithmSearchParam; + +/** + * 数据完整率算法 + * + * @author qijian + * @version 1.0.0 + * @createTime 2022/10/26 - 10:09 + */ +public interface DataIntegrityRateService { + + /** + * 监测点日数据完整率 + * @author qijian + * @date 2022/10/26 + */ + boolean lineDataIntegrityRate(AlgorithmSearchParam algorithmSearchParam); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpBenchmarkLevelMService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpBenchmarkLevelMService.java new file mode 100644 index 000000000..9921cd9c2 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpBenchmarkLevelMService.java @@ -0,0 +1,25 @@ +package com.njcn.harmonic.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.param.RMpBenchmarkLevelParam; +import com.njcn.harmonic.pojo.po.RMpBenchmarkLevelM; +import com.njcn.harmonic.pojo.vo.RMpBenchmarkLevelVO; + +import java.util.List; + +/** +* @author jianghf +* @description 针对表【r_mp_benchmark_level_m】的数据库操作Service +* @createDate 2022-10-11 10:32:18 +*/ +public interface RMpBenchmarkLevelMService extends IService { + + /*** + * 查询区域稳态电能质量水平(月) + * @author jianghaifei + * @date 2022-10-11 11:26 + * @param rMpBenchmarkLevelParam + * @return java.util.List + */ + List getRMpBenchmarkLevelList(RMpBenchmarkLevelParam rMpBenchmarkLevelParam); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpBenchmarkLevelQService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpBenchmarkLevelQService.java new file mode 100644 index 000000000..b2d95f482 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpBenchmarkLevelQService.java @@ -0,0 +1,18 @@ +package com.njcn.harmonic.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.param.RMpBenchmarkLevelParam; +import com.njcn.harmonic.pojo.po.RMpBenchmarkLevelQ; +import com.njcn.harmonic.pojo.vo.RMpBenchmarkLevelVO; + +import java.util.List; + +/** +* @author jianghf +* @description 针对表【r_mp_benchmark_level_q】的数据库操作Service +* @createDate 2022-10-11 10:32:18 +*/ +public interface RMpBenchmarkLevelQService extends IService { + + List getRMpBenchmarkLevelList(RMpBenchmarkLevelParam rMpBenchmarkLevelParam); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpBenchmarkLevelYService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpBenchmarkLevelYService.java new file mode 100644 index 000000000..944e64cb4 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpBenchmarkLevelYService.java @@ -0,0 +1,18 @@ +package com.njcn.harmonic.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.param.RMpBenchmarkLevelParam; +import com.njcn.harmonic.pojo.po.RMpBenchmarkLevelY; +import com.njcn.harmonic.pojo.vo.RMpBenchmarkLevelVO; + +import java.util.List; + +/** +* @author jianghf +* @description 针对表【r_mp_benchmark_level_y】的数据库操作Service +* @createDate 2022-10-11 10:32:18 +*/ +public interface RMpBenchmarkLevelYService extends IService { + + List getRMpBenchmarkLevelList(RMpBenchmarkLevelParam rMpBenchmarkLevelParam); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpHarmonicIMagReportDService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpHarmonicIMagReportDService.java new file mode 100644 index 000000000..31610da31 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpHarmonicIMagReportDService.java @@ -0,0 +1,17 @@ +package com.njcn.harmonic.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.po.RMpHarmonicIMagReportD; + +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_harmonic_i_mag_report_d(稳态监测点指标日报-日表(主配网表) /各次谐波电流有效值)】的数据库操作Service +* @createDate 2022-10-20 18:38:15 +*/ +public interface RMpHarmonicIMagReportDService extends IService { + + List getListByCond(Map condMap); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpHarmonicIRateReportDService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpHarmonicIRateReportDService.java new file mode 100644 index 000000000..52ae3ca8a --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpHarmonicIRateReportDService.java @@ -0,0 +1,18 @@ +package com.njcn.harmonic.service; + +import com.njcn.harmonic.pojo.po.RMpHarmonicIRateReportD; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_harmonic_i_rate_report_d(稳态监测点指标日报-日表(主网表) /各次谐波电流含有率)】的数据库操作Service +* @createDate 2022-10-20 18:43:52 +*/ +public interface RMpHarmonicIRateReportDService extends IService { + + List getListByCond(Map condMap); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpHarmonicReportDService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpHarmonicReportDService.java new file mode 100644 index 000000000..04e0bc05f --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpHarmonicReportDService.java @@ -0,0 +1,18 @@ +package com.njcn.harmonic.service; + +import com.njcn.harmonic.pojo.param.RMpHarmonicReportDParam; +import com.njcn.harmonic.pojo.vo.RMpHarmonicReportDVO; + +import java.util.List; + +/** + * @Title RMpHarmonicReportDService + * @Package com.njcn.harmonic.service + * @Author jianghaifei + * @Date 2022-10-20 19:18 + * @Version V1.0 + */ +public interface RMpHarmonicReportDService { + + List getMonitorStatisticsD(RMpHarmonicReportDParam rMpHarmonicReportDParam); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpHarmonicVRateReportDService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpHarmonicVRateReportDService.java new file mode 100644 index 000000000..f6b5a3a8d --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpHarmonicVRateReportDService.java @@ -0,0 +1,17 @@ +package com.njcn.harmonic.service; + +import com.njcn.harmonic.pojo.po.RMpHarmonicVRateReportD; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.List; +import java.util.Map; + +/** +* @author jianghf +* @description 针对表【r_mp_harmonic_v_rate_report_d(稳态监测点指标日报-日表(主配网表) /各次谐波电压含有率 )】的数据库操作Service +* @createDate 2022-10-20 18:34:05 +*/ +public interface RMpHarmonicVRateReportDService extends IService { + + List getListByCond(Map map); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpInharmonicIRateReportDService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpInharmonicIRateReportDService.java new file mode 100644 index 000000000..35187b653 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpInharmonicIRateReportDService.java @@ -0,0 +1,18 @@ +package com.njcn.harmonic.service; + +import com.njcn.harmonic.pojo.po.RMpInharmonicIRateReportD; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_inharmonic_i_rate_report_d(稳态监测点指标日报-日表(主网表) /各次间谐波电流含有率)】的数据库操作Service +* @createDate 2022-10-20 18:45:58 +*/ +public interface RMpInharmonicIRateReportDService extends IService { + + List getListByCond(Map condMap); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpInharmonicVRateReportDService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpInharmonicVRateReportDService.java new file mode 100644 index 000000000..781529df6 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpInharmonicVRateReportDService.java @@ -0,0 +1,18 @@ +package com.njcn.harmonic.service; + +import com.njcn.harmonic.pojo.po.RMpInharmonicVRateReportD; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_inharmonic_v_rate_report_d】的数据库操作Service +* @createDate 2022-10-20 18:45:36 +*/ +public interface RMpInharmonicVRateReportDService extends IService { + + List getListByCond(Map condMap); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpMeasurePhaseReportDService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpMeasurePhaseReportDService.java new file mode 100644 index 000000000..a0a6d9f32 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpMeasurePhaseReportDService.java @@ -0,0 +1,17 @@ +package com.njcn.harmonic.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.po.RMpMeasurePhaseReportD; + +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_measure_phase_report_d】的数据库操作Service +* @createDate 2022-10-20 18:20:08 +*/ +public interface RMpMeasurePhaseReportDService extends IService { + + List getListByCond(Map condMap); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpMeasureReportDService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpMeasureReportDService.java new file mode 100644 index 000000000..a975455d9 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpMeasureReportDService.java @@ -0,0 +1,17 @@ +package com.njcn.harmonic.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.po.RMpMeasureReportD; + +import java.util.List; +import java.util.Map; + +/** +* @author jianghf +* @description 针对表【r_mp_measure_report_d】的数据库操作Service +* @createDate 2022-10-20 16:32:37 +*/ +public interface RMpMeasureReportDService extends IService { + + List getListByCond(Map condMap); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpPartHarmonicDetailDService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpPartHarmonicDetailDService.java new file mode 100644 index 000000000..e4480c8d9 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpPartHarmonicDetailDService.java @@ -0,0 +1,26 @@ +package com.njcn.harmonic.service; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.po.RMpPartHarmonicDetailD; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.vo.RMpPartHarmonicDetailIconVO; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +public interface RMpPartHarmonicDetailDService extends IService { + + /** + * 稳态指标超标明细表-指标趋势图 + * @param param + * @return + */ + List getRMpPartHarmonicDetailIcon(StatisticsBizBaseParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpPartHarmonicDetailMService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpPartHarmonicDetailMService.java new file mode 100644 index 000000000..d7f9ee831 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpPartHarmonicDetailMService.java @@ -0,0 +1,28 @@ +package com.njcn.harmonic.service; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.param.RStatOrgParam; +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RMpPartHarmonicDetailM; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.vo.RMpPartHarmonicDetailVO; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +public interface RMpPartHarmonicDetailMService extends IService { + + /** + * 稳态指标超标明细表 + * @param param + * @return + */ + List getRMpPartHarmonicDetail(RStatOrgParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpPassRateService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpPassRateService.java new file mode 100644 index 000000000..e12b04882 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RMpPassRateService.java @@ -0,0 +1,28 @@ +package com.njcn.harmonic.service; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.param.RStatOrgParam; +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RMpPassRateQ; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.vo.RStatOrgIndexVO; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +public interface RMpPassRateService extends IService { + + /** + * 稳态指标合格率明细表 + * @param param + * @return + */ + List getRMpPassRateInfo(RStatOrgParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicMService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicMService.java new file mode 100644 index 000000000..24932b88c --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicMService.java @@ -0,0 +1,42 @@ +package com.njcn.harmonic.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.param.RStatHarmonicMParam; +import com.njcn.harmonic.pojo.po.RStatHarmonicM; +import com.njcn.harmonic.pojo.vo.RArrayVO; +import com.njcn.harmonic.pojo.vo.RHarmonicPolylineVO; +import com.njcn.harmonic.pojo.vo.RIconVO; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-09 + */ +public interface RStatHarmonicMService extends IService { + + /** + * 查询查询监测点稳态指标 日/月点数 + * @param param + * @return + */ + List getRStatHarmonicMAll(StatisticsBizBaseParam param); + + /** + * 稳态电铁-频率偏差-电压统计图 + * @return + */ + List getRStatHarmonicIcon(RStatHarmonicMParam param); + + /** + * 稳态电铁-频率偏差-越线日期统计图 + * @return + */ + List getRStatHarmonicIcon2(RStatHarmonicMParam param); + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicOrgMService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicOrgMService.java new file mode 100644 index 000000000..24f13696c --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicOrgMService.java @@ -0,0 +1,35 @@ +package com.njcn.harmonic.service; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.param.RStatHarmonicMParam; +import com.njcn.harmonic.pojo.po.RStatHarmonicOrgM; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.vo.RArrayVO; +import com.njcn.harmonic.pojo.vo.RIconVO; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-14 + */ +public interface RStatHarmonicOrgMService extends IService { + + /** + * 查询查询各单位稳态指标 日/月点数(月) + * @param param + * @return + */ + List getRStatHarmonicMAll(StatisticsBizBaseParam param); + + /** + * 查询各单位累计超标监测点数统计图-月数据 + * @param param + * @return + */ + List getRStatHarmonicOrgMIcon(RStatHarmonicMParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicOrgQService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicOrgQService.java new file mode 100644 index 000000000..ae38d9820 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicOrgQService.java @@ -0,0 +1,35 @@ +package com.njcn.harmonic.service; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.param.RStatHarmonicMParam; +import com.njcn.harmonic.pojo.po.RStatHarmonicOrgQ; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.vo.RArrayVO; +import com.njcn.harmonic.pojo.vo.RIconVO; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-14 + */ +public interface RStatHarmonicOrgQService extends IService { + + /** + * 查询查询各单位稳态指标 日/月点数(季) + * @param param + * @return + */ + List getRStatHarmonicQAll(StatisticsBizBaseParam param); + + /** + * 查询各单位累计超标监测点数统计图-季数据 + * @param param + * @return + */ + List getRStatHarmonicOrgQIcon(RStatHarmonicMParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicOrgYService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicOrgYService.java new file mode 100644 index 000000000..1f11bbffb --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicOrgYService.java @@ -0,0 +1,35 @@ +package com.njcn.harmonic.service; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.param.RStatHarmonicMParam; +import com.njcn.harmonic.pojo.po.RStatHarmonicOrgY; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.vo.RArrayVO; +import com.njcn.harmonic.pojo.vo.RIconVO; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-14 + */ +public interface RStatHarmonicOrgYService extends IService { + + /** + * 查询查询各单位稳态指标 日/月点数(年) + * @param param + * @return + */ + List getRStatHarmonicYAll(StatisticsBizBaseParam param); + + /** + * 查询各单位累计超标监测点数统计图-年数据 + * @param param + * @return + */ + List getRStatHarmonicOrgYIcon(RStatHarmonicMParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicQService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicQService.java new file mode 100644 index 000000000..61ef84a07 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicQService.java @@ -0,0 +1,27 @@ +package com.njcn.harmonic.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatHarmonicQ; +import com.njcn.harmonic.pojo.vo.RArrayVO; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-12 + */ +public interface RStatHarmonicQService extends IService { + + /** + * 查询查询监测点稳态指标 日/月点数 + * @param param + * @return + */ + List getRStatHarmonicQAll(StatisticsBizBaseParam param); + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicYService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicYService.java new file mode 100644 index 000000000..9d03689cb --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatHarmonicYService.java @@ -0,0 +1,26 @@ +package com.njcn.harmonic.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatHarmonicY; +import com.njcn.harmonic.pojo.vo.RArrayVO; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-12 + */ +public interface RStatHarmonicYService extends IService { + + /** + * 查询查询监测点稳态指标 日/月点数 + * @param param + * @return + */ + List getRStatHarmonicYAll(StatisticsBizBaseParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatLoadTypeService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatLoadTypeService.java new file mode 100644 index 000000000..e8e0a356c --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatLoadTypeService.java @@ -0,0 +1,26 @@ +package com.njcn.harmonic.service; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatLoadTypeM; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.vo.RArrayVO; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +public interface RStatLoadTypeService extends IService { + + /** + * 区域干扰源电流类指标超标统计 + * @param param + * @return + */ + List getRStatLoadType(StatisticsBizBaseParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatOrgBusbarVoltageService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatOrgBusbarVoltageService.java new file mode 100644 index 000000000..5ceaae9cd --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatOrgBusbarVoltageService.java @@ -0,0 +1,26 @@ +package com.njcn.harmonic.service; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatOrgBusbarVoltageM; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.vo.RStatOrgBusbarVoltageVO; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +public interface RStatOrgBusbarVoltageService extends IService { + + /** + * 区域电站母线电压类指标超标计 + * @param param + * @return + */ + List getRStatOrgBusbarVoltage(StatisticsBizBaseParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatOrgMService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatOrgMService.java new file mode 100644 index 000000000..4cf920878 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatOrgMService.java @@ -0,0 +1,26 @@ +package com.njcn.harmonic.service; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatOrgM; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.vo.RStatOrgVO; + +import java.util.List; + +/** + *

+ * 区域分类统计月表 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-17 + */ +public interface RStatOrgMService extends IService { + + /** + * 查询区域超标统计-月数据 + * @param param + * @return + */ + List getRStatHarmonicMAll(StatisticsBizBaseParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatOrgQService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatOrgQService.java new file mode 100644 index 000000000..30930b510 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatOrgQService.java @@ -0,0 +1,26 @@ +package com.njcn.harmonic.service; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatOrgQ; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.vo.RStatOrgVO; + +import java.util.List; + +/** + *

+ * 区域分类统计季表 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-17 + */ +public interface RStatOrgQService extends IService { + + /** + * 查询区域超标统计-季数据 + * @param param + * @return + */ + List getRStatHarmonicQAll(StatisticsBizBaseParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatOrgYService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatOrgYService.java new file mode 100644 index 000000000..5773e3ada --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatOrgYService.java @@ -0,0 +1,50 @@ +package com.njcn.harmonic.service; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatOrgY; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.vo.*; + +import java.util.List; + +/** + *

+ * 区域分类统计年表 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-17 + */ +public interface RStatOrgYService extends IService { + + /** + * 查询区域超标统计-年数据 + * @param param + * @return + */ + List getRStatHarmonicYAll(StatisticsBizBaseParam param); + + /** + * 区域稳态指标超标分类统计表 + * @param param + * @return + */ + List getRStatSubstationOrg(StatisticsBizBaseParam param); + + /** + * 变电站(换流站)稳态指标超标分类统计表 + * @param param + * @return + */ + List getRStatSubstation(StatSubstationBizBaseParam param); + + /** + * 区域稳态指标合格率统计表 + * @param param + * @return + */ + List getRStatOrgIndex(StatisticsBizBaseParam param); + + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatSubstationMService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatSubstationMService.java new file mode 100644 index 000000000..0d5932588 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatSubstationMService.java @@ -0,0 +1,34 @@ +package com.njcn.harmonic.service; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatSubstationM; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.vo.RSubstationIcon2VO; +import com.njcn.harmonic.pojo.vo.RSubstationIconVO; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-18 + */ +public interface RStatSubstationMService extends IService { + + /** + * 变电站稳态指标超标分布(按超标天数) + * @param param + * @return + */ + RSubstationIconVO getStatSubstationIcon(StatisticsBizBaseParam param); + + /** + * 变电站稳态指标平均超标天数 + * @param param + * @return + */ + List getStatSubstationIcon2(StatisticsBizBaseParam param); +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatSubstationVoltageMService.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatSubstationVoltageMService.java new file mode 100644 index 000000000..88d72bc20 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/RStatSubstationVoltageMService.java @@ -0,0 +1,28 @@ +package com.njcn.harmonic.service; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatSubstationVoltageM; +import com.baomidou.mybatisplus.extension.service.IService; +import com.njcn.harmonic.pojo.vo.RVoltageIconVO; + +import java.util.List; + +/** + *

+ * 服务类 + *

+ * + * @author rui.wu + * @since 2022-10-18 + */ +public interface RStatSubstationVoltageMService extends IService { + + /** + * 变电站稳态指标超标分布(按电压等级) + * @param param + * @return + */ + List getStatSubstationIcon(StatisticsBizBaseParam param); + + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/CustomReportServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/CustomReportServiceImpl.java index 10e442ead..40b88d042 100644 --- a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/CustomReportServiceImpl.java +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/CustomReportServiceImpl.java @@ -314,18 +314,17 @@ public class CustomReportServiceImpl implements CustomReportService { @Override public List reportChooseTree() { - long a = System.currentTimeMillis(); LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); lambdaQueryWrapper.isNotNull(EleEpdPqd::getOtherName); lambdaQueryWrapper.orderByAsc(EleEpdPqd::getSort); List list = eleEpdMapper.selectList(lambdaQueryWrapper); - Map> map = list.stream().collect(Collectors.groupingBy(EleEpdPqd::getOtherName)); + Map> map = list.stream().collect(Collectors.groupingBy(EleEpdPqd::getName)); List tree = new ArrayList<>(); map.forEach((key, value) -> { ReportTreeVO reportTreeVO = new ReportTreeVO(); - reportTreeVO.setName(key); + reportTreeVO.setName(value.get(0).getOtherName()); reportTreeVO.setShowName(value.get(0).getShowName()); //存在1-50次 2-50次情况 @@ -341,13 +340,10 @@ public class CustomReportServiceImpl implements CustomReportService { } reportTreeVO.setChildren(reHarm); } else { - assPhase(value, reportTreeVO, key); + assPhase(value, reportTreeVO, value.get(0).getOtherName()); } tree.add(reportTreeVO); }); - - long b = System.currentTimeMillis(); - System.out.println(b - a); return tree; } @@ -364,6 +360,7 @@ public class CustomReportServiceImpl implements CustomReportService { assStatMethod(item, statTree, key, item.getPhase()); reportTreePhase.setChildren(statTree); phaseTree.add(reportTreePhase); + reportTreeItem.setChildren(phaseTree); } else { List statTree = new ArrayList<>(); @@ -371,7 +368,6 @@ public class CustomReportServiceImpl implements CustomReportService { reportTreeItem.setChildren(statTree); } }); - reportTreeItem.setChildren(phaseTree); } @@ -430,7 +426,6 @@ public class CustomReportServiceImpl implements CustomReportService { * @return 结果 */ private void assSql(ReportTemplateDTO data, StringBuilder sql, List endList, String method, ReportSearchParam reportSearchParam) { - InfluxDbUtils influxDBUtil = new InfluxDbUtils(influxDbConfig.getUserName(), influxDbConfig.getPassword(), influxDbConfig.getInfluxDBUrl(), influxDbConfig.getDatabase(), ""); //sql拼接示例:select MAX(IHA2) as IHA2 from power_quality_data where Phase = 'A' and LineId='1324564568' and Stat_Method='max' tz('Asia/Shanghai') if (InfluxDBTableConstant.NO_PHASE.equals(data.getPhase())) { sql.append(method).append(InfluxDBSqlConstant.LBK).append(data.getTemplateName()).append(InfluxDBSqlConstant.RBK).append(InfluxDBSqlConstant.AS_VALUE) @@ -448,7 +443,7 @@ public class CustomReportServiceImpl implements CustomReportService { } //根据不同的库表赋值 - QueryResult queryResult = influxDBUtil.query(String.valueOf(sql)); + QueryResult queryResult = influxDbUtils.query(String.valueOf(sql)); //剖析influx数据,填入value List results = queryResult.getResults(); diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/DataExceptionServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/DataExceptionServiceImpl.java new file mode 100644 index 000000000..c4ec703d6 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/DataExceptionServiceImpl.java @@ -0,0 +1,182 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.date.DateUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.njcn.common.pojo.exception.BusinessException; +import com.njcn.device.pq.api.LineFeignClient; +import com.njcn.device.pq.pojo.vo.LineDetailDataVO; +import com.njcn.harmonic.constant.Param; +import com.njcn.harmonic.enums.HarmonicResponseEnum; +import com.njcn.harmonic.mapper.PmsAbnormalRulesMapper; +import com.njcn.harmonic.mapper.RStatAbnormalDMapper; +import com.njcn.harmonic.pojo.param.AlgorithmSearchParam; +import com.njcn.harmonic.pojo.po.DataV; +import com.njcn.harmonic.pojo.po.PmsAbnormalRules; +import com.njcn.harmonic.pojo.po.RStatAbnormalD; +import com.njcn.harmonic.service.DataExceptionService; +import com.njcn.influxdb.config.InfluxDbConfig; +import com.njcn.influxdb.param.InfluxDBPublicParam; +import com.njcn.influxdb.param.InfluxDBSqlConstant; +import com.njcn.influxdb.param.InfluxDBTableConstant; +import com.njcn.influxdb.utils.InfluxDbUtils; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.influxdb.dto.QueryResult; +import org.influxdb.impl.InfluxDBResultMapper; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.Objects; + +/** + * 数据是否异常 + * + * @author qijian + * @version 1.0.0 + * @createTime 2022/10/26 - 10:09 + */ +@Service +@RequiredArgsConstructor +@Slf4j +public class DataExceptionServiceImpl implements DataExceptionService { + + private final InfluxDbUtils influxDbUtils; + + private final LineFeignClient lineFeignClient; + + private final PmsAbnormalRulesMapper pmsAbnormalRulesMapper; + + private final RStatAbnormalDMapper rStatAbnormalDMapper; + + @Resource + private InfluxDbConfig influxDbConfig; + + /** + * 监测点数据是否异常 + * @author qijian + * @date 2022/10/26 + */ + @Override + public boolean lineDataException(AlgorithmSearchParam algorithmSearchParam) { + //测试 +// InfluxDbUtils influxDBUtil = new InfluxDbUtils("admin", "njcnpqs", "http://192.168.1.18:8086", "pqsbase", ""); + //初始化 + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); + String searchSql; + String sql; + QueryResult query; + DataV dataV; + Date date = DateUtil.parse(algorithmSearchParam.getDatadate()); + String lineId = algorithmSearchParam.getId(); + + //入库数据初始化 + RStatAbnormalD rStatAbnormalD = new RStatAbnormalD(); + rStatAbnormalD.setDataDate(date); + rStatAbnormalD.setMeasurementPointId(lineId); + rStatAbnormalD.setValueAlarm(0); + + //1、取出规则 + List pmsAbnormalRules = pmsAbnormalRulesMapper.selectList(null); + + //2、取出电压 + List lineIds = new ArrayList<>(); + lineIds.add(lineId); + List lineDetailList = lineFeignClient.getLineDetailList(lineIds).getData(); + if (lineDetailList.size() == 0){ + throw new BusinessException(HarmonicResponseEnum.ALGORITHM_LINE_EMPTY); + } + String scale = lineDetailList.get(0).getScale().replace("kV",""); + + //3、根据规则表进行判断 + //取前四项进行比较(相别为A) + searchSql = "MAX(freq) as freq_max,MIN(freq) as freq_min,MAX(rms) as rms_max,MIN(rms) as rms_min,MAX(rms_lvr) as rms_lvr_max,MIN(rms_lvr) as rms_lvr_min,MAX(v_thd) as v_thd_max,MIN(v_thd) as v_thd_min "; + sql = getAppend(lineId, date, searchSql, "A"); + query = influxDbUtils.query(sql); + dataV = resultMapper.toPOJO(query, DataV.class).get(0); + + //开始判断业务 + HarmonicResponseEnum harmonicResponseEnum = null; + for (PmsAbnormalRules pmsAbnormalRule : pmsAbnormalRules) { + //每项数据进行上下限比较(MAX和MIN),若有一项不在数据范围内,则为异常 + switch (pmsAbnormalRule.getTarget()) { + case Param.TARGET_FREQ: + //频率:正常比较 + if (dataV.getFrepMIN() < pmsAbnormalRule.getLowerLimit() || dataV.getFrepMAX() > pmsAbnormalRule.getUpperLimit()){ + harmonicResponseEnum = HarmonicResponseEnum.ALGORITHM_FREP_RULE; + } + break; + case Param.TARGET_RMS: + //相电压有效值特殊处理:在【0.85p.u.,1.2p.u.】之间;p.u=电压等级/1.732 + pmsAbnormalRule.setLowerLimit((pmsAbnormalRule.getLowerLimit() * (Double.parseDouble(scale) / 1.732))); + pmsAbnormalRule.setUpperLimit((pmsAbnormalRule.getUpperLimit() * (Double.parseDouble(scale) / 1.732))); + if (dataV.getRmsMIN() < pmsAbnormalRule.getLowerLimit() || dataV.getRmsMAX() > pmsAbnormalRule.getUpperLimit()){ + harmonicResponseEnum = HarmonicResponseEnum.ALGORITHM_RMS_RULE; + } + break; + case Param.TARGET_RMS_LVR: + //线电压有效值特殊处理:在【0.85p.u.,1.2p.u.】之间;p.u=电压等级 + pmsAbnormalRule.setLowerLimit((pmsAbnormalRule.getLowerLimit() * Double.parseDouble(scale))); + pmsAbnormalRule.setUpperLimit((pmsAbnormalRule.getUpperLimit() * Double.parseDouble(scale))); + if (dataV.getRmsLvrMIN() < pmsAbnormalRule.getLowerLimit() || dataV.getRmsLvrMAX() > pmsAbnormalRule.getUpperLimit()){ + harmonicResponseEnum = HarmonicResponseEnum.ALGORITHM_RMS_LVR_RULE; + } + break; + case Param.TARGET_V_THD: + //电压总谐波畸变率:正常比较 + if (dataV.getVThdMIN() < pmsAbnormalRule.getLowerLimit() || dataV.getVThdMAX() > pmsAbnormalRule.getUpperLimit()){ + harmonicResponseEnum = HarmonicResponseEnum.ALGORITHM_V_THD_RULE; + } + break; + case Param.TARGET_V_UNBALANCE: + //三相不平衡度:正常比较(相别为T) + searchSql = "MAX(v_unbalance) as v_unbalance_max,MIN(v_unbalance) as v_unbalance_min "; + sql = getAppend(lineId, date, searchSql, "T"); + query = influxDbUtils.query(sql); + dataV = resultMapper.toPOJO(query, DataV.class).get(0); + if (dataV.getVUnbalanceMIN() < pmsAbnormalRule.getLowerLimit() || dataV.getVUnbalanceMAX() > pmsAbnormalRule.getUpperLimit()){ + harmonicResponseEnum = HarmonicResponseEnum.ALGORITHM_V_UNBALANCE_RULE; + } + break; + default: + break; + } + + if (harmonicResponseEnum != null){ + //入库 + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); + lambdaQueryWrapper.eq(RStatAbnormalD::getMeasurementPointId, lineId).eq(RStatAbnormalD::getDataDate, date); + RStatAbnormalD rStatAbnormalDOne = rStatAbnormalDMapper.selectOne(lambdaQueryWrapper); + if (Objects.isNull(rStatAbnormalDOne)){ + rStatAbnormalDMapper.insert(rStatAbnormalD); + } + throw new BusinessException(harmonicResponseEnum); + } + + } + return true; + } + + /** + * 拼装sql + * @param id,date,searchSql,tableName 参数 + * @return 结果 + */ + private String getAppend(String id, Date date, String searchSql,String type) { + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append(InfluxDBSqlConstant.SELECT).append(searchSql) + .append(InfluxDBSqlConstant.FROM).append(InfluxDBPublicParam.DATA_V) + .append(InfluxDBSqlConstant.WHERE).append(InfluxDBPublicParam.TIME).append(InfluxDBSqlConstant.GE).append(InfluxDBSqlConstant.QM).append(DateUtil.beginOfDay(date)).append(InfluxDBSqlConstant.QM) + .append(InfluxDBSqlConstant.AND).append(InfluxDBPublicParam.TIME).append(InfluxDBSqlConstant.LE).append(InfluxDBSqlConstant.QM).append(DateUtil.endOfDay(date)).append(InfluxDBSqlConstant.QM) + .append(InfluxDBSqlConstant.AND).append(InfluxDBPublicParam.LINE_ID).append(InfluxDBSqlConstant.EQ).append(InfluxDBSqlConstant.QM).append(id).append(InfluxDBSqlConstant.QM) + .append(InfluxDBSqlConstant.AND).append(InfluxDBPublicParam.VALUE_TYPE).append(InfluxDBSqlConstant.EQ).append(InfluxDBSqlConstant.QM).append(InfluxDBTableConstant.AVG).append(InfluxDBSqlConstant.QM); + if (InfluxDBTableConstant.PHASE_TYPE_T.equals(type)){ + stringBuilder.append(InfluxDBSqlConstant.AND).append(InfluxDBPublicParam.PHASIC_TYPE).append(InfluxDBSqlConstant.EQ).append(InfluxDBSqlConstant.QM).append(InfluxDBTableConstant.PHASE_TYPE_T).append(InfluxDBSqlConstant.QM); + }else{ + stringBuilder.append(InfluxDBSqlConstant.AND).append(InfluxDBPublicParam.PHASIC_TYPE).append(InfluxDBSqlConstant.EQ).append(InfluxDBSqlConstant.QM).append(InfluxDBTableConstant.PHASE_TYPE_A).append(InfluxDBSqlConstant.QM); + } + return stringBuilder.toString(); + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/DataIntegrityRateServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/DataIntegrityRateServiceImpl.java new file mode 100644 index 000000000..8a7cdfa40 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/DataIntegrityRateServiceImpl.java @@ -0,0 +1,192 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.date.DateUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.njcn.common.pojo.exception.BusinessException; +import com.njcn.device.pq.api.LineFeignClient; +import com.njcn.device.pq.pojo.vo.LineDetailDataVO; +import com.njcn.harmonic.enums.HarmonicResponseEnum; +import com.njcn.harmonic.mapper.RMpIntegrityDMapper; +import com.njcn.harmonic.pojo.param.AlgorithmSearchParam; +import com.njcn.harmonic.pojo.po.RMpIntegrityD; +import com.njcn.harmonic.service.DataIntegrityRateService; +import com.njcn.influxdb.config.InfluxDbConfig; +import com.njcn.influxdb.param.InfluxDBPublicParam; +import com.njcn.influxdb.param.InfluxDBSqlConstant; +import com.njcn.influxdb.param.InfluxDBTableConstant; +import com.njcn.influxdb.utils.InfluxDbUtils; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.influxdb.dto.QueryResult; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.text.DecimalFormat; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.Objects; + +/** + * 数据完整率算法 + * + * @author qijian + * @version 1.0.0 + * @createTime 2022/10/26 - 10:09 + */ +@Service +@RequiredArgsConstructor +@Slf4j +public class DataIntegrityRateServiceImpl implements DataIntegrityRateService { + + private final InfluxDbUtils influxDbUtils; + + private final RMpIntegrityDMapper rMpIntegrityDMapper; + + private final LineFeignClient lineFeignClient; + + @Resource + private InfluxDbConfig influxDbConfig; + + /** + * 监测点日数据完整率 + * @author qijian + * @date 2022/10/26 + */ + @Override + public boolean lineDataIntegrityRate(AlgorithmSearchParam algorithmSearchParam) { + //测试 +// InfluxDbUtils influxDBUtil = new InfluxDbUtils("admin", "njcnpqs", "http://192.168.1.18:8086", "pqsbase", ""); + //初始化 + String searchSql; + String tableName; + String sql; + QueryResult query; + QueryResult.Series series; + List columns; + List> values; + RMpIntegrityD rMpIntegrityD = new RMpIntegrityD(); + Date date = DateUtil.parse(algorithmSearchParam.getDatadate()); + + //1、有效接入分钟数量:根据监测点编号获取统计间隔,1440 / 统计间隔 = 有效接入分钟数量 + List lineIds = new ArrayList<>(); + lineIds.add(algorithmSearchParam.getId()); + List lineDetailList = lineFeignClient.getLineDetailList(lineIds).getData(); + if (lineDetailList.size() == 0){ + throw new BusinessException(HarmonicResponseEnum.ALGORITHM_LINE_EMPTY); + } + Integer effectiveMinuteCount = 1440 / lineDetailList.get(0).getTimeInterval(); + rMpIntegrityD.setEffectiveMinuteCount(effectiveMinuteCount); + + //2、根据data_v表获取五项稳态指标日数量(count) + searchSql = "count(freq) as freqCount,count(rms) as phaseVoltageCount,count(rms_lvr) as lineVoltageCount,count(v_thd) as vThdCount,count(v_unbalance) as unbalanceCount "; + tableName = InfluxDBPublicParam.DATA_V; + sql = getAppend(algorithmSearchParam.getId(), date, searchSql, tableName); + query = influxDbUtils.query(sql); + series = getSeries(query); + + if (Objects.nonNull(series.getColumns())){ + columns = series.getColumns(); + values = series.getValues(); + for (List columnValue : values) { + for (int i = 0; i < columnValue.size(); i++) { + if (columns.get(i).equals("freqCount")) { + rMpIntegrityD.setFreqCount(Integer.parseInt(convertDoubleToString(columnValue.get(i)))); + }else if (columns.get(i).equals("phaseVoltageCount")) { + rMpIntegrityD.setPhaseVoltageCount(Integer.parseInt(convertDoubleToString(columnValue.get(i)))); + }else if (columns.get(i).equals("lineVoltageCount")) { + rMpIntegrityD.setLineVoltageCount(Integer.parseInt(convertDoubleToString(columnValue.get(i)))); + }else if (columns.get(i).equals("vThdCount")) { + rMpIntegrityD.setVThdCount(Integer.parseInt(convertDoubleToString(columnValue.get(i)))); + }else if (columns.get(i).equals("unbalanceCount")) { + rMpIntegrityD.setUnbalanceCount(Integer.parseInt(convertDoubleToString(columnValue.get(i)))); + } + } + } + } + + //3、根据day_flicker表获取两项闪变指标数量(count) + searchSql = "count(pst) as pstCount,count(plt) as pltCount "; + tableName = InfluxDBPublicParam.DATA_FLICKER; + sql = getAppend(algorithmSearchParam.getId(), date, searchSql, tableName); + query = influxDbUtils.query(sql); + series = getSeries(query); + + if (Objects.nonNull(series.getColumns())){ + columns = series.getColumns(); + values = series.getValues(); + for (List columnValue : values) { + for (int i = 0; i < columnValue.size(); i++) { + if (columns.get(i).equals("pstCount")) { + rMpIntegrityD.setPstCount(Integer.parseInt(convertDoubleToString(columnValue.get(i)))); + }else if (columns.get(i).equals("pltCount")) { + rMpIntegrityD.setPltCount(Integer.parseInt(convertDoubleToString(columnValue.get(i)))); + } + } + } + } + + //4、存库 + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); + lambdaQueryWrapper.eq(RMpIntegrityD::getMeasurementPointId, algorithmSearchParam.getId()).eq(RMpIntegrityD::getDataDate, date); + RMpIntegrityD rMpIntegrityDOne = rMpIntegrityDMapper.selectOne(lambdaQueryWrapper); + if (Objects.nonNull(rMpIntegrityDOne)){ + rMpIntegrityDMapper.update(rMpIntegrityD,lambdaQueryWrapper); + }else{ + rMpIntegrityD.setMeasurementPointId(algorithmSearchParam.getId()); + rMpIntegrityD.setDataDate(date); + rMpIntegrityDMapper.insert(rMpIntegrityD); + } + + return true; + } + + /** + * Double转String + * @param val 参数 + * @return 结果 + */ + private String convertDoubleToString(Object val) { + DecimalFormat decimalFormat = new DecimalFormat("###################.###########"); + return decimalFormat.format(val); + } + + /** + * 取series + * @param query 参数 + * @return 结果 + */ + private QueryResult.Series getSeries(QueryResult query) { + QueryResult.Series series = new QueryResult.Series(); + List results = query.getResults(); + if (results.size() != 0) { + QueryResult.Result result = results.get(0); + if (result.getSeries() != null){ + List seriess = result.getSeries(); + if (seriess.size() != 0) { + series = seriess.get(0); + } + } + } + return series; + } + + /** + * 拼装sql + * @param id,date,searchSql,tableName 参数 + * @return 结果 + */ + private String getAppend(String id, Date date, String searchSql,String tableName) { + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append(InfluxDBSqlConstant.SELECT).append(searchSql) + .append(InfluxDBSqlConstant.FROM).append(tableName) + .append(InfluxDBSqlConstant.WHERE).append(InfluxDBPublicParam.TIME).append(InfluxDBSqlConstant.GE).append(InfluxDBSqlConstant.QM).append(DateUtil.beginOfDay(date)).append(InfluxDBSqlConstant.QM) + .append(InfluxDBSqlConstant.AND).append(InfluxDBPublicParam.TIME).append(InfluxDBSqlConstant.LE).append(InfluxDBSqlConstant.QM).append(DateUtil.endOfDay(date)).append(InfluxDBSqlConstant.QM) + .append(InfluxDBSqlConstant.AND).append(InfluxDBPublicParam.LINE_ID).append(InfluxDBSqlConstant.EQ).append(InfluxDBSqlConstant.QM).append(id).append(InfluxDBSqlConstant.QM) + .append(InfluxDBSqlConstant.AND).append(InfluxDBPublicParam.PHASIC_TYPE).append(InfluxDBSqlConstant.EQ).append(InfluxDBSqlConstant.QM).append(InfluxDBTableConstant.PHASE_TYPE_A).append(InfluxDBSqlConstant.QM); + if (InfluxDBPublicParam.DATA_V.equals(tableName)){ + stringBuilder.append(InfluxDBSqlConstant.AND).append(InfluxDBPublicParam.VALUE_TYPE).append(InfluxDBSqlConstant.EQ).append(InfluxDBSqlConstant.QM).append(InfluxDBTableConstant.AVG).append(InfluxDBSqlConstant.QM); + } + return stringBuilder.toString(); + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/HistoryResultServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/HistoryResultServiceImpl.java index dd986bac1..990dcc241 100644 --- a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/HistoryResultServiceImpl.java +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/HistoryResultServiceImpl.java @@ -78,7 +78,7 @@ public class HistoryResultServiceImpl implements HistoryResultService { List eventDetailVOList = new ArrayList<>(); if (!eventDetailList.isEmpty()) { for (EventDetail eventdetail : eventDetailList) { - Instant now = eventdetail.getTimeId(); + Instant now = eventdetail.getTimeId().plusMillis(TimeUnit.HOURS.toMillis(8)); Long time = now.toEpochMilli(); String timeText = format.format(time); EventDetailVO eventDetailVO = new EventDetailVO(); diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/PollutionSubstationServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/PollutionSubstationServiceImpl.java index abed34803..a4ace95cb 100644 --- a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/PollutionSubstationServiceImpl.java +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/PollutionSubstationServiceImpl.java @@ -3,6 +3,8 @@ package com.njcn.harmonic.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.njcn.common.config.GeneralInfo; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.exception.BusinessException; import com.njcn.device.pq.api.GeneralDeviceInfoClient; import com.njcn.device.pq.api.LineFeignClient; import com.njcn.device.pq.api.SubstationFeignClient; @@ -19,11 +21,13 @@ import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; +import org.springframework.util.CollectionUtils; import java.util.*; import java.util.stream.Collectors; /** + * * Description: * 接口文档访问地址:http://serverIP:port/swagger-ui.html * Date: 2022/10/13 8:56【需求编号】 @@ -59,58 +63,62 @@ public class PollutionSubstationServiceImpl extends ServiceImpl getPollutionSubstationData(PollutionSubstationQuryParam pollutionSubstationQuryParam) { - List pollutionSubstationVOList = new ArrayList<>(); + List pollutionSubstationVOList = new ArrayList<> (); /*根据部门获取变电站详情*/ HarmonicPublicParam harmonicPublicParam = new HarmonicPublicParam(); - BeanUtils.copyProperties(pollutionSubstationQuryParam, harmonicPublicParam); + BeanUtils.copyProperties (pollutionSubstationQuryParam, harmonicPublicParam); harmonicPublicParam.setServerName(generalInfo.getMicroServiceName()); List pollutionSubstationDTOList = new ArrayList<>(); List sub = generalDeviceInfoClient.getPracticalRunDeviceInfoAsSubstation(harmonicPublicParam).getData(); - - sub.forEach(item -> { + + sub.forEach(item->{ PollutionSubstationDTO pollutionSubstationDTO = lineFeignClient.getSubstationInfo(item.getIndex()).getData(); pollutionSubstationDTOList.add(pollutionSubstationDTO); }); - List collect = pollutionSubstationDTOList.stream().map(PollutionSubstationDTO::getId).collect(Collectors.toList()); - List locationData = substationFeignClient.getSubstationById(collect).getData(); + List collect = pollutionSubstationDTOList.stream ( ).map (PollutionSubstationDTO::getId).collect (Collectors.toList ( )); + List locationData = substationFeignClient.getSubstationById (collect).getData ( ); /*todo 后期可以把locationData存入redis*/ /*把所有的变电站的污染指数查出来*/ - QueryWrapper wrapper = new QueryWrapper<>(); - wrapper.in("substation_id", collect). - eq("pollution_type", pollutionSubstationQuryParam.getPollutionStatis().getId()). - apply("DATE_FORMAT( data_date ,'%Y-%m') = '" + pollutionSubstationQuryParam.getLocalDate() + "'"); - List rStatPollutionSubstationMList = pollutionSubstationMMapper.selectList(wrapper); + QueryWrapper wrapper = new QueryWrapper<> (); + wrapper.in ("substation_id",collect). + eq ("pollution_type", pollutionSubstationQuryParam.getPollutionStatis ().getId ()). + apply("DATE_FORMAT( data_date ,'%Y-%m') = '"+pollutionSubstationQuryParam.getLocalDate ()+"'"); + List rStatPollutionSubstationMList = pollutionSubstationMMapper.selectList (wrapper); - pollutionSubstationDTOList.forEach(substationInfo -> { + pollutionSubstationDTOList.forEach (substationInfo ->{ - PollutionSubstationVO pollutionSubstationVO = new PollutionSubstationVO(); - pollutionSubstationVO.setSubstationId(substationInfo.getId()); - pollutionSubstationVO.setSubstationName(substationInfo.getName()); + PollutionSubstationVO pollutionSubstationVO =new PollutionSubstationVO (); + pollutionSubstationVO.setSubstationId (substationInfo.getId ()); + pollutionSubstationVO.setSubstationName (substationInfo.getName ()); /*todo 添加经纬度接口返回数据暂时没有*/ - SubstationDTO substationDTO = locationData - .stream() - .filter(temp -> Objects.equals(substationInfo.getId(), temp.getId())) - .collect(Collectors.toList()) - .get(0); + List substationDTOList = locationData.stream ( ) + .filter (temp -> Objects.equals (substationInfo.getId ( ), temp.getId ( ))) + .collect (Collectors.toList ( )); - pollutionSubstationVO.setLatitude(substationDTO.getLat()); - pollutionSubstationVO.setLongitude(substationDTO.getLng()); + SubstationDTO substationDTO = new SubstationDTO (); + if(CollectionUtils.isEmpty (substationDTOList)){ + throw new BusinessException (CommonResponseEnum.INTERNAL_ERROR); + }else{ + substationDTO = substationDTOList.get (0); + } + pollutionSubstationVO.setLatitude (substationDTO.getLat ()); + pollutionSubstationVO.setLongitude (substationDTO.getLng ()); - Double value = Optional.ofNullable( - rStatPollutionSubstationMList - .stream() - .filter(temp -> Objects.equals(substationInfo.getId(), temp.getSubstationId())) - .collect(Collectors.toList()) - .get(0) - .getValue() - ).orElse(new Double("0.00")); - pollutionSubstationVO.setPollutionData(value); - pollutionSubstationVO.setPollutionStatis(pollutionSubstationQuryParam.getStatisticalType().getName()); - pollutionSubstationVOList.add(pollutionSubstationVO); + List rStatPollutionSubstationMS = rStatPollutionSubstationMList.stream ( ). + filter (temp -> Objects.equals (substationInfo.getId ( ), temp.getSubstationId ( ))) + .collect (Collectors.toList ( )); + + Double value = 3.14159; + if(!CollectionUtils.isEmpty (rStatPollutionSubstationMS)){ + value = rStatPollutionSubstationMS.get (0).getValue (); + } + pollutionSubstationVO.setPollutionData (value); + pollutionSubstationVO.setPollutionStatis ( pollutionSubstationQuryParam.getStatisticalType ().getName ()); + pollutionSubstationVOList.add (pollutionSubstationVO); }); - List result = pollutionSubstationVOList.stream().sorted(Comparator.comparing(PollutionSubstationVO::getPollutionData).reversed()).collect(Collectors.toList()); + List result = pollutionSubstationVOList.stream ( ).sorted (Comparator.comparing (PollutionSubstationVO::getPollutionData).reversed ( )).collect (Collectors.toList ( )); return result; } diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpBenchmarkLevelMServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpBenchmarkLevelMServiceImpl.java new file mode 100644 index 000000000..bbee3dd02 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpBenchmarkLevelMServiceImpl.java @@ -0,0 +1,129 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.collection.CollUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.common.pojo.dto.SimpleDTO; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.exception.BusinessException; +import com.njcn.device.pms.api.MonitorClient; +import com.njcn.device.pms.api.PmsGeneralDeviceInfoClient; +import com.njcn.device.pms.pojo.dto.PmsGeneralDeviceDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorInfoDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.pojo.param.PmsMonitorInfoParam; +import com.njcn.harmonic.mapper.RMpBenchmarkLevelMMapper; +import com.njcn.harmonic.pojo.param.RMpBenchmarkLevelParam; +import com.njcn.harmonic.pojo.po.RMpBenchmarkLevelM; +import com.njcn.harmonic.pojo.vo.RMpBenchmarkLevelVO; +import com.njcn.harmonic.service.RMpBenchmarkLevelMService; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import lombok.RequiredArgsConstructor; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** +* @author jianghf +* @description 针对表【r_mp_benchmark_level_m】的数据库操作Service实现 +* @createDate 2022-10-11 10:32:18 +*/ +@Service +@RequiredArgsConstructor +public class RMpBenchmarkLevelMServiceImpl extends ServiceImpl +implements RMpBenchmarkLevelMService { + + private final DicDataFeignClient dicDataFeignClient; + + private final PmsGeneralDeviceInfoClient pmsGeneralDeviceInfoClient; + + private final MonitorClient monitorClient; + + @Override + public List getRMpBenchmarkLevelList(RMpBenchmarkLevelParam rMpBenchmarkLevelParam) { + //提取查询条件 + String id = rMpBenchmarkLevelParam.getId(); //单位id + if (StringUtils.isBlank(id)) { + throw new BusinessException(CommonResponseEnum.NO_DATA, "单位id不可为空"); + } + String startTime = rMpBenchmarkLevelParam.getStartTime(); //开始时间 + String endTime = rMpBenchmarkLevelParam.getEndTime(); //截止时间 + String benchmarkIndicator = rMpBenchmarkLevelParam.getBenchmarkIndicator(); //评价指标 + List voltageLevelParamList = StringUtils.isNotBlank(rMpBenchmarkLevelParam.getVoltageLevel()) ? Arrays.asList(rMpBenchmarkLevelParam.getVoltageLevel().split(",")) : null; //电压等级 + + //获取电压等级的字典 + List voltageLevelList = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.DEV_VOLTAGE.getCode()).getData(); + //将电压信息转成map,key:id value:name + Map voltageLevelMap = voltageLevelList.stream().collect(Collectors.toMap(DictData::getId, DictData::getName)); + //获取基准水平评价指标字典 + List benchmarkIndicatorList = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.BENCHMARK_INDICATORS.getCode()).getData(); + //将基准水平评价指标信息转成map,key:id value:name + Map benchmarkIndicatorMap = benchmarkIndicatorList.stream().collect(Collectors.toMap(DictData::getId, DictData::getName)); + + //查询所有子单位下的所有监测点 + PmsDeviceInfoParam pmsDeviceInfoParam = new PmsDeviceInfoParam(id); + pmsDeviceInfoParam.setStatisticalType(new SimpleDTO()); + if (CollUtil.isNotEmpty(voltageLevelParamList)) { + //查询条件:电压等级(筛选电压等级为voltageLevel的监测点) + List simpleDTOList = voltageLevelParamList.stream().map(item -> { + SimpleDTO simpleDTO = new SimpleDTO(); + simpleDTO.setId(item); + return simpleDTO; + }).collect(Collectors.toList()); + pmsDeviceInfoParam.setVoltageLevel(simpleDTOList); + } + //获取到该部门的所有子部门的监测点idList + List pmsDeviceInfoWithInOrg = pmsGeneralDeviceInfoClient.getPmsDeviceInfoWithInOrg(pmsDeviceInfoParam).getData(); + //过滤出业务需要的监测点id集合 + List firstMonitorIdList = new ArrayList<>(); //只用于合并多个部门的监测点id + pmsDeviceInfoWithInOrg.forEach(item -> firstMonitorIdList.addAll(item.getMonitorIdList())); + List lastMonitorIdList = firstMonitorIdList.stream().distinct().collect(Collectors.toList()); //最终的监测点id集合 + //如果没有监测点id信息,直接返回空集合 + if (CollUtil.isEmpty(lastMonitorIdList)) { + return new ArrayList<>(); + } + //查询对应的监测点完整信息 并转为key:监测点id value:监测点实体的map集合 +// LambdaQueryWrapper monitorWrapper = new LambdaQueryWrapper<>(); +// monitorWrapper.in(Monitor::getId, lastMonitorIdList); + PmsMonitorInfoParam pmsMonitorInfoParam = new PmsMonitorInfoParam(); + pmsMonitorInfoParam.setMonitorIds(lastMonitorIdList); + Map monitorMap = monitorClient.getMonitorInfo(pmsMonitorInfoParam).getData().stream().collect(Collectors.toMap(PmsMonitorInfoDTO::getMonitorId, monitor -> monitor)); + //查询【基准水平-月】数据 + /*组装条件:where measurement_point_id in (monitorIdList) and data_date >= startTime + and data_date <= endTime and voltage_level + */ + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); + lambdaQueryWrapper.in(CollUtil.isNotEmpty(lastMonitorIdList), RMpBenchmarkLevelM::getMeasurementPointId, lastMonitorIdList) + .ge(StringUtils.isNotBlank(startTime), RMpBenchmarkLevelM::getDataDate, startTime) + .le(StringUtils.isNotBlank(endTime), RMpBenchmarkLevelM::getDataDate, endTime); + List list = this.list(lambdaQueryWrapper); + List resultList = list.stream().map(item -> { + //封装前端需要的对象 + RMpBenchmarkLevelVO rMpBenchmarkLevelVO = new RMpBenchmarkLevelVO(); + BeanUtils.copyProperties(item, rMpBenchmarkLevelVO); + PmsGeneralDeviceDTO pmsGeneralDeviceDTO = pmsDeviceInfoWithInOrg.stream().filter(dto -> dto.getMonitorIdList().contains(item.getMeasurementPointId())) + .collect(Collectors.toList()).get(0); + //单位信息 + rMpBenchmarkLevelVO.setOrgNo(pmsGeneralDeviceDTO.getIndex()); //单位id + rMpBenchmarkLevelVO.setOrgName(pmsGeneralDeviceDTO.getName()); //单位名称 + //基准水平评价指标 + rMpBenchmarkLevelVO.setBenchmarkIndicator(benchmarkIndicator); //基准水平评价指标id + rMpBenchmarkLevelVO.setBenchmarkIndicatorName(benchmarkIndicatorMap.get(benchmarkIndicator)); //基准水平评价指标 + //监测点信息 + rMpBenchmarkLevelVO.setMeasurementPointName(monitorMap.get(item.getMeasurementPointId()).getMonitorName()); //监测点名称 + //电压等级 + rMpBenchmarkLevelVO.setVoltageLevel(monitorMap.get(item.getMeasurementPointId()).getMonitorVoltageLevel()); + rMpBenchmarkLevelVO.setVoltageLevelName(voltageLevelMap.get(monitorMap.get(item.getMeasurementPointId()).getMonitorVoltageLevel())); + return rMpBenchmarkLevelVO; + }).collect(Collectors.toList()); + return resultList; + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpBenchmarkLevelQServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpBenchmarkLevelQServiceImpl.java new file mode 100644 index 000000000..b47c36f71 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpBenchmarkLevelQServiceImpl.java @@ -0,0 +1,129 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.collection.CollUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.common.pojo.dto.SimpleDTO; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.exception.BusinessException; +import com.njcn.device.pms.api.MonitorClient; +import com.njcn.device.pms.api.PmsGeneralDeviceInfoClient; +import com.njcn.device.pms.pojo.dto.PmsGeneralDeviceDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorInfoDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.pojo.param.PmsMonitorInfoParam; +import com.njcn.harmonic.mapper.RMpBenchmarkLevelQMapper; +import com.njcn.harmonic.pojo.param.RMpBenchmarkLevelParam; +import com.njcn.harmonic.pojo.po.RMpBenchmarkLevelQ; +import com.njcn.harmonic.pojo.vo.RMpBenchmarkLevelVO; +import com.njcn.harmonic.service.RMpBenchmarkLevelQService; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import lombok.RequiredArgsConstructor; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** +* @author jianghf +* @description 针对表【r_mp_benchmark_level_q】的数据库操作Service实现 +* @createDate 2022-10-11 10:32:18 +*/ +@Service +@RequiredArgsConstructor +public class RMpBenchmarkLevelQServiceImpl extends ServiceImpl +implements RMpBenchmarkLevelQService { + + private final DicDataFeignClient dicDataFeignClient; + + private final PmsGeneralDeviceInfoClient pmsGeneralDeviceInfoClient; + + private final MonitorClient monitorClient; + + @Override + public List getRMpBenchmarkLevelList(RMpBenchmarkLevelParam rMpBenchmarkLevelParam) { + //提取查询条件 + String id = rMpBenchmarkLevelParam.getId(); //单位id + if (StringUtils.isBlank(id)) { + throw new BusinessException(CommonResponseEnum.NO_DATA, "单位id不可为空"); + } + String startTime = rMpBenchmarkLevelParam.getStartTime(); //开始时间 + String endTime = rMpBenchmarkLevelParam.getEndTime(); //截止时间 + String benchmarkIndicator = rMpBenchmarkLevelParam.getBenchmarkIndicator(); //评价指标 + List voltageLevelParamList = StringUtils.isNotBlank(rMpBenchmarkLevelParam.getVoltageLevel()) ? Arrays.asList(rMpBenchmarkLevelParam.getVoltageLevel().split(",")) : null; //电压等级 + + //获取电压等级的字典 + List voltageLevelList = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.DEV_VOLTAGE.getCode()).getData(); + //将电压信息转成map,key:id value:name + Map voltageLevelMap = voltageLevelList.stream().collect(Collectors.toMap(DictData::getId, DictData::getName)); + //获取基准水平评价指标字典 + List benchmarkIndicatorList = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.BENCHMARK_INDICATORS.getCode()).getData(); + //将基准水平评价指标信息转成map,key:id value:name + Map benchmarkIndicatorMap = benchmarkIndicatorList.stream().collect(Collectors.toMap(DictData::getId, DictData::getName)); + + //查询所有子单位下的所有监测点 + PmsDeviceInfoParam pmsDeviceInfoParam = new PmsDeviceInfoParam(id); + pmsDeviceInfoParam.setStatisticalType(new SimpleDTO()); + if (CollUtil.isNotEmpty(voltageLevelParamList)) { + //查询条件:电压等级(筛选电压等级为voltageLevel的监测点) + List simpleDTOList = voltageLevelParamList.stream().map(item -> { + SimpleDTO simpleDTO = new SimpleDTO(); + simpleDTO.setId(item); + return simpleDTO; + }).collect(Collectors.toList()); + pmsDeviceInfoParam.setVoltageLevel(simpleDTOList); + } + //获取到该部门的所有子部门的监测点idList + List pmsDeviceInfoWithInOrg = pmsGeneralDeviceInfoClient.getPmsDeviceInfoWithInOrg(pmsDeviceInfoParam).getData(); + //过滤出业务需要的监测点id集合 + List firstMonitorIdList = new ArrayList<>(); //只用于合并多个部门的监测点id + pmsDeviceInfoWithInOrg.forEach(item -> firstMonitorIdList.addAll(item.getMonitorIdList())); + List lastMonitorIdList = firstMonitorIdList.stream().distinct().collect(Collectors.toList()); //最终的监测点id集合 + //如果没有监测点id信息,直接返回空集合 + if (CollUtil.isEmpty(lastMonitorIdList)) { + return new ArrayList<>(); + } + //查询对应的监测点完整信息 并转为key:监测点id value:监测点实体的map集合 +// LambdaQueryWrapper monitorWrapper = new LambdaQueryWrapper<>(); +// monitorWrapper.in(Monitor::getId, lastMonitorIdList); + PmsMonitorInfoParam pmsMonitorInfoParam = new PmsMonitorInfoParam(); + pmsMonitorInfoParam.setMonitorIds(lastMonitorIdList); + Map monitorMap = monitorClient.getMonitorInfo(pmsMonitorInfoParam).getData().stream().collect(Collectors.toMap(PmsMonitorInfoDTO::getMonitorId, monitor -> monitor)); + //查询【基准水平-月】数据 + /*组装条件:where measurement_point_id in (monitorIdList) and data_date >= startTime + and data_date <= endTime and voltage_level + */ + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); + lambdaQueryWrapper.in(CollUtil.isNotEmpty(lastMonitorIdList), RMpBenchmarkLevelQ::getMeasurementPointId, lastMonitorIdList) + .ge(StringUtils.isNotBlank(startTime), RMpBenchmarkLevelQ::getDataDate, startTime) + .le(StringUtils.isNotBlank(endTime), RMpBenchmarkLevelQ::getDataDate, endTime); + List list = this.list(lambdaQueryWrapper); + List resultList = list.stream().map(item -> { + //封装前端需要的对象 + RMpBenchmarkLevelVO rMpBenchmarkLevelVO = new RMpBenchmarkLevelVO(); + BeanUtils.copyProperties(item, rMpBenchmarkLevelVO); + PmsGeneralDeviceDTO pmsGeneralDeviceDTO = pmsDeviceInfoWithInOrg.stream().filter(dto -> dto.getMonitorIdList().contains(item.getMeasurementPointId())) + .collect(Collectors.toList()).get(0); + //单位信息 + rMpBenchmarkLevelVO.setOrgNo(pmsGeneralDeviceDTO.getIndex()); //单位id + rMpBenchmarkLevelVO.setOrgName(pmsGeneralDeviceDTO.getName()); //单位名称 + //基准水平评价指标 + rMpBenchmarkLevelVO.setBenchmarkIndicator(benchmarkIndicator); //基准水平评价指标id + rMpBenchmarkLevelVO.setBenchmarkIndicatorName(benchmarkIndicatorMap.get(benchmarkIndicator)); //基准水平评价指标 + //监测点信息 + rMpBenchmarkLevelVO.setMeasurementPointName(monitorMap.get(item.getMeasurementPointId()).getMonitorName()); //监测点名称 + //电压等级 + rMpBenchmarkLevelVO.setVoltageLevel(monitorMap.get(item.getMeasurementPointId()).getMonitorVoltageLevel()); + rMpBenchmarkLevelVO.setVoltageLevelName(voltageLevelMap.get(monitorMap.get(item.getMeasurementPointId()).getMonitorVoltageLevel())); + return rMpBenchmarkLevelVO; + }).collect(Collectors.toList()); + return resultList; + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpBenchmarkLevelYServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpBenchmarkLevelYServiceImpl.java new file mode 100644 index 000000000..5e56ad239 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpBenchmarkLevelYServiceImpl.java @@ -0,0 +1,129 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.collection.CollUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.common.pojo.dto.SimpleDTO; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.exception.BusinessException; +import com.njcn.device.pms.api.MonitorClient; +import com.njcn.device.pms.api.PmsGeneralDeviceInfoClient; +import com.njcn.device.pms.pojo.dto.PmsGeneralDeviceDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorInfoDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.pojo.param.PmsMonitorInfoParam; +import com.njcn.harmonic.mapper.RMpBenchmarkLevelYMapper; +import com.njcn.harmonic.pojo.param.RMpBenchmarkLevelParam; +import com.njcn.harmonic.pojo.po.RMpBenchmarkLevelY; +import com.njcn.harmonic.pojo.vo.RMpBenchmarkLevelVO; +import com.njcn.harmonic.service.RMpBenchmarkLevelYService; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import lombok.RequiredArgsConstructor; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** +* @author jianghf +* @description 针对表【r_mp_benchmark_level_y】的数据库操作Service实现 +* @createDate 2022-10-11 10:32:18 +*/ +@Service +@RequiredArgsConstructor +public class RMpBenchmarkLevelYServiceImpl extends ServiceImpl +implements RMpBenchmarkLevelYService { + + private final DicDataFeignClient dicDataFeignClient; + + private final PmsGeneralDeviceInfoClient pmsGeneralDeviceInfoClient; + + private final MonitorClient monitorClient; + + @Override + public List getRMpBenchmarkLevelList(RMpBenchmarkLevelParam rMpBenchmarkLevelParam) { + //提取查询条件 + String id = rMpBenchmarkLevelParam.getId(); //单位id + if (StringUtils.isBlank(id)) { + throw new BusinessException(CommonResponseEnum.NO_DATA, "单位id不可为空"); + } + String startTime = rMpBenchmarkLevelParam.getStartTime(); //开始时间 + String endTime = rMpBenchmarkLevelParam.getEndTime(); //截止时间 + String benchmarkIndicator = rMpBenchmarkLevelParam.getBenchmarkIndicator(); //评价指标 + List voltageLevelParamList = StringUtils.isNotBlank(rMpBenchmarkLevelParam.getVoltageLevel()) ? Arrays.asList(rMpBenchmarkLevelParam.getVoltageLevel().split(",")) : null; //电压等级 + + //获取电压等级的字典 + List voltageLevelList = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.DEV_VOLTAGE.getCode()).getData(); + //将电压信息转成map,key:id value:name + Map voltageLevelMap = voltageLevelList.stream().collect(Collectors.toMap(DictData::getId, DictData::getName)); + //获取基准水平评价指标字典 + List benchmarkIndicatorList = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.BENCHMARK_INDICATORS.getCode()).getData(); + //将基准水平评价指标信息转成map,key:id value:name + Map benchmarkIndicatorMap = benchmarkIndicatorList.stream().collect(Collectors.toMap(DictData::getId, DictData::getName)); + + //查询所有子单位下的所有监测点 + PmsDeviceInfoParam pmsDeviceInfoParam = new PmsDeviceInfoParam(id); + pmsDeviceInfoParam.setStatisticalType(new SimpleDTO()); + if (CollUtil.isNotEmpty(voltageLevelParamList)) { + //查询条件:电压等级(筛选电压等级为voltageLevel的监测点) + List simpleDTOList = voltageLevelParamList.stream().map(item -> { + SimpleDTO simpleDTO = new SimpleDTO(); + simpleDTO.setId(item); + return simpleDTO; + }).collect(Collectors.toList()); + pmsDeviceInfoParam.setVoltageLevel(simpleDTOList); + } + //获取到该部门的所有子部门的监测点idList + List pmsDeviceInfoWithInOrg = pmsGeneralDeviceInfoClient.getPmsDeviceInfoWithInOrg(pmsDeviceInfoParam).getData(); + //过滤出业务需要的监测点id集合 + List firstMonitorIdList = new ArrayList<>(); //只用于合并多个部门的监测点id + pmsDeviceInfoWithInOrg.forEach(item -> firstMonitorIdList.addAll(item.getMonitorIdList())); + List lastMonitorIdList = firstMonitorIdList.stream().distinct().collect(Collectors.toList()); //最终的监测点id集合 + //如果没有监测点id信息,直接返回空集合 + if (CollUtil.isEmpty(lastMonitorIdList)) { + return new ArrayList<>(); + } + //查询对应的监测点完整信息 并转为key:监测点id value:监测点实体的map集合 +// LambdaQueryWrapper monitorWrapper = new LambdaQueryWrapper<>(); +// monitorWrapper.in(Monitor::getId, lastMonitorIdList); + PmsMonitorInfoParam pmsMonitorInfoParam = new PmsMonitorInfoParam(); + pmsMonitorInfoParam.setMonitorIds(lastMonitorIdList); + Map monitorMap = monitorClient.getMonitorInfo(pmsMonitorInfoParam).getData().stream().collect(Collectors.toMap(PmsMonitorInfoDTO::getMonitorId, monitor -> monitor)); + //查询【基准水平-月】数据 + /*组装条件:where measurement_point_id in (monitorIdList) and data_date >= startTime + and data_date <= endTime and voltage_level + */ + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); + lambdaQueryWrapper.in(CollUtil.isNotEmpty(lastMonitorIdList), RMpBenchmarkLevelY::getMeasurementPointId, lastMonitorIdList) + .ge(StringUtils.isNotBlank(startTime), RMpBenchmarkLevelY::getDataDate, startTime) + .le(StringUtils.isNotBlank(endTime), RMpBenchmarkLevelY::getDataDate, endTime); + List list = this.list(lambdaQueryWrapper); + List resultList = list.stream().map(item -> { + //封装前端需要的对象 + RMpBenchmarkLevelVO rMpBenchmarkLevelVO = new RMpBenchmarkLevelVO(); + BeanUtils.copyProperties(item, rMpBenchmarkLevelVO); + PmsGeneralDeviceDTO pmsGeneralDeviceDTO = pmsDeviceInfoWithInOrg.stream().filter(dto -> dto.getMonitorIdList().contains(item.getMeasurementPointId())) + .collect(Collectors.toList()).get(0); + //单位信息 + rMpBenchmarkLevelVO.setOrgNo(pmsGeneralDeviceDTO.getIndex()); //单位id + rMpBenchmarkLevelVO.setOrgName(pmsGeneralDeviceDTO.getName()); //单位名称 + //基准水平评价指标 + rMpBenchmarkLevelVO.setBenchmarkIndicator(benchmarkIndicator); //基准水平评价指标id + rMpBenchmarkLevelVO.setBenchmarkIndicatorName(benchmarkIndicatorMap.get(benchmarkIndicator)); //基准水平评价指标 + //监测点信息 + rMpBenchmarkLevelVO.setMeasurementPointName(monitorMap.get(item.getMeasurementPointId()).getMonitorName()); //监测点名称 + //电压等级 + rMpBenchmarkLevelVO.setVoltageLevel(monitorMap.get(item.getMeasurementPointId()).getMonitorVoltageLevel()); + rMpBenchmarkLevelVO.setVoltageLevelName(voltageLevelMap.get(monitorMap.get(item.getMeasurementPointId()).getMonitorVoltageLevel())); + return rMpBenchmarkLevelVO; + }).collect(Collectors.toList()); + return resultList; + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpHarmonicIMagReportDServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpHarmonicIMagReportDServiceImpl.java new file mode 100644 index 000000000..e2f7a7073 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpHarmonicIMagReportDServiceImpl.java @@ -0,0 +1,29 @@ +package com.njcn.harmonic.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.harmonic.pojo.po.RMpHarmonicIMagReportD; +import com.njcn.harmonic.service.RMpHarmonicIMagReportDService; +import com.njcn.harmonic.mapper.RMpHarmonicIMagReportDMapper; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_harmonic_i_mag_report_d(稳态监测点指标日报-日表(主配网表) /各次谐波电流有效值)】的数据库操作Service实现 +* @createDate 2022-10-20 18:38:15 +*/ +@Service +public class RMpHarmonicIMagReportDServiceImpl extends ServiceImpl + implements RMpHarmonicIMagReportDService{ + + @Override + public List getListByCond(Map condMap) { + return this.baseMapper.getListByCond(condMap); + } +} + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpHarmonicIRateReportDServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpHarmonicIRateReportDServiceImpl.java new file mode 100644 index 000000000..034e8706e --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpHarmonicIRateReportDServiceImpl.java @@ -0,0 +1,29 @@ +package com.njcn.harmonic.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.harmonic.pojo.po.RMpHarmonicIRateReportD; +import com.njcn.harmonic.service.RMpHarmonicIRateReportDService; +import com.njcn.harmonic.mapper.RMpHarmonicIRateReportDMapper; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_harmonic_i_rate_report_d(稳态监测点指标日报-日表(主网表) /各次谐波电流含有率)】的数据库操作Service实现 +* @createDate 2022-10-20 18:43:52 +*/ +@Service +public class RMpHarmonicIRateReportDServiceImpl extends ServiceImpl + implements RMpHarmonicIRateReportDService{ + + @Override + public List getListByCond(Map condMap) { + return this.baseMapper.getListByCond(condMap); + } +} + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpHarmonicReportDServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpHarmonicReportDServiceImpl.java new file mode 100644 index 000000000..d0ff5c0f5 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpHarmonicReportDServiceImpl.java @@ -0,0 +1,241 @@ +package com.njcn.harmonic.service.impl; + +import com.njcn.device.pms.api.MonitorClient; +import com.njcn.device.pms.api.StatationStatClient; +import com.njcn.device.pms.pojo.dto.PmsMonitorDTO; +import com.njcn.device.pms.pojo.dto.PmsStatationStatInfoDTO; +import com.njcn.device.pms.pojo.param.PmsMonitorParam; +import com.njcn.device.pms.pojo.param.PmsStatationStatInfoParam; +import com.njcn.device.pq.pojo.po.Overlimit; +import com.njcn.harmonic.pojo.param.RMpHarmonicReportDParam; +import com.njcn.harmonic.pojo.po.*; +import com.njcn.harmonic.pojo.vo.RMpHarmonicReportDVO; +import com.njcn.harmonic.service.*; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import lombok.RequiredArgsConstructor; +import org.apache.commons.lang.StringUtils; +import org.springframework.stereotype.Service; + +import java.util.*; +import java.util.stream.Collectors; + +/** + * @Title RMpHarmonicReportDServiceImpl + * @Package com.njcn.harmonic.service.impl + * @Author jianghaifei + * @Date 2022-10-20 19:19 + * @Version V1.0 + */ +@Service +@RequiredArgsConstructor +public class RMpHarmonicReportDServiceImpl implements RMpHarmonicReportDService { + + private final MonitorClient monitorClient; //监测点服务 + + private final DicDataFeignClient dicDataFeignClient; //字典服务 + + private final StatationStatClient statationStatClient; //变电站服务 + + private final RMpMeasureReportDService rMpMeasureReportDService; //【稳态监测点非谐波不带相位指标日报-日表(主配网表)】 + + private final RMpMeasurePhaseReportDService rMpMeasurePhaseReportDService; //【稳态监测点非谐波带相位指标日报-日表(主配网表)】 + + //r_mp_harmonic_v_rate_report_d + private final RMpHarmonicVRateReportDService rMpHarmonicVRateReportDService; //【稳态监测点指标日报-日表(主配网表) /各次谐波电压含有率】 + + //r_mp_harmonic_i_mag_report_d + private final RMpHarmonicIMagReportDService rMpHarmonicIMagReportDService; //【各相各次谐波电流有效值】 + + //r_mp_harmonic_i_rate_report_d + private final RMpHarmonicIRateReportDService rMpHarmonicIRateReportDService; //【各相各次谐波电流含有率】 + + //r_mp_inharmonic_v_rate_report_d + private final RMpInharmonicVRateReportDService rMpInharmonicVRateReportDService; //【各相各次间谐波电压含有率】 + + //r_mp_inharmonic_i_rate_report_d + private final RMpInharmonicIRateReportDService rMpInharmonicIRateReportDService; //【各相各次间谐波电流含有率】 + + @Override + public List getMonitorStatisticsD(RMpHarmonicReportDParam rMpHarmonicReportDParam) { +// +// Overlimit data = lineFeignClient.getOverLimitData("064b948a81090b80860483994f2a8e75").getData(); +// System.out.println(data); + //提取查询参数 +// String monitorName = rMpHarmonicReportDParam.getMonitorName(); //监测点名称 + String startTime = rMpHarmonicReportDParam.getStartTime(); + String endTime = rMpHarmonicReportDParam.getEndTime(); + String monitorId = rMpHarmonicReportDParam.getMonitorId(); //监测点id + List monitorIds = StringUtils.isNotBlank(monitorId) ? Arrays.asList(monitorId.split(",")) : null; + //获取所有的条件筛选后的监测点信息 + PmsMonitorParam pmsMonitorParam = new PmsMonitorParam(); +// pmsMonitorParam.setMonitorName(monitorName); //监测点名称(模糊查询) + pmsMonitorParam.setMonitorIds(monitorIds); //监测点id集合 + List monitors = monitorClient.getMonitorInfoListByCond(pmsMonitorParam).getData(); + + //提取出监测点的id集合 + List monitorIdList = monitors.stream().map(PmsMonitorDTO::getId).collect(Collectors.toList()); + //提取出变电站id集合 + List stationIdList = monitors.stream().map(PmsMonitorDTO::getPowerrId).collect(Collectors.toList()); + PmsStatationStatInfoParam stationParam = new PmsStatationStatInfoParam(); + stationParam.setPowerIds(stationIdList); + List stationList = statationStatClient.getStatationStatInfo(stationParam).getData(); + Map stationMap = stationList.stream().collect(Collectors.toMap(PmsStatationStatInfoDTO::getPowerId, dto -> dto)); + + //获取电压等级的字典 + List voltageLevelList = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.DEV_VOLTAGE.getCode()).getData(); + //将电压信息转成map,key:id value:name + Map voltageLevelMap = voltageLevelList.stream().collect(Collectors.toMap(DictData::getId, DictData::getName)); + + //获取监测点的各相限值(不出意外的情况下前端只会传1个ID,这里防止有多个ID所以服务里都是用的id集合) + List overlimitList = new ArrayList<>(); + for (String id : monitorIdList) { + Overlimit overlimit = monitorClient.getOverLimitData(id).getData(); + overlimitList.add(overlimit); + } + Map overLimitMap = overlimitList.stream().collect(Collectors.toMap(Overlimit::getId, o -> o)); + + /************查询每个检测点的日统计信息**************/ + //设置查询条件(通用于以下几张表的查询) + HashMap condMap = new HashMap<>(); + condMap.put("startTime", startTime); + condMap.put("endTime", endTime); + condMap.put("monitorIdList", monitorIdList); + //1.r_mp_measure_report_d【稳态监测点非谐波不带相位指标日报-日表(主配网表)】 +// LambdaQueryWrapper rMpMeasureReportDWrapper = new LambdaQueryWrapper<>(); +// rMpMeasureReportDWrapper.in(RMpMeasureReportD::getMeasurementPointId, monitorIdList) +// .ge(RMpMeasureReportD::getDataDate, startTime).le(RMpMeasureReportD::getDataDate, endTime); + List RMpMeasureReportDList = rMpMeasureReportDService.getListByCond(condMap); + //1.1转成map,key:监测点id value:实体 + Map RMpMeasureReportDMap = RMpMeasureReportDList.stream().collect(Collectors.toMap(RMpMeasureReportD::getMeasurementPointId, entity -> entity)); + + //2.r_mp_measure_phase_report_d【稳态监测点非谐波带相位指标日报-日表(主配网表)】 +// LambdaQueryWrapper rMpMeasurePhaseReportDWrapper = new LambdaQueryWrapper<>(); +// rMpMeasurePhaseReportDWrapper.in(RMpMeasurePhaseReportD::getMeasurementPointId, monitorIdList) +// .ge(RMpMeasurePhaseReportD::getDataDate, startTime).le(RMpMeasurePhaseReportD::getDataDate, endTime); + List RMpMeasurePhaseReportDList = rMpMeasurePhaseReportDService.getListByCond(condMap); + + //3.r_mp_harmonic_v_rate_report_d【稳态监测点指标日报-日表(主配网表) /各次谐波电压含有率】 +// LambdaQueryWrapper rMpHarmonicVRateReportWrapper = new LambdaQueryWrapper<>(); +// rMpHarmonicVRateReportWrapper.in(RMpHarmonicVRateReportD::getMeasurementPointId, monitorIdList) +// .ge(RMpHarmonicVRateReportD::getDataDate, startTime).le(RMpHarmonicVRateReportD::getDataDate, endTime); + + List rMpHarmonicVRateReportDList = rMpHarmonicVRateReportDService.getListByCond(condMap); + + //4.r_mp_harmonic_i_mag_report_d【各相各次谐波电流有效值】 +// LambdaQueryWrapper rMpHarmonicIMagReportDWrapper = new LambdaQueryWrapper<>(); +// rMpHarmonicIMagReportDWrapper.in(RMpHarmonicIMagReportD::getMeasurementPointId, monitorIdList) +// .ge(RMpHarmonicIMagReportD::getDataDate, startTime).le(RMpHarmonicIMagReportD::getDataDate, endTime); + List rMpHarmonicIMagReportDList = rMpHarmonicIMagReportDService.getListByCond(condMap); + + //5.r_mp_harmonic_i_rate_report_d【各相各次谐波电流含有率】 +// LambdaQueryWrapper rMpHarmonicIRateReportDWrapper = new LambdaQueryWrapper<>(); +// rMpHarmonicIRateReportDWrapper.in(RMpHarmonicIRateReportD::getMeasurementPointId, monitorIdList) +// .ge(RMpHarmonicIRateReportD::getDataDate, startTime).le(RMpHarmonicIRateReportD::getDataDate, endTime); + List rMpHarmonicIRateReportDList = rMpHarmonicIRateReportDService.getListByCond(condMap); + + //6.r_mp_inharmonic_v_rate_report_d【各相各次间谐波电压含有率】 +// LambdaQueryWrapper rMpInharmonicVRateReportDWrapper = new LambdaQueryWrapper<>(); +// rMpInharmonicVRateReportDWrapper.in(RMpInharmonicVRateReportD::getMeasurementPointId, monitorIdList) +// .ge(RMpInharmonicVRateReportD::getDataDate, startTime).le(RMpInharmonicVRateReportD::getDataDate, endTime); + List rMpInharmonicVRateReportDList = rMpInharmonicVRateReportDService.getListByCond(condMap); + + //7.r_mp_inharmonic_i_rate_report_d【各相各次间谐波电流含有率】 +// LambdaQueryWrapper rMpInharmonicIRateReportDWrapper = new LambdaQueryWrapper<>(); +// rMpInharmonicIRateReportDWrapper.in(RMpInharmonicIRateReportD::getMeasurementPointId, monitorIdList) +// .ge(RMpInharmonicIRateReportD::getDataDate, startTime).le(RMpInharmonicIRateReportD::getDataDate, endTime); + List rMpInharmonicIRateReportDList = rMpInharmonicIRateReportDService.getListByCond(condMap); + + /*************整理返回数据**************/ + List RMpHarmonicReportDVOList = monitors.stream().map(item -> { + RMpHarmonicReportDVO rMpHarmonicReportDVO = new RMpHarmonicReportDVO(); + rMpHarmonicReportDVO.setOrgNo(item.getOrgId()); //单位id + rMpHarmonicReportDVO.setOrgName(item.getOrgName()); //单位名称 + rMpHarmonicReportDVO.setPowerId(item.getPowerrId()); //变电站id + rMpHarmonicReportDVO.setPowerName(item.getPowerrName()); //变电站名称 + rMpHarmonicReportDVO.setMeasurementPointId(item.getId()); //监测点ID + rMpHarmonicReportDVO.setMeasurementPointName(item.getName()); //监测点名称 + rMpHarmonicReportDVO.setMinShortCircuitCapacity(item.getMinShortCircuitCapacity()); //最小短路容量 + rMpHarmonicReportDVO.setVoltageLevel(stationMap.get(item.getPowerrId()).getPowerVoltageLevel()); //变电站电压等级id + rMpHarmonicReportDVO.setVoltageLevelName(voltageLevelMap.get(stationMap.get(item.getPowerrId()).getPowerVoltageLevel()));//变电站电压等级 + rMpHarmonicReportDVO.setDataDate(startTime); //监测日期 + /****r_mp_measure_report_d数据****/ + rMpHarmonicReportDVO.setRMpMeasureReportD(RMpMeasureReportDMap.get(item.getId())); +// //总有功功率 +// rMpHarmonicReportDVO.setTotalActivePowerMax(RMpMeasureReportDMap.get(item.getId()).getTotalActivePowerMax()); +// rMpHarmonicReportDVO.setTotalActivePowerMin(RMpMeasureReportDMap.get(item.getId()).getTotalActivePowerMin()); +// rMpHarmonicReportDVO.setTotalActivePowerAvg(RMpMeasureReportDMap.get(item.getId()).getTotalActivePowerAvg()); +// rMpHarmonicReportDVO.setTotalActivePower95(RMpMeasureReportDMap.get(item.getId()).getTotalActivePower95()); + Double frequencyDeviationMax = RMpMeasureReportDMap.get(item.getId()).getFrequencyDeviationMax(); //频率偏差-最大值 + Double freqDev = Double.parseDouble(String.valueOf(overLimitMap.get(item.getId()).getFreqDev())); //频率偏差限值 + rMpHarmonicReportDVO.setFrequencyDeviationMaxResult((frequencyDeviationMax > freqDev) ? "越限" : "正常"); // 频率偏差-最大值限值结论 +// //总无功功率 +// rMpHarmonicReportDVO.setTotalReactivePowerMax(RMpMeasureReportDMap.get(item.getId()).getTotalReactivePowerMax()); +// rMpHarmonicReportDVO.setTotalReactivePowerMin(RMpMeasureReportDMap.get(item.getId()).getTotalReactivePowerMin()); +// rMpHarmonicReportDVO.setTotalReactivePowerAvg(RMpMeasureReportDMap.get(item.getId()).getTotalReactivePowerAvg()); +// rMpHarmonicReportDVO.setTotalReactivePower95(RMpMeasureReportDMap.get(item.getId()).getTotalReactivePower95()); +// //负序电压(三相电压)不平衡度 +// rMpHarmonicReportDVO.setNegativeSequenceVoltageUnbalanceMax(RMpMeasureReportDMap.get(item.getId()).getNegativeSequenceVoltageUnbalanceMax()); +// rMpHarmonicReportDVO.setNegativeSequenceVoltageUnbalanceMin(RMpMeasureReportDMap.get(item.getId()).getNegativeSequenceVoltageUnbalanceMin()); +// rMpHarmonicReportDVO.setNegativeSequenceVoltageUnbalanceAvg(RMpMeasureReportDMap.get(item.getId()).getNegativeSequenceVoltageUnbalanceAvg()); +// rMpHarmonicReportDVO.setNegativeSequenceVoltageUnbalance95(RMpMeasureReportDMap.get(item.getId()).getNegativeSequenceVoltageUnbalance95()); + Double unb = Double.parseDouble(String.valueOf(overLimitMap.get(item.getId()).getUbalance())); //限值 + Double unbalance95 = RMpMeasureReportDMap.get(item.getId()).getNegativeSequenceVoltageUnbalance95(); //负序电压不平衡度95值 + rMpHarmonicReportDVO.setNegativeSequenceVoltageUnbalance95Result((unbalance95 > unb) ? "越限" : "正常"); //负序电压(三相电压)不平衡度-95值限值结论 + Double unbalanceMax = RMpMeasureReportDMap.get(item.getId()).getNegativeSequenceVoltageUnbalanceMax();//负序电压不平衡度最大值 + rMpHarmonicReportDVO.setNegativeSequenceVoltageUnbalanceMaxResult((unbalanceMax > unb) ? "越限" : "正常"); //负序电压(三相电压)不平衡度-95值限值结论 + +// //负序电流 +// rMpHarmonicReportDVO.setNegativeSequenceCurrentMax(RMpMeasureReportDMap.get(item.getId()).getNegativeSequenceCurrentMax()); +// rMpHarmonicReportDVO.setNegativeSequenceCurrentMin(RMpMeasureReportDMap.get(item.getId()).getNegativeSequenceCurrentMin()); +// rMpHarmonicReportDVO.setNegativeSequenceCurrentAvg(RMpMeasureReportDMap.get(item.getId()).getNegativeSequenceCurrentAvg()); +// rMpHarmonicReportDVO.setNegativeSequenceCurrent95(RMpMeasureReportDMap.get(item.getId()).getNegativeSequenceCurrent95()); + Double iNeg = Double.parseDouble(String.valueOf(overLimitMap.get(item.getId()).getINeg()));//负序电流限值 + Double current95 = RMpMeasureReportDMap.get(item.getId()).getNegativeSequenceCurrent95(); //负序电流95值 + rMpHarmonicReportDVO.setNegativeSequenceCurrent95Result((current95 > iNeg) ? "越限" : "正常"); //负序电流-95值限值结论 + Double currentMax = RMpMeasureReportDMap.get(item.getId()).getNegativeSequenceCurrentMax(); //负序电流值 + rMpHarmonicReportDVO.setNegativeSequenceCurrentMaxResult((currentMax > iNeg) ? "越限" : "正常"); //负序电流最大值限值结论 + + + /**********三相数据**********/ + //r_mp_measure_phase_report_d + Map phaseReportDMap = RMpMeasurePhaseReportDList.stream().filter(phaseReportD -> phaseReportD.getMeasurementPointId().equals(item.getId())) + .collect(Collectors.toMap(RMpMeasurePhaseReportD::getPhase, phaseReportD -> phaseReportD)); + rMpHarmonicReportDVO.setPhaseReportD(phaseReportDMap); + + //r_mp_harmonic_v_rate_report_d + Map vRateReportDMap = rMpHarmonicVRateReportDList.stream().filter(reportD -> reportD.getMeasurementPointId().equals(item.getId())) + .collect(Collectors.toMap(RMpHarmonicVRateReportD::getPhase, reportD -> reportD)); + rMpHarmonicReportDVO.setRMpHarmonicVRateReportDMap(vRateReportDMap); + //电压总谐波畸变率-95限值结论 + Double uaberrance = Double.parseDouble(String.valueOf(overLimitMap.get(item.getId()).getUaberrance()));//电压总谐波畸变率限值 + Map wave95ResultMap = rMpHarmonicVRateReportDList.stream().filter(reportD -> reportD.getMeasurementPointId().equals(item.getId())) + .collect(Collectors.toMap(RMpHarmonicVRateReportD::getPhase, reportD -> reportD.getVoltageHarmonicThd95() > uaberrance ? "越限" : "正常")); + rMpHarmonicReportDVO.setVoltageHarmonicWave95ResultMap(wave95ResultMap); + + //r_mp_harmonic_i_mag_report_d + Map iMagReportDMap = rMpHarmonicIMagReportDList.stream().filter(reportD -> reportD.getMeasurementPointId().equals(item.getId())) + .collect(Collectors.toMap(RMpHarmonicIMagReportD::getPhase, reportD -> reportD)); + rMpHarmonicReportDVO.setRMpHarmonicIMagReportDMap(iMagReportDMap); + + //r_mp_harmonic_i_rate_report_d + Map iRateReportDMap = rMpHarmonicIRateReportDList.stream().filter(reportD -> reportD.getMeasurementPointId().equals(item.getId())) + .collect(Collectors.toMap(RMpHarmonicIRateReportD::getPhase, reportD -> reportD)); + rMpHarmonicReportDVO.setRMpHarmonicIRateReportDMap(iRateReportDMap); + + //r_mp_inharmonic_v_rate_report_d + Map rMpInharmonicVRateReportD = rMpInharmonicVRateReportDList.stream().filter(reportD -> reportD.getMeasurementPointId().equals(item.getId())) + .collect(Collectors.toMap(RMpInharmonicVRateReportD::getPhase, reportD -> reportD)); + rMpHarmonicReportDVO.setRMpInharmonicVRateReportDMap(rMpInharmonicVRateReportD); + + //r_mp_inharmonic_i_rate_report_d + Map rMpInharmonicIRateReportD = rMpInharmonicIRateReportDList.stream().filter(reportD -> reportD.getMeasurementPointId().equals(item.getId())) + .collect(Collectors.toMap(RMpInharmonicIRateReportD::getPhase, reportD -> reportD)); + rMpHarmonicReportDVO.setRMpInharmonicIRateReportDMap(rMpInharmonicIRateReportD); + + return rMpHarmonicReportDVO; + }).collect(Collectors.toList()); + return RMpHarmonicReportDVOList; + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpHarmonicVRateReportDServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpHarmonicVRateReportDServiceImpl.java new file mode 100644 index 000000000..fd671849c --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpHarmonicVRateReportDServiceImpl.java @@ -0,0 +1,30 @@ +package com.njcn.harmonic.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.harmonic.pojo.po.RMpHarmonicVRateReportD; +import com.njcn.harmonic.service.RMpHarmonicVRateReportDService; +import com.njcn.harmonic.mapper.RMpHarmonicVRateReportDMapper; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.Map; + +/** +* @author jianghf +* @description 针对表【r_mp_harmonic_v_rate_report_d(稳态监测点指标日报-日表(主配网表) /各次谐波电压含有率 )】的数据库操作Service实现 +* @createDate 2022-10-20 18:34:05 +*/ +@Service +public class RMpHarmonicVRateReportDServiceImpl extends ServiceImpl + implements RMpHarmonicVRateReportDService{ + + @Override + public List getListByCond(Map map) { + return this.baseMapper.getListByCond(map); + } +} + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpInharmonicIRateReportDServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpInharmonicIRateReportDServiceImpl.java new file mode 100644 index 000000000..e1840ca18 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpInharmonicIRateReportDServiceImpl.java @@ -0,0 +1,29 @@ +package com.njcn.harmonic.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.harmonic.pojo.po.RMpInharmonicIRateReportD; +import com.njcn.harmonic.service.RMpInharmonicIRateReportDService; +import com.njcn.harmonic.mapper.RMpInharmonicIRateReportDMapper; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_inharmonic_i_rate_report_d(稳态监测点指标日报-日表(主网表) /各次间谐波电流含有率)】的数据库操作Service实现 +* @createDate 2022-10-20 18:45:58 +*/ +@Service +public class RMpInharmonicIRateReportDServiceImpl extends ServiceImpl + implements RMpInharmonicIRateReportDService{ + + @Override + public List getListByCond(Map condMap) { + return this.baseMapper.getListByCond(condMap); + } +} + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpInharmonicVRateReportDServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpInharmonicVRateReportDServiceImpl.java new file mode 100644 index 000000000..c65827852 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpInharmonicVRateReportDServiceImpl.java @@ -0,0 +1,29 @@ +package com.njcn.harmonic.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.harmonic.pojo.po.RMpInharmonicVRateReportD; +import com.njcn.harmonic.service.RMpInharmonicVRateReportDService; +import com.njcn.harmonic.mapper.RMpInharmonicVRateReportDMapper; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_inharmonic_v_rate_report_d】的数据库操作Service实现 +* @createDate 2022-10-20 18:45:36 +*/ +@Service +public class RMpInharmonicVRateReportDServiceImpl extends ServiceImpl + implements RMpInharmonicVRateReportDService{ + + @Override + public List getListByCond(Map condMap) { + return this.baseMapper.getListByCond(condMap); + } +} + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpMeasurePhaseReportDServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpMeasurePhaseReportDServiceImpl.java new file mode 100644 index 000000000..7c738ca9d --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpMeasurePhaseReportDServiceImpl.java @@ -0,0 +1,29 @@ +package com.njcn.harmonic.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.harmonic.mapper.RMpMeasurePhaseReportDMapper; +import com.njcn.harmonic.pojo.po.RMpMeasurePhaseReportD; +import com.njcn.harmonic.service.RMpMeasurePhaseReportDService; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_measure_phase_report_d】的数据库操作Service实现 +* @createDate 2022-10-20 18:20:08 +*/ +@Service +public class RMpMeasurePhaseReportDServiceImpl extends ServiceImpl + implements RMpMeasurePhaseReportDService{ + + @Override + public List getListByCond(Map condMap) { + return this.baseMapper.getListByCond(condMap); + } +} + + + + diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpMeasureReportDServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpMeasureReportDServiceImpl.java new file mode 100644 index 000000000..61e566f90 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpMeasureReportDServiceImpl.java @@ -0,0 +1,25 @@ +package com.njcn.harmonic.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.harmonic.mapper.RMpMeasureReportDMapper; +import com.njcn.harmonic.pojo.po.RMpMeasureReportD; +import com.njcn.harmonic.service.RMpMeasureReportDService; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.Map; + +/** +* @author Administrator +* @description 针对表【r_mp_measure_report_d】的数据库操作Service实现 +* @createDate 2022-10-20 16:32:37 +*/ +@Service +public class RMpMeasureReportDServiceImpl extends ServiceImpl +implements RMpMeasureReportDService{ + + @Override + public List getListByCond(Map condMap) { + return this.baseMapper.getListByCond(condMap); + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpPartHarmonicDetailDServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpPartHarmonicDetailDServiceImpl.java new file mode 100644 index 000000000..688d596ae --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpPartHarmonicDetailDServiceImpl.java @@ -0,0 +1,33 @@ +package com.njcn.harmonic.service.impl; + +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.po.RMpPartHarmonicDetailD; +import com.njcn.harmonic.mapper.RMpPartHarmonicDetailDMapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.harmonic.pojo.vo.RMpPartHarmonicDetailIconVO; +import com.njcn.harmonic.service.RMpPartHarmonicDetailDService; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + *

+ * 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +@Service +@RequiredArgsConstructor +public class RMpPartHarmonicDetailDServiceImpl extends ServiceImpl implements RMpPartHarmonicDetailDService { + + private final RMpPartHarmonicDetailDMapper rMpPartHarmonicDetailDMapper; + + + @Override + public List getRMpPartHarmonicDetailIcon(StatisticsBizBaseParam param) { + return rMpPartHarmonicDetailDMapper.getRMpPartHarmonicDetailIcon(param); + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpPartHarmonicDetailMServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpPartHarmonicDetailMServiceImpl.java new file mode 100644 index 000000000..6bdfeeabb --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpPartHarmonicDetailMServiceImpl.java @@ -0,0 +1,106 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.collection.CollectionUtil; +import com.njcn.common.pojo.dto.SimpleDTO; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.device.pms.api.MonitorClient; +import com.njcn.device.pms.api.PmsGeneralDeviceInfoClient; +import com.njcn.device.pms.pojo.dto.PmsGeneralDeviceDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.pojo.param.PmsMonitorParam; +import com.njcn.harmonic.mapper.RMpSurplusHarmonicDetailMMapper; +import com.njcn.harmonic.pojo.param.RStatOrgParam; +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RMpPartHarmonicDetailM; +import com.njcn.harmonic.mapper.RMpPartHarmonicDetailMMapper; +import com.njcn.harmonic.pojo.vo.RMpPartHarmonicDetailVO; +import com.njcn.harmonic.service.RMpPartHarmonicDetailMService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.function.Function; +import java.util.stream.Collectors; + +/** + *

+ * 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +@Service +@RequiredArgsConstructor +public class RMpPartHarmonicDetailMServiceImpl extends ServiceImpl implements RMpPartHarmonicDetailMService { + + private final RMpSurplusHarmonicDetailMMapper rMpSurplusHarmonicDetailMMapper; + private final PmsGeneralDeviceInfoClient pmsGeneralDeviceInfoClient; + private final MonitorClient monitorClient; + private final DicDataFeignClient dicDataFeignClient; + + @Override + public List getRMpPartHarmonicDetail(RStatOrgParam param) { + //根据部门获取监测点信息(根据部门过滤基本信息) + PmsDeviceInfoParam pms=new PmsDeviceInfoParam(); + pms.setDeptIndex(param.getId()); + pms.setStatisticalType(new SimpleDTO()); + List data = pmsGeneralDeviceInfoClient.getPmsDeviceInfoWithInOrg(pms).getData(); + List addIds=new ArrayList<>(); + data.stream().forEach(e-> addIds.addAll(e.getMonitorIdList())); + + if(CollectionUtil.isNotEmpty(addIds)){ + //根据监测点ids获取监测点相关详细信息(变电站id,电压id,监测点名称) + PmsMonitorParam dto=BeanUtil.copyProperties(param,PmsMonitorParam.class); + dto.setMonitorIds(addIds); + dto.setMonitorName(param.getMonitorName()); + dto.setVoltageLevels(param.getVoltageLevels()); + dto.setPowerrIds(param.getPowerrIds()); + List pmsMonitorDTOS = monitorClient.getMonitorInfoListByCond(dto).getData(); + Map pmsMonitorDTOMap = pmsMonitorDTOS.stream() + .collect(Collectors.toMap(PmsMonitorDTO::getId, Function.identity())); + //获取电压等级 + List devVoltageData = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.DEV_VOLTAGE.getCode()).getData(); + Map devVoltageMap = devVoltageData.stream() + .collect(Collectors.toMap(DictData::getId, Function.identity())); + //获取最新过滤的监测点id + List ids = pmsMonitorDTOS.stream().map(PmsMonitorDTO::getId).collect(Collectors.toList()); + //筛选出数据库对应监测点 + StatSubstationBizBaseParam baseParam= BeanUtil.copyProperties(param,StatSubstationBizBaseParam.class); + baseParam.setIds(ids); + List rMpPartHarmonicDetail = rMpSurplusHarmonicDetailMMapper.getRMpPartHarmonicDetail(baseParam); + if(CollectionUtil.isNotEmpty(rMpPartHarmonicDetail)){ + //因为只有月表,数据进行查询可能出现重复数据。进行分组 + Map> detailVOMap = rMpPartHarmonicDetail.stream() + .collect(Collectors.groupingBy(RMpPartHarmonicDetailVO::getMeasurementPointId)); + detailVOMap.forEach((Key,value)->{ + if(pmsMonitorDTOMap.containsKey(Key)){ + PmsMonitorDTO dto1 = pmsMonitorDTOMap.get(Key); + for (RMpPartHarmonicDetailVO rmp : value) { + rmp.setOrgName(dto1.getOrgName()); + rmp.setPowerrName(dto1.getPowerrName()); + rmp.setMeasurementPointName(dto1.getName()); + //获取字典电压等级名称 + if(devVoltageMap.containsKey(dto1.getVoltageLevel())){ + DictData data1 = devVoltageMap.get(dto1.getVoltageLevel()); + rmp.setMonitorVoltageName(data1.getName()); + } + } + + } + }); + } + return rMpPartHarmonicDetail; + } + return null; + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpPassRateServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpPassRateServiceImpl.java new file mode 100644 index 000000000..85da8c4c9 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RMpPassRateServiceImpl.java @@ -0,0 +1,131 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.collection.CollectionUtil; +import com.njcn.common.pojo.constant.BizParamConstant; +import com.njcn.common.pojo.dto.SimpleDTO; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.device.pms.api.MonitorClient; +import com.njcn.device.pms.api.PmsGeneralDeviceInfoClient; +import com.njcn.device.pms.pojo.dto.PmsGeneralDeviceDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.pojo.param.PmsMonitorParam; +import com.njcn.harmonic.mapper.RMpPassRateMMapper; +import com.njcn.harmonic.mapper.RMpPassRateYMapper; +import com.njcn.harmonic.pojo.param.RStatOrgParam; +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RMpPassRateQ; +import com.njcn.harmonic.mapper.RMpPassRateQMapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.harmonic.pojo.vo.RStatOrgIndexVO; +import com.njcn.harmonic.service.RMpPassRateService; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.function.Function; +import java.util.stream.Collectors; + +/** + *

+ * 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-24 + */ +@Service +@RequiredArgsConstructor +public class RMpPassRateServiceImpl extends ServiceImpl implements RMpPassRateService { + + private final RMpPassRateYMapper rMpPassRateYMapper; + private final RMpPassRateQMapper rMpPassRateQMapper; + private final RMpPassRateMMapper rMpPassRateMMapper; + private final PmsGeneralDeviceInfoClient pmsGeneralDeviceInfoClient; + private final MonitorClient monitorClient; + private final DicDataFeignClient dicDataFeignClient; + + @Override + public List getRMpPassRateInfo(RStatOrgParam param) { + //初始化对象 + List temp=new ArrayList<>(); + //根据部门获取监测点信息 + PmsDeviceInfoParam pms=new PmsDeviceInfoParam(); + pms.setDeptIndex(param.getId()); + pms.setStatisticalType(new SimpleDTO()); + List data = pmsGeneralDeviceInfoClient.getPmsDeviceInfoWithInOrg(pms).getData(); + List addIds=new ArrayList<>(); + data.stream().forEach(e-> addIds.addAll(e.getMonitorIdList())); + + if(CollectionUtil.isNotEmpty(addIds)){ + //根据监测点ids获取监测点相关详细信息(变电站id,电压id,监测点名称) + PmsMonitorParam dto=BeanUtil.copyProperties(param,PmsMonitorParam.class); + dto.setMonitorIds(addIds); + dto.setMonitorName(param.getMonitorName()); + dto.setVoltageLevels(param.getVoltageLevels()); + dto.setPowerrIds(param.getPowerrIds()); + List pmsMonitorDTOS = monitorClient.getMonitorInfoListByCond(dto).getData(); + Map pmsMonitorDTOMap = pmsMonitorDTOS.stream() + .collect(Collectors.toMap(PmsMonitorDTO::getId, Function.identity())); + //获取电压等级 + List devVoltageData = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.DEV_VOLTAGE.getCode()).getData(); + Map devVoltageMap = devVoltageData.stream() + .collect(Collectors.toMap(DictData::getId, Function.identity())); + + //获取最新过滤的监测点id + List ids = pmsMonitorDTOS.stream().map(PmsMonitorDTO::getId).collect(Collectors.toList()); + StatSubstationBizBaseParam baseParam= BeanUtil.copyProperties(param,StatSubstationBizBaseParam.class); + baseParam.setIds(ids); + + if (CollectionUtil.isNotEmpty(addIds)) { + // 类型(1年 2季度 3月份 + switch (param.getType().toString()) { + case BizParamConstant.STAT_BIZ_YEAR: + // 获取年稳态指标合格率明细表 + temp = rMpPassRateYMapper.getYearPassRate(baseParam); + break; + case BizParamConstant.STAT_BIZ_QUARTER: + // 获取季稳态指标合格率明细表 + temp = rMpPassRateQMapper.getQuarterPassRate(baseParam); + break; + case BizParamConstant.STAT_BIZ_MONTH: + // 获取月稳态指标合格率明细表 + temp = rMpPassRateMMapper.getMonthPassRate(baseParam); + break; + default: + break; + + } + } + if(CollectionUtil.isNotEmpty(temp)){ + Map collect = temp.stream() + .collect(Collectors.toMap(RStatOrgIndexVO::getMeasurementPointId, Function.identity())); + collect.forEach((Key,value)->{ + if(pmsMonitorDTOMap.containsKey(Key)){ + //根据监测点信息,进行属性赋值 + PmsMonitorDTO dto1 = pmsMonitorDTOMap.get(Key); + value.setOrgNo(dto1.getOrgId()); + value.setOrgName(dto1.getOrgName()); + value.setMeasurementPointName(dto1.getName()); + value.setPowerrName(dto1.getPowerrName()); + //获取电压字典的名称 + if(devVoltageMap.containsKey(dto1.getVoltageLevel())){ + DictData data1 = devVoltageMap.get(dto1.getVoltageLevel()); + value.setMonitorVoltageName(data1.getName()); + } + } + }); + return new ArrayList<>(collect.values()); + } + + } + return new ArrayList<>(); + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicMServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicMServiceImpl.java new file mode 100644 index 000000000..08c53d8e3 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicMServiceImpl.java @@ -0,0 +1,427 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.date.LocalDateTimeUtil; +import cn.hutool.core.lang.Assert; +import cn.hutool.core.util.ObjectUtil; +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.mapper.RStatHarmonicDMapper; +import com.njcn.harmonic.mapper.RStatHarmonicMMapper; +import com.njcn.harmonic.mapper.RStatHarmonicVoltageMMapper; +import com.njcn.harmonic.pojo.param.RStatHarmonicMParam; +import com.njcn.harmonic.pojo.po.RStatHarmonicD; +import com.njcn.harmonic.pojo.po.RStatHarmonicM; +import com.njcn.harmonic.pojo.po.RStatHarmonicVoltageM; +import com.njcn.harmonic.pojo.vo.RArrayVO; +import com.njcn.harmonic.pojo.vo.RHarmonicPolylineVO; +import com.njcn.harmonic.pojo.vo.RIconVO; +import com.njcn.harmonic.pojo.vo.RStatHarmonicMVO; +import com.njcn.harmonic.service.RStatHarmonicMService; +import com.njcn.device.pq.utils.PublicDateUtil; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataEnum; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import lombok.RequiredArgsConstructor; +import lombok.SneakyThrows; +import org.springframework.stereotype.Service; + +import java.text.DecimalFormat; +import java.text.SimpleDateFormat; +import java.time.LocalDate; +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +/** + *

+ * 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-09 + */ +@Service +@RequiredArgsConstructor +public class RStatHarmonicMServiceImpl extends ServiceImpl implements RStatHarmonicMService { + + private final RStatHarmonicMMapper rStatHarmonicMMapper; + private final DicDataFeignClient dicDataFeignClient; + private final RStatHarmonicVoltageMMapper rStatHarmonicVoltageMMapper; + private final RStatHarmonicDMapper rStatHarmonicDMapper; + + @Override + public List getRStatHarmonicMAll(StatisticsBizBaseParam param) { + + //子节点 获取所有得干扰源类型(监测点类型) + List interferenceSourceTypeData = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.MONITORING_LABELS.getCode()).getData(); + Map interferenceMap = interferenceSourceTypeData.stream().collect(Collectors.toMap(DictData::getId, Function.identity())); + + //对象主节点 获取所有得指标类型 + List lineTypeData = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.STEADY_STATIS.getCode()).getData(); + Map lineTypeMap = lineTypeData.stream() + .collect(Collectors.toMap(DictData::getId, Function.identity())); + + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + //数据库查询 + List list = rStatHarmonicMMapper.selectList(new LambdaQueryWrapper() + .eq(RStatHarmonicM::getDataType,mainnetData.getId()) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatHarmonicM::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatHarmonicM::getDataDate, param.getEndTime())); + + //初始化指标类型(横向) + List arrayVOList=new ArrayList<>(); + List rm=new ArrayList<>(); + for (DictData lineTypeDatum : interferenceSourceTypeData) { + RStatHarmonicMVO r = new RStatHarmonicMVO(); + r.setHarmonicName(lineTypeDatum.getName()); + r.setSort(lineTypeDatum.getSort()); + r.setOverLimitMeasurementAverage(0); + r.setOverLimitMeasurementAccrued(0); + r.setAverageOverDay(0.0F); + r.setOverDay(0); + r.setOverLimitMeasurementRatioAverage(0.0F); + r.setOverLimitMeasurementRatioAccrued(0.0F); + rm.add(r); + } + for (DictData lineTypeDatum : lineTypeData) { + RArrayVO r = new RArrayVO(); + r.setRowName(lineTypeDatum.getName()); + r.setSort(lineTypeDatum.getSort()); + r.setColumns(rm); + arrayVOList.add(r); + } + //根据检测点对象分组 + Map> MeasurementTypeClassMap = list.stream().collect(Collectors.groupingBy(RStatHarmonicM::getHarmonicType)); + //重新生成数据结构 + MeasurementTypeClassMap.forEach((key, value) -> { + if(lineTypeMap.containsKey(key)){ + RArrayVO arrayVO=new RArrayVO(); + DictData data = lineTypeMap.get(key); + arrayVO.setRowName(data.getName()); + arrayVO.setSort(data.getSort()); + List b=new ArrayList<>(); + b.addAll(rm); + for (RStatHarmonicM rStatHarmonicM : value) { + RStatHarmonicMVO r = BeanUtil.copyProperties(rStatHarmonicM, RStatHarmonicMVO.class); + DictData data1 = interferenceMap.get(rStatHarmonicM.getMeasurementTypeClass()); + r.setHarmonicName(data1.getName()); + r.setSort(data1.getSort()); + DecimalFormat df = new DecimalFormat("###.00"); + Float averageOverDay = Float.parseFloat( + df.format(r.getOverDay()/(r.getOverLimitMeasurementAccrued()*1.0))); + r.setAverageOverDay(averageOverDay); + b.add(r); + } + Map linkedHashMap=new LinkedHashMap<>(); + for (RStatHarmonicMVO harmonicMVO : b) { + linkedHashMap.put(harmonicMVO.getHarmonicName(),harmonicMVO); + } + List aa=new ArrayList<>(linkedHashMap.values()); + aa.sort(Comparator.comparing(rStatHarmonicMVO -> rStatHarmonicMVO.getSort())); + arrayVO.setColumns(aa); + arrayVOList.add(arrayVO); + } + }); + Map linkedHashMap=new LinkedHashMap<>(); + for (RArrayVO rStatHarmonicMVO : arrayVOList) { + linkedHashMap.put(rStatHarmonicMVO.getRowName(),rStatHarmonicMVO); + } + List aa=new ArrayList<>(linkedHashMap.values()); + aa.sort(Comparator.comparing(rArrayVO -> rArrayVO.getSort())); + return aa; + } + + @Override + public List getRStatHarmonicIcon(RStatHarmonicMParam param) { + //干扰数据类型(监测对象) + DictData measurementDate =null; + //指标对象类型属性 + DictData harmonicDate =null; + //判断是是否传入检测点信息值(电压) + if(StrUtil.isBlank(param.getStasisID())&&StrUtil.isBlank(param.getMonitorID())){ + //干扰数据类型(监测对象) + List interferenceSourceTypeData = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.MONITORING_LABELS.getCode()).getData(); + interferenceSourceTypeData.sort(Comparator.comparing(data -> data.getSort())); + measurementDate =interferenceSourceTypeData.get(0); + //指标对象类型 + List indicatorTypeDate = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.STEADY_STATIS.getCode()).getData(); + indicatorTypeDate.sort(Comparator.comparing(data -> data.getSort())); + harmonicDate =indicatorTypeDate.get(0); + }else{ + //获取检测点对象(电压) + measurementDate = dicDataFeignClient.getDicDataById( + param.getMonitorID()).getData(); + //获取指标对象(频率偏差) + harmonicDate= dicDataFeignClient.getDicDataById( + param.getStasisID()).getData(); + } + //反防止参数查询数据报错 + Assert.isTrue( + ObjectUtil.isNotNull(measurementDate)||ObjectUtil.isNotNull(harmonicDate) + , "干扰源类型或者指标类型为空,请检查入参是否准确"); + //获取电压字典 + List devVoltageData = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.DEV_VOLTAGE.getCode()).getData(); + Map devVoltageMap = devVoltageData.stream() + .collect(Collectors.toMap(DictData::getId, Function.identity())); + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + //初始化对象 + List arrayVOList=new ArrayList<>(); + List rStatHarmonicVoltageMS = rStatHarmonicVoltageMMapper.selectList(new LambdaQueryWrapper() + .eq(RStatHarmonicVoltageM::getDataType,mainnetData.getId()) + .eq(RStatHarmonicVoltageM::getMeasurementTypeClass, measurementDate.getId()) + .eq(RStatHarmonicVoltageM::getHarmonicType, harmonicDate.getId()) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatHarmonicVoltageM::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatHarmonicVoltageM::getDataDate, param.getEndTime()) + ); + //将数据转换为map进行便利 + Map voltageMMap = rStatHarmonicVoltageMS.stream() + .collect(Collectors.toMap(RStatHarmonicVoltageM::getVoltageType, Function.identity())); + //对象 + if (CollUtil.isNotEmpty(rStatHarmonicVoltageMS)){ + voltageMMap.forEach((key, value) -> { + if(devVoltageMap.containsKey(key)){ + DictData data = devVoltageMap.get(key); + RIconVO rIconVO = new RIconVO(); + rIconVO.setRowName(data.getName()); + rIconVO.setSort(data.getSort()); + rIconVO.setOverLimitMeasurementAccrued(value.getOverLimitMeasurementAccrued()); + rIconVO.setOverLimitMeasurementAverage(value.getOverLimitMeasurementAverage()); + rIconVO.setOverLimitMeasurementRatioAccrued(value.getOverLimitMeasurementRatioAccrued()); + rIconVO.setOverLimitMeasurementRatioAverage(value.getOverLimitMeasurementRatioAverage()); + DecimalFormat df = new DecimalFormat("###.00"); + Float averageOverDay = Float.parseFloat( + df.format(value.getOverDay()/(value.getOverLimitMeasurementAccrued()*1.0))); + rIconVO.setAverageOverDay(averageOverDay); + arrayVOList.add(rIconVO); + } + }); + } + arrayVOList.sort(Comparator.comparing(rIconVO -> rIconVO.getSort())); + return arrayVOList; + } + + @SneakyThrows + @Override + public List getRStatHarmonicIcon2(RStatHarmonicMParam param) { + //初始化对象 + List iconList=new ArrayList<>(); + DictData measurementDate =null; + //指标对象类型属性 + DictData harmonicDate =null; + //判断是是否传入检测点信息值(电压) + if(StrUtil.isBlank(param.getStasisID())&&StrUtil.isBlank(param.getMonitorID())){ + //干扰数据类型(监测对象) + List interferenceSourceTypeData = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.MONITORING_LABELS.getCode()).getData(); + interferenceSourceTypeData.sort(Comparator.comparing(data -> data.getSort())); + measurementDate =interferenceSourceTypeData.get(0); + //指标对象类型 + List indicatorTypeDate = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.STEADY_STATIS.getCode()).getData(); + indicatorTypeDate.sort(Comparator.comparing(data -> data.getSort())); + harmonicDate =indicatorTypeDate.get(0); + }else{ + //获取检测点对象(电压) + measurementDate = dicDataFeignClient.getDicDataById( + param.getMonitorID()).getData(); + //获取指标对象(频率偏差) + harmonicDate= dicDataFeignClient.getDicDataById( + param.getStasisID()).getData(); + } + //反防止参数查询数据报错 + Assert.isTrue( + ObjectUtil.isNotNull(measurementDate)||ObjectUtil.isNotNull(harmonicDate) + , "干扰源类型或者指标类型为空,请检查入参是否准确"); + + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + List rStatHarmonicVoltageMS = rStatHarmonicDMapper.selectList(new LambdaQueryWrapper() + .eq(RStatHarmonicD::getDataType,mainnetData.getId()) + .eq(RStatHarmonicD::getMeasurementTypeClass, measurementDate.getId()) + .eq(RStatHarmonicD::getHarmonicType, harmonicDate.getId()) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatHarmonicD::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatHarmonicD::getDataDate, param.getEndTime()) + ); + Map> collect = + rStatHarmonicVoltageMS.stream().collect(Collectors.groupingBy(RStatHarmonicD::getDataDate)); + + //获取月份 + List intervalTime = this.getIntervalTime(param.getStartTime(), param.getEndTime()); + for (String interTime : intervalTime) { + //生成初始时间 + String startTime = PublicDateUtil.getFisrtDayOfMonth(Integer.parseInt(interTime.substring(0, 4)), Integer.parseInt(interTime.substring(5))); + String endTime = PublicDateUtil.getLastDayOfMonth(Integer.parseInt(interTime.substring(0, 4)), Integer.parseInt(interTime.substring(5))); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + Date dt = simpleDateFormat.parse(startTime); + Date dtDate = simpleDateFormat.parse(endTime); + Integer year = Integer.valueOf(String.format("%tY", dt)); + Integer mon = Integer.valueOf(String.format("%tm", dt)); + Integer day = Integer.valueOf(String.format("%td", dtDate)); + //生成月份数据 + List dayTime = this.getIntervalDateTime(year, mon,day); + for (String s : dayTime) { + RHarmonicPolylineVO rPolylineVO=new RHarmonicPolylineVO(); + rPolylineVO.setDate(s); + if(collect.containsKey(LocalDateTimeUtil.parseDate(s,"yyyy-MM-dd"))){ + List rSd = collect.get(LocalDateTimeUtil.parseDate(s, "yyyy-MM-dd")); + rPolylineVO.setNum(rSd.get(0).getOverLimitMeasurement()); + rPolylineVO.setOverLimitMeasurementRatioAverage(rSd.get(0).getOverLimitMeasurementRatio()); + rPolylineVO.setAverageOverDay(1); + }else{ + rPolylineVO.setNum(0); + rPolylineVO.setAverageOverDay(0); + rPolylineVO.setOverLimitMeasurementRatioAverage(0.0f); + } + iconList.add(rPolylineVO); + } + + } + return iconList; + } + + /** + * 根据用户选择的时间区间返回月份日期 + */ + @SneakyThrows + private List getIntervalTime(String startTime, String endTime) { + List times = new ArrayList<>(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM"); + Date start = sdf.parse(startTime); + Date end = sdf.parse(endTime); + // 同月 + if (start.getTime() == end.getTime()) { + String time = startTime.substring(0, 7); + times.add(time); + } else if (start.getYear() == end.getYear()) { + // 同年 + int startM = start.getMonth() + 1; + int endM = end.getMonth() + 1; + int temp = endM - startM; + for (int i = 0; i <= temp; i++) { + String time = start.getYear() + 1900 + ""; + int month = startM + i; + if (month < 10) { + time = time + "-0" + month; + } else { + time = time + "-" + month; + } + times.add(time); + } + } else { + // 不同年!!!!这里忽略了年份之间跨年的情况 + int startY = start.getYear() + 1900; + int startM = start.getMonth() + 1; + int endY = end.getYear() + 1900; + int endM = end.getMonth() + 1; + int tempS = 12 - startM; + // 连续的年份 + if (endY - startY == 1) { + // 第一年的时间获取 + for (int i = 0; i <= tempS; i++) { + int month = startM + i; + String time = startY + "-"; + if (month < 10) { + time = time + "0" + month; + } else { + time = time + month; + } + times.add(time); + } + // 第二年的时间获取 + + for (int i = 1; i <= endM; i++) { + String time = endY + "-"; + if (i < 10) { + time = time + "0" + i; + } else { + time = time + i; + } + times.add(time); + } + } else { + // 不连续的年份 + // 第一年的时间获取 + for (int i = 0; i <= tempS; i++) { + int month = startM + i; + String time = startY + "-"; + if (month < 10) { + time = time + "0" + month; + } else { + time = time + month; + } + times.add(time); + } + int tempY = endY - startY; + // 中间年份的时间 + for (int i = 1; i < tempY; i++) { + for (int j = 1; j <= 12; j++) { + String time = startY + i + "-"; + if (j < 10) { + time = time + "0" + j; + } else { + time = time + j; + } + times.add(time); + } + } + // 最后一年的时间获取 + for (int i = 1; i <= endM; i++) { + String time = endY + "-"; + if (i < 10) { + time = time + "0" + i; + } else { + time = time + i; + } + times.add(time); + } + } + + } + return times; + } + + @SneakyThrows + private List getIntervalDateTime(Integer startTime, Integer endTime, Integer dd) { + List list = new ArrayList<>(); + Calendar calendar = Calendar.getInstance(Locale.CHINA); + calendar.set(startTime, endTime - 1, 1); + //年份 + int year = calendar.get(Calendar.YEAR); + //月份 + int month = calendar.get(Calendar.MONTH) + 1; + for (int i = 1; i <= dd; i++) { + String date = null; + if (month < 10 && i < 10) { + date = year + "-0" + month + "-0" + i; + } + if (month < 10 && i >= 10) { + date = year + "-0" + month + "-" + i; + } + if (month >= 10 && i < 10) { + date = year + "-" + month + "-0" + i; + } + if (month >= 10 && i >= 10) { + date = year + "-" + month + "-" + i; + } + + list.add(date); + } + return list; + } + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicOrgMServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicOrgMServiceImpl.java new file mode 100644 index 000000000..88ae82484 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicOrgMServiceImpl.java @@ -0,0 +1,202 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.lang.Assert; +import cn.hutool.core.util.ObjectUtil; +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.param.RStatHarmonicMParam; +import com.njcn.harmonic.pojo.po.RStatHarmonicOrgM; +import com.njcn.harmonic.mapper.StatHarmonicOrgMMapper; +import com.njcn.harmonic.pojo.vo.RArrayVO; +import com.njcn.harmonic.pojo.vo.RIconVO; +import com.njcn.harmonic.pojo.vo.RStatHarmonicMVO; +import com.njcn.harmonic.service.RStatHarmonicOrgMService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataEnum; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.dto.DeptDTO; +import com.njcn.web.utils.WebUtil; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.text.DecimalFormat; +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +/** + *

+ * 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-14 + */ +@Service +@RequiredArgsConstructor +public class RStatHarmonicOrgMServiceImpl extends ServiceImpl implements RStatHarmonicOrgMService { + + private final DeptFeignClient deptFeignClient; + private final DicDataFeignClient dicDataFeignClient; + private final StatHarmonicOrgMMapper statHarmonicOrgMMapper; + + @Override + public List getRStatHarmonicMAll(StatisticsBizBaseParam param) { + //子节点 获取所有得各单位类型 + List deptDTOList = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData(); + //获取部门id集合 + List deptIds = deptDTOList.stream().map(DeptDTO::getId).collect(Collectors.toList()); + Map deptMap = deptDTOList.stream().collect(Collectors.toMap(DeptDTO::getId, Function.identity())); + + //对象主节点 获取所有得指标类型 + List lineTypeData = dicDataFeignClient.getDicDataByTypeCode + (DicDataTypeEnum.STEADY_STATIS.getCode()).getData(); + Map lineTypeMap = lineTypeData.stream() + .collect(Collectors.toMap(DictData::getId, Function.identity())); + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + //数据库查询 + List list = statHarmonicOrgMMapper.selectList(new LambdaQueryWrapper() + .eq(RStatHarmonicOrgM::getDataType,mainnetData.getId()) + .in(RStatHarmonicOrgM::getOrgNo,deptIds) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatHarmonicOrgM::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatHarmonicOrgM::getDataDate, param.getEndTime())); + + //初始化指标类型(横向) + List arrayVOList=new ArrayList<>(); + List rm=new ArrayList<>(); + for (DeptDTO deptDTO : deptDTOList) { + RStatHarmonicMVO r = new RStatHarmonicMVO(); + r.setHarmonicName(deptDTO.getName()); + r.setOverLimitMeasurementAverage(0); + r.setOverLimitMeasurementAccrued(0); + r.setAverageOverDay(0.0F); + r.setOverDay(0); + r.setOverLimitMeasurementRatioAverage(0.0F); + r.setOverLimitMeasurementRatioAccrued(0.0F); + rm.add(r); + } + for (DictData lineTypeDatum : lineTypeData) { + RArrayVO r = new RArrayVO(); + r.setRowName(lineTypeDatum.getName()); + r.setColumns(rm); + r.setSort(lineTypeDatum.getSort()); + arrayVOList.add(r); + } + //根据检测点对象分组 + Map> MeasurementTypeClassMap = list.stream().collect(Collectors.groupingBy(RStatHarmonicOrgM::getHarmonicType)); + //重新生成数据结构 + MeasurementTypeClassMap.forEach((key, value) -> { + if(lineTypeMap.containsKey(key)){ + RArrayVO arrayVO=new RArrayVO(); + DictData data = lineTypeMap.get(key); + arrayVO.setRowName(data.getName()); + arrayVO.setSort(data.getSort()); + List b=new ArrayList<>(); + b.addAll(rm); + for (RStatHarmonicOrgM orgY : value) { + RStatHarmonicMVO r = BeanUtil.copyProperties(orgY, RStatHarmonicMVO.class); + DeptDTO data1 = deptMap.get(orgY.getOrgNo()); + if (ObjectUtil.isNotNull(data1)){ + r.setHarmonicName(data1.getName()); + DecimalFormat df = new DecimalFormat("###.00"); + Float averageOverDay = Float.parseFloat( + df.format(r.getOverDay()/(r.getOverLimitMeasurementAccrued()*1.0))); + r.setAverageOverDay(averageOverDay); + b.add(r); + } + } + Map linkedHashMap=new LinkedHashMap<>(); + for (RStatHarmonicMVO harmonicMVO : b) { + linkedHashMap.put(harmonicMVO.getHarmonicName(),harmonicMVO); + } + List aa=new ArrayList<>(linkedHashMap.values()); + aa.sort(Comparator.comparing(rStatHarmonicMVO -> rStatHarmonicMVO.getHarmonicName())); + arrayVO.setColumns(aa); + arrayVOList.add(arrayVO); + } + + }); + Map linkedHashMap=new LinkedHashMap<>(); + for (RArrayVO rStatHarmonicMVO : arrayVOList) { + linkedHashMap.put(rStatHarmonicMVO.getRowName(),rStatHarmonicMVO); + } + List aa=new ArrayList<>(linkedHashMap.values()); + arrayVOList.sort(Comparator.comparing(rArrayVO -> rArrayVO.getRowName())); + return aa; + } + + @Override + public List getRStatHarmonicOrgMIcon(RStatHarmonicMParam param) { + //各单位类型 + List deptDTOList = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData(); + Map deptMap = deptDTOList.stream().collect(Collectors.toMap(DeptDTO::getId, Function.identity())); + //获取部门id集合 + List deptIds = deptDTOList.stream().map(DeptDTO::getId).collect(Collectors.toList()); + //指标对象类型属性 + DictData harmonicDate =null; + //判断是是否传入检测点信息值(电压) + if(StrUtil.isBlank(param.getStasisID())&&StrUtil.isBlank(param.getMonitorID())){ + //指标对象类型 + List indicatorTypeDate = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.STEADY_STATIS.getCode()).getData(); + indicatorTypeDate.sort(Comparator.comparing(data -> data.getSort())); + harmonicDate =indicatorTypeDate.get(0); + }else{ + //获取指标对象(频率偏差) + harmonicDate= dicDataFeignClient.getDicDataById( + param.getStasisID()).getData(); + } + //反防止参数查询数据报错 + Assert.isTrue( + CollUtil.isNotEmpty(deptDTOList)||ObjectUtil.isNotNull(harmonicDate) + , "各单位或者指标类型为空,请检查入参是否准确"); + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + //初始化对象 + List arrayVOList=new ArrayList<>(); + List rStatHarmonicVoltageMS = statHarmonicOrgMMapper.selectList(new LambdaQueryWrapper() + .eq(RStatHarmonicOrgM::getDataType,mainnetData.getId()) + .in(RStatHarmonicOrgM::getOrgNo,deptIds) + .eq(RStatHarmonicOrgM::getHarmonicType, harmonicDate.getId()) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatHarmonicOrgM::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatHarmonicOrgM::getDataDate, param.getEndTime()) + ); + //将数据转换为map进行便利 + Map> voltageMMap = rStatHarmonicVoltageMS.stream() + .collect(Collectors.groupingBy(RStatHarmonicOrgM::getOrgNo)); + //对象 + if (CollUtil.isNotEmpty(rStatHarmonicVoltageMS)){ + voltageMMap.forEach((key, value) -> { + if(deptMap.containsKey(key)){ + DeptDTO data = deptMap.get(key); + for (RStatHarmonicOrgM orgM : value) { + RIconVO rIconVO = new RIconVO(); + rIconVO.setRowName(data.getName()); +// rIconVO.setSort(data.getSort()); + rIconVO.setOverLimitMeasurementAccrued(orgM.getOverLimitMeasurementAccrued()); + rIconVO.setOverLimitMeasurementAverage(orgM.getOverLimitMeasurementAverage()); + rIconVO.setOverLimitMeasurementRatioAccrued(orgM.getOverLimitMeasurementRatioAccrued()); + rIconVO.setOverLimitMeasurementRatioAverage(orgM.getOverLimitMeasurementRatioAverage()); + DecimalFormat df = new DecimalFormat("###.00"); + Float averageOverDay = Float.parseFloat( + df.format(orgM.getOverDay()/(orgM.getOverLimitMeasurementAccrued()*1.0))); + rIconVO.setAverageOverDay(averageOverDay); + arrayVOList.add(rIconVO); + } + + } + }); + } + arrayVOList.sort(Comparator.comparing(rIconVO -> rIconVO.getRowName())); + return arrayVOList; + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicOrgQServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicOrgQServiceImpl.java new file mode 100644 index 000000000..e4589dcd9 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicOrgQServiceImpl.java @@ -0,0 +1,194 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.lang.Assert; +import cn.hutool.core.util.ObjectUtil; +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.param.RStatHarmonicMParam; +import com.njcn.harmonic.pojo.po.RStatHarmonicOrgQ; +import com.njcn.harmonic.mapper.StatHarmonicOrgQMapper; +import com.njcn.harmonic.pojo.vo.RArrayVO; +import com.njcn.harmonic.pojo.vo.RIconVO; +import com.njcn.harmonic.pojo.vo.RStatHarmonicMVO; +import com.njcn.harmonic.service.RStatHarmonicOrgQService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataEnum; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.dto.DeptDTO; +import com.njcn.web.utils.WebUtil; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +/** + *

+ * 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-14 + */ +@Service +@RequiredArgsConstructor +public class RStatHarmonicOrgQServiceImpl extends ServiceImpl implements RStatHarmonicOrgQService { + + private final DeptFeignClient deptFeignClient; + private final DicDataFeignClient dicDataFeignClient; + private final StatHarmonicOrgQMapper statHarmonicOrgQMapper; + @Override + public List getRStatHarmonicQAll(StatisticsBizBaseParam param) { + //子节点 获取所有得各单位类型 + List deptDTOList = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData(); + //获取部门id集合 + List deptIds = deptDTOList.stream().map(DeptDTO::getId).collect(Collectors.toList()); + Map deptMap = deptDTOList.stream().collect(Collectors.toMap(DeptDTO::getId, Function.identity())); + + //对象主节点 获取所有得指标类型 + List lineTypeData = dicDataFeignClient.getDicDataByTypeCode + (DicDataTypeEnum.STEADY_STATIS.getCode()).getData(); + Map lineTypeMap = lineTypeData.stream() + .collect(Collectors.toMap(DictData::getId, Function.identity())); + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + //数据库查询 + List list = statHarmonicOrgQMapper.selectList(new LambdaQueryWrapper() + .eq(RStatHarmonicOrgQ::getDataType,mainnetData.getId()) + .in(RStatHarmonicOrgQ::getOrgNo,deptIds) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatHarmonicOrgQ::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatHarmonicOrgQ::getDataDate, param.getEndTime())); + + //初始化指标类型(横向) + List arrayVOList=new ArrayList<>(); + List rm=new ArrayList<>(); + for (DeptDTO deptDTO : deptDTOList) { + RStatHarmonicMVO r = new RStatHarmonicMVO(); + r.setHarmonicName(deptDTO.getName()); + r.setOverLimitMeasurementAverage(0); + r.setOverLimitMeasurementAccrued(0); + r.setAverageOverDay(0.0F); + r.setOverDay(0); + r.setOverLimitMeasurementRatioAverage(0.0F); + r.setOverLimitMeasurementRatioAccrued(0.0F); + rm.add(r); + } + for (DictData lineTypeDatum : lineTypeData) { + RArrayVO r = new RArrayVO(); + r.setRowName(lineTypeDatum.getName()); + r.setColumns(rm); + r.setSort(lineTypeDatum.getSort()); + arrayVOList.add(r); + } + //根据检测点对象分组 + Map> MeasurementTypeClassMap = list.stream().collect(Collectors.groupingBy(RStatHarmonicOrgQ::getHarmonicType)); + //重新生成数据结构 + MeasurementTypeClassMap.forEach((key, value) -> { + if(lineTypeMap.containsKey(key)){ + RArrayVO arrayVO=new RArrayVO(); + DictData data = lineTypeMap.get(key); + arrayVO.setRowName(data.getName()); + arrayVO.setSort(data.getSort()); + List b=new ArrayList<>(); + b.addAll(rm); + for (RStatHarmonicOrgQ orgY : value) { + RStatHarmonicMVO r = BeanUtil.copyProperties(orgY, RStatHarmonicMVO.class); + DeptDTO data1 = deptMap.get(orgY.getOrgNo()); + if (ObjectUtil.isNotNull(data1)){ + r.setHarmonicName(data1.getName()); + r.setOverDay(0); + b.add(r); + } + } + Map linkedHashMap=new LinkedHashMap<>(); + for (RStatHarmonicMVO harmonicMVO : b) { + linkedHashMap.put(harmonicMVO.getHarmonicName(),harmonicMVO); + } + List aa=new ArrayList<>(linkedHashMap.values()); + aa.sort(Comparator.comparing(rStatHarmonicMVO -> rStatHarmonicMVO.getHarmonicName())); + arrayVO.setColumns(aa); + arrayVOList.add(arrayVO); + } + + }); + Map linkedHashMap=new LinkedHashMap<>(); + for (RArrayVO rStatHarmonicMVO : arrayVOList) { + linkedHashMap.put(rStatHarmonicMVO.getRowName(),rStatHarmonicMVO); + } + List aa=new ArrayList<>(linkedHashMap.values()); + arrayVOList.sort(Comparator.comparing(rArrayVO -> rArrayVO.getRowName())); + return aa; + } + + @Override + public List getRStatHarmonicOrgQIcon(RStatHarmonicMParam param) { + //各单位类型 + List deptDTOList = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData(); + Map deptMap = deptDTOList.stream().collect(Collectors.toMap(DeptDTO::getId, Function.identity())); + //获取部门id集合 + List deptIds = deptDTOList.stream().map(DeptDTO::getId).collect(Collectors.toList()); + //指标对象类型属性 + DictData harmonicDate =null; + //判断是是否传入检测点信息值(电压) + if(StrUtil.isBlank(param.getStasisID())&&StrUtil.isBlank(param.getMonitorID())){ + //指标对象类型 + List indicatorTypeDate = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.STEADY_STATIS.getCode()).getData(); + indicatorTypeDate.sort(Comparator.comparing(data -> data.getSort())); + harmonicDate =indicatorTypeDate.get(0); + }else{ + //获取指标对象(频率偏差) + harmonicDate= dicDataFeignClient.getDicDataById( + param.getStasisID()).getData(); + } + //反防止参数查询数据报错 + Assert.isTrue( + CollUtil.isNotEmpty(deptDTOList)||ObjectUtil.isNotNull(harmonicDate) + , "各单位或者指标类型为空,请检查入参是否准确"); + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + //初始化对象 + List arrayVOList=new ArrayList<>(); + List rStatHarmonicVoltageMS = statHarmonicOrgQMapper.selectList(new LambdaQueryWrapper() + .eq(RStatHarmonicOrgQ::getDataType,mainnetData.getId()) + .in(RStatHarmonicOrgQ::getOrgNo,deptIds) + .eq(RStatHarmonicOrgQ::getHarmonicType, harmonicDate.getId()) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatHarmonicOrgQ::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatHarmonicOrgQ::getDataDate, param.getEndTime()) + ); + //将数据转换为map进行便利 + Map> voltageMMap = rStatHarmonicVoltageMS.stream() + .collect(Collectors.groupingBy(RStatHarmonicOrgQ::getOrgNo)); + //对象 + if (CollUtil.isNotEmpty(rStatHarmonicVoltageMS)){ + voltageMMap.forEach((key, value) -> { + if(deptMap.containsKey(key)){ + DeptDTO data = deptMap.get(key); + for (RStatHarmonicOrgQ orgQ : value) { + RIconVO rIconVO = new RIconVO(); + rIconVO.setRowName(data.getName()); +// rIconVO.setSort(data.getSort()); + rIconVO.setOverLimitMeasurementAccrued(orgQ.getOverLimitMeasurementAccrued()); + rIconVO.setOverLimitMeasurementAverage(orgQ.getOverLimitMeasurementAverage()); + rIconVO.setOverLimitMeasurementRatioAccrued(orgQ.getOverLimitMeasurementRatioAccrued()); + rIconVO.setOverLimitMeasurementRatioAverage(orgQ.getOverLimitMeasurementRatioAverage()); + rIconVO.setAverageOverDay(orgQ.getAverageOverDay()); + arrayVOList.add(rIconVO); + } + + } + }); + } + arrayVOList.sort(Comparator.comparing(rIconVO -> rIconVO.getRowName())); + return arrayVOList; + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicOrgYServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicOrgYServiceImpl.java new file mode 100644 index 000000000..5513a49a4 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicOrgYServiceImpl.java @@ -0,0 +1,197 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.lang.Assert; +import cn.hutool.core.util.ObjectUtil; +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.param.RStatHarmonicMParam; +import com.njcn.harmonic.pojo.po.RStatHarmonicOrgY; +import com.njcn.harmonic.mapper.StatHarmonicOrgYMapper; +import com.njcn.harmonic.pojo.vo.RArrayVO; +import com.njcn.harmonic.pojo.vo.RIconVO; +import com.njcn.harmonic.pojo.vo.RStatHarmonicMVO; +import com.njcn.harmonic.service.RStatHarmonicOrgYService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataEnum; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.dto.DeptDTO; +import com.njcn.web.utils.WebUtil; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +/** + *

+ * 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-14 + */ +@Service +@RequiredArgsConstructor +public class RStatHarmonicOrgYServiceImpl extends ServiceImpl implements RStatHarmonicOrgYService { + + private final DicDataFeignClient dicDataFeignClient; + private final DeptFeignClient deptFeignClient; + private final StatHarmonicOrgYMapper statHarmonicOrgYMapper; + + @Override + public List getRStatHarmonicYAll(StatisticsBizBaseParam param) { + //子节点 获取所有得各单位类型 + List deptDTOList = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData(); + //获取部门id集合 + List deptIds = deptDTOList.stream().map(DeptDTO::getId).collect(Collectors.toList()); + Map deptMap = deptDTOList.stream().collect(Collectors.toMap(DeptDTO::getId, Function.identity())); + + //对象主节点 获取所有得指标类型 + List lineTypeData = dicDataFeignClient.getDicDataByTypeCode + (DicDataTypeEnum.STEADY_STATIS.getCode()).getData(); + Map lineTypeMap = lineTypeData.stream() + .collect(Collectors.toMap(DictData::getId, Function.identity())); + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + //数据库查询 + List list = statHarmonicOrgYMapper.selectList(new LambdaQueryWrapper() + .eq(RStatHarmonicOrgY::getDataType,mainnetData.getId()) + .in(RStatHarmonicOrgY::getOrgNo,deptIds) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatHarmonicOrgY::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatHarmonicOrgY::getDataDate, param.getEndTime())); + + //初始化指标类型(横向) + List arrayVOList=new ArrayList<>(); + List rm=new ArrayList<>(); + for (DeptDTO deptDTO : deptDTOList) { + RStatHarmonicMVO r = new RStatHarmonicMVO(); + r.setHarmonicName(deptDTO.getName()); + r.setOverLimitMeasurementAverage(0); + r.setOverLimitMeasurementAccrued(0); + r.setAverageOverDay(0.0F); + r.setOverDay(0); + r.setOverLimitMeasurementRatioAverage(0.0F); + r.setOverLimitMeasurementRatioAccrued(0.0F); + rm.add(r); + } + for (DictData lineTypeDatum : lineTypeData) { + RArrayVO r = new RArrayVO(); + r.setRowName(lineTypeDatum.getName()); + r.setColumns(rm); + r.setSort(lineTypeDatum.getSort()); + arrayVOList.add(r); + } + //根据检测点对象分组 + Map> MeasurementTypeClassMap = list.stream().collect(Collectors.groupingBy(RStatHarmonicOrgY::getHarmonicType)); + //重新生成数据结构 + MeasurementTypeClassMap.forEach((key, value) -> { + if(lineTypeMap.containsKey(key)){ + RArrayVO arrayVO=new RArrayVO(); + DictData data = lineTypeMap.get(key); + arrayVO.setRowName(data.getName()); + arrayVO.setSort(data.getSort()); + List b=new ArrayList<>(); + b.addAll(rm); + for (RStatHarmonicOrgY orgY : value) { + RStatHarmonicMVO r = BeanUtil.copyProperties(orgY, RStatHarmonicMVO.class); + DeptDTO data1 = deptMap.get(orgY.getOrgNo()); + if (ObjectUtil.isNotNull(data1)){ + r.setHarmonicName(data1.getName()); + r.setOverDay(0); + b.add(r); + } + } + Map linkedHashMap=new LinkedHashMap<>(); + for (RStatHarmonicMVO harmonicMVO : b) { + linkedHashMap.put(harmonicMVO.getHarmonicName(),harmonicMVO); + } + List aa=new ArrayList<>(linkedHashMap.values()); + aa.sort(Comparator.comparing(rStatHarmonicMVO -> rStatHarmonicMVO.getHarmonicName())); + arrayVO.setColumns(aa); + arrayVOList.add(arrayVO); + } + + }); + Map linkedHashMap=new LinkedHashMap<>(); + for (RArrayVO rStatHarmonicMVO : arrayVOList) { + linkedHashMap.put(rStatHarmonicMVO.getRowName(),rStatHarmonicMVO); + } + List aa=new ArrayList<>(linkedHashMap.values()); + arrayVOList.sort(Comparator.comparing(rArrayVO -> rArrayVO.getRowName())); + return aa; + } + + @Override + public List getRStatHarmonicOrgYIcon(RStatHarmonicMParam param) { + //各单位类型 + List deptDTOList = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData(); + Map deptMap = deptDTOList.stream().collect(Collectors.toMap(DeptDTO::getId, Function.identity())); + //获取部门id集合 + List deptIds = deptDTOList.stream().map(DeptDTO::getId).collect(Collectors.toList()); + //指标对象类型属性 + DictData harmonicDate =null; + //判断是是否传入检测点信息值(电压) + if(StrUtil.isBlank(param.getStasisID())&&StrUtil.isBlank(param.getMonitorID())){ + //指标对象类型 + List indicatorTypeDate = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.STEADY_STATIS.getCode()).getData(); + indicatorTypeDate.sort(Comparator.comparing(data -> data.getSort())); + harmonicDate =indicatorTypeDate.get(0); + }else{ + //获取指标对象(频率偏差) + harmonicDate= dicDataFeignClient.getDicDataById( + param.getStasisID()).getData(); + } + //反防止参数查询数据报错 + Assert.isTrue( + CollUtil.isNotEmpty(deptDTOList)||ObjectUtil.isNotNull(harmonicDate) + , "各单位或者指标类型为空,请检查入参是否准确"); + + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + //初始化对象 + List arrayVOList=new ArrayList<>(); + List rStatHarmonicVoltageMS = statHarmonicOrgYMapper.selectList(new LambdaQueryWrapper() + .eq(RStatHarmonicOrgY::getDataType,mainnetData.getId()) + .in(RStatHarmonicOrgY::getOrgNo,deptIds) + .eq(RStatHarmonicOrgY::getHarmonicType, harmonicDate.getId()) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatHarmonicOrgY::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatHarmonicOrgY::getDataDate, param.getEndTime()) + ); + //将数据转换为map进行便利 + Map> voltageMMap = rStatHarmonicVoltageMS.stream() + .collect(Collectors.groupingBy(RStatHarmonicOrgY::getOrgNo)); + //对象 + if (CollUtil.isNotEmpty(rStatHarmonicVoltageMS)){ + voltageMMap.forEach((key, value) -> { + if(deptMap.containsKey(key)){ + DeptDTO data = deptMap.get(key); + for (RStatHarmonicOrgY orgY : value) { + RIconVO rIconVO = new RIconVO(); + rIconVO.setRowName(data.getName()); +// rIconVO.setSort(data.getSort()); + rIconVO.setOverLimitMeasurementAccrued(orgY.getOverLimitMeasurementAccrued()); + rIconVO.setOverLimitMeasurementAverage(orgY.getOverLimitMeasurementAverage()); + rIconVO.setOverLimitMeasurementRatioAccrued(orgY.getOverLimitMeasurementRatioAccrued()); + rIconVO.setOverLimitMeasurementRatioAverage(orgY.getOverLimitMeasurementRatioAverage()); + rIconVO.setAverageOverDay(orgY.getAverageOverDay()); + arrayVOList.add(rIconVO); + } + + } + }); + } + arrayVOList.sort(Comparator.comparing(rIconVO -> rIconVO.getRowName())); + return arrayVOList; + } + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicQServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicQServiceImpl.java new file mode 100644 index 000000000..cc82740a2 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicQServiceImpl.java @@ -0,0 +1,122 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.mapper.RStatHarmonicQMapper; +import com.njcn.harmonic.pojo.po.RStatHarmonicQ; +import com.njcn.harmonic.pojo.vo.RArrayVO; +import com.njcn.harmonic.pojo.vo.RStatHarmonicMVO; +import com.njcn.harmonic.service.RStatHarmonicQService; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataEnum; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +/** + *

+ * 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-12 + */ +@Service +@RequiredArgsConstructor +public class RStatHarmonicQServiceImpl extends ServiceImpl implements RStatHarmonicQService { + + private final RStatHarmonicQMapper rStatHarmonicQMapper; + private final DicDataFeignClient dicDataFeignClient; + + @Override + public List getRStatHarmonicQAll(StatisticsBizBaseParam param) { + //子节点 获取所有得干扰源类型(监测点类型) + List interferenceSourceTypeData = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.MONITORING_LABELS.getCode()).getData(); + Map interferenceMap = interferenceSourceTypeData.stream().collect(Collectors.toMap(DictData::getId, Function.identity())); + + //对象主节点 获取所有得指标类型 + List lineTypeData = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.STEADY_STATIS.getCode()).getData(); + Map lineTypeMap = lineTypeData.stream() + .collect(Collectors.toMap(DictData::getId, Function.identity())); + + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + //数据库查询 + List list = rStatHarmonicQMapper.selectList(new LambdaQueryWrapper() + .eq(RStatHarmonicQ::getDataType,mainnetData.getId()) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatHarmonicQ::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatHarmonicQ::getDataDate, param.getEndTime())); + + //初始化指标类型(横向) + List arrayVOList=new ArrayList<>(); + List rm=new ArrayList<>(); + for (DictData lineTypeDatum : interferenceSourceTypeData) { + RStatHarmonicMVO r = new RStatHarmonicMVO(); + r.setHarmonicName(lineTypeDatum.getName()); + r.setSort(lineTypeDatum.getSort()); + r.setOverLimitMeasurementAverage(0); + r.setOverLimitMeasurementAccrued(0); + r.setAverageOverDay(0.0F); + r.setOverDay(0); + r.setOverLimitMeasurementRatioAverage(0.0F); + r.setOverLimitMeasurementRatioAccrued(0.0F); + rm.add(r); + } + for (DictData lineTypeDatum : lineTypeData) { + RArrayVO r = new RArrayVO(); + r.setRowName(lineTypeDatum.getName()); + r.setSort(lineTypeDatum.getSort()); + r.setColumns(rm); + arrayVOList.add(r); + } + //根据检测点对象分组 + Map> MeasurementTypeClassMap = list.stream().collect(Collectors.groupingBy(RStatHarmonicQ::getHarmonicType)); + //重新生成数据结构 + MeasurementTypeClassMap.forEach((key, value) -> { + + if(lineTypeMap.containsKey(key)){ + RArrayVO arrayVO=new RArrayVO(); + DictData data = lineTypeMap.get(key); + arrayVO.setRowName(data.getName()); + arrayVO.setSort(data.getSort()); + List b=new ArrayList<>(); + b.addAll(rm); + for (RStatHarmonicQ rStatHarmonicQ : value) { + RStatHarmonicMVO r = BeanUtil.copyProperties(rStatHarmonicQ, RStatHarmonicMVO.class); + DictData data1 = interferenceMap.get(rStatHarmonicQ.getMeasurementTypeClass()); + r.setHarmonicName(data1.getName()); + r.setSort(data1.getSort()); + r.setOverDay(0); + b.add(r); + } + Map linkedHashMap=new LinkedHashMap<>(); + for (RStatHarmonicMVO harmonicMVO : b) { + linkedHashMap.put(harmonicMVO.getHarmonicName(),harmonicMVO); + } + List aa=new ArrayList<>(linkedHashMap.values()); + aa.sort(Comparator.comparing(rStatHarmonicMVO -> rStatHarmonicMVO.getSort())); + arrayVO.setColumns(aa); + arrayVOList.add(arrayVO); + } + + }); + Map linkedHashMap=new LinkedHashMap<>(); + for (RArrayVO rStatHarmonicMVO : arrayVOList) { + linkedHashMap.put(rStatHarmonicMVO.getRowName(),rStatHarmonicMVO); + } + List aa=new ArrayList<>(linkedHashMap.values()); + arrayVOList.sort(Comparator.comparing(rArrayVO -> rArrayVO.getSort())); + return aa; + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicYServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicYServiceImpl.java new file mode 100644 index 000000000..bdf0437a4 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatHarmonicYServiceImpl.java @@ -0,0 +1,120 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.mapper.RStatHarmonicYMapper; +import com.njcn.harmonic.pojo.po.RStatHarmonicY; +import com.njcn.harmonic.pojo.vo.RArrayVO; +import com.njcn.harmonic.pojo.vo.RStatHarmonicMVO; +import com.njcn.harmonic.service.RStatHarmonicYService; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataEnum; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +/** + *

+ * 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-12 + */ +@Service +@RequiredArgsConstructor +public class RStatHarmonicYServiceImpl extends ServiceImpl implements RStatHarmonicYService { + + private final RStatHarmonicYMapper rStatHarmonicYMapper; + private final DicDataFeignClient dicDataFeignClient; + + @Override + public List getRStatHarmonicYAll(StatisticsBizBaseParam param) { + //子节点 获取所有得干扰源类型(监测点类型) + List interferenceSourceTypeData = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.MONITORING_LABELS.getCode()).getData(); + Map interferenceMap = interferenceSourceTypeData.stream().collect(Collectors.toMap(DictData::getId, Function.identity())); + + //对象主节点 获取所有得指标类型 + List lineTypeData = dicDataFeignClient.getDicDataByTypeCode + (DicDataTypeEnum.STEADY_STATIS.getCode()).getData(); + Map lineTypeMap = lineTypeData.stream() + .collect(Collectors.toMap(DictData::getId, Function.identity())); + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + //数据库查询 + List list = rStatHarmonicYMapper.selectList(new LambdaQueryWrapper() + .eq(RStatHarmonicY::getDataType,mainnetData.getId()) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatHarmonicY::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatHarmonicY::getDataDate, param.getEndTime())); + + //初始化指标类型(横向) + List arrayVOList=new ArrayList<>(); + List rm=new ArrayList<>(); + for (DictData lineTypeDatum : interferenceSourceTypeData) { + RStatHarmonicMVO r = new RStatHarmonicMVO(); + r.setHarmonicName(lineTypeDatum.getName()); + r.setSort(lineTypeDatum.getSort()); + r.setOverLimitMeasurementAverage(0); + r.setOverLimitMeasurementAccrued(0); + r.setAverageOverDay(0.0F); + r.setOverDay(0); + r.setOverLimitMeasurementRatioAverage(0.0F); + r.setOverLimitMeasurementRatioAccrued(0.0F); + rm.add(r); + } + for (DictData lineTypeDatum : lineTypeData) { + RArrayVO r = new RArrayVO(); + r.setRowName(lineTypeDatum.getName()); + r.setColumns(rm); + r.setSort(lineTypeDatum.getSort()); + arrayVOList.add(r); + } + //根据检测点对象分组 + Map> MeasurementTypeClassMap = list.stream().collect(Collectors.groupingBy(RStatHarmonicY::getHarmonicType)); + //重新生成数据结构 + MeasurementTypeClassMap.forEach((key, value) -> { + if(lineTypeMap.containsKey(key)){ + RArrayVO arrayVO=new RArrayVO(); + DictData data = lineTypeMap.get(key); + arrayVO.setRowName(data.getName()); + arrayVO.setSort(data.getSort()); + List b=new ArrayList<>(); + b.addAll(rm); + for (RStatHarmonicY rStatHarmonicY : value) { + RStatHarmonicMVO r = BeanUtil.copyProperties(rStatHarmonicY, RStatHarmonicMVO.class); + DictData data1 = interferenceMap.get(rStatHarmonicY.getMeasurementTypeClass()); + r.setHarmonicName(data1.getName()); + r.setSort(data1.getSort()); + r.setOverDay(0); + b.add(r); + } + Map linkedHashMap=new LinkedHashMap<>(); + for (RStatHarmonicMVO harmonicMVO : b) { + linkedHashMap.put(harmonicMVO.getHarmonicName(),harmonicMVO); + } + List aa=new ArrayList<>(linkedHashMap.values()); + aa.sort(Comparator.comparing(rStatHarmonicMVO -> rStatHarmonicMVO.getSort())); + arrayVO.setColumns(aa); + arrayVOList.add(arrayVO); + } + + }); + Map linkedHashMap=new LinkedHashMap<>(); + for (RArrayVO rStatHarmonicMVO : arrayVOList) { + linkedHashMap.put(rStatHarmonicMVO.getRowName(),rStatHarmonicMVO); + } + List aa=new ArrayList<>(linkedHashMap.values()); + arrayVOList.sort(Comparator.comparing(rArrayVO -> rArrayVO.getSort())); + return aa; + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatLoadTypeServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatLoadTypeServiceImpl.java new file mode 100644 index 000000000..6e3b6c41f --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatLoadTypeServiceImpl.java @@ -0,0 +1,136 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.collection.CollectionUtil; +import com.njcn.common.pojo.constant.BizParamConstant; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.mapper.*; +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.*; +import com.njcn.harmonic.pojo.vo.RArrayVO; +import com.njcn.harmonic.pojo.vo.RStatLoadTypeVO; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.harmonic.service.RStatLoadTypeService; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.dto.DeptDTO; +import com.njcn.web.utils.WebUtil; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.Comparator; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** + *

+ * 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +@Service +@RequiredArgsConstructor +public class RStatLoadTypeServiceImpl extends ServiceImpl implements RStatLoadTypeService { + + private final DeptFeignClient deptFeignClient; + private final DicDataFeignClient dicDataFeignClient; + private final RStatLoadTypeYMapper rStatLoadTypeYMapper; + private final RStatLoadTypeQMapper rStatLoadTypeQMapper; + private final RStatLoadTypeMMapper rStatLoadTypeMMapper; + + @Override + public List getRStatLoadType(StatisticsBizBaseParam param) { + //获取部门信息 + List data = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData(); + List deptIds = data.stream().map(DeptDTO::getId).collect(Collectors.toList()); + //获取字典信息 + List data1 = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.MONITORING_LABELS.getCode()).getData(); + List dictData = data1.stream().filter(dictdatas -> dictdatas.getLevel() == 1).collect(Collectors.toList()); + dictData.sort(Comparator.comparing(r ->r.getSort())); + //初始化对象 + List info = new ArrayList<>(); + List temp = new ArrayList<>(); + //根据部门进行筛选 + StatSubstationBizBaseParam baseParam=BeanUtil.copyProperties(param,StatSubstationBizBaseParam.class); + baseParam.setIds(deptIds); + if (CollectionUtil.isNotEmpty(data)) { + // 类型(1年 2季度 3月份 + switch (param.getType().toString()) { + case BizParamConstant.STAT_BIZ_YEAR: + // 获取年区域暂态指标分类统计表 + temp = rStatLoadTypeYMapper.getYearStatLoadType(baseParam); + break; + case BizParamConstant.STAT_BIZ_QUARTER: + // 获取季区域暂态指标分类统计表 + temp = rStatLoadTypeQMapper.getQuarterStatLoadType(baseParam); + break; + case BizParamConstant.STAT_BIZ_MONTH: + // 获取月区域暂态指标分类统计表 + temp = rStatLoadTypeMMapper.getMonthStatLoadType(baseParam); + break; + default: + break; + + } + // 匹配单位名称 + for (DeptDTO dto : data) { + for (RStatLoadTypeVO vo : temp) { + if (dto.getId().equals(vo.getOrgNo())) { + vo.setOrgName(dto.getName()); + } + } + } + //根据部门id进行分组 + Map> map = temp + .stream().collect(Collectors.groupingBy(RStatLoadTypeVO::getOrgNo)); + map.forEach((key, value) -> { + RArrayVO arrayVO=new RArrayVO(); + arrayVO.setRowName(value.get(0).getOrgName()); + //属性赋值监测点名称 + for (DictData dictDatum : dictData) { + for (RStatLoadTypeVO rStatLoadTypeVO : value) { + if(dictDatum.getId().equals(rStatLoadTypeVO.getLoadType())){ + rStatLoadTypeVO.setLoadName(dictDatum.getName()); + rStatLoadTypeVO.setSort(dictDatum.getSort()); + + } + } + } + //获取差集(数据在字典里面没有的集合) + Map> listMap = value.stream().collect(Collectors.groupingBy(RStatLoadTypeVO::getLoadType)); + List differenceList = dictData.stream().filter(r -> !listMap.containsKey(r.getId())) + .collect(Collectors.toList()); + for (DictData data4 : differenceList) { + RStatLoadTypeVO vo=new RStatLoadTypeVO(); + vo.setSort(data4.getSort()); + vo.setOrgNo(key); + vo.setOrgName(value.get(0).getOrgName()); + vo.setLoadType(data4.getId()); + vo.setLoadName(data4.getName()); + vo.setVAverage(0.0f); + vo.setVAccrued(0.0f); + vo.setIAverage(0.0f); + vo.setIAccrued(0.0f); + vo.setUnbalanceAverage(0.0f); + vo.setUnbalanceAccrued(0.0f); + vo.setINegAverage(0.0f); + vo.setINegAccrued(0.0f); + vo.setFlickerAverage(0.0f); + vo.setFlickerAccrued(0.0f); + value.add(vo); + } + value.sort(Comparator.comparing(r ->r.getSort())); + arrayVO.setColumns(value); + info.add(arrayVO); + }); + } + return info; + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatOrgBusbarVoltageServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatOrgBusbarVoltageServiceImpl.java new file mode 100644 index 000000000..2b6652b9a --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatOrgBusbarVoltageServiceImpl.java @@ -0,0 +1,100 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.collection.CollectionUtil; +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.njcn.common.pojo.constant.BizParamConstant; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.mapper.RStatOrgBusbarVoltageQMapper; +import com.njcn.harmonic.mapper.RStatOrgBusbarVoltageYMapper; +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatHarmonicOrgQ; +import com.njcn.harmonic.pojo.po.RStatOrgBusbarVoltageM; +import com.njcn.harmonic.mapper.RStatOrgBusbarVoltageMMapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.harmonic.pojo.po.RStatOrgBusbarVoltageQ; +import com.njcn.harmonic.pojo.po.RStatOrgBusbarVoltageY; +import com.njcn.harmonic.pojo.vo.RStatOrgBusbarVoltageVO; +import com.njcn.harmonic.pojo.vo.RStatSubstationOrg2VO; +import com.njcn.harmonic.pojo.vo.RStatSubstationOrgVO; +import com.njcn.harmonic.service.RStatOrgBusbarVoltageService; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.dto.DeptDTO; +import com.njcn.web.utils.WebUtil; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** + *

+ * 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-19 + */ +@Service +@RequiredArgsConstructor +public class RStatOrgBusbarVoltageServiceImpl extends ServiceImpl implements RStatOrgBusbarVoltageService { + + private final DeptFeignClient deptFeignClient; + private final RStatOrgBusbarVoltageYMapper rStatOrgBusbarVoltageYMapper; + private final RStatOrgBusbarVoltageQMapper rStatOrgBusbarVoltageQMapper; + private final RStatOrgBusbarVoltageMMapper rStatOrgBusbarVoltageMMapper; + + @Override + public List getRStatOrgBusbarVoltage(StatisticsBizBaseParam param) { + //获取部门信息 + List data = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData(); + List deptIds = data.stream().map(DeptDTO::getId).collect(Collectors.toList()); + + List info = new ArrayList<>(); + List temp = new ArrayList<>(); + if (CollectionUtil.isNotEmpty(data)) { +// List temp = new ArrayList<>(); + // 类型(1年 2季度 3月份 + switch (param.getType().toString()) { + case BizParamConstant.STAT_BIZ_YEAR: + // 获取年区域暂态指标分类统计表 + List rStatOrgBusbarVoltageYS = rStatOrgBusbarVoltageYMapper.selectList(new LambdaQueryWrapper() + .in(RStatOrgBusbarVoltageY::getOrgNo, deptIds) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatOrgBusbarVoltageY::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatOrgBusbarVoltageY::getDataDate, param.getEndTime())); + temp=BeanUtil.copyToList(rStatOrgBusbarVoltageYS, RStatOrgBusbarVoltageVO.class); + break; + case BizParamConstant.STAT_BIZ_QUARTER: + // 获取季区域暂态指标分类统计表 + List rStatOrgBusbarVoltageQS = rStatOrgBusbarVoltageQMapper.selectList(new LambdaQueryWrapper() + .in(RStatOrgBusbarVoltageQ::getOrgNo, deptIds) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatOrgBusbarVoltageQ::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatOrgBusbarVoltageQ::getDataDate, param.getEndTime())); + temp=BeanUtil.copyToList(rStatOrgBusbarVoltageQS, RStatOrgBusbarVoltageVO.class); + break; + case BizParamConstant.STAT_BIZ_MONTH: + // 获取月区域暂态指标分类统计表 + List rStatOrgBusbarVoltageMS = rStatOrgBusbarVoltageMMapper.selectList(new LambdaQueryWrapper() + .in(RStatOrgBusbarVoltageM::getOrgNo, deptIds) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatOrgBusbarVoltageM::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatOrgBusbarVoltageM::getDataDate, param.getEndTime())); + temp=BeanUtil.copyToList(rStatOrgBusbarVoltageMS, RStatOrgBusbarVoltageVO.class); + break; + default: + break; + + } + +// Map> map = temp +// .stream().collect(Collectors.groupingBy(RStatSubstationOrgVO::getOrgNo)); + } + return temp; + } + + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatOrgMServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatOrgMServiceImpl.java new file mode 100644 index 000000000..cebe8d804 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatOrgMServiceImpl.java @@ -0,0 +1,87 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatOrgM; +import com.njcn.harmonic.mapper.RStatOrgMMapper; +import com.njcn.harmonic.pojo.po.RStatOrgQ; +import com.njcn.harmonic.pojo.vo.RStatOrgVO; +import com.njcn.harmonic.service.RStatOrgMService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataEnum; +import com.njcn.system.pojo.po.DictData; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.dto.DeptDTO; +import com.njcn.web.utils.WebUtil; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.text.DecimalFormat; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.function.Function; +import java.util.stream.Collectors; + +/** + *

+ * 区域分类统计月表 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-17 + */ +@Service +@RequiredArgsConstructor +public class RStatOrgMServiceImpl extends ServiceImpl implements RStatOrgMService { + + private final DeptFeignClient deptFeignClient; + private final DicDataFeignClient dicDataFeignClient; + private final RStatOrgMMapper rStatOrgMMapper; + + @Override + public List getRStatHarmonicMAll(StatisticsBizBaseParam param) { + List deptDTOList = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData(); + //获取部门id集合 + List deptIds = deptDTOList.stream().map(DeptDTO::getId).collect(Collectors.toList()); + Map deptMap = deptDTOList.stream().collect(Collectors.toMap(DeptDTO::getId, Function.identity())); + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + //数据库查询 + List list = rStatOrgMMapper.selectList(new LambdaQueryWrapper() + .eq(RStatOrgM::getDataType,mainnetData.getId()) + .in(RStatOrgM::getOrgNo,deptIds) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatOrgM::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatOrgM::getDataDate, param.getEndTime())); + Map> collect = list.stream().collect(Collectors.groupingBy(RStatOrgM::getOrgNo)); + + List newList=new ArrayList<>(); + collect.forEach((key, value) -> { + if(deptMap.containsKey(key)){ + for (RStatOrgM rStatOrgM : value) { + DecimalFormat df = new DecimalFormat("###.00"); + DeptDTO deptDTO = deptMap.get(key); + RStatOrgVO rStatOrgVO = new RStatOrgVO(); + rStatOrgVO.setOrgName(deptDTO.getName()); + Float averageOverDay = Float.parseFloat( + df.format(rStatOrgM.getOverDayAccrued() / (rStatOrgM.getEffectiveMeasurementAccrued()*1.0))); + rStatOrgVO.setAverageOverDay(averageOverDay); + rStatOrgVO.setEffectiveMeasurementAverage(rStatOrgM.getEffectiveMeasurementAverage()); + rStatOrgVO.setEffectiveMeasurementAccrued(rStatOrgM.getEffectiveMeasurementAccrued()); + rStatOrgVO.setOverLimitMeasurementAverage(rStatOrgM.getHarmonicMeasurementAverage()); + rStatOrgVO.setOverLimitMeasurementAccrued(rStatOrgM.getHarmonicMeasurementAccrued()); + Float harmonicMeasurementRatioAverage = Float.parseFloat( + df.format(rStatOrgM.getHarmonicMeasurementAverage() / (rStatOrgM.getEffectiveMeasurementAverage()*1.0))); + rStatOrgVO.setHarmonicMeasurementRatioAverage(harmonicMeasurementRatioAverage); + Float harmonicMeasurementRatioAccrued = Float.parseFloat( + df.format(rStatOrgM.getHarmonicMeasurementAccrued() / (rStatOrgM.getEffectiveMeasurementAccrued()*1.0))); + rStatOrgVO.setHarmonicMeasurementRatioAccrued(harmonicMeasurementRatioAccrued); + newList.add(rStatOrgVO); + } + } + }); + return newList; + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatOrgQServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatOrgQServiceImpl.java new file mode 100644 index 000000000..74e7b632b --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatOrgQServiceImpl.java @@ -0,0 +1,86 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatOrgQ; +import com.njcn.harmonic.mapper.RStatOrgQMapper; +import com.njcn.harmonic.pojo.vo.RStatOrgVO; +import com.njcn.harmonic.service.RStatOrgQService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataEnum; +import com.njcn.system.pojo.po.DictData; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.dto.DeptDTO; +import com.njcn.web.utils.WebUtil; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.text.DecimalFormat; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.function.Function; +import java.util.stream.Collectors; + +/** + *

+ * 区域分类统计季表 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-17 + */ +@Service +@RequiredArgsConstructor +public class RStatOrgQServiceImpl extends ServiceImpl implements RStatOrgQService { + + private final DeptFeignClient deptFeignClient; + private final DicDataFeignClient dicDataFeignClient; + private final RStatOrgQMapper rStatOrgQMapper; + + @Override + public List getRStatHarmonicQAll(StatisticsBizBaseParam param) { + List deptDTOList = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData(); + //获取部门id集合 + List deptIds = deptDTOList.stream().map(DeptDTO::getId).collect(Collectors.toList()); + Map deptMap = deptDTOList.stream().collect(Collectors.toMap(DeptDTO::getId, Function.identity())); + + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + //数据库查询 + List list = rStatOrgQMapper.selectList(new LambdaQueryWrapper() + .eq(RStatOrgQ::getDataType,mainnetData.getId()) + .in(RStatOrgQ::getOrgNo,deptIds) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatOrgQ::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatOrgQ::getDataDate, param.getEndTime())); + Map> collect = list.stream().collect(Collectors.groupingBy(RStatOrgQ::getOrgNo)); + + List newList=new ArrayList<>(); + collect.forEach((key, value) -> { + if(deptMap.containsKey(key)){ + for (RStatOrgQ rStatOrgQ : value) { + DeptDTO deptDTO = deptMap.get(key); + RStatOrgVO rStatOrgVO = new RStatOrgVO(); + rStatOrgVO.setOrgName(deptDTO.getName()); + rStatOrgVO.setAverageOverDay(rStatOrgQ.getAverageOverDay()); + rStatOrgVO.setEffectiveMeasurementAverage(rStatOrgQ.getEffectiveMeasurementAverage()); + rStatOrgVO.setEffectiveMeasurementAccrued(rStatOrgQ.getEffectiveMeasurementAccrued()); + rStatOrgVO.setOverLimitMeasurementAverage(rStatOrgQ.getHarmonicMeasurementAverage()); + rStatOrgVO.setOverLimitMeasurementAccrued(rStatOrgQ.getHarmonicMeasurementAccrued()); + DecimalFormat df = new DecimalFormat("###.00"); + Float harmonicMeasurementRatioAverage = Float.parseFloat( + df.format(rStatOrgQ.getHarmonicMeasurementAverage() / (rStatOrgQ.getEffectiveMeasurementAverage()*1.0))); + rStatOrgVO.setHarmonicMeasurementRatioAverage(harmonicMeasurementRatioAverage); + Float harmonicMeasurementRatioAccrued = Float.parseFloat( + df.format(rStatOrgQ.getHarmonicMeasurementAccrued() / (rStatOrgQ.getEffectiveMeasurementAccrued()*1.0))); + rStatOrgVO.setHarmonicMeasurementRatioAccrued(harmonicMeasurementRatioAccrued); + newList.add(rStatOrgVO); + } + } + }); + return newList; + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatOrgYServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatOrgYServiceImpl.java new file mode 100644 index 000000000..3cd5eb309 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatOrgYServiceImpl.java @@ -0,0 +1,387 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.collection.CollectionUtil; +import cn.hutool.core.lang.Console; +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.njcn.common.pojo.constant.BizParamConstant; +import com.njcn.common.pojo.dto.SimpleDTO; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.device.pms.api.MonitorClient; +import com.njcn.device.pms.api.PmsGeneralDeviceInfoClient; +import com.njcn.device.pms.api.StatationStatClient; +import com.njcn.device.pms.pojo.dto.PmsGeneralDeviceDTO; +import com.njcn.device.pms.pojo.dto.PmsMonitorDTO; +import com.njcn.device.pms.pojo.dto.PmsStatationStatInfoDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.pojo.param.PmsMonitorParam; +import com.njcn.device.pms.pojo.param.PmsStatationStatInfoParam; +import com.njcn.harmonic.mapper.*; +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatOrgY; +import com.njcn.harmonic.pojo.vo.*; +import com.njcn.harmonic.service.RStatOrgYService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.system.api.DicDataFeignClient; +import com.njcn.system.enums.DicDataEnum; +import com.njcn.system.enums.DicDataTypeEnum; +import com.njcn.system.pojo.po.DictData; +import com.njcn.user.api.DeptFeignClient; +import com.njcn.user.pojo.dto.DeptDTO; +import com.njcn.web.utils.WebUtil; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.text.DecimalFormat; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.function.Function; +import java.util.stream.Collectors; + +/** + *

+ * 区域分类统计年表 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-17 + */ +@Service +@RequiredArgsConstructor +public class RStatOrgYServiceImpl extends ServiceImpl implements RStatOrgYService { + + private final DeptFeignClient deptFeignClient; + private final DicDataFeignClient dicDataFeignClient; + private final RStatOrgYMapper rStatOrgYMapper; + private final RStatOrgQMapper rStatOrgQMapper; + private final RStatOrgMMapper rStatOrgMMapper; + private final RStatSubstationMMapper rStatSubstationMMapper; + private final RStatSubstationQMapper rStatSubstationQMapper; + private final RStatSubstationYMapper rStatSubstationYMapper; + private final MonitorClient monitorClient; + private final PmsGeneralDeviceInfoClient pmsGeneralDeviceInfoClient; + + @Override + public List getRStatHarmonicYAll(StatisticsBizBaseParam param) { + List deptDTOList = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData(); + //获取部门id集合 + List deptIds = deptDTOList.stream().map(DeptDTO::getId).collect(Collectors.toList()); + Map deptMap = deptDTOList.stream().collect(Collectors.toMap(DeptDTO::getId, Function.identity())); + + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + //数据库查询 + List list = rStatOrgYMapper.selectList(new LambdaQueryWrapper() + .eq(RStatOrgY::getDataType,mainnetData.getId()) + .in(RStatOrgY::getOrgNo,deptIds) + .ge(StrUtil.isNotBlank(param.getStartTime()), RStatOrgY::getDataDate, param.getStartTime()) + .le(StrUtil.isNotBlank(param.getEndTime()), RStatOrgY::getDataDate, param.getEndTime())); + Map> collect = list.stream().collect(Collectors.groupingBy(RStatOrgY::getOrgNo)); + + List newList=new ArrayList<>(); + collect.forEach((key, value) -> { + if(deptMap.containsKey(key)){ + for (RStatOrgY rStatOrgY : value) { + DeptDTO deptDTO = deptMap.get(key); + RStatOrgVO rStatOrgVO = new RStatOrgVO(); + rStatOrgVO.setOrgName(deptDTO.getName()); + rStatOrgVO.setAverageOverDay(rStatOrgY.getAverageOverDay()); + rStatOrgVO.setEffectiveMeasurementAverage(rStatOrgY.getEffectiveMeasurementAverage()); + rStatOrgVO.setEffectiveMeasurementAccrued(rStatOrgY.getEffectiveMeasurementAccrued()); + rStatOrgVO.setOverLimitMeasurementAverage(rStatOrgY.getOverLimitMeasurementAverage()); + rStatOrgVO.setOverLimitMeasurementAccrued(rStatOrgY.getOverLimitMeasurementAccrued()); + DecimalFormat df = new DecimalFormat("###.00"); + Float harmonicMeasurementRatioAverage = Float.parseFloat( + df.format(rStatOrgY.getOverLimitMeasurementAverage() / (rStatOrgY.getEffectiveMeasurementAverage()*1.0))); + rStatOrgVO.setHarmonicMeasurementRatioAverage(harmonicMeasurementRatioAverage); + Float harmonicMeasurementRatioAccrued = Float.parseFloat( + df.format(rStatOrgY.getOverLimitMeasurementAccrued() / (rStatOrgY.getEffectiveMeasurementAccrued()*1.0))); + rStatOrgVO.setHarmonicMeasurementRatioAccrued(harmonicMeasurementRatioAccrued); + newList.add(rStatOrgVO); + } + } + }); + return newList; + } + + @Override + public List getRStatSubstationOrg(StatisticsBizBaseParam param) { + // 获取当前用户的部门的子部门信息 + List data = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData(); + List info = new ArrayList<>(); + if (CollectionUtil.isNotEmpty(data)) { + // 根据暂态指标枚举查询暂态指标 + List eventStatis = dicDataFeignClient.getDicDataByTypeCode( + DicDataTypeEnum.STEADY_STATIS.getCode()).getData(); + List temp = new ArrayList<>(); + // 过滤出部门id + List deptIds = data.stream().map(DeptDTO::getId).collect(Collectors.toList()); + StatSubstationBizBaseParam baseParam = BeanUtil.copyProperties(param,StatSubstationBizBaseParam.class); + baseParam.setIds(deptIds); + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + // 类型(1年 2季度 3月份 4日 + switch (param.getType().toString()) { + case BizParamConstant.STAT_BIZ_YEAR: + // 获取年区域暂态指标分类统计表 + temp = rStatOrgYMapper.getYearRStatHarmonicOrgInfo(baseParam,mainnetData.getId()); + break; + case BizParamConstant.STAT_BIZ_QUARTER: + // 获取季区域暂态指标分类统计表 + temp = rStatOrgQMapper.getQuarterRStatHarmonicOrgInfo(baseParam,mainnetData.getId()); + break; + case BizParamConstant.STAT_BIZ_MONTH: + // 获取月区域暂态指标分类统计表 + temp = rStatOrgMMapper.getMonthRStatHarmonicOrgInfo(baseParam,mainnetData.getId()); + break; + default: + break; + } + Map> map = temp + .stream().collect(Collectors.groupingBy(RStatSubstationOrgVO::getOrgNo)); + map.forEach((key, value) -> { + RStatSubstationOrg2VO vo=new RStatSubstationOrg2VO(); + vo.setOrgNo(value.get(0).getOrgNo()); + vo.setOrgName(value.get(0).getOrgName()); + vo.setDataDate(value.get(0).getDataDate()); + vo.setEffectiveMeasurementAverage(value.get(0).getEffectiveMeasurementAverage()); + vo.setEffectiveMeasurementAccrued(value.get(0).getEffectiveMeasurementAccrued()); + vo.setHarmonicMeasurementAverage(value.get(0).getHarmonicMeasurementAverage()); + vo.setHarmonicMeasurementAccrued(value.get(0).getHarmonicMeasurementAccrued()); + vo.setHarmonicMeasurementRatioAverage(value.get(0).getHarmonicMeasurementRatioAverage()); + vo.setHarmonicMeasurementRatioAccrued(value.get(0).getHarmonicMeasurementRatioAccrued()); + //遍历赋值 + for (RStatSubstationOrgVO orgVO : value) { + for (DictData eventStati : eventStatis) { + if (eventStati.getId().equals(orgVO.getHarmonicType())) { + if (eventStati.getCode().equals(RStatSubstationOrg2VO.FREQUENCY_DEV)) { + vo.setTAverage(orgVO.getOverLimitMeasurementAverage()); + vo.setTAccrued(orgVO.getOverLimitMeasurementAccrued()); + vo.setOAverage(orgVO.getOverLimitMeasurementRatioAverage()); + vo.setOAccrued(orgVO.getOverLimitMeasurementRatioAccrued()); + vo.setChainAverage(orgVO.getChainAverage()); + vo.setChainAccrued(orgVO.getChainAccrued()); + vo.setSameAverage(orgVO.getSameAverage()); + vo.setSameAccrued(orgVO.getSameAccrued()); + vo.setAverageOverDay(orgVO.getAverageOverDay()); + } + if (eventStati.getCode().equals(RStatSubstationOrg2VO.VOLTAGE_DEV)) { + vo.setTAverage1(orgVO.getOverLimitMeasurementAverage()); + vo.setTAccrued1(orgVO.getOverLimitMeasurementAccrued()); + vo.setOAverage1(orgVO.getOverLimitMeasurementRatioAverage()); + vo.setOAccrued1(orgVO.getOverLimitMeasurementRatioAccrued()); + vo.setChainAverage1(orgVO.getChainAverage()); + vo.setChainAccrued1(orgVO.getChainAccrued()); + vo.setSameAverage1(orgVO.getSameAverage()); + vo.setSameAccrued1(orgVO.getSameAccrued()); + vo.setAverageOverDay1(orgVO.getAverageOverDay()); + } + if (eventStati.getCode().equals(RStatSubstationOrg2VO.FLICKER)) { + vo.setTAverage2(orgVO.getOverLimitMeasurementAverage()); + vo.setTAccrued2(orgVO.getOverLimitMeasurementAccrued()); + vo.setOAverage2(orgVO.getOverLimitMeasurementRatioAverage()); + vo.setOAccrued2(orgVO.getOverLimitMeasurementRatioAccrued()); + vo.setChainAverage2(orgVO.getChainAverage()); + vo.setChainAccrued2(orgVO.getChainAccrued()); + vo.setSameAverage2(orgVO.getSameAverage()); + vo.setSameAccrued2(orgVO.getSameAccrued()); + vo.setAverageOverDay2(orgVO.getAverageOverDay()); + } + if (eventStati.getCode().equals(RStatSubstationOrg2VO.HARMONIC_VOLTAGE)) { + vo.setTAverage3(orgVO.getOverLimitMeasurementAverage()); + vo.setTAccrued3(orgVO.getOverLimitMeasurementAccrued()); + vo.setOAverage3(orgVO.getOverLimitMeasurementRatioAverage()); + vo.setOAccrued3(orgVO.getOverLimitMeasurementRatioAccrued()); + vo.setChainAverage3(orgVO.getChainAverage()); + vo.setChainAccrued3(orgVO.getChainAccrued()); + vo.setSameAverage3(orgVO.getSameAverage()); + vo.setSameAccrued3(orgVO.getSameAccrued()); + vo.setAverageOverDay3(orgVO.getAverageOverDay()); + } + if (eventStati.getCode().equals(RStatSubstationOrg2VO.HARMONIC_CURRENT)) { + vo.setTAverage4(orgVO.getOverLimitMeasurementAverage()); + vo.setTAccrued4(orgVO.getOverLimitMeasurementAccrued()); + vo.setOAverage4(orgVO.getOverLimitMeasurementRatioAverage()); + vo.setOAccrued4(orgVO.getOverLimitMeasurementRatioAccrued()); + vo.setChainAverage4(orgVO.getChainAverage()); + vo.setChainAccrued4(orgVO.getChainAccrued()); + vo.setSameAverage4(orgVO.getSameAverage()); + vo.setSameAccrued4(orgVO.getSameAccrued()); + vo.setAverageOverDay4(orgVO.getAverageOverDay()); + } + if (eventStati.getCode().equals(RStatSubstationOrg2VO.INTERHARMONIC_VOLTAGE)) { + vo.setTAverage5(orgVO.getOverLimitMeasurementAverage()); + vo.setTAccrued5(orgVO.getOverLimitMeasurementAccrued()); + vo.setOAverage5(orgVO.getOverLimitMeasurementRatioAverage()); + vo.setOAccrued5(orgVO.getOverLimitMeasurementRatioAccrued()); + vo.setChainAverage5(orgVO.getChainAverage()); + vo.setChainAccrued5(orgVO.getChainAccrued()); + vo.setSameAverage5(orgVO.getSameAverage()); + vo.setSameAccrued5(orgVO.getSameAccrued()); + vo.setAverageOverDay5(orgVO.getAverageOverDay()); + } + if (eventStati.getCode().equals(RStatSubstationOrg2VO.PHASE_VOLTAGE)) { + vo.setTAverage6(orgVO.getOverLimitMeasurementAverage()); + vo.setTAccrued6(orgVO.getOverLimitMeasurementAccrued()); + vo.setOAverage6(orgVO.getOverLimitMeasurementRatioAverage()); + vo.setOAccrued6(orgVO.getOverLimitMeasurementRatioAccrued()); + vo.setChainAverage6(orgVO.getChainAverage()); + vo.setChainAccrued6(orgVO.getChainAccrued()); + vo.setSameAverage6(orgVO.getSameAverage()); + vo.setSameAccrued6(orgVO.getSameAccrued()); + vo.setAverageOverDay6(orgVO.getAverageOverDay()); + } + if (eventStati.getCode().equals(RStatSubstationOrg2VO.NEG_CURRENT)) { + vo.setTAverage7(orgVO.getOverLimitMeasurementAverage()); + vo.setTAccrued7(orgVO.getOverLimitMeasurementAccrued()); + vo.setOAverage7(orgVO.getOverLimitMeasurementRatioAverage()); + vo.setOAccrued7(orgVO.getOverLimitMeasurementRatioAccrued()); + vo.setChainAverage7(orgVO.getChainAverage()); + vo.setChainAccrued7(orgVO.getChainAccrued()); + vo.setSameAverage7(orgVO.getSameAverage()); + vo.setSameAccrued7(orgVO.getSameAccrued()); + vo.setAverageOverDay7(orgVO.getAverageOverDay()); + } + if (eventStati.getCode().equals(RStatSubstationOrg2VO.TOTAL_INDICATOR)) { + vo.setTAverage8(orgVO.getOverLimitMeasurementAverage()); + vo.setTAccrued8(orgVO.getOverLimitMeasurementAccrued()); + vo.setOAverage8(orgVO.getOverLimitMeasurementRatioAverage()); + vo.setOAccrued8(orgVO.getOverLimitMeasurementRatioAccrued()); + vo.setChainAverage8(orgVO.getChainAverage()); + vo.setChainAccrued8(orgVO.getChainAccrued()); + vo.setSameAverage8(orgVO.getSameAverage()); + vo.setSameAccrued8(orgVO.getSameAccrued()); + vo.setAverageOverDay8(orgVO.getAverageOverDay()); + } + + } + + } + } + info.add(vo); + }); + // 匹配单位名称 + for (DeptDTO dto : data) { + for (RStatSubstationOrg2VO vo : info) { + if (dto.getId().equals(vo.getOrgNo())) { + vo.setOrgName(dto.getName()); + } + } + } + } + return info; + } + + @Override + public List getRStatSubstation(StatSubstationBizBaseParam param) { + PmsDeviceInfoParam pms=new PmsDeviceInfoParam(); + pms.setDeptIndex(param.getId()); + pms.setStatisticalType(new SimpleDTO()); + List data = pmsGeneralDeviceInfoClient.getPmsDeviceInfoWithInOrg(pms).getData(); + //生成变电站id集合 + List pAddIds=new ArrayList<>(); + data.stream().forEach(e-> pAddIds.addAll(e.getPowerrIdList())); + List rSubstationIconVO = new ArrayList<>(); + //根据监测点id获取变电站信息 + PmsMonitorParam dto=new PmsMonitorParam(); + List mAddIds=new ArrayList<>(); + data.stream().forEach(e-> mAddIds.addAll(e.getMonitorIdList())); + dto.setMonitorIds(mAddIds); + dto.setPowerrIds(param.getIds()); + //根据变电站分组 + List pmsMonitorDTOS = monitorClient.getMonitorInfoListByCond(dto).getData(); + Map pmsMonitorDTOMap = pmsMonitorDTOS.stream() + .collect(Collectors.toMap(PmsMonitorDTO::getPowerrId, Function.identity())); + + if(CollUtil.isNotEmpty(pmsMonitorDTOS)){ + //获取最新过滤的变电站id + List ids = pmsMonitorDTOS.stream().map(PmsMonitorDTO::getPowerrId).collect(Collectors.toList()); + //根据id进行筛选 + StatSubstationBizBaseParam baseParam= BeanUtil.copyProperties(param,StatSubstationBizBaseParam.class); + baseParam.setIds(ids); + String string = param.getType().toString(); + switch (string) { + //查询变电站稳态指标平均超标天数-年数据 + case BizParamConstant.STAT_BIZ_YEAR: + rSubstationIconVO =rStatSubstationYMapper.getStatSubstationIcon2Y(baseParam); + break; + //查询变电站稳态指标平均超标天数-季数据 + case BizParamConstant.STAT_BIZ_QUARTER: + rSubstationIconVO = rStatSubstationQMapper.getStatSubstationIcon2Q(baseParam); + break; + //查询变电站稳态指标平均超标天数-月数据 + case BizParamConstant.STAT_BIZ_MONTH: + rSubstationIconVO = rStatSubstationMMapper.getStatSubstationIcon2M(baseParam); + break; + default: + break; + } + List rSubstationInfoVOS = BeanUtil.copyToList(rSubstationIconVO, RSubstationIcon2VO.RSubstationInfoVO.class); + if(CollectionUtil.isNotEmpty(rSubstationInfoVOS)){ + Map detailVOMap = rSubstationInfoVOS.stream() + .collect(Collectors.toMap(RSubstationIcon2VO.RSubstationInfoVO::getSubstationId,Function.identity())); + detailVOMap.forEach((Key,value)->{ + if(pmsMonitorDTOMap.containsKey(Key)){ + PmsMonitorDTO dto1 = pmsMonitorDTOMap.get(Key); + value.setCityName(dto1.getOrgName()); + value.setSubstationName(dto1.getPowerrName()); + //获取省级公司 +// value.setProvinceName(deptFeignClient.getAreaIdByDeptId()); + } + }); + } + return rSubstationInfoVOS; + } + return null; + } + + @Override + public List getRStatOrgIndex(StatisticsBizBaseParam param) { + // 获取当前用户的部门的子部门信息 + List data = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData(); + List info = new ArrayList<>(); + //获取主网id信息 + DictData mainnetData = dicDataFeignClient.getDicDataByCode(DicDataEnum.MAINNET_POINT.getCode()).getData(); + + if (CollectionUtil.isNotEmpty(data)) { + // 过滤出部门id + List deptIds = data.stream().map(DeptDTO::getId).collect(Collectors.toList()); + StatSubstationBizBaseParam baseParam = BeanUtil.copyProperties(param, StatSubstationBizBaseParam.class); + baseParam.setIds(deptIds); + // 类型(1年 2季度 3月份 4日 + switch (param.getType().toString()) { + case BizParamConstant.STAT_BIZ_YEAR: + // 获取年区域稳态指标合格率统计表 + info = rStatOrgYMapper.getYearRStatOrgIndex(baseParam,mainnetData.getId()); + break; + case BizParamConstant.STAT_BIZ_QUARTER: + // 获取季区域稳态指标合格率统计表 + info = rStatOrgQMapper.getQuarterRStatOrgIndex(baseParam,mainnetData.getId()); + break; + case BizParamConstant.STAT_BIZ_MONTH: + // 获取月区域稳态指标合格率统计表 + info = rStatOrgMMapper.getMonthRStatOrgIndex(baseParam,mainnetData.getId()); + break; + default: + break; + } + } + //匹配名称 + for (DeptDTO dto : data) { + for (RStatOrgIndexVO vo : info) { + if (dto.getId().equals(vo.getOrgNo())) { + vo.setOrgNo(dto.getId()); + vo.setOrgName(dto.getName()); + } + } + } + return info; + } + + +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatSubstationMServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatSubstationMServiceImpl.java new file mode 100644 index 000000000..ab04037d5 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatSubstationMServiceImpl.java @@ -0,0 +1,131 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.collection.CollUtil; +import com.njcn.common.pojo.constant.BizParamConstant; +import com.njcn.common.pojo.dto.SimpleDTO; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.device.pms.api.PmsGeneralDeviceInfoClient; +import com.njcn.device.pms.api.StatationStatClient; +import com.njcn.device.pms.pojo.dto.PmsGeneralDeviceDTO; +import com.njcn.device.pms.pojo.dto.PmsStatationStatInfoDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.device.pms.pojo.param.PmsStatationStatInfoParam; +import com.njcn.harmonic.mapper.RStatSubstationQMapper; +import com.njcn.harmonic.mapper.RStatSubstationYMapper; +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatSubstationM; +import com.njcn.harmonic.mapper.RStatSubstationMMapper; +import com.njcn.harmonic.pojo.vo.RSubstationIcon2VO; +import com.njcn.harmonic.pojo.vo.RSubstationIconVO; +import com.njcn.harmonic.service.RStatSubstationMService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.user.api.DeptFeignClient; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.List; +import java.util.stream.Collectors; + +/** + *

+ * 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-18 + */ +@Service +@RequiredArgsConstructor +public class RStatSubstationMServiceImpl extends ServiceImpl implements RStatSubstationMService { + + private final RStatSubstationMMapper rStatSubstationMMapper; + private final RStatSubstationQMapper rStatSubstationQMapper; + private final RStatSubstationYMapper rStatSubstationYMapper; + private final StatationStatClient statationStatClient; + private final PmsGeneralDeviceInfoClient pmsGeneralDeviceInfoClient; + + @Override + public RSubstationIconVO getStatSubstationIcon(StatisticsBizBaseParam param) { + RSubstationIconVO rSubstationIconVO = new RSubstationIconVO(); + StatSubstationBizBaseParam baseParam= BeanUtil.copyProperties(param,StatSubstationBizBaseParam.class); + //根据部门获取变电站信息 +// baseParam.setIds(this.powerrIdList(param.getId())); + String string = param.getType().toString(); + switch (string) { + //查询变电站稳态指标超标分布(按超标天数)-年数据 + case BizParamConstant.STAT_BIZ_YEAR: + rSubstationIconVO = rStatSubstationYMapper.getStatSubstationIconY(baseParam); + break; + //查询变电站稳态指标超标分布(按超标天数)-季数据 + case BizParamConstant.STAT_BIZ_QUARTER: + rSubstationIconVO = rStatSubstationQMapper.getStatSubstationIconQ(baseParam); + break; + //查询变电站稳态指标超标分布(按超标天数)-月数据 + case BizParamConstant.STAT_BIZ_MONTH: + rSubstationIconVO = rStatSubstationMMapper.getStatSubstationIconM(baseParam); + break; + default: + break; + } + return rSubstationIconVO; + } + + @Override + public List getStatSubstationIcon2(StatisticsBizBaseParam param) { + //生成变电站id集合 + List rSubstationIconVO = new ArrayList<>(); + StatSubstationBizBaseParam baseParam= BeanUtil.copyProperties(param,StatSubstationBizBaseParam.class); + //根据id进行筛选 +// baseParam.setIds(this.powerrIdList(param.getId())); + String string = param.getType().toString(); + switch (string) { + //查询变电站稳态指标平均超标天数-年数据 + case BizParamConstant.STAT_BIZ_YEAR: + rSubstationIconVO = rStatSubstationYMapper.getStatSubstationIcon2Y(baseParam); + break; + //查询变电站稳态指标平均超标天数-季数据 + case BizParamConstant.STAT_BIZ_QUARTER: + rSubstationIconVO = rStatSubstationQMapper.getStatSubstationIcon2Q(baseParam); + break; + //查询变电站稳态指标平均超标天数-月数据 + case BizParamConstant.STAT_BIZ_MONTH: + rSubstationIconVO = rStatSubstationMMapper.getStatSubstationIcon2M(baseParam); + break; + default: + break; + } + + //获取变电站名称属性替换 + if(CollUtil.isNotEmpty(rSubstationIconVO)){ + List ids = rSubstationIconVO.stream().map(RSubstationIcon2VO::getSubstationId).collect(Collectors.toList()); + if(CollUtil.isNotEmpty(ids)){ + PmsStatationStatInfoParam pmsParam=new PmsStatationStatInfoParam(); + pmsParam.setPowerIds(ids); + List data1 = statationStatClient.getStatationStatInfo(pmsParam).getData(); + if (CollUtil.isNotEmpty(data1)){ + for (PmsStatationStatInfoDTO dto : data1) { + for (RSubstationIcon2VO vo : rSubstationIconVO) { + if (dto.getPowerId().equals(vo.getSubstationId())) { + vo.setSubstationName(dto.getPowerName()); + } + } + } + } + } + } + return rSubstationIconVO; + } + + private List powerrIdList(String id){ + //获取部门下面监测点信息 + PmsDeviceInfoParam pms=new PmsDeviceInfoParam(); + pms.setDeptIndex(id); + pms.setStatisticalType(new SimpleDTO()); + List data = pmsGeneralDeviceInfoClient.getPmsDeviceInfoWithInOrg(pms).getData(); + List addids=new ArrayList<>(); + data.stream().forEach(e-> addids.addAll(e.getPowerrIdList())); + return addids; + } +} diff --git a/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatSubstationVoltageMServiceImpl.java b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatSubstationVoltageMServiceImpl.java new file mode 100644 index 000000000..ffbcdf2a8 --- /dev/null +++ b/pqs-harmonic/harmonic-boot/src/main/java/com/njcn/harmonic/service/impl/RStatSubstationVoltageMServiceImpl.java @@ -0,0 +1,56 @@ +package com.njcn.harmonic.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import com.njcn.common.pojo.dto.SimpleDTO; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.device.pms.api.PmsGeneralDeviceInfoClient; +import com.njcn.device.pms.pojo.dto.PmsGeneralDeviceDTO; +import com.njcn.device.pms.pojo.param.PmsDeviceInfoParam; +import com.njcn.harmonic.pojo.param.StatSubstationBizBaseParam; +import com.njcn.harmonic.pojo.po.RStatSubstationVoltageM; +import com.njcn.harmonic.mapper.RStatSubstationVoltageMMapper; +import com.njcn.harmonic.pojo.vo.RVoltageIconVO; +import com.njcn.harmonic.service.RStatSubstationVoltageMService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.njcn.user.api.DeptFeignClient; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.List; + +/** + *

+ * 服务实现类 + *

+ * + * @author rui.wu + * @since 2022-10-18 + */ +@Service +@RequiredArgsConstructor +public class RStatSubstationVoltageMServiceImpl extends ServiceImpl implements RStatSubstationVoltageMService { + + private final DeptFeignClient deptFeignClient; + private final RStatSubstationVoltageMMapper rStatSubstationVoltageMMapper; + private final PmsGeneralDeviceInfoClient pmsGeneralDeviceInfoClient; + + @Override + public List getStatSubstationIcon(StatisticsBizBaseParam param) { + //获取部门id集合 + StatSubstationBizBaseParam baseParam= BeanUtil.copyProperties(param,StatSubstationBizBaseParam.class); +// baseParam.setIds(this.powerrIdList(param.getId())); + return rStatSubstationVoltageMMapper.getStatSubstationIcon(baseParam); + } + //根据部门获取监测点id信息 + private List powerrIdList(String id){ + //获取部门下面监测点信息 + PmsDeviceInfoParam pms=new PmsDeviceInfoParam(); + pms.setDeptIndex(id); + pms.setStatisticalType(new SimpleDTO()); + List data = pmsGeneralDeviceInfoClient.getPmsDeviceInfoWithInOrg(pms).getData(); + List addids=new ArrayList<>(); + data.stream().forEach(e-> addids.addAll(e.getPowerrIdList())); + return addids; + } +} diff --git a/pqs-job/job-executor.zip b/pqs-job/job-executor.zip new file mode 100644 index 000000000..c0034f1bc Binary files /dev/null and b/pqs-job/job-executor.zip differ diff --git a/pqs-prepare/harmonic-prepare/pom.xml b/pqs-prepare/harmonic-prepare/pom.xml index 0a820908f..4180a4a15 100644 --- a/pqs-prepare/harmonic-prepare/pom.xml +++ b/pqs-prepare/harmonic-prepare/pom.xml @@ -14,6 +14,8 @@ 8 8 + 1.18.6 + 1.3.0.Final @@ -59,6 +61,43 @@ com.njcn common-redis ${project.version} + + + + com.njcn + system-api + ${project.version} + + + com.njcn + energy-api + ${project.version} + compile + + + com.github.jeffreyning + mybatisplus-plus + 1.5.1-RELEASE + compile + + + org.mapstruct + mapstruct-jdk8 + ${org.mapstruct.version} + + + + org.mapstruct + mapstruct-processor + ${org.mapstruct.version} + + + + + org.projectlombok + lombok + ${org.projectlombok.version} + provided diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/PrepareHarmonicApplication.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/PrepareHarmonicApplication.java index 92834c31e..5429264ae 100644 --- a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/PrepareHarmonicApplication.java +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/PrepareHarmonicApplication.java @@ -1,5 +1,6 @@ package com.njcn.prepare.harmonic; +import com.github.jeffreyning.mybatisplus.conf.EnableMPP; import lombok.extern.slf4j.Slf4j; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; @@ -12,8 +13,10 @@ import org.springframework.cloud.openfeign.EnableFeignClients; * @date 2021年12月14日 20:33 */ @Slf4j +@MapperScan("com.njcn.**.mapper") @EnableFeignClients(basePackages = "com.njcn") @SpringBootApplication(scanBasePackages = "com.njcn") +@EnableMPP public class PrepareHarmonicApplication { public static void main(String[] args) { diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/CoustmReportFeignClient.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/CoustmReportFeignClient.java new file mode 100644 index 000000000..7417cf3dd --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/CoustmReportFeignClient.java @@ -0,0 +1,31 @@ +package com.njcn.prepare.harmonic.api.line; + +import com.njcn.common.pojo.constant.ServerInfo; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.prepare.harmonic.api.line.fallback.CoustomReportFeignClientFallbackFactory; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * 自定义报表 + * @author qijian + * @date 2022/10/20 + */ +@FeignClient( + value = ServerInfo.HARMONIC_PREPARE,//对应模块名 + path = "/report",//对应controller请求类 + fallbackFactory = CoustomReportFeignClientFallbackFactory.class//服务降级处理类 +) +public interface CoustmReportFeignClient { + + /** + * 批量处理报表 + * @author qijian + * @date 2022/10/19 + */ + @PostMapping("/batchReport") + HttpResult batchReport(@RequestBody LineParam reportParam); + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/DayDataFeignClient.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/DayDataFeignClient.java new file mode 100644 index 000000000..a2fe11c5e --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/DayDataFeignClient.java @@ -0,0 +1,33 @@ +package com.njcn.prepare.harmonic.api.line; + +import com.njcn.common.pojo.constant.ServerInfo; +import com.njcn.common.pojo.response.HttpResult; + +import com.njcn.prepare.harmonic.api.line.fallback.DayDataFeignClientFallbackFactory; +import com.njcn.prepare.harmonic.pojo.param.LimitRateHanlderParam; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * 自定义报表 + * @author qijian + * @date 2022/10/20 + */ +@FeignClient( + value = ServerInfo.HARMONIC_PREPARE,//对应模块名 + path = "/daydata",//对应controller请求类 + fallbackFactory = DayDataFeignClientFallbackFactory.class//服务降级处理类 +) +public interface DayDataFeignClient { + + /** + * 批量处理报表 + * @author qijian + * @date 2022/10/19 + */ + @PostMapping("/dataToDayHanlder") + HttpResult dayDataHanlder(@RequestBody LimitRateHanlderParam jobParam); + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/IntegrityFeignClient.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/IntegrityFeignClient.java new file mode 100644 index 000000000..d0bfd73a4 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/IntegrityFeignClient.java @@ -0,0 +1,32 @@ +package com.njcn.prepare.harmonic.api.line; + +import com.njcn.common.pojo.constant.ServerInfo; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.prepare.harmonic.api.line.fallback.IntegrityFeignClientFallbackFactory; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * 自定义报表 + * @author qijian + * @date 2022/10/20 + */ +@FeignClient( + value = ServerInfo.HARMONIC_PREPARE,//对应模块名 + path = "/integrity",//对应controller请求类 + fallbackFactory = IntegrityFeignClientFallbackFactory.class//服务降级处理类 +) +public interface IntegrityFeignClient { + + /** + * 批量处理报表 + * @author qijian + * @date 2022/10/19 + */ + @PostMapping("/computeDataIntegrity") + HttpResult computeDataIntegrity(@RequestBody @Validated LineParam lineParam); + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/LimitTargetFeignClient.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/LimitTargetFeignClient.java new file mode 100644 index 000000000..51341caa4 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/LimitTargetFeignClient.java @@ -0,0 +1,32 @@ +package com.njcn.prepare.harmonic.api.line; + +import com.njcn.common.pojo.constant.ServerInfo; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.prepare.harmonic.api.line.fallback.LimitTargetFeignClientFallbackFactory; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * 自定义报表 + * @author qijian + * @date 2022/10/20 + */ +@FeignClient( + value = ServerInfo.HARMONIC_PREPARE,//对应模块名 + path = "/limitTarget",//对应controller请求类 + fallbackFactory = LimitTargetFeignClientFallbackFactory.class//服务降级处理类 +) +public interface LimitTargetFeignClient { + + /** + * 批量处理报表 + * @author qijian + * @date 2022/10/19 + */ + @PostMapping("/getLimitTargetData") + HttpResult getLimitTargetData(@RequestBody @Validated LineParam lineParam); + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/LimitrateFeignClient.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/LimitrateFeignClient.java new file mode 100644 index 000000000..13c34868d --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/LimitrateFeignClient.java @@ -0,0 +1,32 @@ +package com.njcn.prepare.harmonic.api.line; + +import com.njcn.common.pojo.constant.ServerInfo; +import com.njcn.common.pojo.response.HttpResult; + +import com.njcn.prepare.harmonic.api.line.fallback.LimitTargetFeignClientFallbackFactory; +import com.njcn.prepare.harmonic.api.line.fallback.LimitrateFeignClientFallbackFactory; +import com.njcn.prepare.harmonic.pojo.param.LimitRateHanlderParam; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * 自定义报表 + * @author qijian + * @date 2022/10/20 + */ +@FeignClient( + value = ServerInfo.HARMONIC_PREPARE,//对应模块名 + path = "/limitrate",//对应controller请求类 + fallbackFactory = LimitrateFeignClientFallbackFactory.class//服务降级处理类 +) +public interface LimitrateFeignClient { + + /** + * 越限 + */ + @PostMapping("/LimitRateHanlder") + HttpResult limitRateHanlder(@RequestBody LimitRateHanlderParam limitRateHanlderParam ); + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/NormalLimitFeignClient.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/NormalLimitFeignClient.java new file mode 100644 index 000000000..9c6a71700 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/NormalLimitFeignClient.java @@ -0,0 +1,31 @@ +package com.njcn.prepare.harmonic.api.line; + +import com.njcn.common.pojo.constant.ServerInfo; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.prepare.harmonic.api.line.fallback.NormalFeignClientFallbackFactory; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * 自定义报表 + * @author qijian + * @date 2022/10/20 + */ +@FeignClient( + value = ServerInfo.HARMONIC_PREPARE,//对应模块名 + path = "/normalLimit",//对应controller请求类 + fallbackFactory = NormalFeignClientFallbackFactory.class//服务降级处理类 +) +public interface NormalLimitFeignClient { + + /** + * 批量处理报表 + * @author qijian + * @date 2022/10/19 + */ + @PostMapping("/getNormLimitData") + HttpResult getNormLimitData() ; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/OnlineRateFeignClient.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/OnlineRateFeignClient.java new file mode 100644 index 000000000..586c7d11e --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/OnlineRateFeignClient.java @@ -0,0 +1,30 @@ +package com.njcn.prepare.harmonic.api.line; + +import com.njcn.common.pojo.constant.ServerInfo; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.prepare.harmonic.api.line.fallback.OnlineRateFeignClientFallbackFactory; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * 自定义报表 + * @author qijian + * @date 2022/10/20 + */ +@FeignClient( + value = ServerInfo.HARMONIC_PREPARE,//对应模块名 + path = "/onlineRate",//对应controller请求类 + fallbackFactory = OnlineRateFeignClientFallbackFactory.class//服务降级处理类 +) +public interface OnlineRateFeignClient { + + /** + * 在线率 + */ + @PostMapping("/getOnlineRateData") + HttpResult getOnlineRateData(@RequestBody @Validated LineParam lineParam); + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/PollutionFeignClient.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/PollutionFeignClient.java new file mode 100644 index 000000000..3cccf3d4d --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/PollutionFeignClient.java @@ -0,0 +1,30 @@ +package com.njcn.prepare.harmonic.api.line; + +import com.njcn.common.pojo.constant.ServerInfo; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.prepare.harmonic.api.line.fallback.PollutionFeignClientFallbackFactory; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * 自定义报表 + * @author qijian + * @date 2022/10/20 + */ +@FeignClient( + value = ServerInfo.HARMONIC_PREPARE,//对应模块名 + path = "/pollution",//对应controller请求类 + fallbackFactory = PollutionFeignClientFallbackFactory.class//服务降级处理类 +) +public interface PollutionFeignClient { + + /** + * 污区 + */ + @PostMapping("/processPollutionData") + HttpResult processPollutionData(@RequestBody @Validated LineParam lineParam); + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/CoustomReportFeignClientFallbackFactory.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/CoustomReportFeignClientFallbackFactory.java new file mode 100644 index 000000000..f2a94cdf8 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/CoustomReportFeignClientFallbackFactory.java @@ -0,0 +1,44 @@ +package com.njcn.prepare.harmonic.api.line.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.utils.DeviceEnumUtil; +import com.njcn.prepare.harmonic.api.line.CoustmReportFeignClient; +import com.njcn.prepare.harmonic.api.line.DayDataFeignClient; +import com.njcn.prepare.harmonic.pojo.param.LimitRateHanlderParam; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import feign.hystrix.FallbackFactory; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * ReportFeignClientFallbackFactory + * + * @author qijian + * @version 1.0.0 + * @createTime 2022/10/24 - 9:52 + */ +@Slf4j +@Component +public class CoustomReportFeignClientFallbackFactory implements FallbackFactory { + + @Override + public CoustmReportFeignClient 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 CoustmReportFeignClient() { + @Override + public HttpResult batchReport(@RequestBody LineParam reportParam){ + log.error("{}异常,降级处理,异常为:{}", "Date数据转Day数据: ", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + }; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/DayDataFeignClientFallbackFactory.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/DayDataFeignClientFallbackFactory.java new file mode 100644 index 000000000..a17dbf326 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/DayDataFeignClientFallbackFactory.java @@ -0,0 +1,43 @@ +package com.njcn.prepare.harmonic.api.line.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.utils.DeviceEnumUtil; +import com.njcn.prepare.harmonic.api.line.DayDataFeignClient; +import com.njcn.prepare.harmonic.pojo.param.LimitRateHanlderParam; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import feign.hystrix.FallbackFactory; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * ReportFeignClientFallbackFactory + * + * @author qijian + * @version 1.0.0 + * @createTime 2022/10/24 - 9:52 + */ +@Slf4j +@Component +public class DayDataFeignClientFallbackFactory implements FallbackFactory { + + @Override + public DayDataFeignClient 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 DayDataFeignClient() { + @Override + public HttpResult dayDataHanlder(@RequestBody LimitRateHanlderParam jobParam){ + log.error("{}异常,降级处理,异常为:{}", "Date数据转Day数据: ", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + }; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/IntegrityFeignClientFallbackFactory.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/IntegrityFeignClientFallbackFactory.java new file mode 100644 index 000000000..bdd909121 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/IntegrityFeignClientFallbackFactory.java @@ -0,0 +1,39 @@ +package com.njcn.prepare.harmonic.api.line.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.utils.DeviceEnumUtil; +import com.njcn.prepare.harmonic.api.line.IntegrityFeignClient; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import feign.hystrix.FallbackFactory; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * IntegrityFeignClientFallbackFactory + */ +@Slf4j +@Component +public class IntegrityFeignClientFallbackFactory implements FallbackFactory { + + @Override + public IntegrityFeignClient 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 IntegrityFeignClient() { + @Override + public HttpResult computeDataIntegrity(@RequestBody @Validated LineParam lineParam) { + log.error("{}异常,降级处理,异常为:{}", "数据完整性处理: ", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + }; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/LimitTargetFeignClientFallbackFactory.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/LimitTargetFeignClientFallbackFactory.java new file mode 100644 index 000000000..2c6844bd3 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/LimitTargetFeignClientFallbackFactory.java @@ -0,0 +1,43 @@ +package com.njcn.prepare.harmonic.api.line.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.utils.DeviceEnumUtil; +import com.njcn.prepare.harmonic.api.line.LimitTargetFeignClient; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import feign.hystrix.FallbackFactory; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * ReportFeignClientFallbackFactory + * + * @author qijian + * @version 1.0.0 + * @createTime 2022/10/24 - 9:52 + */ +@Slf4j +@Component +public class LimitTargetFeignClientFallbackFactory implements FallbackFactory { + + @Override + public LimitTargetFeignClient 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 LimitTargetFeignClient() { + @Override + public HttpResult getLimitTargetData(@RequestBody @Validated LineParam lineParam) { + log.error("{}异常,降级处理,异常为:{}", "越限数据: ", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + }; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/LimitrateFeignClientFallbackFactory.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/LimitrateFeignClientFallbackFactory.java new file mode 100644 index 000000000..43d147931 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/LimitrateFeignClientFallbackFactory.java @@ -0,0 +1,43 @@ +package com.njcn.prepare.harmonic.api.line.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.utils.DeviceEnumUtil; +import com.njcn.prepare.harmonic.api.line.LimitrateFeignClient; +import com.njcn.prepare.harmonic.pojo.param.LimitRateHanlderParam; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import feign.hystrix.FallbackFactory; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * ReportFeignClientFallbackFactory + * + * @author qijian + * @version 1.0.0 + * @createTime 2022/10/24 - 9:52 + */ +@Slf4j +@Component +public class LimitrateFeignClientFallbackFactory implements FallbackFactory { + + @Override + public LimitrateFeignClient 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 LimitrateFeignClient() { + @Override + public HttpResult limitRateHanlder(@RequestBody LimitRateHanlderParam limitRateHanlderParam ){ + log.error("{}异常,降级处理,异常为:{}", "越限数据处理: ", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + }; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/NormalFeignClientFallbackFactory.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/NormalFeignClientFallbackFactory.java new file mode 100644 index 000000000..f614566f6 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/NormalFeignClientFallbackFactory.java @@ -0,0 +1,36 @@ +package com.njcn.prepare.harmonic.api.line.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.utils.DeviceEnumUtil; +import com.njcn.prepare.harmonic.api.line.NormalLimitFeignClient; +import feign.hystrix.FallbackFactory; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +/** + * NormalFeignClientFallbackFactory + */ +@Slf4j +@Component +public class NormalFeignClientFallbackFactory implements FallbackFactory { + + @Override + public NormalLimitFeignClient 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 NormalLimitFeignClient() { + @Override + public HttpResult getNormLimitData() { + log.error("{}异常,降级处理,异常为:{}", "告警数据: ", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + }; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/OnlineRateFeignClientFallbackFactory.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/OnlineRateFeignClientFallbackFactory.java new file mode 100644 index 000000000..b3f509d66 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/OnlineRateFeignClientFallbackFactory.java @@ -0,0 +1,39 @@ +package com.njcn.prepare.harmonic.api.line.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.utils.DeviceEnumUtil; +import com.njcn.prepare.harmonic.api.line.OnlineRateFeignClient; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import feign.hystrix.FallbackFactory; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * OnlineRateFeignClientFallbackFactory + */ +@Slf4j +@Component +public class OnlineRateFeignClientFallbackFactory implements FallbackFactory { + + @Override + public OnlineRateFeignClient 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 OnlineRateFeignClient() { + @Override + public HttpResult getOnlineRateData(@RequestBody @Validated LineParam lineParam){ + log.error("{}异常,降级处理,异常为:{}", "在线率: ", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + }; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/PollutionFeignClientFallbackFactory.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/PollutionFeignClientFallbackFactory.java new file mode 100644 index 000000000..c7063a0f8 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/line/fallback/PollutionFeignClientFallbackFactory.java @@ -0,0 +1,40 @@ +package com.njcn.prepare.harmonic.api.line.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.utils.DeviceEnumUtil; +import com.njcn.prepare.harmonic.api.line.PollutionFeignClient; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import feign.hystrix.FallbackFactory; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * PollutionFeignClientFallbackFactory + * + */ +@Slf4j +@Component +public class PollutionFeignClientFallbackFactory implements FallbackFactory { + + @Override + public PollutionFeignClient 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 PollutionFeignClient() { + @Override + public HttpResult processPollutionData(@RequestBody @Validated LineParam lineParam){ + log.error("{}异常,降级处理,异常为:{}", "污区数据: ", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + }; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/voltage/VoltageFeignClient.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/voltage/VoltageFeignClient.java new file mode 100644 index 000000000..943bc253a --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/api/voltage/VoltageFeignClient.java @@ -0,0 +1,10 @@ +package com.njcn.prepare.harmonic.api.voltage; + +/** + * @author qijian + * @version 1.0.0 + * @date 2022年10月24日 20:13 + */ +public interface VoltageFeignClient { + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/constant/InfluxdbPOConverter.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/constant/InfluxdbPOConverter.java new file mode 100644 index 000000000..3d53a630d --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/constant/InfluxdbPOConverter.java @@ -0,0 +1,1558 @@ +package com.njcn.prepare.harmonic.constant; + +import com.njcn.prepare.harmonic.pojo.po.*; +import com.njcn.prepare.harmonic.pojo.po.line.*; +import org.mapstruct.Mapper; +import org.mapstruct.Mapping; +import org.mapstruct.factory.Mappers; +import org.springframework.stereotype.Component; + +/** + * Description:Influxdb po转mysql po + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/25 10:45【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Mapper +@Component +public interface InfluxdbPOConverter { + + InfluxdbPOConverter INFLUXDB_PO_CONVERTER = Mappers.getMapper (InfluxdbPOConverter.class); + + /*DataHarmRateVPO*/ + @Mapping(source = "v1", target = "fundamentalVoltageMax") + @Mapping(source = "v2", target = "harmonicVoltageContent2Max") + @Mapping(source = "v3", target = "harmonicVoltageContent3Max") + @Mapping(source = "v4", target = "harmonicVoltageContent4Max") + @Mapping(source = "v5", target = "harmonicVoltageContent5Max") + @Mapping(source = "v6", target = "harmonicVoltageContent6Max") + @Mapping(source = "v7", target = "harmonicVoltageContent7Max") + @Mapping(source = "v8", target = "harmonicVoltageContent8Max") + @Mapping(source = "v9", target = "harmonicVoltageContent9Max") + @Mapping(source = "v10", target = "harmonicVoltageContent10Max") + @Mapping(source = "v11", target = "harmonicVoltageContent11Max") + @Mapping(source = "v12", target = "harmonicVoltageContent12Max") + @Mapping(source = "v13", target = "harmonicVoltageContent13Max") + @Mapping(source = "v14", target = "harmonicVoltageContent14Max") + @Mapping(source = "v15", target = "harmonicVoltageContent15Max") + @Mapping(source = "v16", target = "harmonicVoltageContent16Max") + @Mapping(source = "v17", target = "harmonicVoltageContent17Max") + @Mapping(source = "v18", target = "harmonicVoltageContent18Max") + @Mapping(source = "v19", target = "harmonicVoltageContent19Max") + @Mapping(source = "v20", target = "harmonicVoltageContent20Max") + @Mapping(source = "v21", target = "harmonicVoltageContent21Max") + @Mapping(source = "v22", target = "harmonicVoltageContent22Max") + @Mapping(source = "v23", target = "harmonicVoltageContent23Max") + @Mapping(source = "v24", target = "harmonicVoltageContent24Max") + @Mapping(source = "v25", target = "harmonicVoltageContent25Max") + @Mapping(source = "v26", target = "harmonicVoltageContent26Max") + @Mapping(source = "v27", target = "harmonicVoltageContent27Max") + @Mapping(source = "v28", target = "harmonicVoltageContent28Max") + @Mapping(source = "v29", target = "harmonicVoltageContent29Max") + @Mapping(source = "v30", target = "harmonicVoltageContent30Max") + @Mapping(source = "v31", target = "harmonicVoltageContent31Max") + @Mapping(source = "v32", target = "harmonicVoltageContent32Max") + @Mapping(source = "v33", target = "harmonicVoltageContent33Max") + @Mapping(source = "v34", target = "harmonicVoltageContent34Max") + @Mapping(source = "v35", target = "harmonicVoltageContent35Max") + @Mapping(source = "v36", target = "harmonicVoltageContent36Max") + @Mapping(source = "v37", target = "harmonicVoltageContent37Max") + @Mapping(source = "v38", target = "harmonicVoltageContent38Max") + @Mapping(source = "v39", target = "harmonicVoltageContent39Max") + @Mapping(source = "v40", target = "harmonicVoltageContent40Max") + @Mapping(source = "v41", target = "harmonicVoltageContent41Max") + @Mapping(source = "v42", target = "harmonicVoltageContent42Max") + @Mapping(source = "v43", target = "harmonicVoltageContent43Max") + @Mapping(source = "v44", target = "harmonicVoltageContent44Max") + @Mapping(source = "v45", target = "harmonicVoltageContent45Max") + @Mapping(source = "v46", target = "harmonicVoltageContent46Max") + @Mapping(source = "v47", target = "harmonicVoltageContent47Max") + @Mapping(source = "v48", target = "harmonicVoltageContent48Max") + @Mapping(source = "v49", target = "harmonicVoltageContent49Max") + @Mapping(source = "v50", target = "harmonicVoltageContent50Max") + + public RMpHarmonicVRateReportDPO dataVPOTORMpHarmonicPReportDPOMax(DataHarmRateVPO dataVPO); + + @Mapping(source = "v1", target = "fundamentalVoltageMin") + @Mapping(source = "v2", target = "harmonicVoltageContent2Min") + @Mapping(source = "v3", target = "harmonicVoltageContent3Min") + @Mapping(source = "v4", target = "harmonicVoltageContent4Min") + @Mapping(source = "v5", target = "harmonicVoltageContent5Min") + @Mapping(source = "v6", target = "harmonicVoltageContent6Min") + @Mapping(source = "v7", target = "harmonicVoltageContent7Min") + @Mapping(source = "v8", target = "harmonicVoltageContent8Min") + @Mapping(source = "v9", target = "harmonicVoltageContent9Min") + @Mapping(source = "v10", target = "harmonicVoltageContent10Min") + @Mapping(source = "v11", target = "harmonicVoltageContent11Min") + @Mapping(source = "v12", target = "harmonicVoltageContent12Min") + @Mapping(source = "v13", target = "harmonicVoltageContent13Min") + @Mapping(source = "v14", target = "harmonicVoltageContent14Min") + @Mapping(source = "v15", target = "harmonicVoltageContent15Min") + @Mapping(source = "v16", target = "harmonicVoltageContent16Min") + @Mapping(source = "v17", target = "harmonicVoltageContent17Min") + @Mapping(source = "v18", target = "harmonicVoltageContent18Min") + @Mapping(source = "v19", target = "harmonicVoltageContent19Min") + @Mapping(source = "v20", target = "harmonicVoltageContent20Min") + @Mapping(source = "v21", target = "harmonicVoltageContent21Min") + @Mapping(source = "v22", target = "harmonicVoltageContent22Min") + @Mapping(source = "v23", target = "harmonicVoltageContent23Min") + @Mapping(source = "v24", target = "harmonicVoltageContent24Min") + @Mapping(source = "v25", target = "harmonicVoltageContent25Min") + @Mapping(source = "v26", target = "harmonicVoltageContent26Min") + @Mapping(source = "v27", target = "harmonicVoltageContent27Min") + @Mapping(source = "v28", target = "harmonicVoltageContent28Min") + @Mapping(source = "v29", target = "harmonicVoltageContent29Min") + @Mapping(source = "v30", target = "harmonicVoltageContent30Min") + @Mapping(source = "v31", target = "harmonicVoltageContent31Min") + @Mapping(source = "v32", target = "harmonicVoltageContent32Min") + @Mapping(source = "v33", target = "harmonicVoltageContent33Min") + @Mapping(source = "v34", target = "harmonicVoltageContent34Min") + @Mapping(source = "v35", target = "harmonicVoltageContent35Min") + @Mapping(source = "v36", target = "harmonicVoltageContent36Min") + @Mapping(source = "v37", target = "harmonicVoltageContent37Min") + @Mapping(source = "v38", target = "harmonicVoltageContent38Min") + @Mapping(source = "v39", target = "harmonicVoltageContent39Min") + @Mapping(source = "v40", target = "harmonicVoltageContent40Min") + @Mapping(source = "v41", target = "harmonicVoltageContent41Min") + @Mapping(source = "v42", target = "harmonicVoltageContent42Min") + @Mapping(source = "v43", target = "harmonicVoltageContent43Min") + @Mapping(source = "v44", target = "harmonicVoltageContent44Min") + @Mapping(source = "v45", target = "harmonicVoltageContent45Min") + @Mapping(source = "v46", target = "harmonicVoltageContent46Min") + @Mapping(source = "v47", target = "harmonicVoltageContent47Min") + @Mapping(source = "v48", target = "harmonicVoltageContent48Min") + @Mapping(source = "v49", target = "harmonicVoltageContent49Min") + @Mapping(source = "v50", target = "harmonicVoltageContent50Min") + public RMpHarmonicVRateReportDPO dataVPOTORMpHarmonicPReportDPOMin(DataHarmRateVPO dataVPO); + + + @Mapping(source = "v1", target = "fundamentalVoltageAvg") + @Mapping(source = "v2", target = "harmonicVoltageContent2Avg") + @Mapping(source = "v3", target = "harmonicVoltageContent3Avg") + @Mapping(source = "v4", target = "harmonicVoltageContent4Avg") + @Mapping(source = "v5", target = "harmonicVoltageContent5Avg") + @Mapping(source = "v6", target = "harmonicVoltageContent6Avg") + @Mapping(source = "v7", target = "harmonicVoltageContent7Avg") + @Mapping(source = "v8", target = "harmonicVoltageContent8Avg") + @Mapping(source = "v9", target = "harmonicVoltageContent9Avg") + @Mapping(source = "v10", target = "harmonicVoltageContent10Avg") + @Mapping(source = "v11", target = "harmonicVoltageContent11Avg") + @Mapping(source = "v12", target = "harmonicVoltageContent12Avg") + @Mapping(source = "v13", target = "harmonicVoltageContent13Avg") + @Mapping(source = "v14", target = "harmonicVoltageContent14Avg") + @Mapping(source = "v15", target = "harmonicVoltageContent15Avg") + @Mapping(source = "v16", target = "harmonicVoltageContent16Avg") + @Mapping(source = "v17", target = "harmonicVoltageContent17Avg") + @Mapping(source = "v18", target = "harmonicVoltageContent18Avg") + @Mapping(source = "v19", target = "harmonicVoltageContent19Avg") + @Mapping(source = "v20", target = "harmonicVoltageContent20Avg") + @Mapping(source = "v21", target = "harmonicVoltageContent21Avg") + @Mapping(source = "v22", target = "harmonicVoltageContent22Avg") + @Mapping(source = "v23", target = "harmonicVoltageContent23Avg") + @Mapping(source = "v24", target = "harmonicVoltageContent24Avg") + @Mapping(source = "v25", target = "harmonicVoltageContent25Avg") + @Mapping(source = "v26", target = "harmonicVoltageContent26Avg") + @Mapping(source = "v27", target = "harmonicVoltageContent27Avg") + @Mapping(source = "v28", target = "harmonicVoltageContent28Avg") + @Mapping(source = "v29", target = "harmonicVoltageContent29Avg") + @Mapping(source = "v30", target = "harmonicVoltageContent30Avg") + @Mapping(source = "v31", target = "harmonicVoltageContent31Avg") + @Mapping(source = "v32", target = "harmonicVoltageContent32Avg") + @Mapping(source = "v33", target = "harmonicVoltageContent33Avg") + @Mapping(source = "v34", target = "harmonicVoltageContent34Avg") + @Mapping(source = "v35", target = "harmonicVoltageContent35Avg") + @Mapping(source = "v36", target = "harmonicVoltageContent36Avg") + @Mapping(source = "v37", target = "harmonicVoltageContent37Avg") + @Mapping(source = "v38", target = "harmonicVoltageContent38Avg") + @Mapping(source = "v39", target = "harmonicVoltageContent39Avg") + @Mapping(source = "v40", target = "harmonicVoltageContent40Avg") + @Mapping(source = "v41", target = "harmonicVoltageContent41Avg") + @Mapping(source = "v42", target = "harmonicVoltageContent42Avg") + @Mapping(source = "v43", target = "harmonicVoltageContent43Avg") + @Mapping(source = "v44", target = "harmonicVoltageContent44Avg") + @Mapping(source = "v45", target = "harmonicVoltageContent45Avg") + @Mapping(source = "v46", target = "harmonicVoltageContent46Avg") + @Mapping(source = "v47", target = "harmonicVoltageContent47Avg") + @Mapping(source = "v48", target = "harmonicVoltageContent48Avg") + @Mapping(source = "v49", target = "harmonicVoltageContent49Avg") + @Mapping(source = "v50", target = "harmonicVoltageContent50Avg") + public RMpHarmonicVRateReportDPO dataVPOTORMpHarmonicPReportDPOAvg(DataHarmRateVPO dataVPO); + + + @Mapping(source = "v1", target = "fundamentalVoltage95") + @Mapping(source = "v2", target = "harmonicVoltageContent295") + @Mapping(source = "v3", target = "harmonicVoltageContent395") + @Mapping(source = "v4", target = "harmonicVoltageContent495") + @Mapping(source = "v5", target = "harmonicVoltageContent595") + @Mapping(source = "v6", target = "harmonicVoltageContent695") + @Mapping(source = "v7", target = "harmonicVoltageContent795") + @Mapping(source = "v8", target = "harmonicVoltageContent895") + @Mapping(source = "v9", target = "harmonicVoltageContent995") + @Mapping(source = "v10", target = "harmonicVoltageContent1095") + @Mapping(source = "v11", target = "harmonicVoltageContent1195") + @Mapping(source = "v12", target = "harmonicVoltageContent1295") + @Mapping(source = "v13", target = "harmonicVoltageContent1395") + @Mapping(source = "v14", target = "harmonicVoltageContent1495") + @Mapping(source = "v15", target = "harmonicVoltageContent1595") + @Mapping(source = "v16", target = "harmonicVoltageContent1695") + @Mapping(source = "v17", target = "harmonicVoltageContent1795") + @Mapping(source = "v18", target = "harmonicVoltageContent1895") + @Mapping(source = "v19", target = "harmonicVoltageContent1995") + @Mapping(source = "v20", target = "harmonicVoltageContent2095") + @Mapping(source = "v21", target = "harmonicVoltageContent2195") + @Mapping(source = "v22", target = "harmonicVoltageContent2295") + @Mapping(source = "v23", target = "harmonicVoltageContent2395") + @Mapping(source = "v24", target = "harmonicVoltageContent2495") + @Mapping(source = "v25", target = "harmonicVoltageContent2595") + @Mapping(source = "v26", target = "harmonicVoltageContent2695") + @Mapping(source = "v27", target = "harmonicVoltageContent2795") + @Mapping(source = "v28", target = "harmonicVoltageContent2895") + @Mapping(source = "v29", target = "harmonicVoltageContent2995") + @Mapping(source = "v30", target = "harmonicVoltageContent3095") + @Mapping(source = "v31", target = "harmonicVoltageContent3195") + @Mapping(source = "v32", target = "harmonicVoltageContent3295") + @Mapping(source = "v33", target = "harmonicVoltageContent3395") + @Mapping(source = "v34", target = "harmonicVoltageContent3495") + @Mapping(source = "v35", target = "harmonicVoltageContent3595") + @Mapping(source = "v36", target = "harmonicVoltageContent3695") + @Mapping(source = "v37", target = "harmonicVoltageContent3795") + @Mapping(source = "v38", target = "harmonicVoltageContent3895") + @Mapping(source = "v39", target = "harmonicVoltageContent3995") + @Mapping(source = "v40", target = "harmonicVoltageContent4095") + @Mapping(source = "v41", target = "harmonicVoltageContent4195") + @Mapping(source = "v42", target = "harmonicVoltageContent4295") + @Mapping(source = "v43", target = "harmonicVoltageContent4395") + @Mapping(source = "v44", target = "harmonicVoltageContent4495") + @Mapping(source = "v45", target = "harmonicVoltageContent4595") + @Mapping(source = "v46", target = "harmonicVoltageContent4695") + @Mapping(source = "v47", target = "harmonicVoltageContent4795") + @Mapping(source = "v48", target = "harmonicVoltageContent4895") + @Mapping(source = "v49", target = "harmonicVoltageContent4995") + @Mapping(source = "v50", target = "harmonicVoltageContent5095") + public RMpHarmonicVRateReportDPO dataVPOTORMpHarmonicPReportDPO95(DataHarmRateVPO dataVPO); + + + /*DataIPO*/ + @Mapping(source = "IThd", target = "harmonicCurrentThdMax") + @Mapping(source = "i1", target = "fundamentalCurrentMax") + @Mapping(source = "i2", target = "harmonicCurrentEffective2Max") + @Mapping(source = "i3", target = "harmonicCurrentEffective3Max") + @Mapping(source = "i4", target = "harmonicCurrentEffective4Max") + @Mapping(source = "i5", target = "harmonicCurrentEffective5Max") + @Mapping(source = "i6", target = "harmonicCurrentEffective6Max") + @Mapping(source = "i7", target = "harmonicCurrentEffective7Max") + @Mapping(source = "i8", target = "harmonicCurrentEffective8Max") + @Mapping(source = "i9", target = "harmonicCurrentEffective9Max") + @Mapping(source = "i10", target = "harmonicCurrentEffective10Max") + @Mapping(source = "i11", target = "harmonicCurrentEffective11Max") + @Mapping(source = "i12", target = "harmonicCurrentEffective12Max") + @Mapping(source = "i13", target = "harmonicCurrentEffective13Max") + @Mapping(source = "i14", target = "harmonicCurrentEffective14Max") + @Mapping(source = "i15", target = "harmonicCurrentEffective15Max") + @Mapping(source = "i16", target = "harmonicCurrentEffective16Max") + @Mapping(source = "i17", target = "harmonicCurrentEffective17Max") + @Mapping(source = "i18", target = "harmonicCurrentEffective18Max") + @Mapping(source = "i19", target = "harmonicCurrentEffective19Max") + @Mapping(source = "i20", target = "harmonicCurrentEffective20Max") + @Mapping(source = "i21", target = "harmonicCurrentEffective21Max") + @Mapping(source = "i22", target = "harmonicCurrentEffective22Max") + @Mapping(source = "i23", target = "harmonicCurrentEffective23Max") + @Mapping(source = "i24", target = "harmonicCurrentEffective24Max") + @Mapping(source = "i25", target = "harmonicCurrentEffective25Max") + @Mapping(source = "i26", target = "harmonicCurrentEffective26Max") + @Mapping(source = "i27", target = "harmonicCurrentEffective27Max") + @Mapping(source = "i28", target = "harmonicCurrentEffective28Max") + @Mapping(source = "i29", target = "harmonicCurrentEffective29Max") + @Mapping(source = "i30", target = "harmonicCurrentEffective30Max") + @Mapping(source = "i31", target = "harmonicCurrentEffective31Max") + @Mapping(source = "i32", target = "harmonicCurrentEffective32Max") + @Mapping(source = "i33", target = "harmonicCurrentEffective33Max") + @Mapping(source = "i34", target = "harmonicCurrentEffective34Max") + @Mapping(source = "i35", target = "harmonicCurrentEffective35Max") + @Mapping(source = "i36", target = "harmonicCurrentEffective36Max") + @Mapping(source = "i37", target = "harmonicCurrentEffective37Max") + @Mapping(source = "i38", target = "harmonicCurrentEffective38Max") + @Mapping(source = "i39", target = "harmonicCurrentEffective39Max") + @Mapping(source = "i40", target = "harmonicCurrentEffective40Max") + @Mapping(source = "i41", target = "harmonicCurrentEffective41Max") + @Mapping(source = "i42", target = "harmonicCurrentEffective42Max") + @Mapping(source = "i43", target = "harmonicCurrentEffective43Max") + @Mapping(source = "i44", target = "harmonicCurrentEffective44Max") + @Mapping(source = "i45", target = "harmonicCurrentEffective45Max") + @Mapping(source = "i46", target = "harmonicCurrentEffective46Max") + @Mapping(source = "i47", target = "harmonicCurrentEffective47Max") + @Mapping(source = "i48", target = "harmonicCurrentEffective48Max") + @Mapping(source = "i49", target = "harmonicCurrentEffective49Max") + @Mapping(source = "i50", target = "harmonicCurrentEffective50Max") + public RMpHarmonicIMagReportDPO dataIPOTORMpHarmonicIMagReportDPOMax(DataIPO dataIPO); + + @Mapping(source = "IThd", target = "harmonicCurrentThdMin") + @Mapping(source = "i1", target = "fundamentalCurrentMin") + @Mapping(source = "i2", target = "harmonicCurrentEffective2Min") + @Mapping(source = "i3", target = "harmonicCurrentEffective3Min") + @Mapping(source = "i4", target = "harmonicCurrentEffective4Min") + @Mapping(source = "i5", target = "harmonicCurrentEffective5Min") + @Mapping(source = "i6", target = "harmonicCurrentEffective6Min") + @Mapping(source = "i7", target = "harmonicCurrentEffective7Min") + @Mapping(source = "i8", target = "harmonicCurrentEffective8Min") + @Mapping(source = "i9", target = "harmonicCurrentEffective9Min") + @Mapping(source = "i10", target = "harmonicCurrentEffective10Min") + @Mapping(source = "i11", target = "harmonicCurrentEffective11Min") + @Mapping(source = "i12", target = "harmonicCurrentEffective12Min") + @Mapping(source = "i13", target = "harmonicCurrentEffective13Min") + @Mapping(source = "i14", target = "harmonicCurrentEffective14Min") + @Mapping(source = "i15", target = "harmonicCurrentEffective15Min") + @Mapping(source = "i16", target = "harmonicCurrentEffective16Min") + @Mapping(source = "i17", target = "harmonicCurrentEffective17Min") + @Mapping(source = "i18", target = "harmonicCurrentEffective18Min") + @Mapping(source = "i19", target = "harmonicCurrentEffective19Min") + @Mapping(source = "i20", target = "harmonicCurrentEffective20Min") + @Mapping(source = "i21", target = "harmonicCurrentEffective21Min") + @Mapping(source = "i22", target = "harmonicCurrentEffective22Min") + @Mapping(source = "i23", target = "harmonicCurrentEffective23Min") + @Mapping(source = "i24", target = "harmonicCurrentEffective24Min") + @Mapping(source = "i25", target = "harmonicCurrentEffective25Min") + @Mapping(source = "i26", target = "harmonicCurrentEffective26Min") + @Mapping(source = "i27", target = "harmonicCurrentEffective27Min") + @Mapping(source = "i28", target = "harmonicCurrentEffective28Min") + @Mapping(source = "i29", target = "harmonicCurrentEffective29Min") + @Mapping(source = "i30", target = "harmonicCurrentEffective30Min") + @Mapping(source = "i31", target = "harmonicCurrentEffective31Min") + @Mapping(source = "i32", target = "harmonicCurrentEffective32Min") + @Mapping(source = "i33", target = "harmonicCurrentEffective33Min") + @Mapping(source = "i34", target = "harmonicCurrentEffective34Min") + @Mapping(source = "i35", target = "harmonicCurrentEffective35Min") + @Mapping(source = "i36", target = "harmonicCurrentEffective36Min") + @Mapping(source = "i37", target = "harmonicCurrentEffective37Min") + @Mapping(source = "i38", target = "harmonicCurrentEffective38Min") + @Mapping(source = "i39", target = "harmonicCurrentEffective39Min") + @Mapping(source = "i40", target = "harmonicCurrentEffective40Min") + @Mapping(source = "i41", target = "harmonicCurrentEffective41Min") + @Mapping(source = "i42", target = "harmonicCurrentEffective42Min") + @Mapping(source = "i43", target = "harmonicCurrentEffective43Min") + @Mapping(source = "i44", target = "harmonicCurrentEffective44Min") + @Mapping(source = "i45", target = "harmonicCurrentEffective45Min") + @Mapping(source = "i46", target = "harmonicCurrentEffective46Min") + @Mapping(source = "i47", target = "harmonicCurrentEffective47Min") + @Mapping(source = "i48", target = "harmonicCurrentEffective48Min") + @Mapping(source = "i49", target = "harmonicCurrentEffective49Min") + @Mapping(source = "i50", target = "harmonicCurrentEffective50Min") + public RMpHarmonicIMagReportDPO dataIPOTORMpHarmonicIMagReportDPOMin(DataIPO dataIPO); + + + @Mapping(source = "IThd", target = "harmonicCurrentThdAvg") + @Mapping(source = "i1", target = "fundamentalCurrentAvg") + @Mapping(source = "i2", target = "harmonicCurrentEffective2Avg") + @Mapping(source = "i3", target = "harmonicCurrentEffective3Avg") + @Mapping(source = "i4", target = "harmonicCurrentEffective4Avg") + @Mapping(source = "i5", target = "harmonicCurrentEffective5Avg") + @Mapping(source = "i6", target = "harmonicCurrentEffective6Avg") + @Mapping(source = "i7", target = "harmonicCurrentEffective7Avg") + @Mapping(source = "i8", target = "harmonicCurrentEffective8Avg") + @Mapping(source = "i9", target = "harmonicCurrentEffective9Avg") + @Mapping(source = "i10", target = "harmonicCurrentEffective10Avg") + @Mapping(source = "i11", target = "harmonicCurrentEffective11Avg") + @Mapping(source = "i12", target = "harmonicCurrentEffective12Avg") + @Mapping(source = "i13", target = "harmonicCurrentEffective13Avg") + @Mapping(source = "i14", target = "harmonicCurrentEffective14Avg") + @Mapping(source = "i15", target = "harmonicCurrentEffective15Avg") + @Mapping(source = "i16", target = "harmonicCurrentEffective16Avg") + @Mapping(source = "i17", target = "harmonicCurrentEffective17Avg") + @Mapping(source = "i18", target = "harmonicCurrentEffective18Avg") + @Mapping(source = "i19", target = "harmonicCurrentEffective19Avg") + @Mapping(source = "i20", target = "harmonicCurrentEffective20Avg") + @Mapping(source = "i21", target = "harmonicCurrentEffective21Avg") + @Mapping(source = "i22", target = "harmonicCurrentEffective22Avg") + @Mapping(source = "i23", target = "harmonicCurrentEffective23Avg") + @Mapping(source = "i24", target = "harmonicCurrentEffective24Avg") + @Mapping(source = "i25", target = "harmonicCurrentEffective25Avg") + @Mapping(source = "i26", target = "harmonicCurrentEffective26Avg") + @Mapping(source = "i27", target = "harmonicCurrentEffective27Avg") + @Mapping(source = "i28", target = "harmonicCurrentEffective28Avg") + @Mapping(source = "i29", target = "harmonicCurrentEffective29Avg") + @Mapping(source = "i30", target = "harmonicCurrentEffective30Avg") + @Mapping(source = "i31", target = "harmonicCurrentEffective31Avg") + @Mapping(source = "i32", target = "harmonicCurrentEffective32Avg") + @Mapping(source = "i33", target = "harmonicCurrentEffective33Avg") + @Mapping(source = "i34", target = "harmonicCurrentEffective34Avg") + @Mapping(source = "i35", target = "harmonicCurrentEffective35Avg") + @Mapping(source = "i36", target = "harmonicCurrentEffective36Avg") + @Mapping(source = "i37", target = "harmonicCurrentEffective37Avg") + @Mapping(source = "i38", target = "harmonicCurrentEffective38Avg") + @Mapping(source = "i39", target = "harmonicCurrentEffective39Avg") + @Mapping(source = "i40", target = "harmonicCurrentEffective40Avg") + @Mapping(source = "i41", target = "harmonicCurrentEffective41Avg") + @Mapping(source = "i42", target = "harmonicCurrentEffective42Avg") + @Mapping(source = "i43", target = "harmonicCurrentEffective43Avg") + @Mapping(source = "i44", target = "harmonicCurrentEffective44Avg") + @Mapping(source = "i45", target = "harmonicCurrentEffective45Avg") + @Mapping(source = "i46", target = "harmonicCurrentEffective46Avg") + @Mapping(source = "i47", target = "harmonicCurrentEffective47Avg") + @Mapping(source = "i48", target = "harmonicCurrentEffective48Avg") + @Mapping(source = "i49", target = "harmonicCurrentEffective49Avg") + @Mapping(source = "i50", target = "harmonicCurrentEffective50Avg") + public RMpHarmonicIMagReportDPO dataIPOTORMpHarmonicIMagReportDPOAvg(DataIPO dataIPO); + + + @Mapping(source = "IThd", target = "harmonicCurrentThd95") + @Mapping(source = "i1", target = "fundamentalCurrent95") + @Mapping(source = "i2", target = "harmonicCurrentEffective295") + @Mapping(source = "i3", target = "harmonicCurrentEffective395") + @Mapping(source = "i4", target = "harmonicCurrentEffective495") + @Mapping(source = "i5", target = "harmonicCurrentEffective595") + @Mapping(source = "i6", target = "harmonicCurrentEffective695") + @Mapping(source = "i7", target = "harmonicCurrentEffective795") + @Mapping(source = "i8", target = "harmonicCurrentEffective895") + @Mapping(source = "i9", target = "harmonicCurrentEffective995") + @Mapping(source = "i10", target = "harmonicCurrentEffective1095") + @Mapping(source = "i11", target = "harmonicCurrentEffective1195") + @Mapping(source = "i12", target = "harmonicCurrentEffective1295") + @Mapping(source = "i13", target = "harmonicCurrentEffective1395") + @Mapping(source = "i14", target = "harmonicCurrentEffective1495") + @Mapping(source = "i15", target = "harmonicCurrentEffective1595") + @Mapping(source = "i16", target = "harmonicCurrentEffective1695") + @Mapping(source = "i17", target = "harmonicCurrentEffective1795") + @Mapping(source = "i18", target = "harmonicCurrentEffective1895") + @Mapping(source = "i19", target = "harmonicCurrentEffective1995") + @Mapping(source = "i20", target = "harmonicCurrentEffective2095") + @Mapping(source = "i21", target = "harmonicCurrentEffective2195") + @Mapping(source = "i22", target = "harmonicCurrentEffective2295") + @Mapping(source = "i23", target = "harmonicCurrentEffective2395") + @Mapping(source = "i24", target = "harmonicCurrentEffective2495") + @Mapping(source = "i25", target = "harmonicCurrentEffective2595") + @Mapping(source = "i26", target = "harmonicCurrentEffective2695") + @Mapping(source = "i27", target = "harmonicCurrentEffective2795") + @Mapping(source = "i28", target = "harmonicCurrentEffective2895") + @Mapping(source = "i29", target = "harmonicCurrentEffective2995") + @Mapping(source = "i30", target = "harmonicCurrentEffective3095") + @Mapping(source = "i31", target = "harmonicCurrentEffective3195") + @Mapping(source = "i32", target = "harmonicCurrentEffective3295") + @Mapping(source = "i33", target = "harmonicCurrentEffective3395") + @Mapping(source = "i34", target = "harmonicCurrentEffective3495") + @Mapping(source = "i35", target = "harmonicCurrentEffective3595") + @Mapping(source = "i36", target = "harmonicCurrentEffective3695") + @Mapping(source = "i37", target = "harmonicCurrentEffective3795") + @Mapping(source = "i38", target = "harmonicCurrentEffective3895") + @Mapping(source = "i39", target = "harmonicCurrentEffective3995") + @Mapping(source = "i40", target = "harmonicCurrentEffective4095") + @Mapping(source = "i41", target = "harmonicCurrentEffective4195") + @Mapping(source = "i42", target = "harmonicCurrentEffective4295") + @Mapping(source = "i43", target = "harmonicCurrentEffective4395") + @Mapping(source = "i44", target = "harmonicCurrentEffective4495") + @Mapping(source = "i45", target = "harmonicCurrentEffective4595") + @Mapping(source = "i46", target = "harmonicCurrentEffective4695") + @Mapping(source = "i47", target = "harmonicCurrentEffective4795") + @Mapping(source = "i48", target = "harmonicCurrentEffective4895") + @Mapping(source = "i49", target = "harmonicCurrentEffective4995") + @Mapping(source = "i50", target = "harmonicCurrentEffective5095") + public RMpHarmonicIMagReportDPO dataIPOTORMpHarmonicIMagReportDPO95(DataIPO dataIPO); + + + /*RMpFlickerReportDPO*/ + @Mapping(source = "fluc", target = "voltageFluctuationMax") + @Mapping(source = "plt", target = "shortTermSeverityMax") + public RMpFlickerReportDPO rMpFlickerReportDPOConverterMax(DataFlickerPO dataFlickerPO); + + @Mapping(source = "fluc", target = "voltageFluctuationMin") + @Mapping(source = "plt", target = "shortTermSeverityMin") + public RMpFlickerReportDPO rMpFlickerReportDPOConverterMin(DataFlickerPO dataFlickerPO); + + @Mapping(source = "fluc", target = "voltageFluctuationAvg") + @Mapping(source = "plt", target = "shortTermSeverityAvg") + public RMpFlickerReportDPO rMpFlickerReportDPOConverterAvg(DataFlickerPO dataFlickerPO); + + @Mapping(source = "fluc", target = "voltageFluctuation95") + @Mapping(source = "plt", target = "shortTermSeverity95") + public RMpFlickerReportDPO rMpFlickerReportDPOConverter95(DataFlickerPO dataFlickerPO); + + /*RMpHarmonicIRateReportDPO*/ + @Mapping(source = "i2", target = "i2Min") + @Mapping(source = "i3", target = "i3Min") + @Mapping(source = "i4", target = "i4Min") + @Mapping(source = "i5", target = "i5Min") + @Mapping(source = "i6", target = "i6Min") + @Mapping(source = "i7", target = "i7Min") + @Mapping(source = "i8", target = "i8Min") + @Mapping(source = "i9", target = "i9Min") + @Mapping(source = "i10", target = "i10Min") + @Mapping(source = "i11", target = "i11Min") + @Mapping(source = "i12", target = "i12Min") + @Mapping(source = "i13", target = "i13Min") + @Mapping(source = "i14", target = "i14Min") + @Mapping(source = "i15", target = "i15Min") + @Mapping(source = "i16", target = "i16Min") + @Mapping(source = "i17", target = "i17Min") + @Mapping(source = "i18", target = "i18Min") + @Mapping(source = "i19", target = "i19Min") + @Mapping(source = "i20", target = "i20Min") + @Mapping(source = "i21", target = "i21Min") + @Mapping(source = "i22", target = "i22Min") + @Mapping(source = "i23", target = "i23Min") + @Mapping(source = "i24", target = "i24Min") + @Mapping(source = "i25", target = "i25Min") + @Mapping(source = "i26", target = "i26Min") + @Mapping(source = "i27", target = "i27Min") + @Mapping(source = "i28", target = "i28Min") + @Mapping(source = "i29", target = "i29Min") + @Mapping(source = "i30", target = "i30Min") + @Mapping(source = "i31", target = "i31Min") + @Mapping(source = "i32", target = "i32Min") + @Mapping(source = "i33", target = "i33Min") + @Mapping(source = "i34", target = "i34Min") + @Mapping(source = "i35", target = "i35Min") + @Mapping(source = "i36", target = "i36Min") + @Mapping(source = "i37", target = "i37Min") + @Mapping(source = "i38", target = "i38Min") + @Mapping(source = "i39", target = "i39Min") + @Mapping(source = "i40", target = "i40Min") + @Mapping(source = "i41", target = "i41Min") + @Mapping(source = "i42", target = "i42Min") + @Mapping(source = "i43", target = "i43Min") + @Mapping(source = "i44", target = "i44Min") + @Mapping(source = "i45", target = "i45Min") + @Mapping(source = "i46", target = "i46Min") + @Mapping(source = "i47", target = "i47Min") + @Mapping(source = "i48", target = "i48Min") + @Mapping(source = "i49", target = "i49Min") + @Mapping(source = "i50", target = "i50Min") + public RMpHarmonicIRateReportDPO RMpHarmonicIRateReportDPOConverterMin(DataHarmRateIPO dataHarmRateIPO); + + @Mapping(source = "i2", target = "i2Max") + @Mapping(source = "i3", target = "i3Max") + @Mapping(source = "i4", target = "i4Max") + @Mapping(source = "i5", target = "i5Max") + @Mapping(source = "i6", target = "i6Max") + @Mapping(source = "i7", target = "i7Max") + @Mapping(source = "i8", target = "i8Max") + @Mapping(source = "i9", target = "i9Max") + @Mapping(source = "i10", target = "i10Max") + @Mapping(source = "i11", target = "i11Max") + @Mapping(source = "i12", target = "i12Max") + @Mapping(source = "i13", target = "i13Max") + @Mapping(source = "i14", target = "i14Max") + @Mapping(source = "i15", target = "i15Max") + @Mapping(source = "i16", target = "i16Max") + @Mapping(source = "i17", target = "i17Max") + @Mapping(source = "i18", target = "i18Max") + @Mapping(source = "i19", target = "i19Max") + @Mapping(source = "i20", target = "i20Max") + @Mapping(source = "i21", target = "i21Max") + @Mapping(source = "i22", target = "i22Max") + @Mapping(source = "i23", target = "i23Max") + @Mapping(source = "i24", target = "i24Max") + @Mapping(source = "i25", target = "i25Max") + @Mapping(source = "i26", target = "i26Max") + @Mapping(source = "i27", target = "i27Max") + @Mapping(source = "i28", target = "i28Max") + @Mapping(source = "i29", target = "i29Max") + @Mapping(source = "i30", target = "i30Max") + @Mapping(source = "i31", target = "i31Max") + @Mapping(source = "i32", target = "i32Max") + @Mapping(source = "i33", target = "i33Max") + @Mapping(source = "i34", target = "i34Max") + @Mapping(source = "i35", target = "i35Max") + @Mapping(source = "i36", target = "i36Max") + @Mapping(source = "i37", target = "i37Max") + @Mapping(source = "i38", target = "i38Max") + @Mapping(source = "i39", target = "i39Max") + @Mapping(source = "i40", target = "i40Max") + @Mapping(source = "i41", target = "i41Max") + @Mapping(source = "i42", target = "i42Max") + @Mapping(source = "i43", target = "i43Max") + @Mapping(source = "i44", target = "i44Max") + @Mapping(source = "i45", target = "i45Max") + @Mapping(source = "i46", target = "i46Max") + @Mapping(source = "i47", target = "i47Max") + @Mapping(source = "i48", target = "i48Max") + @Mapping(source = "i49", target = "i49Max") + @Mapping(source = "i50", target = "i50Max") + public RMpHarmonicIRateReportDPO RMpHarmonicIRateReportDPOConverterMax(DataHarmRateIPO dataHarmRateIPO); + + + @Mapping(source = "i2", target = "i2Avg") + @Mapping(source = "i3", target = "i3Avg") + @Mapping(source = "i4", target = "i4Avg") + @Mapping(source = "i5", target = "i5Avg") + @Mapping(source = "i6", target = "i6Avg") + @Mapping(source = "i7", target = "i7Avg") + @Mapping(source = "i8", target = "i8Avg") + @Mapping(source = "i9", target = "i9Avg") + @Mapping(source = "i10", target = "i10Avg") + @Mapping(source = "i11", target = "i11Avg") + @Mapping(source = "i12", target = "i12Avg") + @Mapping(source = "i13", target = "i13Avg") + @Mapping(source = "i14", target = "i14Avg") + @Mapping(source = "i15", target = "i15Avg") + @Mapping(source = "i16", target = "i16Avg") + @Mapping(source = "i17", target = "i17Avg") + @Mapping(source = "i18", target = "i18Avg") + @Mapping(source = "i19", target = "i19Avg") + @Mapping(source = "i20", target = "i20Avg") + @Mapping(source = "i21", target = "i21Avg") + @Mapping(source = "i22", target = "i22Avg") + @Mapping(source = "i23", target = "i23Avg") + @Mapping(source = "i24", target = "i24Avg") + @Mapping(source = "i25", target = "i25Avg") + @Mapping(source = "i26", target = "i26Avg") + @Mapping(source = "i27", target = "i27Avg") + @Mapping(source = "i28", target = "i28Avg") + @Mapping(source = "i29", target = "i29Avg") + @Mapping(source = "i30", target = "i30Avg") + @Mapping(source = "i31", target = "i31Avg") + @Mapping(source = "i32", target = "i32Avg") + @Mapping(source = "i33", target = "i33Avg") + @Mapping(source = "i34", target = "i34Avg") + @Mapping(source = "i35", target = "i35Avg") + @Mapping(source = "i36", target = "i36Avg") + @Mapping(source = "i37", target = "i37Avg") + @Mapping(source = "i38", target = "i38Avg") + @Mapping(source = "i39", target = "i39Avg") + @Mapping(source = "i40", target = "i40Avg") + @Mapping(source = "i41", target = "i41Avg") + @Mapping(source = "i42", target = "i42Avg") + @Mapping(source = "i43", target = "i43Avg") + @Mapping(source = "i44", target = "i44Avg") + @Mapping(source = "i45", target = "i45Avg") + @Mapping(source = "i46", target = "i46Avg") + @Mapping(source = "i47", target = "i47Avg") + @Mapping(source = "i48", target = "i48Avg") + @Mapping(source = "i49", target = "i49Avg") + @Mapping(source = "i50", target = "i50Avg") + public RMpHarmonicIRateReportDPO RMpHarmonicIRateReportDPOConverterAvg(DataHarmRateIPO dataHarmRateIPO); + + @Mapping(source = "i2", target = "i2Cp95") + @Mapping(source = "i3", target = "i3Cp95") + @Mapping(source = "i4", target = "i4Cp95") + @Mapping(source = "i5", target = "i5Cp95") + @Mapping(source = "i6", target = "i6Cp95") + @Mapping(source = "i7", target = "i7Cp95") + @Mapping(source = "i8", target = "i8Cp95") + @Mapping(source = "i9", target = "i9Cp95") + @Mapping(source = "i10", target = "i10Cp95") + @Mapping(source = "i11", target = "i11Cp95") + @Mapping(source = "i12", target = "i12Cp95") + @Mapping(source = "i13", target = "i13Cp95") + @Mapping(source = "i14", target = "i14Cp95") + @Mapping(source = "i15", target = "i15Cp95") + @Mapping(source = "i16", target = "i16Cp95") + @Mapping(source = "i17", target = "i17Cp95") + @Mapping(source = "i18", target = "i18Cp95") + @Mapping(source = "i19", target = "i19Cp95") + @Mapping(source = "i20", target = "i20Cp95") + @Mapping(source = "i21", target = "i21Cp95") + @Mapping(source = "i22", target = "i22Cp95") + @Mapping(source = "i23", target = "i23Cp95") + @Mapping(source = "i24", target = "i24Cp95") + @Mapping(source = "i25", target = "i25Cp95") + @Mapping(source = "i26", target = "i26Cp95") + @Mapping(source = "i27", target = "i27Cp95") + @Mapping(source = "i28", target = "i28Cp95") + @Mapping(source = "i29", target = "i29Cp95") + @Mapping(source = "i30", target = "i30Cp95") + @Mapping(source = "i31", target = "i31Cp95") + @Mapping(source = "i32", target = "i32Cp95") + @Mapping(source = "i33", target = "i33Cp95") + @Mapping(source = "i34", target = "i34Cp95") + @Mapping(source = "i35", target = "i35Cp95") + @Mapping(source = "i36", target = "i36Cp95") + @Mapping(source = "i37", target = "i37Cp95") + @Mapping(source = "i38", target = "i38Cp95") + @Mapping(source = "i39", target = "i39Cp95") + @Mapping(source = "i40", target = "i40Cp95") + @Mapping(source = "i41", target = "i41Cp95") + @Mapping(source = "i42", target = "i42Cp95") + @Mapping(source = "i43", target = "i43Cp95") + @Mapping(source = "i44", target = "i44Cp95") + @Mapping(source = "i45", target = "i45Cp95") + @Mapping(source = "i46", target = "i46Cp95") + @Mapping(source = "i47", target = "i47Cp95") + @Mapping(source = "i48", target = "i48Cp95") + @Mapping(source = "i49", target = "i49Cp95") + @Mapping(source = "i50", target = "i50Cp95") + public RMpHarmonicIRateReportDPO RMpHarmonicIRateReportDPOConverter95(DataHarmRateIPO dataHarmRateIPO); + /*RMpInharmonicIRateReportDPO*/ + @Mapping(source = "i2", target = "inharmI2Min") + @Mapping(source = "i3", target = "inharmI3Min") + @Mapping(source = "i4", target = "inharmI4Min") + @Mapping(source = "i5", target = "inharmI5Min") + @Mapping(source = "i6", target = "inharmI6Min") + @Mapping(source = "i7", target = "inharmI7Min") + @Mapping(source = "i8", target = "inharmI8Min") + @Mapping(source = "i9", target = "inharmI9Min") + @Mapping(source = "i10", target = "inharmI10Min") + @Mapping(source = "i11", target = "inharmI11Min") + @Mapping(source = "i12", target = "inharmI12Min") + @Mapping(source = "i13", target = "inharmI13Min") + @Mapping(source = "i14", target = "inharmI14Min") + @Mapping(source = "i15", target = "inharmI15Min") + @Mapping(source = "i16", target = "inharmI16Min") + @Mapping(source = "i17", target = "inharmI17Min") + @Mapping(source = "i18", target = "inharmI18Min") + @Mapping(source = "i19", target = "inharmI19Min") + @Mapping(source = "i20", target = "inharmI20Min") + @Mapping(source = "i21", target = "inharmI21Min") + @Mapping(source = "i22", target = "inharmI22Min") + @Mapping(source = "i23", target = "inharmI23Min") + @Mapping(source = "i24", target = "inharmI24Min") + @Mapping(source = "i25", target = "inharmI25Min") + @Mapping(source = "i26", target = "inharmI26Min") + @Mapping(source = "i27", target = "inharmI27Min") + @Mapping(source = "i28", target = "inharmI28Min") + @Mapping(source = "i29", target = "inharmI29Min") + @Mapping(source = "i30", target = "inharmI30Min") + @Mapping(source = "i31", target = "inharmI31Min") + @Mapping(source = "i32", target = "inharmI32Min") + @Mapping(source = "i33", target = "inharmI33Min") + @Mapping(source = "i34", target = "inharmI34Min") + @Mapping(source = "i35", target = "inharmI35Min") + @Mapping(source = "i36", target = "inharmI36Min") + @Mapping(source = "i37", target = "inharmI37Min") + @Mapping(source = "i38", target = "inharmI38Min") + @Mapping(source = "i39", target = "inharmI39Min") + @Mapping(source = "i40", target = "inharmI40Min") + @Mapping(source = "i41", target = "inharmI41Min") + @Mapping(source = "i42", target = "inharmI42Min") + @Mapping(source = "i43", target = "inharmI43Min") + @Mapping(source = "i44", target = "inharmI44Min") + @Mapping(source = "i45", target = "inharmI45Min") + @Mapping(source = "i46", target = "inharmI46Min") + @Mapping(source = "i47", target = "inharmI47Min") + @Mapping(source = "i48", target = "inharmI48Min") + @Mapping(source = "i49", target = "inharmI49Min") + @Mapping(source = "i50", target = "inharmI50Min") + public RMpInharmonicIRateReportDPO RMpInharmonicIRateReportDPOConverterMin(DataInHarmRateIPO temp); + + @Mapping(source = "i2", target = "inharmI2Max") + @Mapping(source = "i3", target = "inharmI3Max") + @Mapping(source = "i4", target = "inharmI4Max") + @Mapping(source = "i5", target = "inharmI5Max") + @Mapping(source = "i6", target = "inharmI6Max") + @Mapping(source = "i7", target = "inharmI7Max") + @Mapping(source = "i8", target = "inharmI8Max") + @Mapping(source = "i9", target = "inharmI9Max") + @Mapping(source = "i10", target = "inharmI10Max") + @Mapping(source = "i11", target = "inharmI11Max") + @Mapping(source = "i12", target = "inharmI12Max") + @Mapping(source = "i13", target = "inharmI13Max") + @Mapping(source = "i14", target = "inharmI14Max") + @Mapping(source = "i15", target = "inharmI15Max") + @Mapping(source = "i16", target = "inharmI16Max") + @Mapping(source = "i17", target = "inharmI17Max") + @Mapping(source = "i18", target = "inharmI18Max") + @Mapping(source = "i19", target = "inharmI19Max") + @Mapping(source = "i20", target = "inharmI20Max") + @Mapping(source = "i21", target = "inharmI21Max") + @Mapping(source = "i22", target = "inharmI22Max") + @Mapping(source = "i23", target = "inharmI23Max") + @Mapping(source = "i24", target = "inharmI24Max") + @Mapping(source = "i25", target = "inharmI25Max") + @Mapping(source = "i26", target = "inharmI26Max") + @Mapping(source = "i27", target = "inharmI27Max") + @Mapping(source = "i28", target = "inharmI28Max") + @Mapping(source = "i29", target = "inharmI29Max") + @Mapping(source = "i30", target = "inharmI30Max") + @Mapping(source = "i31", target = "inharmI31Max") + @Mapping(source = "i32", target = "inharmI32Max") + @Mapping(source = "i33", target = "inharmI33Max") + @Mapping(source = "i34", target = "inharmI34Max") + @Mapping(source = "i35", target = "inharmI35Max") + @Mapping(source = "i36", target = "inharmI36Max") + @Mapping(source = "i37", target = "inharmI37Max") + @Mapping(source = "i38", target = "inharmI38Max") + @Mapping(source = "i39", target = "inharmI39Max") + @Mapping(source = "i40", target = "inharmI40Max") + @Mapping(source = "i41", target = "inharmI41Max") + @Mapping(source = "i42", target = "inharmI42Max") + @Mapping(source = "i43", target = "inharmI43Max") + @Mapping(source = "i44", target = "inharmI44Max") + @Mapping(source = "i45", target = "inharmI45Max") + @Mapping(source = "i46", target = "inharmI46Max") + @Mapping(source = "i47", target = "inharmI47Max") + @Mapping(source = "i48", target = "inharmI48Max") + @Mapping(source = "i49", target = "inharmI49Max") + @Mapping(source = "i50", target = "inharmI50Max") + public RMpInharmonicIRateReportDPO RMpInharmonicIRateReportDPOConverterMax(DataInHarmRateIPO temp); + + + @Mapping(source = "i2", target = "inharmI2Avg") + @Mapping(source = "i3", target = "inharmI3Avg") + @Mapping(source = "i4", target = "inharmI4Avg") + @Mapping(source = "i5", target = "inharmI5Avg") + @Mapping(source = "i6", target = "inharmI6Avg") + @Mapping(source = "i7", target = "inharmI7Avg") + @Mapping(source = "i8", target = "inharmI8Avg") + @Mapping(source = "i9", target = "inharmI9Avg") + @Mapping(source = "i10", target = "inharmI10Avg") + @Mapping(source = "i11", target = "inharmI11Avg") + @Mapping(source = "i12", target = "inharmI12Avg") + @Mapping(source = "i13", target = "inharmI13Avg") + @Mapping(source = "i14", target = "inharmI14Avg") + @Mapping(source = "i15", target = "inharmI15Avg") + @Mapping(source = "i16", target = "inharmI16Avg") + @Mapping(source = "i17", target = "inharmI17Avg") + @Mapping(source = "i18", target = "inharmI18Avg") + @Mapping(source = "i19", target = "inharmI19Avg") + @Mapping(source = "i20", target = "inharmI20Avg") + @Mapping(source = "i21", target = "inharmI21Avg") + @Mapping(source = "i22", target = "inharmI22Avg") + @Mapping(source = "i23", target = "inharmI23Avg") + @Mapping(source = "i24", target = "inharmI24Avg") + @Mapping(source = "i25", target = "inharmI25Avg") + @Mapping(source = "i26", target = "inharmI26Avg") + @Mapping(source = "i27", target = "inharmI27Avg") + @Mapping(source = "i28", target = "inharmI28Avg") + @Mapping(source = "i29", target = "inharmI29Avg") + @Mapping(source = "i30", target = "inharmI30Avg") + @Mapping(source = "i31", target = "inharmI31Avg") + @Mapping(source = "i32", target = "inharmI32Avg") + @Mapping(source = "i33", target = "inharmI33Avg") + @Mapping(source = "i34", target = "inharmI34Avg") + @Mapping(source = "i35", target = "inharmI35Avg") + @Mapping(source = "i36", target = "inharmI36Avg") + @Mapping(source = "i37", target = "inharmI37Avg") + @Mapping(source = "i38", target = "inharmI38Avg") + @Mapping(source = "i39", target = "inharmI39Avg") + @Mapping(source = "i40", target = "inharmI40Avg") + @Mapping(source = "i41", target = "inharmI41Avg") + @Mapping(source = "i42", target = "inharmI42Avg") + @Mapping(source = "i43", target = "inharmI43Avg") + @Mapping(source = "i44", target = "inharmI44Avg") + @Mapping(source = "i45", target = "inharmI45Avg") + @Mapping(source = "i46", target = "inharmI46Avg") + @Mapping(source = "i47", target = "inharmI47Avg") + @Mapping(source = "i48", target = "inharmI48Avg") + @Mapping(source = "i49", target = "inharmI49Avg") + @Mapping(source = "i50", target = "inharmI50Avg") + public RMpInharmonicIRateReportDPO RMpInharmonicIRateReportDPOConverterAvg(DataInHarmRateIPO temp); + + @Mapping(source = "i2", target = "inharmI2Cp95") + @Mapping(source = "i3", target = "inharmI3Cp95") + @Mapping(source = "i4", target = "inharmI4Cp95") + @Mapping(source = "i5", target = "inharmI5Cp95") + @Mapping(source = "i6", target = "inharmI6Cp95") + @Mapping(source = "i7", target = "inharmI7Cp95") + @Mapping(source = "i8", target = "inharmI8Cp95") + @Mapping(source = "i9", target = "inharmI9Cp95") + @Mapping(source = "i10", target = "inharmI10Cp95") + @Mapping(source = "i11", target = "inharmI11Cp95") + @Mapping(source = "i12", target = "inharmI12Cp95") + @Mapping(source = "i13", target = "inharmI13Cp95") + @Mapping(source = "i14", target = "inharmI14Cp95") + @Mapping(source = "i15", target = "inharmI15Cp95") + @Mapping(source = "i16", target = "inharmI16Cp95") + @Mapping(source = "i17", target = "inharmI17Cp95") + @Mapping(source = "i18", target = "inharmI18Cp95") + @Mapping(source = "i19", target = "inharmI19Cp95") + @Mapping(source = "i20", target = "inharmI20Cp95") + @Mapping(source = "i21", target = "inharmI21Cp95") + @Mapping(source = "i22", target = "inharmI22Cp95") + @Mapping(source = "i23", target = "inharmI23Cp95") + @Mapping(source = "i24", target = "inharmI24Cp95") + @Mapping(source = "i25", target = "inharmI25Cp95") + @Mapping(source = "i26", target = "inharmI26Cp95") + @Mapping(source = "i27", target = "inharmI27Cp95") + @Mapping(source = "i28", target = "inharmI28Cp95") + @Mapping(source = "i29", target = "inharmI29Cp95") + @Mapping(source = "i30", target = "inharmI30Cp95") + @Mapping(source = "i31", target = "inharmI31Cp95") + @Mapping(source = "i32", target = "inharmI32Cp95") + @Mapping(source = "i33", target = "inharmI33Cp95") + @Mapping(source = "i34", target = "inharmI34Cp95") + @Mapping(source = "i35", target = "inharmI35Cp95") + @Mapping(source = "i36", target = "inharmI36Cp95") + @Mapping(source = "i37", target = "inharmI37Cp95") + @Mapping(source = "i38", target = "inharmI38Cp95") + @Mapping(source = "i39", target = "inharmI39Cp95") + @Mapping(source = "i40", target = "inharmI40Cp95") + @Mapping(source = "i41", target = "inharmI41Cp95") + @Mapping(source = "i42", target = "inharmI42Cp95") + @Mapping(source = "i43", target = "inharmI43Cp95") + @Mapping(source = "i44", target = "inharmI44Cp95") + @Mapping(source = "i45", target = "inharmI45Cp95") + @Mapping(source = "i46", target = "inharmI46Cp95") + @Mapping(source = "i47", target = "inharmI47Cp95") + @Mapping(source = "i48", target = "inharmI48Cp95") + @Mapping(source = "i49", target = "inharmI49Cp95") + @Mapping(source = "i50", target = "inharmI50Cp95") + public RMpInharmonicIRateReportDPO RMpInharmonicIRateReportDPOConverter95(DataInHarmRateIPO temp); + + /*RMpInharmonicIMagReportDPO*/ + @Mapping(source = "i1", target = "simpleHarmonicCurrentEffective1Min") + @Mapping(source = "i2", target = "simpleHarmonicCurrentEffective2Min") + @Mapping(source = "i3", target = "simpleHarmonicCurrentEffective3Min") + @Mapping(source = "i4", target = "simpleHarmonicCurrentEffective4Min") + @Mapping(source = "i5", target = "simpleHarmonicCurrentEffective5Min") + @Mapping(source = "i6", target = "simpleHarmonicCurrentEffective6Min") + @Mapping(source = "i7", target = "simpleHarmonicCurrentEffective7Min") + @Mapping(source = "i8", target = "simpleHarmonicCurrentEffective8Min") + @Mapping(source = "i9", target = "simpleHarmonicCurrentEffective9Min") + @Mapping(source = "i10", target = "simpleHarmonicCurrentEffective10Min") + @Mapping(source = "i11", target = "simpleHarmonicCurrentEffective11Min") + @Mapping(source = "i12", target = "simpleHarmonicCurrentEffective12Min") + @Mapping(source = "i13", target = "simpleHarmonicCurrentEffective13Min") + @Mapping(source = "i14", target = "simpleHarmonicCurrentEffective14Min") + @Mapping(source = "i15", target = "simpleHarmonicCurrentEffective15Min") + @Mapping(source = "i16", target = "simpleHarmonicCurrentEffective16Min") + @Mapping(source = "i17", target = "simpleHarmonicCurrentEffective17Min") + @Mapping(source = "i18", target = "simpleHarmonicCurrentEffective18Min") + @Mapping(source = "i19", target = "simpleHarmonicCurrentEffective19Min") + @Mapping(source = "i20", target = "simpleHarmonicCurrentEffective20Min") + @Mapping(source = "i21", target = "simpleHarmonicCurrentEffective21Min") + @Mapping(source = "i22", target = "simpleHarmonicCurrentEffective22Min") + @Mapping(source = "i23", target = "simpleHarmonicCurrentEffective23Min") + @Mapping(source = "i24", target = "simpleHarmonicCurrentEffective24Min") + @Mapping(source = "i25", target = "simpleHarmonicCurrentEffective25Min") + @Mapping(source = "i26", target = "simpleHarmonicCurrentEffective26Min") + @Mapping(source = "i27", target = "simpleHarmonicCurrentEffective27Min") + @Mapping(source = "i28", target = "simpleHarmonicCurrentEffective28Min") + @Mapping(source = "i29", target = "simpleHarmonicCurrentEffective29Min") + @Mapping(source = "i30", target = "simpleHarmonicCurrentEffective30Min") + @Mapping(source = "i31", target = "simpleHarmonicCurrentEffective31Min") + @Mapping(source = "i32", target = "simpleHarmonicCurrentEffective32Min") + @Mapping(source = "i33", target = "simpleHarmonicCurrentEffective33Min") + @Mapping(source = "i34", target = "simpleHarmonicCurrentEffective34Min") + @Mapping(source = "i35", target = "simpleHarmonicCurrentEffective35Min") + @Mapping(source = "i36", target = "simpleHarmonicCurrentEffective36Min") + @Mapping(source = "i37", target = "simpleHarmonicCurrentEffective37Min") + @Mapping(source = "i38", target = "simpleHarmonicCurrentEffective38Min") + @Mapping(source = "i39", target = "simpleHarmonicCurrentEffective39Min") + @Mapping(source = "i40", target = "simpleHarmonicCurrentEffective40Min") + @Mapping(source = "i41", target = "simpleHarmonicCurrentEffective41Min") + @Mapping(source = "i42", target = "simpleHarmonicCurrentEffective42Min") + @Mapping(source = "i43", target = "simpleHarmonicCurrentEffective43Min") + @Mapping(source = "i44", target = "simpleHarmonicCurrentEffective44Min") + @Mapping(source = "i45", target = "simpleHarmonicCurrentEffective45Min") + @Mapping(source = "i46", target = "simpleHarmonicCurrentEffective46Min") + @Mapping(source = "i47", target = "simpleHarmonicCurrentEffective47Min") + @Mapping(source = "i48", target = "simpleHarmonicCurrentEffective48Min") + @Mapping(source = "i49", target = "simpleHarmonicCurrentEffective49Min") + @Mapping(source = "i50", target = "simpleHarmonicCurrentEffective50Min") + public RMpInharmonicIMagReportDPO RMpInharmonicIMagReportDPOConverterMin(DataInHarmIPO temp); + + @Mapping(source = "i1", target = "simpleHarmonicCurrentEffective1Max") + @Mapping(source = "i2", target = "simpleHarmonicCurrentEffective2Max") + @Mapping(source = "i3", target = "simpleHarmonicCurrentEffective3Max") + @Mapping(source = "i4", target = "simpleHarmonicCurrentEffective4Max") + @Mapping(source = "i5", target = "simpleHarmonicCurrentEffective5Max") + @Mapping(source = "i6", target = "simpleHarmonicCurrentEffective6Max") + @Mapping(source = "i7", target = "simpleHarmonicCurrentEffective7Max") + @Mapping(source = "i8", target = "simpleHarmonicCurrentEffective8Max") + @Mapping(source = "i9", target = "simpleHarmonicCurrentEffective9Max") + @Mapping(source = "i10", target = "simpleHarmonicCurrentEffective10Max") + @Mapping(source = "i11", target = "simpleHarmonicCurrentEffective11Max") + @Mapping(source = "i12", target = "simpleHarmonicCurrentEffective12Max") + @Mapping(source = "i13", target = "simpleHarmonicCurrentEffective13Max") + @Mapping(source = "i14", target = "simpleHarmonicCurrentEffective14Max") + @Mapping(source = "i15", target = "simpleHarmonicCurrentEffective15Max") + @Mapping(source = "i16", target = "simpleHarmonicCurrentEffective16Max") + @Mapping(source = "i17", target = "simpleHarmonicCurrentEffective17Max") + @Mapping(source = "i18", target = "simpleHarmonicCurrentEffective18Max") + @Mapping(source = "i19", target = "simpleHarmonicCurrentEffective19Max") + @Mapping(source = "i20", target = "simpleHarmonicCurrentEffective20Max") + @Mapping(source = "i21", target = "simpleHarmonicCurrentEffective21Max") + @Mapping(source = "i22", target = "simpleHarmonicCurrentEffective22Max") + @Mapping(source = "i23", target = "simpleHarmonicCurrentEffective23Max") + @Mapping(source = "i24", target = "simpleHarmonicCurrentEffective24Max") + @Mapping(source = "i25", target = "simpleHarmonicCurrentEffective25Max") + @Mapping(source = "i26", target = "simpleHarmonicCurrentEffective26Max") + @Mapping(source = "i27", target = "simpleHarmonicCurrentEffective27Max") + @Mapping(source = "i28", target = "simpleHarmonicCurrentEffective28Max") + @Mapping(source = "i29", target = "simpleHarmonicCurrentEffective29Max") + @Mapping(source = "i30", target = "simpleHarmonicCurrentEffective30Max") + @Mapping(source = "i31", target = "simpleHarmonicCurrentEffective31Max") + @Mapping(source = "i32", target = "simpleHarmonicCurrentEffective32Max") + @Mapping(source = "i33", target = "simpleHarmonicCurrentEffective33Max") + @Mapping(source = "i34", target = "simpleHarmonicCurrentEffective34Max") + @Mapping(source = "i35", target = "simpleHarmonicCurrentEffective35Max") + @Mapping(source = "i36", target = "simpleHarmonicCurrentEffective36Max") + @Mapping(source = "i37", target = "simpleHarmonicCurrentEffective37Max") + @Mapping(source = "i38", target = "simpleHarmonicCurrentEffective38Max") + @Mapping(source = "i39", target = "simpleHarmonicCurrentEffective39Max") + @Mapping(source = "i40", target = "simpleHarmonicCurrentEffective40Max") + @Mapping(source = "i41", target = "simpleHarmonicCurrentEffective41Max") + @Mapping(source = "i42", target = "simpleHarmonicCurrentEffective42Max") + @Mapping(source = "i43", target = "simpleHarmonicCurrentEffective43Max") + @Mapping(source = "i44", target = "simpleHarmonicCurrentEffective44Max") + @Mapping(source = "i45", target = "simpleHarmonicCurrentEffective45Max") + @Mapping(source = "i46", target = "simpleHarmonicCurrentEffective46Max") + @Mapping(source = "i47", target = "simpleHarmonicCurrentEffective47Max") + @Mapping(source = "i48", target = "simpleHarmonicCurrentEffective48Max") + @Mapping(source = "i49", target = "simpleHarmonicCurrentEffective49Max") + @Mapping(source = "i50", target = "simpleHarmonicCurrentEffective50Max") + public RMpInharmonicIMagReportDPO RMpInharmonicIMagReportDPOConverterMax(DataInHarmIPO temp); + + @Mapping(source = "i1", target = "simpleHarmonicCurrentEffective1Avg") + @Mapping(source = "i2", target = "simpleHarmonicCurrentEffective2Avg") + @Mapping(source = "i3", target = "simpleHarmonicCurrentEffective3Avg") + @Mapping(source = "i4", target = "simpleHarmonicCurrentEffective4Avg") + @Mapping(source = "i5", target = "simpleHarmonicCurrentEffective5Avg") + @Mapping(source = "i6", target = "simpleHarmonicCurrentEffective6Avg") + @Mapping(source = "i7", target = "simpleHarmonicCurrentEffective7Avg") + @Mapping(source = "i8", target = "simpleHarmonicCurrentEffective8Avg") + @Mapping(source = "i9", target = "simpleHarmonicCurrentEffective9Avg") + @Mapping(source = "i10", target = "simpleHarmonicCurrentEffective10Avg") + @Mapping(source = "i11", target = "simpleHarmonicCurrentEffective11Avg") + @Mapping(source = "i12", target = "simpleHarmonicCurrentEffective12Avg") + @Mapping(source = "i13", target = "simpleHarmonicCurrentEffective13Avg") + @Mapping(source = "i14", target = "simpleHarmonicCurrentEffective14Avg") + @Mapping(source = "i15", target = "simpleHarmonicCurrentEffective15Avg") + @Mapping(source = "i16", target = "simpleHarmonicCurrentEffective16Avg") + @Mapping(source = "i17", target = "simpleHarmonicCurrentEffective17Avg") + @Mapping(source = "i18", target = "simpleHarmonicCurrentEffective18Avg") + @Mapping(source = "i19", target = "simpleHarmonicCurrentEffective19Avg") + @Mapping(source = "i20", target = "simpleHarmonicCurrentEffective20Avg") + @Mapping(source = "i21", target = "simpleHarmonicCurrentEffective21Avg") + @Mapping(source = "i22", target = "simpleHarmonicCurrentEffective22Avg") + @Mapping(source = "i23", target = "simpleHarmonicCurrentEffective23Avg") + @Mapping(source = "i24", target = "simpleHarmonicCurrentEffective24Avg") + @Mapping(source = "i25", target = "simpleHarmonicCurrentEffective25Avg") + @Mapping(source = "i26", target = "simpleHarmonicCurrentEffective26Avg") + @Mapping(source = "i27", target = "simpleHarmonicCurrentEffective27Avg") + @Mapping(source = "i28", target = "simpleHarmonicCurrentEffective28Avg") + @Mapping(source = "i29", target = "simpleHarmonicCurrentEffective29Avg") + @Mapping(source = "i30", target = "simpleHarmonicCurrentEffective30Avg") + @Mapping(source = "i31", target = "simpleHarmonicCurrentEffective31Avg") + @Mapping(source = "i32", target = "simpleHarmonicCurrentEffective32Avg") + @Mapping(source = "i33", target = "simpleHarmonicCurrentEffective33Avg") + @Mapping(source = "i34", target = "simpleHarmonicCurrentEffective34Avg") + @Mapping(source = "i35", target = "simpleHarmonicCurrentEffective35Avg") + @Mapping(source = "i36", target = "simpleHarmonicCurrentEffective36Avg") + @Mapping(source = "i37", target = "simpleHarmonicCurrentEffective37Avg") + @Mapping(source = "i38", target = "simpleHarmonicCurrentEffective38Avg") + @Mapping(source = "i39", target = "simpleHarmonicCurrentEffective39Avg") + @Mapping(source = "i40", target = "simpleHarmonicCurrentEffective40Avg") + @Mapping(source = "i41", target = "simpleHarmonicCurrentEffective41Avg") + @Mapping(source = "i42", target = "simpleHarmonicCurrentEffective42Avg") + @Mapping(source = "i43", target = "simpleHarmonicCurrentEffective43Avg") + @Mapping(source = "i44", target = "simpleHarmonicCurrentEffective44Avg") + @Mapping(source = "i45", target = "simpleHarmonicCurrentEffective45Avg") + @Mapping(source = "i46", target = "simpleHarmonicCurrentEffective46Avg") + @Mapping(source = "i47", target = "simpleHarmonicCurrentEffective47Avg") + @Mapping(source = "i48", target = "simpleHarmonicCurrentEffective48Avg") + @Mapping(source = "i49", target = "simpleHarmonicCurrentEffective49Avg") + @Mapping(source = "i50", target = "simpleHarmonicCurrentEffective50Avg") + public RMpInharmonicIMagReportDPO RMpInharmonicIMagReportDPOConverterAvg(DataInHarmIPO temp); + + @Mapping(source = "i1", target = "simpleHarmonicCurrentEffective1Cp95") + @Mapping(source = "i2", target = "simpleHarmonicCurrentEffective2Cp95") + @Mapping(source = "i3", target = "simpleHarmonicCurrentEffective3Cp95") + @Mapping(source = "i4", target = "simpleHarmonicCurrentEffective4Cp95") + @Mapping(source = "i5", target = "simpleHarmonicCurrentEffective5Cp95") + @Mapping(source = "i6", target = "simpleHarmonicCurrentEffective6Cp95") + @Mapping(source = "i7", target = "simpleHarmonicCurrentEffective7Cp95") + @Mapping(source = "i8", target = "simpleHarmonicCurrentEffective8Cp95") + @Mapping(source = "i9", target = "simpleHarmonicCurrentEffective9Cp95") + @Mapping(source = "i10", target = "simpleHarmonicCurrentEffective10Cp95") + @Mapping(source = "i11", target = "simpleHarmonicCurrentEffective11Cp95") + @Mapping(source = "i12", target = "simpleHarmonicCurrentEffective12Cp95") + @Mapping(source = "i13", target = "simpleHarmonicCurrentEffective13Cp95") + @Mapping(source = "i14", target = "simpleHarmonicCurrentEffective14Cp95") + @Mapping(source = "i15", target = "simpleHarmonicCurrentEffective15Cp95") + @Mapping(source = "i16", target = "simpleHarmonicCurrentEffective16Cp95") + @Mapping(source = "i17", target = "simpleHarmonicCurrentEffective17Cp95") + @Mapping(source = "i18", target = "simpleHarmonicCurrentEffective18Cp95") + @Mapping(source = "i19", target = "simpleHarmonicCurrentEffective19Cp95") + @Mapping(source = "i20", target = "simpleHarmonicCurrentEffective20Cp95") + @Mapping(source = "i21", target = "simpleHarmonicCurrentEffective21Cp95") + @Mapping(source = "i22", target = "simpleHarmonicCurrentEffective22Cp95") + @Mapping(source = "i23", target = "simpleHarmonicCurrentEffective23Cp95") + @Mapping(source = "i24", target = "simpleHarmonicCurrentEffective24Cp95") + @Mapping(source = "i25", target = "simpleHarmonicCurrentEffective25Cp95") + @Mapping(source = "i26", target = "simpleHarmonicCurrentEffective26Cp95") + @Mapping(source = "i27", target = "simpleHarmonicCurrentEffective27Cp95") + @Mapping(source = "i28", target = "simpleHarmonicCurrentEffective28Cp95") + @Mapping(source = "i29", target = "simpleHarmonicCurrentEffective29Cp95") + @Mapping(source = "i30", target = "simpleHarmonicCurrentEffective30Cp95") + @Mapping(source = "i31", target = "simpleHarmonicCurrentEffective31Cp95") + @Mapping(source = "i32", target = "simpleHarmonicCurrentEffective32Cp95") + @Mapping(source = "i33", target = "simpleHarmonicCurrentEffective33Cp95") + @Mapping(source = "i34", target = "simpleHarmonicCurrentEffective34Cp95") + @Mapping(source = "i35", target = "simpleHarmonicCurrentEffective35Cp95") + @Mapping(source = "i36", target = "simpleHarmonicCurrentEffective36Cp95") + @Mapping(source = "i37", target = "simpleHarmonicCurrentEffective37Cp95") + @Mapping(source = "i38", target = "simpleHarmonicCurrentEffective38Cp95") + @Mapping(source = "i39", target = "simpleHarmonicCurrentEffective39Cp95") + @Mapping(source = "i40", target = "simpleHarmonicCurrentEffective40Cp95") + @Mapping(source = "i41", target = "simpleHarmonicCurrentEffective41Cp95") + @Mapping(source = "i42", target = "simpleHarmonicCurrentEffective42Cp95") + @Mapping(source = "i43", target = "simpleHarmonicCurrentEffective43Cp95") + @Mapping(source = "i44", target = "simpleHarmonicCurrentEffective44Cp95") + @Mapping(source = "i45", target = "simpleHarmonicCurrentEffective45Cp95") + @Mapping(source = "i46", target = "simpleHarmonicCurrentEffective46Cp95") + @Mapping(source = "i47", target = "simpleHarmonicCurrentEffective47Cp95") + @Mapping(source = "i48", target = "simpleHarmonicCurrentEffective48Cp95") + @Mapping(source = "i49", target = "simpleHarmonicCurrentEffective49Cp95") + @Mapping(source = "i50", target = "simpleHarmonicCurrentEffective50Cp95") + public RMpInharmonicIMagReportDPO RMpInharmonicIMagReportDPOConverter95(DataInHarmIPO temp); + /*RMpInharmonicVRateReportDPO*/ + @Mapping(source = "v1", target = "centreHarmonicVoltageContent1Min") + @Mapping(source = "v2", target = "centreHarmonicVoltageContent2Min") + @Mapping(source = "v3", target = "centreHarmonicVoltageContent3Min") + @Mapping(source = "v4", target = "centreHarmonicVoltageContent4Min") + @Mapping(source = "v5", target = "centreHarmonicVoltageContent5Min") + @Mapping(source = "v6", target = "centreHarmonicVoltageContent6Min") + @Mapping(source = "v7", target = "centreHarmonicVoltageContent7Min") + @Mapping(source = "v8", target = "centreHarmonicVoltageContent8Min") + @Mapping(source = "v9", target = "centreHarmonicVoltageContent9Min") + @Mapping(source = "v10", target = "centreHarmonicVoltageContent10Min") + @Mapping(source = "v11", target = "centreHarmonicVoltageContent11Min") + @Mapping(source = "v12", target = "centreHarmonicVoltageContent12Min") + @Mapping(source = "v13", target = "centreHarmonicVoltageContent13Min") + @Mapping(source = "v14", target = "centreHarmonicVoltageContent14Min") + @Mapping(source = "v15", target = "centreHarmonicVoltageContent15Min") + @Mapping(source = "v16", target = "centreHarmonicVoltageContent16Min") + @Mapping(source = "v17", target = "centreHarmonicVoltageContent17Min") + @Mapping(source = "v18", target = "centreHarmonicVoltageContent18Min") + @Mapping(source = "v19", target = "centreHarmonicVoltageContent19Min") + @Mapping(source = "v20", target = "centreHarmonicVoltageContent20Min") + @Mapping(source = "v21", target = "centreHarmonicVoltageContent21Min") + @Mapping(source = "v22", target = "centreHarmonicVoltageContent22Min") + @Mapping(source = "v23", target = "centreHarmonicVoltageContent23Min") + @Mapping(source = "v24", target = "centreHarmonicVoltageContent24Min") + @Mapping(source = "v25", target = "centreHarmonicVoltageContent25Min") + @Mapping(source = "v26", target = "centreHarmonicVoltageContent26Min") + @Mapping(source = "v27", target = "centreHarmonicVoltageContent27Min") + @Mapping(source = "v28", target = "centreHarmonicVoltageContent28Min") + @Mapping(source = "v29", target = "centreHarmonicVoltageContent29Min") + @Mapping(source = "v30", target = "centreHarmonicVoltageContent30Min") + @Mapping(source = "v31", target = "centreHarmonicVoltageContent31Min") + @Mapping(source = "v32", target = "centreHarmonicVoltageContent32Min") + @Mapping(source = "v33", target = "centreHarmonicVoltageContent33Min") + @Mapping(source = "v34", target = "centreHarmonicVoltageContent34Min") + @Mapping(source = "v35", target = "centreHarmonicVoltageContent35Min") + @Mapping(source = "v36", target = "centreHarmonicVoltageContent36Min") + @Mapping(source = "v37", target = "centreHarmonicVoltageContent37Min") + @Mapping(source = "v38", target = "centreHarmonicVoltageContent38Min") + @Mapping(source = "v39", target = "centreHarmonicVoltageContent39Min") + @Mapping(source = "v40", target = "centreHarmonicVoltageContent40Min") + @Mapping(source = "v41", target = "centreHarmonicVoltageContent41Min") + @Mapping(source = "v42", target = "centreHarmonicVoltageContent42Min") + @Mapping(source = "v43", target = "centreHarmonicVoltageContent43Min") + @Mapping(source = "v44", target = "centreHarmonicVoltageContent44Min") + @Mapping(source = "v45", target = "centreHarmonicVoltageContent45Min") + @Mapping(source = "v46", target = "centreHarmonicVoltageContent46Min") + @Mapping(source = "v47", target = "centreHarmonicVoltageContent47Min") + @Mapping(source = "v48", target = "centreHarmonicVoltageContent48Min") + @Mapping(source = "v49", target = "centreHarmonicVoltageContent49Min") + @Mapping(source = "v50", target = "centreHarmonicVoltageContent50Min") + public RMpInharmonicVRateReportDPO RMpInharmonicVRateReportDPOConverterMin(DataInHarmRateVPO temp); + + @Mapping(source = "v1", target = "centreHarmonicVoltageContent1Max") + @Mapping(source = "v2", target = "centreHarmonicVoltageContent2Max") + @Mapping(source = "v3", target = "centreHarmonicVoltageContent3Max") + @Mapping(source = "v4", target = "centreHarmonicVoltageContent4Max") + @Mapping(source = "v5", target = "centreHarmonicVoltageContent5Max") + @Mapping(source = "v6", target = "centreHarmonicVoltageContent6Max") + @Mapping(source = "v7", target = "centreHarmonicVoltageContent7Max") + @Mapping(source = "v8", target = "centreHarmonicVoltageContent8Max") + @Mapping(source = "v9", target = "centreHarmonicVoltageContent9Max") + @Mapping(source = "v10", target = "centreHarmonicVoltageContent10Max") + @Mapping(source = "v11", target = "centreHarmonicVoltageContent11Max") + @Mapping(source = "v12", target = "centreHarmonicVoltageContent12Max") + @Mapping(source = "v13", target = "centreHarmonicVoltageContent13Max") + @Mapping(source = "v14", target = "centreHarmonicVoltageContent14Max") + @Mapping(source = "v15", target = "centreHarmonicVoltageContent15Max") + @Mapping(source = "v16", target = "centreHarmonicVoltageContent16Max") + @Mapping(source = "v17", target = "centreHarmonicVoltageContent17Max") + @Mapping(source = "v18", target = "centreHarmonicVoltageContent18Max") + @Mapping(source = "v19", target = "centreHarmonicVoltageContent19Max") + @Mapping(source = "v20", target = "centreHarmonicVoltageContent20Max") + @Mapping(source = "v21", target = "centreHarmonicVoltageContent21Max") + @Mapping(source = "v22", target = "centreHarmonicVoltageContent22Max") + @Mapping(source = "v23", target = "centreHarmonicVoltageContent23Max") + @Mapping(source = "v24", target = "centreHarmonicVoltageContent24Max") + @Mapping(source = "v25", target = "centreHarmonicVoltageContent25Max") + @Mapping(source = "v26", target = "centreHarmonicVoltageContent26Max") + @Mapping(source = "v27", target = "centreHarmonicVoltageContent27Max") + @Mapping(source = "v28", target = "centreHarmonicVoltageContent28Max") + @Mapping(source = "v29", target = "centreHarmonicVoltageContent29Max") + @Mapping(source = "v30", target = "centreHarmonicVoltageContent30Max") + @Mapping(source = "v31", target = "centreHarmonicVoltageContent31Max") + @Mapping(source = "v32", target = "centreHarmonicVoltageContent32Max") + @Mapping(source = "v33", target = "centreHarmonicVoltageContent33Max") + @Mapping(source = "v34", target = "centreHarmonicVoltageContent34Max") + @Mapping(source = "v35", target = "centreHarmonicVoltageContent35Max") + @Mapping(source = "v36", target = "centreHarmonicVoltageContent36Max") + @Mapping(source = "v37", target = "centreHarmonicVoltageContent37Max") + @Mapping(source = "v38", target = "centreHarmonicVoltageContent38Max") + @Mapping(source = "v39", target = "centreHarmonicVoltageContent39Max") + @Mapping(source = "v40", target = "centreHarmonicVoltageContent40Max") + @Mapping(source = "v41", target = "centreHarmonicVoltageContent41Max") + @Mapping(source = "v42", target = "centreHarmonicVoltageContent42Max") + @Mapping(source = "v43", target = "centreHarmonicVoltageContent43Max") + @Mapping(source = "v44", target = "centreHarmonicVoltageContent44Max") + @Mapping(source = "v45", target = "centreHarmonicVoltageContent45Max") + @Mapping(source = "v46", target = "centreHarmonicVoltageContent46Max") + @Mapping(source = "v47", target = "centreHarmonicVoltageContent47Max") + @Mapping(source = "v48", target = "centreHarmonicVoltageContent48Max") + @Mapping(source = "v49", target = "centreHarmonicVoltageContent49Max") + @Mapping(source = "v50", target = "centreHarmonicVoltageContent50Max") + public RMpInharmonicVRateReportDPO RMpInharmonicVRateReportDPOConverterMax(DataInHarmRateVPO temp); + + @Mapping(source = "v1", target = "centreHarmonicVoltageContent1Avg") + @Mapping(source = "v2", target = "centreHarmonicVoltageContent2Avg") + @Mapping(source = "v3", target = "centreHarmonicVoltageContent3Avg") + @Mapping(source = "v4", target = "centreHarmonicVoltageContent4Avg") + @Mapping(source = "v5", target = "centreHarmonicVoltageContent5Avg") + @Mapping(source = "v6", target = "centreHarmonicVoltageContent6Avg") + @Mapping(source = "v7", target = "centreHarmonicVoltageContent7Avg") + @Mapping(source = "v8", target = "centreHarmonicVoltageContent8Avg") + @Mapping(source = "v9", target = "centreHarmonicVoltageContent9Avg") + @Mapping(source = "v10", target = "centreHarmonicVoltageContent10Avg") + @Mapping(source = "v11", target = "centreHarmonicVoltageContent11Avg") + @Mapping(source = "v12", target = "centreHarmonicVoltageContent12Avg") + @Mapping(source = "v13", target = "centreHarmonicVoltageContent13Avg") + @Mapping(source = "v14", target = "centreHarmonicVoltageContent14Avg") + @Mapping(source = "v15", target = "centreHarmonicVoltageContent15Avg") + @Mapping(source = "v16", target = "centreHarmonicVoltageContent16Avg") + @Mapping(source = "v17", target = "centreHarmonicVoltageContent17Avg") + @Mapping(source = "v18", target = "centreHarmonicVoltageContent18Avg") + @Mapping(source = "v19", target = "centreHarmonicVoltageContent19Avg") + @Mapping(source = "v20", target = "centreHarmonicVoltageContent20Avg") + @Mapping(source = "v21", target = "centreHarmonicVoltageContent21Avg") + @Mapping(source = "v22", target = "centreHarmonicVoltageContent22Avg") + @Mapping(source = "v23", target = "centreHarmonicVoltageContent23Avg") + @Mapping(source = "v24", target = "centreHarmonicVoltageContent24Avg") + @Mapping(source = "v25", target = "centreHarmonicVoltageContent25Avg") + @Mapping(source = "v26", target = "centreHarmonicVoltageContent26Avg") + @Mapping(source = "v27", target = "centreHarmonicVoltageContent27Avg") + @Mapping(source = "v28", target = "centreHarmonicVoltageContent28Avg") + @Mapping(source = "v29", target = "centreHarmonicVoltageContent29Avg") + @Mapping(source = "v30", target = "centreHarmonicVoltageContent30Avg") + @Mapping(source = "v31", target = "centreHarmonicVoltageContent31Avg") + @Mapping(source = "v32", target = "centreHarmonicVoltageContent32Avg") + @Mapping(source = "v33", target = "centreHarmonicVoltageContent33Avg") + @Mapping(source = "v34", target = "centreHarmonicVoltageContent34Avg") + @Mapping(source = "v35", target = "centreHarmonicVoltageContent35Avg") + @Mapping(source = "v36", target = "centreHarmonicVoltageContent36Avg") + @Mapping(source = "v37", target = "centreHarmonicVoltageContent37Avg") + @Mapping(source = "v38", target = "centreHarmonicVoltageContent38Avg") + @Mapping(source = "v39", target = "centreHarmonicVoltageContent39Avg") + @Mapping(source = "v40", target = "centreHarmonicVoltageContent40Avg") + @Mapping(source = "v41", target = "centreHarmonicVoltageContent41Avg") + @Mapping(source = "v42", target = "centreHarmonicVoltageContent42Avg") + @Mapping(source = "v43", target = "centreHarmonicVoltageContent43Avg") + @Mapping(source = "v44", target = "centreHarmonicVoltageContent44Avg") + @Mapping(source = "v45", target = "centreHarmonicVoltageContent45Avg") + @Mapping(source = "v46", target = "centreHarmonicVoltageContent46Avg") + @Mapping(source = "v47", target = "centreHarmonicVoltageContent47Avg") + @Mapping(source = "v48", target = "centreHarmonicVoltageContent48Avg") + @Mapping(source = "v49", target = "centreHarmonicVoltageContent49Avg") + @Mapping(source = "v50", target = "centreHarmonicVoltageContent50Avg") + public RMpInharmonicVRateReportDPO RMpInharmonicVRateReportDPOConverterAvg(DataInHarmRateVPO temp); + + @Mapping(source = "v1", target = "centreHarmonicVoltageContent1Cp95") + @Mapping(source = "v2", target = "centreHarmonicVoltageContent2Cp95") + @Mapping(source = "v3", target = "centreHarmonicVoltageContent3Cp95") + @Mapping(source = "v4", target = "centreHarmonicVoltageContent4Cp95") + @Mapping(source = "v5", target = "centreHarmonicVoltageContent5Cp95") + @Mapping(source = "v6", target = "centreHarmonicVoltageContent6Cp95") + @Mapping(source = "v7", target = "centreHarmonicVoltageContent7Cp95") + @Mapping(source = "v8", target = "centreHarmonicVoltageContent8Cp95") + @Mapping(source = "v9", target = "centreHarmonicVoltageContent9Cp95") + @Mapping(source = "v10", target = "centreHarmonicVoltageContent10Cp95") + @Mapping(source = "v11", target = "centreHarmonicVoltageContent11Cp95") + @Mapping(source = "v12", target = "centreHarmonicVoltageContent12Cp95") + @Mapping(source = "v13", target = "centreHarmonicVoltageContent13Cp95") + @Mapping(source = "v14", target = "centreHarmonicVoltageContent14Cp95") + @Mapping(source = "v15", target = "centreHarmonicVoltageContent15Cp95") + @Mapping(source = "v16", target = "centreHarmonicVoltageContent16Cp95") + @Mapping(source = "v17", target = "centreHarmonicVoltageContent17Cp95") + @Mapping(source = "v18", target = "centreHarmonicVoltageContent18Cp95") + @Mapping(source = "v19", target = "centreHarmonicVoltageContent19Cp95") + @Mapping(source = "v20", target = "centreHarmonicVoltageContent20Cp95") + @Mapping(source = "v21", target = "centreHarmonicVoltageContent21Cp95") + @Mapping(source = "v22", target = "centreHarmonicVoltageContent22Cp95") + @Mapping(source = "v23", target = "centreHarmonicVoltageContent23Cp95") + @Mapping(source = "v24", target = "centreHarmonicVoltageContent24Cp95") + @Mapping(source = "v25", target = "centreHarmonicVoltageContent25Cp95") + @Mapping(source = "v26", target = "centreHarmonicVoltageContent26Cp95") + @Mapping(source = "v27", target = "centreHarmonicVoltageContent27Cp95") + @Mapping(source = "v28", target = "centreHarmonicVoltageContent28Cp95") + @Mapping(source = "v29", target = "centreHarmonicVoltageContent29Cp95") + @Mapping(source = "v30", target = "centreHarmonicVoltageContent30Cp95") + @Mapping(source = "v31", target = "centreHarmonicVoltageContent31Cp95") + @Mapping(source = "v32", target = "centreHarmonicVoltageContent32Cp95") + @Mapping(source = "v33", target = "centreHarmonicVoltageContent33Cp95") + @Mapping(source = "v34", target = "centreHarmonicVoltageContent34Cp95") + @Mapping(source = "v35", target = "centreHarmonicVoltageContent35Cp95") + @Mapping(source = "v36", target = "centreHarmonicVoltageContent36Cp95") + @Mapping(source = "v37", target = "centreHarmonicVoltageContent37Cp95") + @Mapping(source = "v38", target = "centreHarmonicVoltageContent38Cp95") + @Mapping(source = "v39", target = "centreHarmonicVoltageContent39Cp95") + @Mapping(source = "v40", target = "centreHarmonicVoltageContent40Cp95") + @Mapping(source = "v41", target = "centreHarmonicVoltageContent41Cp95") + @Mapping(source = "v42", target = "centreHarmonicVoltageContent42Cp95") + @Mapping(source = "v43", target = "centreHarmonicVoltageContent43Cp95") + @Mapping(source = "v44", target = "centreHarmonicVoltageContent44Cp95") + @Mapping(source = "v45", target = "centreHarmonicVoltageContent45Cp95") + @Mapping(source = "v46", target = "centreHarmonicVoltageContent46Cp95") + @Mapping(source = "v47", target = "centreHarmonicVoltageContent47Cp95") + @Mapping(source = "v48", target = "centreHarmonicVoltageContent48Cp95") + @Mapping(source = "v49", target = "centreHarmonicVoltageContent49Cp95") + @Mapping(source = "v50", target = "centreHarmonicVoltageContent50Cp95") + public RMpInharmonicVRateReportDPO RMpInharmonicVRateReportDPOConverter95(DataInHarmRateVPO temp); + + /*RMpInharmonicVRateReportDPO*/ + @Mapping(source = "p1", target = "centreHarmonicVoltageContent1Min") + @Mapping(source = "p2", target = "centreHarmonicVoltageContent2Min") + @Mapping(source = "p3", target = "centreHarmonicVoltageContent3Min") + @Mapping(source = "p4", target = "centreHarmonicVoltageContent4Min") + @Mapping(source = "p5", target = "centreHarmonicVoltageContent5Min") + @Mapping(source = "p6", target = "centreHarmonicVoltageContent6Min") + @Mapping(source = "p7", target = "centreHarmonicVoltageContent7Min") + @Mapping(source = "p8", target = "centreHarmonicVoltageContent8Min") + @Mapping(source = "p9", target = "centreHarmonicVoltageContent9Min") + @Mapping(source = "p10", target = "centreHarmonicVoltageContent10Min") + @Mapping(source = "p11", target = "centreHarmonicVoltageContent11Min") + @Mapping(source = "p12", target = "centreHarmonicVoltageContent12Min") + @Mapping(source = "p13", target = "centreHarmonicVoltageContent13Min") + @Mapping(source = "p14", target = "centreHarmonicVoltageContent14Min") + @Mapping(source = "p15", target = "centreHarmonicVoltageContent15Min") + @Mapping(source = "p16", target = "centreHarmonicVoltageContent16Min") + @Mapping(source = "p17", target = "centreHarmonicVoltageContent17Min") + @Mapping(source = "p18", target = "centreHarmonicVoltageContent18Min") + @Mapping(source = "p19", target = "centreHarmonicVoltageContent19Min") + @Mapping(source = "p20", target = "centreHarmonicVoltageContent20Min") + @Mapping(source = "p21", target = "centreHarmonicVoltageContent21Min") + @Mapping(source = "p22", target = "centreHarmonicVoltageContent22Min") + @Mapping(source = "p23", target = "centreHarmonicVoltageContent23Min") + @Mapping(source = "p24", target = "centreHarmonicVoltageContent24Min") + @Mapping(source = "p25", target = "centreHarmonicVoltageContent25Min") + @Mapping(source = "p26", target = "centreHarmonicVoltageContent26Min") + @Mapping(source = "p27", target = "centreHarmonicVoltageContent27Min") + @Mapping(source = "p28", target = "centreHarmonicVoltageContent28Min") + @Mapping(source = "p29", target = "centreHarmonicVoltageContent29Min") + @Mapping(source = "p30", target = "centreHarmonicVoltageContent30Min") + @Mapping(source = "p31", target = "centreHarmonicVoltageContent31Min") + @Mapping(source = "p32", target = "centreHarmonicVoltageContent32Min") + @Mapping(source = "p33", target = "centreHarmonicVoltageContent33Min") + @Mapping(source = "p34", target = "centreHarmonicVoltageContent34Min") + @Mapping(source = "p35", target = "centreHarmonicVoltageContent35Min") + @Mapping(source = "p36", target = "centreHarmonicVoltageContent36Min") + @Mapping(source = "p37", target = "centreHarmonicVoltageContent37Min") + @Mapping(source = "p38", target = "centreHarmonicVoltageContent38Min") + @Mapping(source = "p39", target = "centreHarmonicVoltageContent39Min") + @Mapping(source = "p40", target = "centreHarmonicVoltageContent40Min") + @Mapping(source = "p41", target = "centreHarmonicVoltageContent41Min") + @Mapping(source = "p42", target = "centreHarmonicVoltageContent42Min") + @Mapping(source = "p43", target = "centreHarmonicVoltageContent43Min") + @Mapping(source = "p44", target = "centreHarmonicVoltageContent44Min") + @Mapping(source = "p45", target = "centreHarmonicVoltageContent45Min") + @Mapping(source = "p46", target = "centreHarmonicVoltageContent46Min") + @Mapping(source = "p47", target = "centreHarmonicVoltageContent47Min") + @Mapping(source = "p48", target = "centreHarmonicVoltageContent48Min") + @Mapping(source = "p49", target = "centreHarmonicVoltageContent49Min") + @Mapping(source = "p50", target = "centreHarmonicVoltageContent50Min") + public RMpInharmonicVRateReportDPO RMpHarmonicPReportDPOConverterMin(DataHarmPowerPPO temp); + + @Mapping(source = "p1", target = "centreHarmonicVoltageContent1Max") + @Mapping(source = "p2", target = "centreHarmonicVoltageContent2Max") + @Mapping(source = "p3", target = "centreHarmonicVoltageContent3Max") + @Mapping(source = "p4", target = "centreHarmonicVoltageContent4Max") + @Mapping(source = "p5", target = "centreHarmonicVoltageContent5Max") + @Mapping(source = "p6", target = "centreHarmonicVoltageContent6Max") + @Mapping(source = "p7", target = "centreHarmonicVoltageContent7Max") + @Mapping(source = "p8", target = "centreHarmonicVoltageContent8Max") + @Mapping(source = "p9", target = "centreHarmonicVoltageContent9Max") + @Mapping(source = "p10", target = "centreHarmonicVoltageContent10Max") + @Mapping(source = "p11", target = "centreHarmonicVoltageContent11Max") + @Mapping(source = "p12", target = "centreHarmonicVoltageContent12Max") + @Mapping(source = "p13", target = "centreHarmonicVoltageContent13Max") + @Mapping(source = "p14", target = "centreHarmonicVoltageContent14Max") + @Mapping(source = "p15", target = "centreHarmonicVoltageContent15Max") + @Mapping(source = "p16", target = "centreHarmonicVoltageContent16Max") + @Mapping(source = "p17", target = "centreHarmonicVoltageContent17Max") + @Mapping(source = "p18", target = "centreHarmonicVoltageContent18Max") + @Mapping(source = "p19", target = "centreHarmonicVoltageContent19Max") + @Mapping(source = "p20", target = "centreHarmonicVoltageContent20Max") + @Mapping(source = "p21", target = "centreHarmonicVoltageContent21Max") + @Mapping(source = "p22", target = "centreHarmonicVoltageContent22Max") + @Mapping(source = "p23", target = "centreHarmonicVoltageContent23Max") + @Mapping(source = "p24", target = "centreHarmonicVoltageContent24Max") + @Mapping(source = "p25", target = "centreHarmonicVoltageContent25Max") + @Mapping(source = "p26", target = "centreHarmonicVoltageContent26Max") + @Mapping(source = "p27", target = "centreHarmonicVoltageContent27Max") + @Mapping(source = "p28", target = "centreHarmonicVoltageContent28Max") + @Mapping(source = "p29", target = "centreHarmonicVoltageContent29Max") + @Mapping(source = "p30", target = "centreHarmonicVoltageContent30Max") + @Mapping(source = "p31", target = "centreHarmonicVoltageContent31Max") + @Mapping(source = "p32", target = "centreHarmonicVoltageContent32Max") + @Mapping(source = "p33", target = "centreHarmonicVoltageContent33Max") + @Mapping(source = "p34", target = "centreHarmonicVoltageContent34Max") + @Mapping(source = "p35", target = "centreHarmonicVoltageContent35Max") + @Mapping(source = "p36", target = "centreHarmonicVoltageContent36Max") + @Mapping(source = "p37", target = "centreHarmonicVoltageContent37Max") + @Mapping(source = "p38", target = "centreHarmonicVoltageContent38Max") + @Mapping(source = "p39", target = "centreHarmonicVoltageContent39Max") + @Mapping(source = "p40", target = "centreHarmonicVoltageContent40Max") + @Mapping(source = "p41", target = "centreHarmonicVoltageContent41Max") + @Mapping(source = "p42", target = "centreHarmonicVoltageContent42Max") + @Mapping(source = "p43", target = "centreHarmonicVoltageContent43Max") + @Mapping(source = "p44", target = "centreHarmonicVoltageContent44Max") + @Mapping(source = "p45", target = "centreHarmonicVoltageContent45Max") + @Mapping(source = "p46", target = "centreHarmonicVoltageContent46Max") + @Mapping(source = "p47", target = "centreHarmonicVoltageContent47Max") + @Mapping(source = "p48", target = "centreHarmonicVoltageContent48Max") + @Mapping(source = "p49", target = "centreHarmonicVoltageContent49Max") + @Mapping(source = "p50", target = "centreHarmonicVoltageContent50Max") + public RMpInharmonicVRateReportDPO RMpHarmonicPReportDPOConverterMax(DataHarmPowerPPO temp); + + @Mapping(source = "p1", target = "centreHarmonicVoltageContent1Avg") + @Mapping(source = "p2", target = "centreHarmonicVoltageContent2Avg") + @Mapping(source = "p3", target = "centreHarmonicVoltageContent3Avg") + @Mapping(source = "p4", target = "centreHarmonicVoltageContent4Avg") + @Mapping(source = "p5", target = "centreHarmonicVoltageContent5Avg") + @Mapping(source = "p6", target = "centreHarmonicVoltageContent6Avg") + @Mapping(source = "p7", target = "centreHarmonicVoltageContent7Avg") + @Mapping(source = "p8", target = "centreHarmonicVoltageContent8Avg") + @Mapping(source = "p9", target = "centreHarmonicVoltageContent9Avg") + @Mapping(source = "p10", target = "centreHarmonicVoltageContent10Avg") + @Mapping(source = "p11", target = "centreHarmonicVoltageContent11Avg") + @Mapping(source = "p12", target = "centreHarmonicVoltageContent12Avg") + @Mapping(source = "p13", target = "centreHarmonicVoltageContent13Avg") + @Mapping(source = "p14", target = "centreHarmonicVoltageContent14Avg") + @Mapping(source = "p15", target = "centreHarmonicVoltageContent15Avg") + @Mapping(source = "p16", target = "centreHarmonicVoltageContent16Avg") + @Mapping(source = "p17", target = "centreHarmonicVoltageContent17Avg") + @Mapping(source = "p18", target = "centreHarmonicVoltageContent18Avg") + @Mapping(source = "p19", target = "centreHarmonicVoltageContent19Avg") + @Mapping(source = "p20", target = "centreHarmonicVoltageContent20Avg") + @Mapping(source = "p21", target = "centreHarmonicVoltageContent21Avg") + @Mapping(source = "p22", target = "centreHarmonicVoltageContent22Avg") + @Mapping(source = "p23", target = "centreHarmonicVoltageContent23Avg") + @Mapping(source = "p24", target = "centreHarmonicVoltageContent24Avg") + @Mapping(source = "p25", target = "centreHarmonicVoltageContent25Avg") + @Mapping(source = "p26", target = "centreHarmonicVoltageContent26Avg") + @Mapping(source = "p27", target = "centreHarmonicVoltageContent27Avg") + @Mapping(source = "p28", target = "centreHarmonicVoltageContent28Avg") + @Mapping(source = "p29", target = "centreHarmonicVoltageContent29Avg") + @Mapping(source = "p30", target = "centreHarmonicVoltageContent30Avg") + @Mapping(source = "p31", target = "centreHarmonicVoltageContent31Avg") + @Mapping(source = "p32", target = "centreHarmonicVoltageContent32Avg") + @Mapping(source = "p33", target = "centreHarmonicVoltageContent33Avg") + @Mapping(source = "p34", target = "centreHarmonicVoltageContent34Avg") + @Mapping(source = "p35", target = "centreHarmonicVoltageContent35Avg") + @Mapping(source = "p36", target = "centreHarmonicVoltageContent36Avg") + @Mapping(source = "p37", target = "centreHarmonicVoltageContent37Avg") + @Mapping(source = "p38", target = "centreHarmonicVoltageContent38Avg") + @Mapping(source = "p39", target = "centreHarmonicVoltageContent39Avg") + @Mapping(source = "p40", target = "centreHarmonicVoltageContent40Avg") + @Mapping(source = "p41", target = "centreHarmonicVoltageContent41Avg") + @Mapping(source = "p42", target = "centreHarmonicVoltageContent42Avg") + @Mapping(source = "p43", target = "centreHarmonicVoltageContent43Avg") + @Mapping(source = "p44", target = "centreHarmonicVoltageContent44Avg") + @Mapping(source = "p45", target = "centreHarmonicVoltageContent45Avg") + @Mapping(source = "p46", target = "centreHarmonicVoltageContent46Avg") + @Mapping(source = "p47", target = "centreHarmonicVoltageContent47Avg") + @Mapping(source = "p48", target = "centreHarmonicVoltageContent48Avg") + @Mapping(source = "p49", target = "centreHarmonicVoltageContent49Avg") + @Mapping(source = "p50", target = "centreHarmonicVoltageContent50Avg") + public RMpInharmonicVRateReportDPO RMpHarmonicPReportDPOConverterAvg(DataHarmPowerPPO temp); + + + @Mapping(source = "p1", target = "centreHarmonicVoltageContent1Cp95") + @Mapping(source = "p2", target = "centreHarmonicVoltageContent2Cp95") + @Mapping(source = "p3", target = "centreHarmonicVoltageContent3Cp95") + @Mapping(source = "p4", target = "centreHarmonicVoltageContent4Cp95") + @Mapping(source = "p5", target = "centreHarmonicVoltageContent5Cp95") + @Mapping(source = "p6", target = "centreHarmonicVoltageContent6Cp95") + @Mapping(source = "p7", target = "centreHarmonicVoltageContent7Cp95") + @Mapping(source = "p8", target = "centreHarmonicVoltageContent8Cp95") + @Mapping(source = "p9", target = "centreHarmonicVoltageContent9Cp95") + @Mapping(source = "p10", target = "centreHarmonicVoltageContent10Cp95") + @Mapping(source = "p11", target = "centreHarmonicVoltageContent11Cp95") + @Mapping(source = "p12", target = "centreHarmonicVoltageContent12Cp95") + @Mapping(source = "p13", target = "centreHarmonicVoltageContent13Cp95") + @Mapping(source = "p14", target = "centreHarmonicVoltageContent14Cp95") + @Mapping(source = "p15", target = "centreHarmonicVoltageContent15Cp95") + @Mapping(source = "p16", target = "centreHarmonicVoltageContent16Cp95") + @Mapping(source = "p17", target = "centreHarmonicVoltageContent17Cp95") + @Mapping(source = "p18", target = "centreHarmonicVoltageContent18Cp95") + @Mapping(source = "p19", target = "centreHarmonicVoltageContent19Cp95") + @Mapping(source = "p20", target = "centreHarmonicVoltageContent20Cp95") + @Mapping(source = "p21", target = "centreHarmonicVoltageContent21Cp95") + @Mapping(source = "p22", target = "centreHarmonicVoltageContent22Cp95") + @Mapping(source = "p23", target = "centreHarmonicVoltageContent23Cp95") + @Mapping(source = "p24", target = "centreHarmonicVoltageContent24Cp95") + @Mapping(source = "p25", target = "centreHarmonicVoltageContent25Cp95") + @Mapping(source = "p26", target = "centreHarmonicVoltageContent26Cp95") + @Mapping(source = "p27", target = "centreHarmonicVoltageContent27Cp95") + @Mapping(source = "p28", target = "centreHarmonicVoltageContent28Cp95") + @Mapping(source = "p29", target = "centreHarmonicVoltageContent29Cp95") + @Mapping(source = "p30", target = "centreHarmonicVoltageContent30Cp95") + @Mapping(source = "p31", target = "centreHarmonicVoltageContent31Cp95") + @Mapping(source = "p32", target = "centreHarmonicVoltageContent32Cp95") + @Mapping(source = "p33", target = "centreHarmonicVoltageContent33Cp95") + @Mapping(source = "p34", target = "centreHarmonicVoltageContent34Cp95") + @Mapping(source = "p35", target = "centreHarmonicVoltageContent35Cp95") + @Mapping(source = "p36", target = "centreHarmonicVoltageContent36Cp95") + @Mapping(source = "p37", target = "centreHarmonicVoltageContent37Cp95") + @Mapping(source = "p38", target = "centreHarmonicVoltageContent38Cp95") + @Mapping(source = "p39", target = "centreHarmonicVoltageContent39Cp95") + @Mapping(source = "p40", target = "centreHarmonicVoltageContent40Cp95") + @Mapping(source = "p41", target = "centreHarmonicVoltageContent41Cp95") + @Mapping(source = "p42", target = "centreHarmonicVoltageContent42Cp95") + @Mapping(source = "p43", target = "centreHarmonicVoltageContent43Cp95") + @Mapping(source = "p44", target = "centreHarmonicVoltageContent44Cp95") + @Mapping(source = "p45", target = "centreHarmonicVoltageContent45Cp95") + @Mapping(source = "p46", target = "centreHarmonicVoltageContent46Cp95") + @Mapping(source = "p47", target = "centreHarmonicVoltageContent47Cp95") + @Mapping(source = "p48", target = "centreHarmonicVoltageContent48Cp95") + @Mapping(source = "p49", target = "centreHarmonicVoltageContent49Cp95") + @Mapping(source = "p50", target = "centreHarmonicVoltageContent50Cp95") + public RMpInharmonicVRateReportDPO RMpHarmonicPReportDPOConverter95(DataHarmPowerPPO temp); + + /*RMpMeasurePhaseReportDPO*/ + @Mapping(source = "max.rms", target = "phaseVoltageEffectiveMax") + @Mapping(source = "max.rmsLvr", target = "lineVoltageEffectiveMax") + @Mapping(source = "max.vuDev", target = "VDeUpMax") + @Mapping(source = "max.vlDev", target = "VDeLowMax") + @Mapping(source = "max1.rms", target = "currentEffectiveMax") + @Mapping(source = "max2.p", target = "spActivePowerMax") + @Mapping(source = "max4.q", target = "spReactivePowerMax") + @Mapping(source = "max3.s", target = "spApparentPowerMax") + @Mapping(source = "max2.pf", target = "spPowerFactorMax") + @Mapping(source = "max2.df", target = "spFundamentalPowerFactorMax") + public RMpMeasurePhaseReportDPO RMpMeasurePhaseReportDPOConverterMax(DataVPO max, DataIPO max1, DataHarmPowerPPO max2, DataHarmPowerSPO max3, DataHarmPowerQPO max4); + + @Mapping(source = "min.rms", target = "phaseVoltageEffectiveMin") + @Mapping(source = "min.rmsLvr", target = "lineVoltageEffectiveMin") + @Mapping(source = "min.vuDev", target = "VDeUpMin") + @Mapping(source = "min.vlDev", target = "VDeLowMin") + @Mapping(source = "min1.rms", target = "currentEffectiveMin") + @Mapping(source = "min2.p", target = "spActivePowerMin") + @Mapping(source = "min4.q", target = "spReactivePowerMin") + @Mapping(source = "min3.s", target = "spApparentPowerMin") + @Mapping(source = "min2.pf", target = "spPowerFactorMin") + @Mapping(source = "min2.df", target = "spFundamentalPowerFactorMin") + public RMpMeasurePhaseReportDPO RMpMeasurePhaseReportDPOConverterMin(DataVPO min, DataIPO min1, DataHarmPowerPPO min2, DataHarmPowerSPO min3, DataHarmPowerQPO min4); + + + @Mapping(source = "avg.rms", target = "phaseVoltageEffectiveAvg") + @Mapping(source = "avg.rmsLvr", target = "lineVoltageEffectiveAvg") + @Mapping(source = "avg.vuDev", target = "VDeUpAvg") + @Mapping(source = "avg.vlDev", target = "VDeLowAvg") + @Mapping(source = "avg1.rms", target = "currentEffectiveAvg") + @Mapping(source = "avg2.p", target = "spActivePowerAvg") + @Mapping(source = "avg4.q", target = "spReactivePowerAvg") + @Mapping(source = "avg3.s", target = "spApparentPowerAvg") + @Mapping(source = "avg2.pf", target = "spPowerFactorAvg") + @Mapping(source = "avg2.df", target = "spFundamentalPowerFactorAvg") + public RMpMeasurePhaseReportDPO RMpMeasurePhaseReportDPOConverterAVg(DataVPO avg, DataIPO avg1, DataHarmPowerPPO avg2, DataHarmPowerSPO avg3, DataHarmPowerQPO avg4); + + + @Mapping(source = "cp95.rms", target = "phaseVoltageEffective95") + @Mapping(source = "cp95.rmsLvr", target = "lineVoltageEffective95") + @Mapping(source = "cp95.vuDev", target = "VDeUp95") + @Mapping(source = "cp95.vlDev", target = "VDeLow95") + @Mapping(source = "cp951.rms", target = "currentEffective95") + @Mapping(source = "cp952.p", target = "spActivePower95") + @Mapping(source = "cp954.q", target = "spReactivePower95") + @Mapping(source = "cp953.s", target = "spApparentPower95") + @Mapping(source = "cp952.pf", target = "spPowerFactor95") + @Mapping(source = "cp952.df", target = "spFundamentalPowerFactor95") + public RMpMeasurePhaseReportDPO RMpMeasurePhaseReportDPOConverterCp95(DataVPO cp95, DataIPO cp951, DataHarmPowerPPO cp952, DataHarmPowerSPO cp953, DataHarmPowerQPO cp954); +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/constant/Param.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/constant/Param.java new file mode 100644 index 000000000..e88c680eb --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/constant/Param.java @@ -0,0 +1,15 @@ +package com.njcn.prepare.harmonic.constant; + + +/** + * @author qijian + */ +public interface Param { + + /** + * 稳态/固态 + */ + Integer SOLID_STATE = 0; + Integer STEADY_STATE = 1; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/LimitRateServiceTest.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/LimitRateServiceTest.java new file mode 100644 index 000000000..6e7308d99 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/LimitRateServiceTest.java @@ -0,0 +1,71 @@ +package com.njcn.prepare.harmonic.controller; + +import com.njcn.influxdb.utils.InfluxDbUtils; +import com.njcn.prepare.harmonic.mapper.line.ExcelRptTempMapper; +import com.njcn.prepare.harmonic.pojo.po.DataVPO; +import com.njcn.prepare.harmonic.pojo.po.ExcelRptTemp; +import com.njcn.prepare.harmonic.service.Impl.line.LimitRateService; +import org.influxdb.dto.QueryResult; +import org.influxdb.impl.InfluxDBResultMapper; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; +import org.springframework.test.context.web.WebAppConfiguration; + +import java.text.ParseException; +import java.util.List; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/18 20:15【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@RunWith(SpringRunner.class) +@WebAppConfiguration +@SpringBootTest +public class LimitRateServiceTest { + private @Autowired + LimitRateService limitRateService; + private @Autowired + InfluxDbUtils influxDbUtils; + + private @Autowired + ExcelRptTempMapper excelRptTempMapper; + + @Test + public void test() throws ParseException { + System.out.println("spring test start"); + limitRateService.limitRateJobHandler (Stream.of ("8696be1d170e05b7d848accc059f4558" ).collect(Collectors.toList()), "2022-10-15 00:00:00", "2022-10-15 23:59:59"); + } + + @Test + public void test1(){ + System.out.println("spring test start"); + String sql ="SELECT * FROM data_v where time >= '2022-10-15 00:00:00' and time <= '2022-10-15 23:59:59' "; + influxDbUtils.setDbName ("pqsbase_test"); + + QueryResult sqlResult = influxDbUtils.query (sql); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper ( ); + List list = resultMapper.toPOJO (sqlResult, DataVPO.class); + System.out.println ("spring test end" ); + } + + + @Test + public void test3(){ + System.out.println("spring test start"); + ExcelRptTemp excelRptTemp = excelRptTempMapper.selectById ("8c7f0cb540904ddeb8fbedef288579d7"); + System.out.println (excelRptTemp.getId () ); +// limitRateService.limitRateJobHandler (Stream.of ("8696be1d170e05b7d848accc059f4558" ).collect(Collectors.toList()), "2022-10-15 00:00:00", "2022-10-15 23:59:59"); + } + + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/area/AreaController.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/area/AreaController.java new file mode 100644 index 000000000..e70d8cab4 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/area/AreaController.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.controller.area; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:13 + */ +public class AreaController { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/device/DeviceController.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/device/DeviceController.java new file mode 100644 index 000000000..4cf88d517 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/device/DeviceController.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.controller.device; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:13 + */ +public class DeviceController { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/DayDataController.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/DayDataController.java new file mode 100644 index 000000000..826cdbada --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/DayDataController.java @@ -0,0 +1,68 @@ +package com.njcn.prepare.harmonic.controller.line; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pq.api.LineFeignClient; +import com.njcn.prepare.harmonic.pojo.param.LimitRateHanlderParam; +import com.njcn.prepare.harmonic.service.line.DayDataService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.util.CollectionUtils; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.ArrayList; +import java.util.List; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/24 9:26【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Slf4j +@Api(tags = "日表数据处理") +@RestController +@RequestMapping("daydata") +@RequiredArgsConstructor +public class DayDataController extends BaseController { + + + private final LineFeignClient lineFeignClient; + + private final DayDataService dayDataService; + + @ApiOperation("day表定时任务") + @ApiImplicitParam(value = "jobParam",name = "jobParam",required = true) + @PostMapping("dayDataHanlder") + @OperateInfo(info = LogEnum.BUSINESS_MEDIUM) + public HttpResult dayDataHanlder(@RequestBody LimitRateHanlderParam jobParam ){ + String methodDescribe = getMethodDescribe("dayDataHanlder"); + Boolean result = true; + List indexLists = new ArrayList<> (); + if(CollectionUtils.isEmpty (jobParam.getLineIds ())){ + indexLists = lineFeignClient.getLineList ( ).getData ( ); + }else{ + indexLists = jobParam.getLineIds (); + } + + + dayDataService.dayDataJobHandler (indexLists,jobParam.getStartTime (),jobParam.getEndTime ()); + if (result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, true, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, false, methodDescribe); + } + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/IntegrityController.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/IntegrityController.java new file mode 100644 index 000000000..7b7b00cbb --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/IntegrityController.java @@ -0,0 +1,46 @@ +package com.njcn.prepare.harmonic.controller.line; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import com.njcn.prepare.harmonic.service.line.IntegrityService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * @author xiaoyao + * @version 1.0.0 + * @createTime 2022/10/24 20:03 + */ + +@Slf4j +@Api(tags = "数据完整性统计") +@RestController +@RequestMapping("/integrity") +@RequiredArgsConstructor +public class IntegrityController extends BaseController { + + private final IntegrityService integrityService; + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/computeDataIntegrity") + @ApiOperation("数据完整性统计") + @ApiImplicitParam(name = "lineParam", value = "参数", required = true) + public HttpResult computeDataIntegrity(@RequestBody @Validated LineParam lineParam){ + String methodDescribe = getMethodDescribe("computeDataIntegrity"); + String out = integrityService.computeDataIntegrity(lineParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, out, methodDescribe); + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/LimitTargetController.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/LimitTargetController.java new file mode 100644 index 000000000..1f45f03f3 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/LimitTargetController.java @@ -0,0 +1,46 @@ +package com.njcn.prepare.harmonic.controller.line; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import com.njcn.prepare.harmonic.service.line.LimitTargetService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * @author xiaoyao + * @version 1.0.0 + * @createTime 2022/10/26 13:32 + */ + +@Slf4j +@Api(tags = "监测点T相数据超限处理") +@RestController +@RequestMapping("/limitTarget") +@RequiredArgsConstructor +public class LimitTargetController extends BaseController { + + private final LimitTargetService limitTargetService; + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getLimitTargetData") + @ApiOperation("生成limit_target表") + @ApiImplicitParam(name = "lineParam", value = "参数", required = true) + public HttpResult getLimitTargetData(@RequestBody @Validated LineParam lineParam){ + String methodDescribe = getMethodDescribe("getLimitTargetData"); + limitTargetService.getLimitTargetData(lineParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/LimitrateController.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/LimitrateController.java new file mode 100644 index 000000000..73003c744 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/LimitrateController.java @@ -0,0 +1,69 @@ +package com.njcn.prepare.harmonic.controller.line; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.device.pq.api.LineFeignClient; +import com.njcn.prepare.harmonic.pojo.param.LimitRateHanlderParam; +import com.njcn.prepare.harmonic.service.Impl.line.LimitRateService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.util.CollectionUtils; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.ArrayList; +import java.util.List; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/19 9:58【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Slf4j +@Api(tags = "监测点数据超限处理") +@RestController +@RequestMapping("limitrate") +@RequiredArgsConstructor +public class LimitrateController extends BaseController { + + + private final LimitRateService limitRateService; + + private final LineFeignClient lineFeignClient; + + + @ApiOperation("limitrate表定时任务") + @ApiImplicitParam(value = "limitRateHanlderParam",name = "limitRateHanlderParam",required = true) + @PostMapping("LimitRateHanlder") + @OperateInfo(info = LogEnum.BUSINESS_MEDIUM) + public HttpResult limitRateHanlder(@RequestBody LimitRateHanlderParam limitRateHanlderParam ){ + String methodDescribe = getMethodDescribe("limitRateHanlder"); + Boolean result = true; + List indexLists = new ArrayList<> (); + if(CollectionUtils.isEmpty (limitRateHanlderParam.getLineIds ())){ + indexLists = lineFeignClient.getLineList ( ).getData ( ); + }else{ + indexLists = limitRateHanlderParam.getLineIds (); + } + + + limitRateService.limitRateJobHandler (indexLists,limitRateHanlderParam.getStartTime (),limitRateHanlderParam.getEndTime ()); + if (result){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, true, methodDescribe); + } else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, false, methodDescribe); + } + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/NormalLimitController.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/NormalLimitController.java new file mode 100644 index 000000000..b2c459f5f --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/NormalLimitController.java @@ -0,0 +1,40 @@ +package com.njcn.prepare.harmonic.controller.line; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.prepare.harmonic.service.line.NormalLimitService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 19:56 + */ +@Slf4j +@RestController +@RequestMapping("/normalLimit") +@Api(tags = "告警数据预处理") +@AllArgsConstructor +public class NormalLimitController extends BaseController { + + private final NormalLimitService normLimitService; + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getNormLimitData") + @ApiOperation("告警数据预处理") + public HttpResult getNormLimitData() { + String methodDescribe = getMethodDescribe("getNormLimitData"); + String list = normLimitService.getNormLimitData(); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe); + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/OnlineRateController.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/OnlineRateController.java new file mode 100644 index 000000000..5fe0daa0f --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/OnlineRateController.java @@ -0,0 +1,49 @@ +package com.njcn.prepare.harmonic.controller.line; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import com.njcn.prepare.harmonic.service.line.OnlineRateService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * 生成在线率数据表 + * + * @author xiaoyao + * @version 1.0.0 + * @createTime 2022/10/27 9:17 + */ + +@Slf4j +@Api(tags = "生成在线率数据表") +@RestController +@RequestMapping("/onlineRate") +@RequiredArgsConstructor +public class OnlineRateController extends BaseController { + + private final OnlineRateService onlineRateService; + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/getOnlineRateData") + @ApiOperation("生成在线率数据") + @ApiImplicitParam(name = "lineParam", value = "参数", required = true) + public HttpResult getOnlineRateData(@RequestBody @Validated LineParam lineParam){ + String methodDescribe = getMethodDescribe("getOnlineRateData"); + onlineRateService.getOnlineRateData(lineParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/PollutionController.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/PollutionController.java new file mode 100644 index 000000000..a4ea96534 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/PollutionController.java @@ -0,0 +1,54 @@ +package com.njcn.prepare.harmonic.controller.line; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.param.StatisticsBizBaseParam; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import com.njcn.prepare.harmonic.service.line.PollutionService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.AllArgsConstructor; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.servlet.http.HttpServletResponse; + + +/** + * 监测点污染指标 + * + * @author xiaoyao + * @version 1.0.0 + * @createTime 2022/10/18 8:54 + */ + +@Slf4j +@Api(tags = "监测点污染指标") +@RestController +@RequestMapping("/pollution") +@RequiredArgsConstructor +public class PollutionController extends BaseController { + + private final PollutionService pollutionService; + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/processPollutionData") + @ApiOperation("处理监测点污染指标") + @ApiImplicitParam(name = "lineParam", value = "参数", required = true) + public HttpResult processPollutionData(@RequestBody @Validated LineParam lineParam){ + String methodDescribe = getMethodDescribe("processPollutionData"); + pollutionService.processPollutionData(lineParam); + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + } + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/ReportController.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/ReportController.java new file mode 100644 index 000000000..25daf78b8 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/line/ReportController.java @@ -0,0 +1,57 @@ +package com.njcn.prepare.harmonic.controller.line; + +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import com.njcn.prepare.harmonic.service.line.ReportService; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * 自定义报表 + * @author qijian + * @date 2022/10/20 + */ +@Slf4j +@RestController +@RequestMapping("/report") +@Api(tags = "自定义报表") +@AllArgsConstructor +public class ReportController extends BaseController { + + private final ReportService reportService; + + /** + * 批量处理报表 + * @author qijian + * @date 2022/10/19 + */ + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/batchReport") + @ApiOperation("批量处理报表") + @ApiImplicitParam(name = "reportParam", value = "查询体", required = true) + public HttpResult batchReport(@RequestBody @Validated LineParam reportParam){ + String methodDescribe = getMethodDescribe("batchReport"); + boolean res = reportService.batchReport(reportParam); + if(res){ + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); + }else { + return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe); + } + } + + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/substion/SubstionController.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/substion/SubstionController.java new file mode 100644 index 000000000..97d6c60c8 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/substion/SubstionController.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.controller.substion; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:13 + */ +public class SubstionController { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/voltage/VoltageController.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/voltage/VoltageController.java new file mode 100644 index 000000000..4097fe9bb --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/controller/voltage/VoltageController.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.controller.voltage; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:13 + */ +public class VoltageController { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/area/AreaMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/area/AreaMapper.java new file mode 100644 index 000000000..7136b547b --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/area/AreaMapper.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.mapper.area; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:15 + */ +public interface AreaMapper { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/device/DeviceMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/device/DeviceMapper.java new file mode 100644 index 000000000..d7fa0ec0e --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/device/DeviceMapper.java @@ -0,0 +1,5 @@ +package com.njcn.prepare.harmonic.mapper.device; + +public interface DeviceMapper { + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/AbnormalMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/AbnormalMapper.java new file mode 100644 index 000000000..a88627736 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/AbnormalMapper.java @@ -0,0 +1,12 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.prepare.harmonic.pojo.po.AbnormalPO; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月18日 11:12 + */ +public interface AbnormalMapper extends BaseMapper { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/ExcelRptMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/ExcelRptMapper.java new file mode 100644 index 000000000..24d9de36c --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/ExcelRptMapper.java @@ -0,0 +1,14 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.prepare.harmonic.pojo.po.ExcelRpt; + +/** + * ExcelRptMapper + * + * @author qijian + * @date 2022/10/14 + */ +public interface ExcelRptMapper extends BaseMapper { + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/ExcelRptTempMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/ExcelRptTempMapper.java new file mode 100644 index 000000000..05f5c1359 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/ExcelRptTempMapper.java @@ -0,0 +1,16 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.prepare.harmonic.pojo.po.ExcelRptTemp; + +import java.util.List; + +/** + * @author qijian + * @date 2022/10/20 + */ +public interface ExcelRptTempMapper extends BaseMapper { + + List getActiveTempList(); + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/LimitRatePOMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/LimitRatePOMapper.java new file mode 100644 index 000000000..ed6f350fa --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/LimitRatePOMapper.java @@ -0,0 +1,18 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.github.jeffreyning.mybatisplus.base.MppBaseMapper; +import com.njcn.harmonic.pojo.po.LimitRatePO; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/20 18:25【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface LimitRatePOMapper extends MppBaseMapper { +// int updateBatch(List list); + +// int batchInsert(@Param("list") List list); +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/LimitTargetPOMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/LimitTargetPOMapper.java new file mode 100644 index 000000000..dd22158b3 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/LimitTargetPOMapper.java @@ -0,0 +1,20 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.prepare.harmonic.pojo.po.line.LimitTargetPO; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/20 18:26【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface LimitTargetPOMapper extends BaseMapper { +// int updateBatch(List list); +// +// int updateBatchSelective(List list); +// +// int batchInsert(@Param("list") List list); +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/NormLimitMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/NormLimitMapper.java new file mode 100644 index 000000000..81de1cd2b --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/NormLimitMapper.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.mapper.line; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:11 + */ +public interface NormLimitMapper { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpFlickerReportDPOMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpFlickerReportDPOMapper.java new file mode 100644 index 000000000..7b7e9cd3b --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpFlickerReportDPOMapper.java @@ -0,0 +1,16 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.github.jeffreyning.mybatisplus.base.MppBaseMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpFlickerReportDPO; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 14:15【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpFlickerReportDPOMapper extends MppBaseMapper { +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpHarmonicIMagReportDPOMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpHarmonicIMagReportDPOMapper.java new file mode 100644 index 000000000..a733bda24 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpHarmonicIMagReportDPOMapper.java @@ -0,0 +1,16 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.github.jeffreyning.mybatisplus.base.MppBaseMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpHarmonicIMagReportDPO; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 9:50【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpHarmonicIMagReportDPOMapper extends MppBaseMapper { +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpHarmonicIRateReportDPOMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpHarmonicIRateReportDPOMapper.java new file mode 100644 index 000000000..c5c7f03a4 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpHarmonicIRateReportDPOMapper.java @@ -0,0 +1,16 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.github.jeffreyning.mybatisplus.base.MppBaseMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpHarmonicIRateReportDPO; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 18:33【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpHarmonicIRateReportDPOMapper extends MppBaseMapper { +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpHarmonicPReportDPOMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpHarmonicPReportDPOMapper.java new file mode 100644 index 000000000..2cc6bea67 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpHarmonicPReportDPOMapper.java @@ -0,0 +1,15 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.github.jeffreyning.mybatisplus.base.MppBaseMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpHarmonicPReportDPO; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/25 10:33【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpHarmonicPReportDPOMapper extends MppBaseMapper { +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpHarmonicVRateReportDPOMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpHarmonicVRateReportDPOMapper.java new file mode 100644 index 000000000..aacb85ea1 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpHarmonicVRateReportDPOMapper.java @@ -0,0 +1,16 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.github.jeffreyning.mybatisplus.base.MppBaseMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpHarmonicVRateReportDPO; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/25 11:11【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpHarmonicVRateReportDPOMapper extends MppBaseMapper { +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpInharmonicIMagReportDPOMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpInharmonicIMagReportDPOMapper.java new file mode 100644 index 000000000..8db968bd9 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpInharmonicIMagReportDPOMapper.java @@ -0,0 +1,15 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.github.jeffreyning.mybatisplus.base.MppBaseMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpInharmonicIMagReportDPO; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/27 13:52【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpInharmonicIMagReportDPOMapper extends MppBaseMapper { +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpInharmonicIRateReportDPOMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpInharmonicIRateReportDPOMapper.java new file mode 100644 index 000000000..7ae1a6506 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpInharmonicIRateReportDPOMapper.java @@ -0,0 +1,16 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.github.jeffreyning.mybatisplus.base.MppBaseMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpInharmonicIRateReportDPO; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 19:36【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpInharmonicIRateReportDPOMapper extends MppBaseMapper { +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpInharmonicVRateReportDPOMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpInharmonicVRateReportDPOMapper.java new file mode 100644 index 000000000..08feb01dd --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpInharmonicVRateReportDPOMapper.java @@ -0,0 +1,15 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.github.jeffreyning.mybatisplus.base.MppBaseMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpInharmonicVRateReportDPO; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/27 13:52【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpInharmonicVRateReportDPOMapper extends MppBaseMapper { +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpMeasurePhaseReportDPOMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpMeasurePhaseReportDPOMapper.java new file mode 100644 index 000000000..45c40786e --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpMeasurePhaseReportDPOMapper.java @@ -0,0 +1,16 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.github.jeffreyning.mybatisplus.base.MppBaseMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpMeasurePhaseReportDPO; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/28 10:53【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpMeasurePhaseReportDPOMapper extends MppBaseMapper { +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpMeasureReportDPOMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpMeasureReportDPOMapper.java new file mode 100644 index 000000000..7fc0ce9cb --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpMeasureReportDPOMapper.java @@ -0,0 +1,16 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.github.jeffreyning.mybatisplus.base.MppBaseMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpMeasureReportDPO; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/28 10:54【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpMeasureReportDPOMapper extends MppBaseMapper { +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpPltReportDPOMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpPltReportDPOMapper.java new file mode 100644 index 000000000..af86f5257 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpPltReportDPOMapper.java @@ -0,0 +1,16 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.github.jeffreyning.mybatisplus.base.MppBaseMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpPltReportDPO; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 15:26【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpPltReportDPOMapper extends MppBaseMapper { +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpPollutionDMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpPollutionDMapper.java new file mode 100644 index 000000000..07e4d82d9 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RMpPollutionDMapper.java @@ -0,0 +1,21 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.prepare.harmonic.pojo.po.RMpPollutionD; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + *

+ * 监测点污区图统计日表 Mapper 接口 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +public interface RMpPollutionDMapper extends BaseMapper { + + int insertPollution(@Param("item") RMpPollutionD item); + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionOrgDMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionOrgDMapper.java new file mode 100644 index 000000000..2e205e483 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionOrgDMapper.java @@ -0,0 +1,22 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.prepare.harmonic.pojo.po.RMpPollutionD; +import com.njcn.prepare.harmonic.pojo.po.RStatPollutionOrgD; +import org.apache.ibatis.annotations.Param; + +import java.util.Map; + +/** + *

+ * 单位污区图统计日表 Mapper 接口 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +public interface RStatPollutionOrgDMapper extends BaseMapper { + + int insertPollution(@Param("item") Map item); + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionOrgMMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionOrgMMapper.java new file mode 100644 index 000000000..212afb13b --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionOrgMMapper.java @@ -0,0 +1,20 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.prepare.harmonic.pojo.po.RStatPollutionOrgM; +import org.apache.ibatis.annotations.Param; + +import java.util.Map; + +/** + *

+ * 单位污区图统计月表 Mapper 接口 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +public interface RStatPollutionOrgMMapper extends BaseMapper { + + int insertPollution(@Param("item") Map item); +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionOrgQMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionOrgQMapper.java new file mode 100644 index 000000000..774e7a5aa --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionOrgQMapper.java @@ -0,0 +1,20 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.prepare.harmonic.pojo.po.RStatPollutionOrgQ; +import org.apache.ibatis.annotations.Param; + +import java.util.Map; + +/** + *

+ * 单位污区图统计季表 Mapper 接口 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +public interface RStatPollutionOrgQMapper extends BaseMapper { + + int insertPollution(@Param("item") Map item); +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionOrgYMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionOrgYMapper.java new file mode 100644 index 000000000..09a258a0c --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionOrgYMapper.java @@ -0,0 +1,20 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.prepare.harmonic.pojo.po.RStatPollutionOrgY; +import org.apache.ibatis.annotations.Param; + +import java.util.Map; + +/** + *

+ * 单位污区图统计年表 Mapper 接口 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +public interface RStatPollutionOrgYMapper extends BaseMapper { + + int insertPollution(@Param("item") Map item); +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionSubstationDMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionSubstationDMapper.java new file mode 100644 index 000000000..19a21dabe --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionSubstationDMapper.java @@ -0,0 +1,22 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.prepare.harmonic.pojo.po.RStatPollutionOrgD; +import com.njcn.prepare.harmonic.pojo.po.RStatPollutionSubstationD; +import org.apache.ibatis.annotations.Param; + +import java.util.Map; + +/** + *

+ * 变电站污区图统计日表 Mapper 接口 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +public interface RStatPollutionSubstationDMapper extends BaseMapper { + + int insertPollution(@Param("item") Map item); + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionSubstationMMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionSubstationMMapper.java new file mode 100644 index 000000000..da814c86b --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionSubstationMMapper.java @@ -0,0 +1,20 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.prepare.harmonic.pojo.po.RStatPollutionSubstationM; +import org.apache.ibatis.annotations.Param; + +import java.util.Map; + +/** + *

+ * 变电站污区图统计月表 Mapper 接口 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +public interface RStatPollutionSubstationMMapper extends BaseMapper { + + int insertPollution(@Param("item") Map item); +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionSubstationQMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionSubstationQMapper.java new file mode 100644 index 000000000..d6b893178 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionSubstationQMapper.java @@ -0,0 +1,20 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.prepare.harmonic.pojo.po.RStatPollutionSubstationQ; +import org.apache.ibatis.annotations.Param; + +import java.util.Map; + +/** + *

+ * 变电站污区图统计季表 Mapper 接口 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +public interface RStatPollutionSubstationQMapper extends BaseMapper { + + int insertPollution(@Param("item") Map item); +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionSubstationYMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionSubstationYMapper.java new file mode 100644 index 000000000..e16aa126d --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/RStatPollutionSubstationYMapper.java @@ -0,0 +1,20 @@ +package com.njcn.prepare.harmonic.mapper.line; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.njcn.prepare.harmonic.pojo.po.RStatPollutionSubstationY; +import org.apache.ibatis.annotations.Param; + +import java.util.Map; + +/** + *

+ * 变电站污区图统计年表 Mapper 接口 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +public interface RStatPollutionSubstationYMapper extends BaseMapper { + + int insertPollution(@Param("item") Map item); +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/ExcelRptTempMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/ExcelRptTempMapper.xml new file mode 100644 index 000000000..3193e7530 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/ExcelRptTempMapper.xml @@ -0,0 +1,14 @@ + + + + + + + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/LimitRatePOMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/LimitRatePOMapper.xml new file mode 100644 index 000000000..7ed5a7294 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/LimitRatePOMapper.xml @@ -0,0 +1,514 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + line_id, phasic_type, `time`, all_time, flicker_overtime, flicker_all_time, freq_dev_overtime, + voltage_dev_overtime, ubalance_overtime, uaberrance_overtime, i_neg_overtime, uharm_2_overtime, + uharm_3_overtime, uharm_4_overtime, uharm_5_overtime, uharm_6_overtime, uharm_7_overtime, + uharm_8_overtime, uharm_9_overtime, uharm_10_overtime, uharm_11_overtime, uharm_12_overtime, + uharm_13_overtime, uharm_14_overtime, uharm_15_overtime, uharm_16_overtime, uharm_17_overtime, + uharm_18_overtime, uharm_19_overtime, uharm_20_overtime, uharm_21_overtime, uharm_22_overtime, + uharm_23_overtime, uharm_24_overtime, uharm_25_overtime, iharm_2_overtime, iharm_3_overtime, + iharm_4_overtime, iharm_5_overtime, iharm_6_overtime, iharm_7_overtime, iharm_8_overtime, + iharm_9_overtime, iharm_10_overtime, iharm_11_overtime, iharm_12_overtime, iharm_13_overtime, + iharm_14_overtime, iharm_15_overtime, iharm_16_overtime, iharm_17_overtime, iharm_18_overtime, + iharm_19_overtime, iharm_20_overtime, iharm_21_overtime, iharm_22_overtime, iharm_23_overtime, + iharm_24_overtime, iharm_25_overtime, inuharm_1_overtime, inuharm_2_overtime, inuharm_3_overtime, + inuharm_4_overtime, inuharm_5_overtime, inuharm_6_overtime, inuharm_7_overtime, inuharm_8_overtime, + inuharm_9_overtime, inuharm_10_overtime, inuharm_11_overtime, inuharm_12_overtime, + inuharm_13_overtime, inuharm_14_overtime, inuharm_15_overtime, inuharm_16_overtime + + + + update limit_rate + + + + when line_id = #{item.lineId} then #{item.allTime} + + + + + when line_id = #{item.lineId} then #{item.flickerOverTime} + + + + + when line_id = #{item.lineId} then #{item.flickerAllTime} + + + + + when line_id = #{item.lineId} then #{item.freqDevOverTime} + + + + + when line_id = #{item.lineId} then #{item.voltageDevOverTime} + + + + + when line_id = #{item.lineId} then #{item.ubalanceOverTime} + + + + + when line_id = #{item.lineId} then #{item.uAberranceOverTime} + + + + + when line_id = #{item.lineId} then #{item.iNegOverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm2OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm3OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm4OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm5OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm6OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm7OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm8OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm9OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm10OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm11OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm12OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm13OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm14OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm15OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm16OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm17OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm18OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm19OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm20OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm21OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm22OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm23OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm24OverTime} + + + + + when line_id = #{item.lineId} then #{item.uharm25OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm2OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm3OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm4OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm5OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm6OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm7OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm8OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm9OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm10OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm11OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm12OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm13OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm14OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm15OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm16OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm17OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm18OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm19OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm20OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm21OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm22OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm23OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm24OverTime} + + + + + when line_id = #{item.lineId} then #{item.iharm25OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm1OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm2OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm3OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm4OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm5OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm6OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm7OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm8OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm9OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm10OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm11OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm12OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm13OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm14OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm15OverTime} + + + + + when line_id = #{item.lineId} then #{item.inuharm16OverTime} + + + + where line_id in + + #{item.lineId} + + + + + insert into limit_rate + (line_id, phasic_type, `time`, all_time, flicker_overtime, flicker_all_time, freq_dev_overtime, + voltage_dev_overtime, ubalance_overtime, uaberrance_overtime, i_neg_overtime, uharm_2_overtime, + uharm_3_overtime, uharm_4_overtime, uharm_5_overtime, uharm_6_overtime, uharm_7_overtime, + uharm_8_overtime, uharm_9_overtime, uharm_10_overtime, uharm_11_overtime, uharm_12_overtime, + uharm_13_overtime, uharm_14_overtime, uharm_15_overtime, uharm_16_overtime, uharm_17_overtime, + uharm_18_overtime, uharm_19_overtime, uharm_20_overtime, uharm_21_overtime, uharm_22_overtime, + uharm_23_overtime, uharm_24_overtime, uharm_25_overtime, iharm_2_overtime, iharm_3_overtime, + iharm_4_overtime, iharm_5_overtime, iharm_6_overtime, iharm_7_overtime, iharm_8_overtime, + iharm_9_overtime, iharm_10_overtime, iharm_11_overtime, iharm_12_overtime, iharm_13_overtime, + iharm_14_overtime, iharm_15_overtime, iharm_16_overtime, iharm_17_overtime, iharm_18_overtime, + iharm_19_overtime, iharm_20_overtime, iharm_21_overtime, iharm_22_overtime, iharm_23_overtime, + iharm_24_overtime, iharm_25_overtime, inuharm_1_overtime, inuharm_2_overtime, inuharm_3_overtime, + inuharm_4_overtime, inuharm_5_overtime, inuharm_6_overtime, inuharm_7_overtime, + inuharm_8_overtime, inuharm_9_overtime, inuharm_10_overtime, inuharm_11_overtime, + inuharm_12_overtime, inuharm_13_overtime, inuharm_14_overtime, inuharm_15_overtime, + inuharm_16_overtime) + values + + (#{item.lineId}, #{item.phasicType}, #{item.time}, #{item.allTime}, #{item.flickerOverTime}, + #{item.flickerAllTime}, #{item.freqDevOverTime}, #{item.voltageDevOverTime}, #{item.ubalanceOverTime}, + #{item.uaberranceOverTime}, #{item.iNegOverTime}, #{item.uharm2OverTime}, #{item.uharm3OverTime}, + #{item.uharm4OverTime}, #{item.uharm5OverTime}, #{item.uharm6OverTime}, #{item.uharm7OverTime}, + #{item.uharm8OverTime}, #{item.uharm9OverTime}, #{item.uharm10OverTime}, #{item.uharm11OverTime}, + #{item.uharm12OverTime}, #{item.uharm13OverTime}, #{item.uharm14OverTime}, #{item.uharm15OverTime}, + #{item.uharm16OverTime}, #{item.uharm17OverTime}, #{item.uharm18OverTime}, #{item.uharm19OverTime}, + #{item.uharm20OverTime}, #{item.uharm21OverTime}, #{item.uharm22OverTime}, #{item.uharm23OverTime}, + #{item.uharm24OverTime}, #{item.uharm25OverTime}, #{item.iharm2OverTime}, #{item.iharm3OverTime}, + #{item.iharm4OverTime}, #{item.iharm5OverTime}, #{item.iharm6OverTime}, #{item.iharm7OverTime}, + #{item.iharm8OverTime}, #{item.iharm9OverTime}, #{item.iharm10OverTime}, #{item.iharm11OverTime}, + #{item.iharm12OverTime}, #{item.iharm13OverTime}, #{item.iharm14OverTime}, #{item.iharm15OverTime}, + #{item.iharm16OverTime}, #{item.iharm17OverTime}, #{item.iharm18OverTime}, #{item.iharm19OverTime}, + #{item.iharm20OverTime}, #{item.iharm21OverTime}, #{item.iharm22OverTime}, #{item.iharm23OverTime}, + #{item.iharm24OverTime}, #{item.iharm25OverTime}, #{item.inuharm1OverTime}, #{item.inuharm2OverTime}, + #{item.inuharm3OverTime}, #{item.inuharm4OverTime}, #{item.inuharm5OverTime}, #{item.inuharm6OverTime}, + #{item.inuharm7OverTime}, #{item.inuharm8OverTime}, #{item.inuharm9OverTime}, #{item.inuharm10OverTime}, + #{item.inuharm11OverTime}, #{item.inuharm12OverTime}, #{item.inuharm13OverTime}, + #{item.inuharm14OverTime}, #{item.inuharm15OverTime}, #{item.inuharm16OverTime} + ) + + + \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/LimitTargetPOMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/LimitTargetPOMapper.xml new file mode 100644 index 000000000..8fb78533e --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/LimitTargetPOMapper.xml @@ -0,0 +1,1028 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + line_id, phasic_type, `time`, all_time, flicker_overtime, flicker_all_time, freq_dev_overtime, + voltage_dev_overtime, ubalance_overtime, uaberrance_overtime, i_neg_overtime, uharm_2_overtime, + uharm_3_overtime, uharm_4_overtime, uharm_5_overtime, uharm_6_overtime, uharm_7_overtime, + uharm_8_overtime, uharm_9_overtime, uharm_10_overtime, uharm_11_overtime, uharm_12_overtime, + uharm_13_overtime, uharm_14_overtime, uharm_15_overtime, uharm_16_overtime, uharm_17_overtime, + uharm_18_overtime, uharm_19_overtime, uharm_20_overtime, uharm_21_overtime, uharm_22_overtime, + uharm_23_overtime, uharm_24_overtime, uharm_25_overtime, iharm_2_overtime, iharm_3_overtime, + iharm_4_overtime, iharm_5_overtime, iharm_6_overtime, iharm_7_overtime, iharm_8_overtime, + iharm_9_overtime, iharm_10_overtime, iharm_11_overtime, iharm_12_overtime, iharm_13_overtime, + iharm_14_overtime, iharm_15_overtime, iharm_16_overtime, iharm_17_overtime, iharm_18_overtime, + iharm_19_overtime, iharm_20_overtime, iharm_21_overtime, iharm_22_overtime, iharm_23_overtime, + iharm_24_overtime, iharm_25_overtime, inuharm_1_overtime, inuharm_2_overtime, inuharm_3_overtime, + inuharm_4_overtime, inuharm_5_overtime, inuharm_6_overtime, inuharm_7_overtime, inuharm_8_overtime, + inuharm_9_overtime, inuharm_10_overtime, inuharm_11_overtime, inuharm_12_overtime, + inuharm_13_overtime, inuharm_14_overtime, inuharm_15_overtime, inuharm_16_overtime + + + + update limit_target + + + + when line_id = #{item.lineId} then #{item.allTime} + + + + + when line_id = #{item.lineId} then #{item.flickerOvertime} + + + + + when line_id = #{item.lineId} then #{item.flickerAllTime} + + + + + when line_id = #{item.lineId} then #{item.freqDevOvertime} + + + + + when line_id = #{item.lineId} then #{item.voltageDevOvertime} + + + + + when line_id = #{item.lineId} then #{item.ubalanceOvertime} + + + + + when line_id = #{item.lineId} then #{item.uaberranceOvertime} + + + + + when line_id = #{item.lineId} then #{item.iNegOvertime} + + + + + when line_id = #{item.lineId} then #{item.uharm2Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm3Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm4Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm5Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm6Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm7Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm8Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm9Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm10Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm11Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm12Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm13Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm14Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm15Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm16Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm17Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm18Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm19Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm20Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm21Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm22Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm23Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm24Overtime} + + + + + when line_id = #{item.lineId} then #{item.uharm25Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm2Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm3Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm4Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm5Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm6Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm7Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm8Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm9Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm10Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm11Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm12Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm13Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm14Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm15Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm16Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm17Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm18Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm19Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm20Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm21Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm22Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm23Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm24Overtime} + + + + + when line_id = #{item.lineId} then #{item.iharm25Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm1Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm2Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm3Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm4Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm5Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm6Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm7Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm8Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm9Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm10Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm11Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm12Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm13Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm14Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm15Overtime} + + + + + when line_id = #{item.lineId} then #{item.inuharm16Overtime} + + + + where line_id in + + #{item.lineId} + + + + + update limit_target + + + + + when line_id = #{item.lineId} then #{item.allTime} + + + + + + + when line_id = #{item.lineId} then #{item.flickerOvertime} + + + + + + + when line_id = #{item.lineId} then #{item.flickerAllTime} + + + + + + + when line_id = #{item.lineId} then #{item.freqDevOvertime} + + + + + + + when line_id = #{item.lineId} then #{item.voltageDevOvertime} + + + + + + + when line_id = #{item.lineId} then #{item.ubalanceOvertime} + + + + + + + when line_id = #{item.lineId} then #{item.uaberranceOvertime} + + + + + + + when line_id = #{item.lineId} then #{item.iNegOvertime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm2Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm3Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm4Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm5Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm6Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm7Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm8Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm9Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm10Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm11Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm12Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm13Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm14Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm15Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm16Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm17Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm18Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm19Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm20Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm21Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm22Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm23Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm24Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.uharm25Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm2Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm3Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm4Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm5Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm6Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm7Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm8Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm9Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm10Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm11Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm12Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm13Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm14Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm15Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm16Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm17Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm18Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm19Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm20Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm21Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm22Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm23Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm24Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.iharm25Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm1Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm2Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm3Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm4Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm5Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm6Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm7Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm8Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm9Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm10Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm11Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm12Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm13Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm14Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm15Overtime} + + + + + + + when line_id = #{item.lineId} then #{item.inuharm16Overtime} + + + + + where line_id in + + #{item.lineId} + + + + + insert into limit_target + (line_id, phasic_type, `time`, all_time, flicker_overtime, flicker_all_time, freq_dev_overtime, + voltage_dev_overtime, ubalance_overtime, uaberrance_overtime, i_neg_overtime, uharm_2_overtime, + uharm_3_overtime, uharm_4_overtime, uharm_5_overtime, uharm_6_overtime, uharm_7_overtime, + uharm_8_overtime, uharm_9_overtime, uharm_10_overtime, uharm_11_overtime, uharm_12_overtime, + uharm_13_overtime, uharm_14_overtime, uharm_15_overtime, uharm_16_overtime, uharm_17_overtime, + uharm_18_overtime, uharm_19_overtime, uharm_20_overtime, uharm_21_overtime, uharm_22_overtime, + uharm_23_overtime, uharm_24_overtime, uharm_25_overtime, iharm_2_overtime, iharm_3_overtime, + iharm_4_overtime, iharm_5_overtime, iharm_6_overtime, iharm_7_overtime, iharm_8_overtime, + iharm_9_overtime, iharm_10_overtime, iharm_11_overtime, iharm_12_overtime, iharm_13_overtime, + iharm_14_overtime, iharm_15_overtime, iharm_16_overtime, iharm_17_overtime, iharm_18_overtime, + iharm_19_overtime, iharm_20_overtime, iharm_21_overtime, iharm_22_overtime, iharm_23_overtime, + iharm_24_overtime, iharm_25_overtime, inuharm_1_overtime, inuharm_2_overtime, inuharm_3_overtime, + inuharm_4_overtime, inuharm_5_overtime, inuharm_6_overtime, inuharm_7_overtime, + inuharm_8_overtime, inuharm_9_overtime, inuharm_10_overtime, inuharm_11_overtime, + inuharm_12_overtime, inuharm_13_overtime, inuharm_14_overtime, inuharm_15_overtime, + inuharm_16_overtime) + values + + (#{item.lineId}, #{item.phasicType}, #{item.time}, #{item.allTime}, #{item.flickerOvertime}, + #{item.flickerAllTime}, #{item.freqDevOvertime}, #{item.voltageDevOvertime}, #{item.ubalanceOvertime}, + #{item.uaberranceOvertime}, #{item.iNegOvertime}, #{item.uharm2Overtime}, #{item.uharm3Overtime}, + #{item.uharm4Overtime}, #{item.uharm5Overtime}, #{item.uharm6Overtime}, #{item.uharm7Overtime}, + #{item.uharm8Overtime}, #{item.uharm9Overtime}, #{item.uharm10Overtime}, #{item.uharm11Overtime}, + #{item.uharm12Overtime}, #{item.uharm13Overtime}, #{item.uharm14Overtime}, #{item.uharm15Overtime}, + #{item.uharm16Overtime}, #{item.uharm17Overtime}, #{item.uharm18Overtime}, #{item.uharm19Overtime}, + #{item.uharm20Overtime}, #{item.uharm21Overtime}, #{item.uharm22Overtime}, #{item.uharm23Overtime}, + #{item.uharm24Overtime}, #{item.uharm25Overtime}, #{item.iharm2Overtime}, #{item.iharm3Overtime}, + #{item.iharm4Overtime}, #{item.iharm5Overtime}, #{item.iharm6Overtime}, #{item.iharm7Overtime}, + #{item.iharm8Overtime}, #{item.iharm9Overtime}, #{item.iharm10Overtime}, #{item.iharm11Overtime}, + #{item.iharm12Overtime}, #{item.iharm13Overtime}, #{item.iharm14Overtime}, #{item.iharm15Overtime}, + #{item.iharm16Overtime}, #{item.iharm17Overtime}, #{item.iharm18Overtime}, #{item.iharm19Overtime}, + #{item.iharm20Overtime}, #{item.iharm21Overtime}, #{item.iharm22Overtime}, #{item.iharm23Overtime}, + #{item.iharm24Overtime}, #{item.iharm25Overtime}, #{item.inuharm1Overtime}, #{item.inuharm2Overtime}, + #{item.inuharm3Overtime}, #{item.inuharm4Overtime}, #{item.inuharm5Overtime}, #{item.inuharm6Overtime}, + #{item.inuharm7Overtime}, #{item.inuharm8Overtime}, #{item.inuharm9Overtime}, #{item.inuharm10Overtime}, + #{item.inuharm11Overtime}, #{item.inuharm12Overtime}, #{item.inuharm13Overtime}, + #{item.inuharm14Overtime}, #{item.inuharm15Overtime}, #{item.inuharm16Overtime} + ) + + + \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpFlickerReportDPOMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpFlickerReportDPOMapper.xml new file mode 100644 index 000000000..fd0a5102e --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpFlickerReportDPOMapper.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + measurement_point_id, data_date, phase, VOLTAGE_FLUCTUATION_MAX, VOLTAGE_FLUCTUATION_MIN, + VOLTAGE_FLUCTUATION_AVG, VOLTAGE_FLUCTUATION_95, SHORT_TERM_SEVERITY_MAX, SHORT_TERM_SEVERITY_MIN, + SHORT_TERM_SEVERITY_AVG, SHORT_TERM_SEVERITY_95 + + \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpHarmonicIMagReportDPOMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpHarmonicIMagReportDPOMapper.xml new file mode 100644 index 000000000..dad13d0ce --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpHarmonicIMagReportDPOMapper.xml @@ -0,0 +1,286 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id, data_date, phase, fundamental_current_max, fundamental_current_min, + fundamental_current_avg, fundamental_current_95, harmonic_current_thd_max, harmonic_current_thd_min, + harmonic_current_thd_avg, harmonic_current_thd_95, harmonic_current_effective_2_max, + harmonic_current_effective_2_min, harmonic_current_effective_2_avg, harmonic_current_effective_2_95, + harmonic_current_effective_3_max, harmonic_current_effective_3_min, harmonic_current_effective_3_avg, + harmonic_current_effective_3_95, harmonic_current_effective_4_max, harmonic_current_effective_4_min, + harmonic_current_effective_4_avg, harmonic_current_effective_4_95, harmonic_current_effective_5_max, + harmonic_current_effective_5_min, harmonic_current_effective_5_avg, harmonic_current_effective_5_95, + harmonic_current_effective_6_max, harmonic_current_effective_6_min, harmonic_current_effective_6_avg, + harmonic_current_effective_6_95, harmonic_current_effective_7_max, harmonic_current_effective_7_min, + harmonic_current_effective_7_avg, harmonic_current_effective_7_95, harmonic_current_effective_8_max, + harmonic_current_effective_8_min, harmonic_current_effective_8_avg, harmonic_current_effective_8_95, + harmonic_current_effective_9_max, harmonic_current_effective_9_min, harmonic_current_effective_9_avg, + harmonic_current_effective_9_95, harmonic_current_effective_10_max, harmonic_current_effective_10_min, + harmonic_current_effective_10_avg, harmonic_current_effective_10_95, harmonic_current_effective_11_max, + harmonic_current_effective_11_min, harmonic_current_effective_11_avg, harmonic_current_effective_11_95, + harmonic_current_effective_12_max, harmonic_current_effective_12_min, harmonic_current_effective_12_avg, + harmonic_current_effective_12_95, harmonic_current_effective_13_max, harmonic_current_effective_13_min, + harmonic_current_effective_13_avg, harmonic_current_effective_13_95, harmonic_current_effective_14_max, + harmonic_current_effective_14_min, harmonic_current_effective_14_avg, harmonic_current_effective_14_95, + harmonic_current_effective_15_max, harmonic_current_effective_15_min, harmonic_current_effective_15_avg, + harmonic_current_effective_15_95, harmonic_current_effective_16_max, harmonic_current_effective_16_min, + harmonic_current_effective_16_avg, harmonic_current_effective_16_95, harmonic_current_effective_17_max, + harmonic_current_effective_17_min, harmonic_current_effective_17_avg, harmonic_current_effective_17_95, + harmonic_current_effective_18_max, harmonic_current_effective_18_min, harmonic_current_effective_18_avg, + harmonic_current_effective_18_95, harmonic_current_effective_19_max, harmonic_current_effective_19_min, + harmonic_current_effective_19_avg, harmonic_current_effective_19_95, harmonic_current_effective_20_max, + harmonic_current_effective_20_min, harmonic_current_effective_20_avg, harmonic_current_effective_20_95, + harmonic_current_effective_21_max, harmonic_current_effective_21_min, harmonic_current_effective_21_avg, + harmonic_current_effective_21_95, harmonic_current_effective_22_max, harmonic_current_effective_22_min, + harmonic_current_effective_22_avg, harmonic_current_effective_22_95, harmonic_current_effective_23_max, + harmonic_current_effective_23_min, harmonic_current_effective_23_avg, harmonic_current_effective_23_95, + harmonic_current_effective_24_max, harmonic_current_effective_24_min, harmonic_current_effective_24_avg, + harmonic_current_effective_24_95, harmonic_current_effective_25_max, harmonic_current_effective_25_min, + harmonic_current_effective_25_avg, harmonic_current_effective_25_95, harmonic_current_effective_26_max, + harmonic_current_effective_26_min, harmonic_current_effective_26_avg, harmonic_current_effective_26_95, + harmonic_current_effective_27_max, harmonic_current_effective_27_min, harmonic_current_effective_27_avg, + harmonic_current_effective_27_95, harmonic_current_effective_28_max, harmonic_current_effective_28_min, + harmonic_current_effective_28_avg, harmonic_current_effective_28_95, harmonic_current_effective_29_max, + harmonic_current_effective_29_min, harmonic_current_effective_29_avg, harmonic_current_effective_29_95, + harmonic_current_effective_30_max, harmonic_current_effective_30_min, harmonic_current_effective_30_avg, + harmonic_current_effective_30_95, harmonic_current_effective_31_max, harmonic_current_effective_31_min, + harmonic_current_effective_31_avg, harmonic_current_effective_31_95, harmonic_current_effective_32_max, + harmonic_current_effective_32_min, harmonic_current_effective_32_avg, harmonic_current_effective_32_95, + harmonic_current_effective_33_max, harmonic_current_effective_33_min, harmonic_current_effective_33_avg, + harmonic_current_effective_33_95, harmonic_current_effective_34_max, harmonic_current_effective_34_min, + harmonic_current_effective_34_avg, harmonic_current_effective_34_95, harmonic_current_effective_35_max, + harmonic_current_effective_35_min, harmonic_current_effective_35_avg, harmonic_current_effective_35_95, + harmonic_current_effective_36_max, harmonic_current_effective_36_min, harmonic_current_effective_36_avg, + harmonic_current_effective_36_95, harmonic_current_effective_37_max, harmonic_current_effective_37_min, + harmonic_current_effective_37_avg, harmonic_current_effective_37_95, harmonic_current_effective_38_max, + harmonic_current_effective_38_min, harmonic_current_effective_38_avg, harmonic_current_effective_38_95, + harmonic_current_effective_39_max, harmonic_current_effective_39_min, harmonic_current_effective_39_avg, + harmonic_current_effective_39_95, harmonic_current_effective_40_max, harmonic_current_effective_40_min, + harmonic_current_effective_40_avg, harmonic_current_effective_40_95, harmonic_current_effective_41_max, + harmonic_current_effective_41_min, harmonic_current_effective_41_avg, harmonic_current_effective_41_95, + harmonic_current_effective_42_max, harmonic_current_effective_42_min, harmonic_current_effective_42_avg, + harmonic_current_effective_42_95, harmonic_current_effective_43_max, harmonic_current_effective_43_min, + harmonic_current_effective_43_avg, harmonic_current_effective_43_95, harmonic_current_effective_44_max, + harmonic_current_effective_44_min, harmonic_current_effective_44_avg, harmonic_current_effective_44_95, + harmonic_current_effective_45_max, harmonic_current_effective_45_min, harmonic_current_effective_45_avg, + harmonic_current_effective_45_95, harmonic_current_effective_46_max, harmonic_current_effective_46_min, + harmonic_current_effective_46_avg, harmonic_current_effective_46_95, harmonic_current_effective_47_max, + harmonic_current_effective_47_min, harmonic_current_effective_47_avg, harmonic_current_effective_47_95, + harmonic_current_effective_48_max, harmonic_current_effective_48_min, harmonic_current_effective_48_avg, + harmonic_current_effective_48_95, harmonic_current_effective_49_max, harmonic_current_effective_49_min, + harmonic_current_effective_49_avg, harmonic_current_effective_49_95, harmonic_current_effective_50_max, + harmonic_current_effective_50_min, harmonic_current_effective_50_avg, harmonic_current_effective_50_95 + + \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpHarmonicIRateReportDPOMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpHarmonicIRateReportDPOMapper.xml new file mode 100644 index 000000000..c2a57f9eb --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpHarmonicIRateReportDPOMapper.xml @@ -0,0 +1,235 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id, data_date, phase, i_2_max, i_2_min, i_2_avg, i_2_cp95, i_3_max, + i_3_min, i_3_avg, i_3_cp95, i_4_max, i_4_min, i_4_avg, i_4_cp95, i_5_max, i_5_min, + i_5_avg, i_5_cp95, i_6_max, i_6_min, i_6_avg, i_6_cp95, i_7_max, i_7_min, i_7_avg, + i_7_cp95, i_8_max, i_8_min, i_8_avg, i_8_cp95, i_9_max, i_9_min, i_9_avg, i_9_cp95, + i_10_max, i_10_min, i_10_avg, i_10_cp95, i_11_max, i_11_min, i_11_avg, i_11_cp95, + i_12_max, i_12_min, i_12_avg, i_12_cp95, i_13_max, i_13_min, i_13_avg, i_13_cp95, + i_14_max, i_14_min, i_14_avg, i_14_cp95, i_15_max, i_15_min, i_15_avg, i_15_cp95, + i_16_max, i_16_min, i_16_avg, i_16_cp95, i_17_max, i_17_min, i_17_avg, i_17_cp95, + i_18_max, i_18_min, i_18_avg, i_18_cp95, i_19_max, i_19_min, i_19_avg, i_19_cp95, + i_20_max, i_20_min, i_20_avg, i_20_cp95, i_21_max, i_21_min, i_21_avg, i_21_cp95, + i_22_max, i_22_min, i_22_avg, i_22_cp95, i_23_max, i_23_min, i_23_avg, i_23_cp95, + i_24_max, i_24_min, i_24_avg, i_24_cp95, i_25_max, i_25_min, i_25_avg, i_25_cp95, + i_26_max, i_26_min, i_26_avg, i_26_cp95, i_27_max, i_27_min, i_27_avg, i_27_cp95, + i_28_max, i_28_min, i_28_avg, i_28_cp95, i_29_max, i_29_min, i_29_avg, i_29_cp95, + i_30_max, i_30_min, i_30_avg, i_30_cp95, i_31_max, i_31_min, i_31_avg, i_31_cp95, + i_32_max, i_32_min, i_32_avg, i_32_cp95, i_33_max, i_33_min, i_33_avg, i_33_cp95, + i_34_max, i_34_min, i_34_avg, i_34_cp95, i_35_max, i_35_min, i_35_avg, i_35_cp95, + i_36_max, i_36_min, i_36_avg, i_36_cp95, i_37_max, i_37_min, i_37_avg, i_37_cp95, + i_38_max, i_38_min, i_38_avg, i_38_cp95, i_39_max, i_39_min, i_39_avg, i_39_cp95, + i_40_max, i_40_min, i_40_avg, i_40_cp95, i_41_max, i_41_min, i_41_avg, i_41_cp95, + i_42_max, i_42_min, i_42_avg, i_42_cp95, i_43_max, i_43_min, i_43_avg, i_43_cp95, + i_44_max, i_44_min, i_44_avg, i_44_cp95, i_45_max, i_45_min, i_45_avg, i_45_cp95, + i_46_max, i_46_min, i_46_avg, i_46_cp95, i_47_max, i_47_min, i_47_avg, i_47_cp95, + i_48_max, i_48_min, i_48_avg, i_48_cp95, i_49_max, i_49_min, i_49_avg, i_49_cp95, + i_50_max, i_50_min, i_50_avg, i_50_cp95 + + \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpHarmonicPReportDPOMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpHarmonicPReportDPOMapper.xml new file mode 100644 index 000000000..83e258f3b --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpHarmonicPReportDPOMapper.xml @@ -0,0 +1,287 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id, data_date, phase, FUNDAMENTAL_RATEOFWORK_MAX, FUNDAMENTAL_RATEOFWORK_Min, + FUNDAMENTAL_RATEOFWORK_avg, FUNDAMENTAL_RATEOFWORK_95, FUNDAMENTAL_ACTIVE_POWER_MAX, + FUNDAMENTAL_ACTIVE_POWER_Min, FUNDAMENTAL_ACTIVE_POWER_avg, FUNDAMENTAL_ACTIVE_POWER_95, + HARMONIC_ACTIVE_POWER_2_MAX, HARMONIC_ACTIVE_POWER_2_MIN, HARMONIC_ACTIVE_POWER_2_AVG, + HARMONIC_ACTIVE_POWER_2_95, HARMONIC_ACTIVE_POWER_3_MAX, HARMONIC_ACTIVE_POWER_3_MIN, + HARMONIC_ACTIVE_POWER_3_AVG, HARMONIC_ACTIVE_POWER_3_95, HARMONIC_ACTIVE_POWER_4_MAX, + HARMONIC_ACTIVE_POWER_4_MIN, HARMONIC_ACTIVE_POWER_4_AVG, HARMONIC_ACTIVE_POWER_4_95, + HARMONIC_ACTIVE_POWER_5_MAX, HARMONIC_ACTIVE_POWER_5_MIN, HARMONIC_ACTIVE_POWER_5_AVG, + HARMONIC_ACTIVE_POWER_5_95, HARMONIC_ACTIVE_POWER_6_MAX, HARMONIC_ACTIVE_POWER_6_MIN, + HARMONIC_ACTIVE_POWER_6_AVG, HARMONIC_ACTIVE_POWER_6_95, HARMONIC_ACTIVE_POWER_7_MAX, + HARMONIC_ACTIVE_POWER_7_MIN, HARMONIC_ACTIVE_POWER_7_AVG, HARMONIC_ACTIVE_POWER_7_95, + HARMONIC_ACTIVE_POWER_8_MAX, HARMONIC_ACTIVE_POWER_8_MIN, HARMONIC_ACTIVE_POWER_8_AVG, + HARMONIC_ACTIVE_POWER_8_95, HARMONIC_ACTIVE_POWER_9_MAX, HARMONIC_ACTIVE_POWER_9_MIN, + HARMONIC_ACTIVE_POWER_9_AVG, HARMONIC_ACTIVE_POWER_9_95, HARMONIC_ACTIVE_POWER_10_MAX, + HARMONIC_ACTIVE_POWER_10_MIN, HARMONIC_ACTIVE_POWER_10_AVG, HARMONIC_ACTIVE_POWER_10_95, + HARMONIC_ACTIVE_POWER_11_MAX, HARMONIC_ACTIVE_POWER_11_MIN, HARMONIC_ACTIVE_POWER_11_AVG, + HARMONIC_ACTIVE_POWER_11_95, HARMONIC_ACTIVE_POWER_12_MAX, HARMONIC_ACTIVE_POWER_12_MIN, + HARMONIC_ACTIVE_POWER_12_AVG, HARMONIC_ACTIVE_POWER_12_95, HARMONIC_ACTIVE_POWER_13_MAX, + HARMONIC_ACTIVE_POWER_13_MIN, HARMONIC_ACTIVE_POWER_13_AVG, HARMONIC_ACTIVE_POWER_13_95, + HARMONIC_ACTIVE_POWER_14_MAX, HARMONIC_ACTIVE_POWER_14_MIN, HARMONIC_ACTIVE_POWER_14_AVG, + HARMONIC_ACTIVE_POWER_14_95, HARMONIC_ACTIVE_POWER_15_MAX, HARMONIC_ACTIVE_POWER_15_MIN, + HARMONIC_ACTIVE_POWER_15_AVG, HARMONIC_ACTIVE_POWER_15_95, HARMONIC_ACTIVE_POWER_16_MAX, + HARMONIC_ACTIVE_POWER_16_MIN, HARMONIC_ACTIVE_POWER_16_AVG, HARMONIC_ACTIVE_POWER_16_95, + HARMONIC_ACTIVE_POWER_17_MAX, HARMONIC_ACTIVE_POWER_17_MIN, HARMONIC_ACTIVE_POWER_17_AVG, + HARMONIC_ACTIVE_POWER_17_95, HARMONIC_ACTIVE_POWER_18_MAX, HARMONIC_ACTIVE_POWER_18_MIN, + HARMONIC_ACTIVE_POWER_18_AVG, HARMONIC_ACTIVE_POWER_18_95, HARMONIC_ACTIVE_POWER_19_MAX, + HARMONIC_ACTIVE_POWER_19_MIN, HARMONIC_ACTIVE_POWER_19_AVG, HARMONIC_ACTIVE_POWER_19_95, + HARMONIC_ACTIVE_POWER_20_MAX, HARMONIC_ACTIVE_POWER_20_MIN, HARMONIC_ACTIVE_POWER_20_AVG, + HARMONIC_ACTIVE_POWER_20_95, HARMONIC_ACTIVE_POWER_21_MAX, HARMONIC_ACTIVE_POWER_21_MIN, + HARMONIC_ACTIVE_POWER_21_AVG, HARMONIC_ACTIVE_POWER_21_95, HARMONIC_ACTIVE_POWER_22_MAX, + HARMONIC_ACTIVE_POWER_22_MIN, HARMONIC_ACTIVE_POWER_22_AVG, HARMONIC_ACTIVE_POWER_22_95, + HARMONIC_ACTIVE_POWER_23_MAX, HARMONIC_ACTIVE_POWER_23_MIN, HARMONIC_ACTIVE_POWER_23_AVG, + HARMONIC_ACTIVE_POWER_23_95, HARMONIC_ACTIVE_POWER_24_MAX, HARMONIC_ACTIVE_POWER_24_MIN, + HARMONIC_ACTIVE_POWER_24_AVG, HARMONIC_ACTIVE_POWER_24_95, HARMONIC_ACTIVE_POWER_25_MAX, + HARMONIC_ACTIVE_POWER_25_MIN, HARMONIC_ACTIVE_POWER_25_AVG, HARMONIC_ACTIVE_POWER_25_95, + HARMONIC_ACTIVE_POWER_26_MAX, HARMONIC_ACTIVE_POWER_26_MIN, HARMONIC_ACTIVE_POWER_26_AVG, + HARMONIC_ACTIVE_POWER_26_95, HARMONIC_ACTIVE_POWER_27_MAX, HARMONIC_ACTIVE_POWER_27_MIN, + HARMONIC_ACTIVE_POWER_27_AVG, HARMONIC_ACTIVE_POWER_27_95, HARMONIC_ACTIVE_POWER_28_MAX, + HARMONIC_ACTIVE_POWER_28_MIN, HARMONIC_ACTIVE_POWER_28_AVG, HARMONIC_ACTIVE_POWER_28_95, + HARMONIC_ACTIVE_POWER_29_MAX, HARMONIC_ACTIVE_POWER_29_MIN, HARMONIC_ACTIVE_POWER_29_AVG, + HARMONIC_ACTIVE_POWER_29_95, HARMONIC_ACTIVE_POWER_30_MAX, HARMONIC_ACTIVE_POWER_30_MIN, + HARMONIC_ACTIVE_POWER_30_AVG, HARMONIC_ACTIVE_POWER_30_95, HARMONIC_ACTIVE_POWER_31_MAX, + HARMONIC_ACTIVE_POWER_31_MIN, HARMONIC_ACTIVE_POWER_31_AVG, HARMONIC_ACTIVE_POWER_31_95, + HARMONIC_ACTIVE_POWER_32_MAX, HARMONIC_ACTIVE_POWER_32_MIN, HARMONIC_ACTIVE_POWER_32_AVG, + HARMONIC_ACTIVE_POWER_32_95, HARMONIC_ACTIVE_POWER_33_MAX, HARMONIC_ACTIVE_POWER_33_MIN, + HARMONIC_ACTIVE_POWER_33_AVG, HARMONIC_ACTIVE_POWER_33_95, HARMONIC_ACTIVE_POWER_34_MAX, + HARMONIC_ACTIVE_POWER_34_MIN, HARMONIC_ACTIVE_POWER_34_AVG, HARMONIC_ACTIVE_POWER_34_95, + HARMONIC_ACTIVE_POWER_35_MAX, HARMONIC_ACTIVE_POWER_35_MIN, HARMONIC_ACTIVE_POWER_35_AVG, + HARMONIC_ACTIVE_POWER_35_95, HARMONIC_ACTIVE_POWER_36_MAX, HARMONIC_ACTIVE_POWER_36_MIN, + HARMONIC_ACTIVE_POWER_36_AVG, HARMONIC_ACTIVE_POWER_36_95, HARMONIC_ACTIVE_POWER_37_MAX, + HARMONIC_ACTIVE_POWER_37_MIN, HARMONIC_ACTIVE_POWER_37_AVG, HARMONIC_ACTIVE_POWER_37_95, + HARMONIC_ACTIVE_POWER_38_MAX, HARMONIC_ACTIVE_POWER_38_MIN, HARMONIC_ACTIVE_POWER_38_AVG, + HARMONIC_ACTIVE_POWER_38_95, HARMONIC_ACTIVE_POWER_39_MAX, HARMONIC_ACTIVE_POWER_39_MIN, + HARMONIC_ACTIVE_POWER_39_AVG, HARMONIC_ACTIVE_POWER_39_95, HARMONIC_ACTIVE_POWER_40_MAX, + HARMONIC_ACTIVE_POWER_40_MIN, HARMONIC_ACTIVE_POWER_40_AVG, HARMONIC_ACTIVE_POWER_40_95, + HARMONIC_ACTIVE_POWER_41_MAX, HARMONIC_ACTIVE_POWER_41_MIN, HARMONIC_ACTIVE_POWER_41_AVG, + HARMONIC_ACTIVE_POWER_41_95, HARMONIC_ACTIVE_POWER_42_MAX, HARMONIC_ACTIVE_POWER_42_MIN, + HARMONIC_ACTIVE_POWER_42_AVG, HARMONIC_ACTIVE_POWER_42_95, HARMONIC_ACTIVE_POWER_43_MAX, + HARMONIC_ACTIVE_POWER_43_MIN, HARMONIC_ACTIVE_POWER_43_AVG, HARMONIC_ACTIVE_POWER_43_95, + HARMONIC_ACTIVE_POWER_44_MAX, HARMONIC_ACTIVE_POWER_44_MIN, HARMONIC_ACTIVE_POWER_44_AVG, + HARMONIC_ACTIVE_POWER_44_95, HARMONIC_ACTIVE_POWER_45_MAX, HARMONIC_ACTIVE_POWER_45_MIN, + HARMONIC_ACTIVE_POWER_45_AVG, HARMONIC_ACTIVE_POWER_45_95, HARMONIC_ACTIVE_POWER_46_MAX, + HARMONIC_ACTIVE_POWER_46_MIN, HARMONIC_ACTIVE_POWER_46_AVG, HARMONIC_ACTIVE_POWER_46_95, + HARMONIC_ACTIVE_POWER_47_MAX, HARMONIC_ACTIVE_POWER_47_MIN, HARMONIC_ACTIVE_POWER_47_AVG, + HARMONIC_ACTIVE_POWER_47_95, HARMONIC_ACTIVE_POWER_48_MAX, HARMONIC_ACTIVE_POWER_48_MIN, + HARMONIC_ACTIVE_POWER_48_AVG, HARMONIC_ACTIVE_POWER_48_95, HARMONIC_ACTIVE_POWER_49_MAX, + HARMONIC_ACTIVE_POWER_49_MIN, HARMONIC_ACTIVE_POWER_49_AVG, HARMONIC_ACTIVE_POWER_49_95, + HARMONIC_ACTIVE_POWER_50_MAX, HARMONIC_ACTIVE_POWER_50_MIN, HARMONIC_ACTIVE_POWER_50_AVG, + HARMONIC_ACTIVE_POWER_50_95 + + \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpHarmonicVRateReportDPOMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpHarmonicVRateReportDPOMapper.xml new file mode 100644 index 000000000..0b6274b18 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpHarmonicVRateReportDPOMapper.xml @@ -0,0 +1,286 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id, data_date, phase, voltage_harmonic_thd_max, voltage_harmonic_thd_min, + voltage_harmonic_thd_avg, voltage_harmonic_thd_95, fundamental_voltage_max, fundamental_voltage_min, + fundamental_voltage_avg, fundamental_voltage_95, harmonic_voltage_content_2_max, + harmonic_voltage_content_2_min, harmonic_voltage_content_2_avg, harmonic_voltage_content_2_95, + harmonic_voltage_content_3_max, harmonic_voltage_content_3_min, harmonic_voltage_content_3_avg, + harmonic_voltage_content_3_95, harmonic_voltage_content_4_max, harmonic_voltage_content_4_min, + harmonic_voltage_content_4_avg, harmonic_voltage_content_4_95, harmonic_voltage_content_5_max, + harmonic_voltage_content_5_min, harmonic_voltage_content_5_avg, harmonic_voltage_content_5_95, + harmonic_voltage_content_6_max, harmonic_voltage_content_6_min, harmonic_voltage_content_6_avg, + harmonic_voltage_content_6_95, harmonic_voltage_content_7_max, harmonic_voltage_content_7_min, + harmonic_voltage_content_7_avg, harmonic_voltage_content_7_95, harmonic_voltage_content_8_max, + harmonic_voltage_content_8_min, harmonic_voltage_content_8_avg, harmonic_voltage_content_8_95, + harmonic_voltage_content_9_max, harmonic_voltage_content_9_min, harmonic_voltage_content_9_avg, + harmonic_voltage_content_9_95, harmonic_voltage_content_10_max, harmonic_voltage_content_10_min, + harmonic_voltage_content_10_avg, harmonic_voltage_content_10_95, harmonic_voltage_content_11_max, + harmonic_voltage_content_11_min, harmonic_voltage_content_11_avg, harmonic_voltage_content_11_95, + harmonic_voltage_content_12_max, harmonic_voltage_content_12_min, harmonic_voltage_content_12_avg, + harmonic_voltage_content_12_95, harmonic_voltage_content_13_max, harmonic_voltage_content_13_min, + harmonic_voltage_content_13_avg, harmonic_voltage_content_13_95, harmonic_voltage_content_14_max, + harmonic_voltage_content_14_min, harmonic_voltage_content_14_avg, harmonic_voltage_content_14_95, + harmonic_voltage_content_15_max, harmonic_voltage_content_15_min, harmonic_voltage_content_15_avg, + harmonic_voltage_content_15_95, harmonic_voltage_content_16_max, harmonic_voltage_content_16_min, + harmonic_voltage_content_16_avg, harmonic_voltage_content_16_95, harmonic_voltage_content_17_max, + harmonic_voltage_content_17_min, harmonic_voltage_content_17_avg, harmonic_voltage_content_17_95, + harmonic_voltage_content_18_max, harmonic_voltage_content_18_min, harmonic_voltage_content_18_avg, + harmonic_voltage_content_18_95, harmonic_voltage_content_19_max, harmonic_voltage_content_19_min, + harmonic_voltage_content_19_avg, harmonic_voltage_content_19_95, harmonic_voltage_content_20_max, + harmonic_voltage_content_20_min, harmonic_voltage_content_20_avg, harmonic_voltage_content_20_95, + harmonic_voltage_content_21_max, harmonic_voltage_content_21_min, harmonic_voltage_content_21_avg, + harmonic_voltage_content_21_95, harmonic_voltage_content_22_max, harmonic_voltage_content_22_min, + harmonic_voltage_content_22_avg, harmonic_voltage_content_22_95, harmonic_voltage_content_23_max, + harmonic_voltage_content_23_min, harmonic_voltage_content_23_avg, harmonic_voltage_content_23_95, + harmonic_voltage_content_24_max, harmonic_voltage_content_24_min, harmonic_voltage_content_24_avg, + harmonic_voltage_content_24_95, harmonic_voltage_content_25_max, harmonic_voltage_content_25_min, + harmonic_voltage_content_25_avg, harmonic_voltage_content_25_95, harmonic_voltage_content_26_max, + harmonic_voltage_content_26_min, harmonic_voltage_content_26_avg, harmonic_voltage_content_26_95, + harmonic_voltage_content_27_max, harmonic_voltage_content_27_min, harmonic_voltage_content_27_avg, + harmonic_voltage_content_27_95, harmonic_voltage_content_28_max, harmonic_voltage_content_28_min, + harmonic_voltage_content_28_avg, harmonic_voltage_content_28_95, harmonic_voltage_content_29_max, + harmonic_voltage_content_29_min, harmonic_voltage_content_29_avg, harmonic_voltage_content_29_95, + harmonic_voltage_content_30_max, harmonic_voltage_content_30_min, harmonic_voltage_content_30_avg, + harmonic_voltage_content_30_95, harmonic_voltage_content_31_max, harmonic_voltage_content_31_min, + harmonic_voltage_content_31_avg, harmonic_voltage_content_31_95, harmonic_voltage_content_32_max, + harmonic_voltage_content_32_min, harmonic_voltage_content_32_avg, harmonic_voltage_content_32_95, + harmonic_voltage_content_33_max, harmonic_voltage_content_33_min, harmonic_voltage_content_33_avg, + harmonic_voltage_content_33_95, harmonic_voltage_content_34_max, harmonic_voltage_content_34_min, + harmonic_voltage_content_34_avg, harmonic_voltage_content_34_95, harmonic_voltage_content_35_max, + harmonic_voltage_content_35_min, harmonic_voltage_content_35_avg, harmonic_voltage_content_35_95, + harmonic_voltage_content_36_max, harmonic_voltage_content_36_min, harmonic_voltage_content_36_avg, + harmonic_voltage_content_36_95, harmonic_voltage_content_37_max, harmonic_voltage_content_37_min, + harmonic_voltage_content_37_avg, harmonic_voltage_content_37_95, harmonic_voltage_content_38_max, + harmonic_voltage_content_38_min, harmonic_voltage_content_38_avg, harmonic_voltage_content_38_95, + harmonic_voltage_content_39_max, harmonic_voltage_content_39_min, harmonic_voltage_content_39_avg, + harmonic_voltage_content_39_95, harmonic_voltage_content_40_max, harmonic_voltage_content_40_min, + harmonic_voltage_content_40_avg, harmonic_voltage_content_40_95, harmonic_voltage_content_41_max, + harmonic_voltage_content_41_min, harmonic_voltage_content_41_avg, harmonic_voltage_content_41_95, + harmonic_voltage_content_42_max, harmonic_voltage_content_42_min, harmonic_voltage_content_42_avg, + harmonic_voltage_content_42_95, harmonic_voltage_content_43_max, harmonic_voltage_content_43_min, + harmonic_voltage_content_43_avg, harmonic_voltage_content_43_95, harmonic_voltage_content_44_max, + harmonic_voltage_content_44_min, harmonic_voltage_content_44_avg, harmonic_voltage_content_44_95, + harmonic_voltage_content_45_max, harmonic_voltage_content_45_min, harmonic_voltage_content_45_avg, + harmonic_voltage_content_45_95, harmonic_voltage_content_46_max, harmonic_voltage_content_46_min, + harmonic_voltage_content_46_avg, harmonic_voltage_content_46_95, harmonic_voltage_content_47_max, + harmonic_voltage_content_47_min, harmonic_voltage_content_47_avg, harmonic_voltage_content_47_95, + harmonic_voltage_content_48_max, harmonic_voltage_content_48_min, harmonic_voltage_content_48_avg, + harmonic_voltage_content_48_95, harmonic_voltage_content_49_max, harmonic_voltage_content_49_min, + harmonic_voltage_content_49_avg, harmonic_voltage_content_49_95, harmonic_voltage_content_50_max, + harmonic_voltage_content_50_min, harmonic_voltage_content_50_avg, harmonic_voltage_content_50_95 + + \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpInharmonicIMagReportDPOMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpInharmonicIMagReportDPOMapper.xml new file mode 100644 index 000000000..4aa71ff37 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpInharmonicIMagReportDPOMapper.xml @@ -0,0 +1,315 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id, data_date, phase, simple_harmonic_current_effective_1_max, + simple_harmonic_current_effective_1_min, simple_harmonic_current_effective_1_avg, + simple_harmonic_current_effective_1_cp95, simple_harmonic_current_effective_2_max, + simple_harmonic_current_effective_2_min, simple_harmonic_current_effective_2_avg, + simple_harmonic_current_effective_2_cp95, simple_harmonic_current_effective_3_max, + simple_harmonic_current_effective_3_min, simple_harmonic_current_effective_3_avg, + simple_harmonic_current_effective_3_cp95, simple_harmonic_current_effective_4_max, + simple_harmonic_current_effective_4_min, simple_harmonic_current_effective_4_avg, + simple_harmonic_current_effective_4_cp95, simple_harmonic_current_effective_5_max, + simple_harmonic_current_effective_5_min, simple_harmonic_current_effective_5_avg, + simple_harmonic_current_effective_5_cp95, simple_harmonic_current_effective_6_max, + simple_harmonic_current_effective_6_min, simple_harmonic_current_effective_6_avg, + simple_harmonic_current_effective_6_cp95, simple_harmonic_current_effective_7_max, + simple_harmonic_current_effective_7_min, simple_harmonic_current_effective_7_avg, + simple_harmonic_current_effective_7_cp95, simple_harmonic_current_effective_8_max, + simple_harmonic_current_effective_8_min, simple_harmonic_current_effective_8_avg, + simple_harmonic_current_effective_8_cp95, simple_harmonic_current_effective_9_max, + simple_harmonic_current_effective_9_min, simple_harmonic_current_effective_9_avg, + simple_harmonic_current_effective_9_cp95, simple_harmonic_current_effective_10_max, + simple_harmonic_current_effective_10_min, simple_harmonic_current_effective_10_avg, + simple_harmonic_current_effective_10_cp95, simple_harmonic_current_effective_11_max, + simple_harmonic_current_effective_11_min, simple_harmonic_current_effective_11_avg, + simple_harmonic_current_effective_11_cp95, simple_harmonic_current_effective_12_max, + simple_harmonic_current_effective_12_min, simple_harmonic_current_effective_12_avg, + simple_harmonic_current_effective_12_cp95, simple_harmonic_current_effective_13_max, + simple_harmonic_current_effective_13_min, simple_harmonic_current_effective_13_avg, + simple_harmonic_current_effective_13_cp95, simple_harmonic_current_effective_14_max, + simple_harmonic_current_effective_14_min, simple_harmonic_current_effective_14_avg, + simple_harmonic_current_effective_14_cp95, simple_harmonic_current_effective_15_max, + simple_harmonic_current_effective_15_min, simple_harmonic_current_effective_15_avg, + simple_harmonic_current_effective_15_cp95, simple_harmonic_current_effective_16_max, + simple_harmonic_current_effective_16_min, simple_harmonic_current_effective_16_avg, + simple_harmonic_current_effective_16_cp95, simple_harmonic_current_effective_17_max, + simple_harmonic_current_effective_17_min, simple_harmonic_current_effective_17_avg, + simple_harmonic_current_effective_17_cp95, simple_harmonic_current_effective_18_max, + simple_harmonic_current_effective_18_min, simple_harmonic_current_effective_18_avg, + simple_harmonic_current_effective_18_cp95, simple_harmonic_current_effective_19_max, + simple_harmonic_current_effective_19_min, simple_harmonic_current_effective_19_avg, + simple_harmonic_current_effective_19_cp95, simple_harmonic_current_effective_20_max, + simple_harmonic_current_effective_20_min, simple_harmonic_current_effective_20_avg, + simple_harmonic_current_effective_20_cp95, simple_harmonic_current_effective_21_max, + simple_harmonic_current_effective_21_min, simple_harmonic_current_effective_21_avg, + simple_harmonic_current_effective_21_cp95, simple_harmonic_current_effective_22_max, + simple_harmonic_current_effective_22_min, simple_harmonic_current_effective_22_avg, + simple_harmonic_current_effective_22_cp95, simple_harmonic_current_effective_23_max, + simple_harmonic_current_effective_23_min, simple_harmonic_current_effective_23_avg, + simple_harmonic_current_effective_23_cp95, simple_harmonic_current_effective_24_max, + simple_harmonic_current_effective_24_min, simple_harmonic_current_effective_24_avg, + simple_harmonic_current_effective_24_cp95, simple_harmonic_current_effective_25_max, + simple_harmonic_current_effective_25_min, simple_harmonic_current_effective_25_avg, + simple_harmonic_current_effective_25_cp95, simple_harmonic_current_effective_26_max, + simple_harmonic_current_effective_26_min, simple_harmonic_current_effective_26_avg, + simple_harmonic_current_effective_26_cp95, simple_harmonic_current_effective_27_max, + simple_harmonic_current_effective_27_min, simple_harmonic_current_effective_27_avg, + simple_harmonic_current_effective_27_cp95, simple_harmonic_current_effective_28_max, + simple_harmonic_current_effective_28_min, simple_harmonic_current_effective_28_avg, + simple_harmonic_current_effective_28_cp95, simple_harmonic_current_effective_29_max, + simple_harmonic_current_effective_29_min, simple_harmonic_current_effective_29_avg, + simple_harmonic_current_effective_29_cp95, simple_harmonic_current_effective_30_max, + simple_harmonic_current_effective_30_min, simple_harmonic_current_effective_30_avg, + simple_harmonic_current_effective_30_cp95, simple_harmonic_current_effective_31_max, + simple_harmonic_current_effective_31_min, simple_harmonic_current_effective_31_avg, + simple_harmonic_current_effective_31_cp95, simple_harmonic_current_effective_32_max, + simple_harmonic_current_effective_32_min, simple_harmonic_current_effective_32_avg, + simple_harmonic_current_effective_32_cp95, simple_harmonic_current_effective_33_max, + simple_harmonic_current_effective_33_min, simple_harmonic_current_effective_33_avg, + simple_harmonic_current_effective_33_cp95, simple_harmonic_current_effective_34_max, + simple_harmonic_current_effective_34_min, simple_harmonic_current_effective_34_avg, + simple_harmonic_current_effective_34_cp95, simple_harmonic_current_effective_35_max, + simple_harmonic_current_effective_35_min, simple_harmonic_current_effective_35_avg, + simple_harmonic_current_effective_35_cp95, simple_harmonic_current_effective_36_max, + simple_harmonic_current_effective_36_min, simple_harmonic_current_effective_36_avg, + simple_harmonic_current_effective_36_cp95, simple_harmonic_current_effective_37_max, + simple_harmonic_current_effective_37_min, simple_harmonic_current_effective_37_avg, + simple_harmonic_current_effective_37_cp95, simple_harmonic_current_effective_38_max, + simple_harmonic_current_effective_38_min, simple_harmonic_current_effective_38_avg, + simple_harmonic_current_effective_38_cp95, simple_harmonic_current_effective_39_max, + simple_harmonic_current_effective_39_min, simple_harmonic_current_effective_39_avg, + simple_harmonic_current_effective_39_cp95, simple_harmonic_current_effective_40_max, + simple_harmonic_current_effective_40_min, simple_harmonic_current_effective_40_avg, + simple_harmonic_current_effective_40_cp95, simple_harmonic_current_effective_41_max, + simple_harmonic_current_effective_41_min, simple_harmonic_current_effective_41_avg, + simple_harmonic_current_effective_41_cp95, simple_harmonic_current_effective_42_max, + simple_harmonic_current_effective_42_min, simple_harmonic_current_effective_42_avg, + simple_harmonic_current_effective_42_cp95, simple_harmonic_current_effective_43_max, + simple_harmonic_current_effective_43_min, simple_harmonic_current_effective_43_avg, + simple_harmonic_current_effective_43_cp95, simple_harmonic_current_effective_44_max, + simple_harmonic_current_effective_44_min, simple_harmonic_current_effective_44_avg, + simple_harmonic_current_effective_44_cp95, simple_harmonic_current_effective_45_max, + simple_harmonic_current_effective_45_min, simple_harmonic_current_effective_45_avg, + simple_harmonic_current_effective_45_cp95, simple_harmonic_current_effective_46_max, + simple_harmonic_current_effective_46_min, simple_harmonic_current_effective_46_avg, + simple_harmonic_current_effective_46_cp95, simple_harmonic_current_effective_47_max, + simple_harmonic_current_effective_47_min, simple_harmonic_current_effective_47_avg, + simple_harmonic_current_effective_47_cp95, simple_harmonic_current_effective_48_max, + simple_harmonic_current_effective_48_min, simple_harmonic_current_effective_48_avg, + simple_harmonic_current_effective_48_cp95, simple_harmonic_current_effective_49_max, + simple_harmonic_current_effective_49_min, simple_harmonic_current_effective_49_avg, + simple_harmonic_current_effective_49_cp95, simple_harmonic_current_effective_50_max, + simple_harmonic_current_effective_50_min, simple_harmonic_current_effective_50_avg, + simple_harmonic_current_effective_50_cp95 + + \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpInharmonicIRateReportDPOMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpInharmonicIRateReportDPOMapper.xml new file mode 100644 index 000000000..cb4b2ee83 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpInharmonicIRateReportDPOMapper.xml @@ -0,0 +1,250 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id, data_date, phase, inharm_i_2_max, inharm_i_2_min, inharm_i_2_avg, + inharm_i_2_cp95, inharm_i_3_max, inharm_i_3_min, inharm_i_3_avg, inharm_i_3_cp95, + inharm_i_4_max, inharm_i_4_min, inharm_i_4_avg, inharm_i_4_cp95, inharm_i_5_max, + inharm_i_5_min, inharm_i_5_avg, inharm_i_5_cp95, inharm_i_6_max, inharm_i_6_min, + inharm_i_6_avg, inharm_i_6_cp95, inharm_i_7_max, inharm_i_7_min, inharm_i_7_avg, + inharm_i_7_cp95, inharm_i_8_max, inharm_i_8_min, inharm_i_8_avg, inharm_i_8_cp95, + inharm_i_9_max, inharm_i_9_min, inharm_i_9_avg, inharm_i_9_cp95, inharm_i_10_max, + inharm_i_10_min, inharm_i_10_avg, inharm_i_10_cp95, inharm_i_11_max, inharm_i_11_min, + inharm_i_11_avg, inharm_i_11_cp95, inharm_i_12_max, inharm_i_12_min, inharm_i_12_avg, + inharm_i_12_cp95, inharm_i_13_max, inharm_i_13_min, inharm_i_13_avg, inharm_i_13_cp95, + inharm_i_14_max, inharm_i_14_min, inharm_i_14_avg, inharm_i_14_cp95, inharm_i_15_max, + inharm_i_15_min, inharm_i_15_avg, inharm_i_15_cp95, inharm_i_16_max, inharm_i_16_min, + inharm_i_16_avg, inharm_i_16_cp95, inharm_i_17_max, inharm_i_17_min, inharm_i_17_avg, + inharm_i_17_cp95, inharm_i_18_max, inharm_i_18_min, inharm_i_18_avg, inharm_i_18_cp95, + inharm_i_19_max, inharm_i_19_min, inharm_i_19_avg, inharm_i_19_cp95, inharm_i_20_max, + inharm_i_20_min, inharm_i_20_avg, inharm_i_20_cp95, inharm_i_21_max, inharm_i_21_min, + inharm_i_21_avg, inharm_i_21_cp95, inharm_i_22_max, inharm_i_22_min, inharm_i_22_avg, + inharm_i_22_cp95, inharm_i_23_max, inharm_i_23_min, inharm_i_23_avg, inharm_i_23_cp95, + inharm_i_24_max, inharm_i_24_min, inharm_i_24_avg, inharm_i_24_cp95, inharm_i_25_max, + inharm_i_25_min, inharm_i_25_avg, inharm_i_25_cp95, inharm_i_26_max, inharm_i_26_min, + inharm_i_26_avg, inharm_i_26_cp95, inharm_i_27_max, inharm_i_27_min, inharm_i_27_avg, + inharm_i_27_cp95, inharm_i_28_max, inharm_i_28_min, inharm_i_28_avg, inharm_i_28_cp95, + inharm_i_29_max, inharm_i_29_min, inharm_i_29_avg, inharm_i_29_cp95, inharm_i_30_max, + inharm_i_30_min, inharm_i_30_avg, inharm_i_30_cp95, inharm_i_31_max, inharm_i_31_min, + inharm_i_31_avg, inharm_i_31_cp95, inharm_i_32_max, inharm_i_32_min, inharm_i_32_avg, + inharm_i_32_cp95, inharm_i_33_max, inharm_i_33_min, inharm_i_33_avg, inharm_i_33_cp95, + inharm_i_34_max, inharm_i_34_min, inharm_i_34_avg, inharm_i_34_cp95, inharm_i_35_max, + inharm_i_35_min, inharm_i_35_avg, inharm_i_35_cp95, inharm_i_36_max, inharm_i_36_min, + inharm_i_36_avg, inharm_i_36_cp95, inharm_i_37_max, inharm_i_37_min, inharm_i_37_avg, + inharm_i_37_cp95, inharm_i_38_max, inharm_i_38_min, inharm_i_38_avg, inharm_i_38_cp95, + inharm_i_39_max, inharm_i_39_min, inharm_i_39_avg, inharm_i_39_cp95, inharm_i_40_max, + inharm_i_40_min, inharm_i_40_avg, inharm_i_40_cp95, inharm_i_41_max, inharm_i_41_min, + inharm_i_41_avg, inharm_i_41_cp95, inharm_i_42_max, inharm_i_42_min, inharm_i_42_avg, + inharm_i_42_cp95, inharm_i_43_max, inharm_i_43_min, inharm_i_43_avg, inharm_i_43_cp95, + inharm_i_44_max, inharm_i_44_min, inharm_i_44_avg, inharm_i_44_cp95, inharm_i_45_max, + inharm_i_45_min, inharm_i_45_avg, inharm_i_45_cp95, inharm_i_46_max, inharm_i_46_min, + inharm_i_46_avg, inharm_i_46_cp95, inharm_i_47_max, inharm_i_47_min, inharm_i_47_avg, + inharm_i_47_cp95, inharm_i_48_max, inharm_i_48_min, inharm_i_48_avg, inharm_i_48_cp95, + inharm_i_49_max, inharm_i_49_min, inharm_i_49_avg, inharm_i_49_cp95, inharm_i_50_max, + inharm_i_50_min, inharm_i_50_avg, inharm_i_50_cp95 + + \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpInharmonicVRateReportDPOMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpInharmonicVRateReportDPOMapper.xml new file mode 100644 index 000000000..578d48981 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpInharmonicVRateReportDPOMapper.xml @@ -0,0 +1,281 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id, data_date, phase, centre_harmonic_voltage_content1_max, centre_harmonic_voltage_content1_min, + centre_harmonic_voltage_content1_avg, centre_harmonic_voltage_content1_cp95, centre_harmonic_voltage_content2_max, + centre_harmonic_voltage_content2_min, centre_harmonic_voltage_content2_avg, centre_harmonic_voltage_content2_cp95, + centre_harmonic_voltage_content3_max, centre_harmonic_voltage_content3_min, centre_harmonic_voltage_content3_avg, + centre_harmonic_voltage_content3_cp95, centre_harmonic_voltage_content4_max, centre_harmonic_voltage_content4_min, + centre_harmonic_voltage_content4_avg, centre_harmonic_voltage_content4_cp95, centre_harmonic_voltage_content5_max, + centre_harmonic_voltage_content5_min, centre_harmonic_voltage_content5_avg, centre_harmonic_voltage_content5_cp95, + centre_harmonic_voltage_content6_max, centre_harmonic_voltage_content6_min, centre_harmonic_voltage_content6_avg, + centre_harmonic_voltage_content6_cp95, centre_harmonic_voltage_content7_max, centre_harmonic_voltage_content7_min, + centre_harmonic_voltage_content7_avg, centre_harmonic_voltage_content7_cp95, centre_harmonic_voltage_content8_max, + centre_harmonic_voltage_content8_min, centre_harmonic_voltage_content8_avg, centre_harmonic_voltage_content8_cp95, + centre_harmonic_voltage_content9_max, centre_harmonic_voltage_content9_min, centre_harmonic_voltage_content9_avg, + centre_harmonic_voltage_content9_cp95, centre_harmonic_voltage_content10_max, centre_harmonic_voltage_content10_min, + centre_harmonic_voltage_content10_avg, centre_harmonic_voltage_content10_cp95, centre_harmonic_voltage_content11_max, + centre_harmonic_voltage_content11_min, centre_harmonic_voltage_content11_avg, centre_harmonic_voltage_content11_cp95, + centre_harmonic_voltage_content12_max, centre_harmonic_voltage_content12_min, centre_harmonic_voltage_content12_avg, + centre_harmonic_voltage_content12_cp95, centre_harmonic_voltage_content13_max, centre_harmonic_voltage_content13_min, + centre_harmonic_voltage_content13_avg, centre_harmonic_voltage_content13_cp95, centre_harmonic_voltage_content14_max, + centre_harmonic_voltage_content14_min, centre_harmonic_voltage_content14_avg, centre_harmonic_voltage_content14_cp95, + centre_harmonic_voltage_content15_max, centre_harmonic_voltage_content15_min, centre_harmonic_voltage_content15_avg, + centre_harmonic_voltage_content15_cp95, centre_harmonic_voltage_content16_max, centre_harmonic_voltage_content16_min, + centre_harmonic_voltage_content16_avg, centre_harmonic_voltage_content16_cp95, centre_harmonic_voltage_content17_max, + centre_harmonic_voltage_content17_min, centre_harmonic_voltage_content17_avg, centre_harmonic_voltage_content17_cp95, + centre_harmonic_voltage_content18_max, centre_harmonic_voltage_content18_min, centre_harmonic_voltage_content18_avg, + centre_harmonic_voltage_content18_cp95, centre_harmonic_voltage_content19_max, centre_harmonic_voltage_content19_min, + centre_harmonic_voltage_content19_avg, centre_harmonic_voltage_content19_cp95, centre_harmonic_voltage_content20_max, + centre_harmonic_voltage_content20_min, centre_harmonic_voltage_content20_avg, centre_harmonic_voltage_content20_cp95, + centre_harmonic_voltage_content21_max, centre_harmonic_voltage_content21_min, centre_harmonic_voltage_content21_avg, + centre_harmonic_voltage_content21_cp95, centre_harmonic_voltage_content22_max, centre_harmonic_voltage_content22_min, + centre_harmonic_voltage_content22_avg, centre_harmonic_voltage_content22_cp95, centre_harmonic_voltage_content23_max, + centre_harmonic_voltage_content23_min, centre_harmonic_voltage_content23_avg, centre_harmonic_voltage_content23_cp95, + centre_harmonic_voltage_content24_max, centre_harmonic_voltage_content24_min, centre_harmonic_voltage_content24_avg, + centre_harmonic_voltage_content24_cp95, centre_harmonic_voltage_content25_max, centre_harmonic_voltage_content25_min, + centre_harmonic_voltage_content25_avg, centre_harmonic_voltage_content25_cp95, centre_harmonic_voltage_content26_max, + centre_harmonic_voltage_content26_min, centre_harmonic_voltage_content26_avg, centre_harmonic_voltage_content26_cp95, + centre_harmonic_voltage_content27_max, centre_harmonic_voltage_content27_min, centre_harmonic_voltage_content27_avg, + centre_harmonic_voltage_content27_cp95, centre_harmonic_voltage_content28_max, centre_harmonic_voltage_content28_min, + centre_harmonic_voltage_content28_avg, centre_harmonic_voltage_content28_cp95, centre_harmonic_voltage_content29_max, + centre_harmonic_voltage_content29_min, centre_harmonic_voltage_content29_avg, centre_harmonic_voltage_content29_cp95, + centre_harmonic_voltage_content30_max, centre_harmonic_voltage_content30_min, centre_harmonic_voltage_content30_avg, + centre_harmonic_voltage_content30_cp95, centre_harmonic_voltage_content31_max, centre_harmonic_voltage_content31_min, + centre_harmonic_voltage_content31_avg, centre_harmonic_voltage_content31_cp95, centre_harmonic_voltage_content32_max, + centre_harmonic_voltage_content32_min, centre_harmonic_voltage_content32_avg, centre_harmonic_voltage_content32_cp95, + centre_harmonic_voltage_content33_max, centre_harmonic_voltage_content33_min, centre_harmonic_voltage_content33_avg, + centre_harmonic_voltage_content33_cp95, centre_harmonic_voltage_content34_max, centre_harmonic_voltage_content34_min, + centre_harmonic_voltage_content34_avg, centre_harmonic_voltage_content34_cp95, centre_harmonic_voltage_content35_max, + centre_harmonic_voltage_content35_min, centre_harmonic_voltage_content35_avg, centre_harmonic_voltage_content35_cp95, + centre_harmonic_voltage_content36_max, centre_harmonic_voltage_content36_min, centre_harmonic_voltage_content36_avg, + centre_harmonic_voltage_content36_cp95, centre_harmonic_voltage_content37_max, centre_harmonic_voltage_content37_min, + centre_harmonic_voltage_content37_avg, centre_harmonic_voltage_content37_cp95, centre_harmonic_voltage_content38_max, + centre_harmonic_voltage_content38_min, centre_harmonic_voltage_content38_avg, centre_harmonic_voltage_content38_cp95, + centre_harmonic_voltage_content39_max, centre_harmonic_voltage_content39_min, centre_harmonic_voltage_content39_avg, + centre_harmonic_voltage_content39_cp95, centre_harmonic_voltage_content40_max, centre_harmonic_voltage_content40_min, + centre_harmonic_voltage_content40_avg, centre_harmonic_voltage_content40_cp95, centre_harmonic_voltage_content41_max, + centre_harmonic_voltage_content41_min, centre_harmonic_voltage_content41_avg, centre_harmonic_voltage_content41_cp95, + centre_harmonic_voltage_content42_max, centre_harmonic_voltage_content42_min, centre_harmonic_voltage_content42_avg, + centre_harmonic_voltage_content42_cp95, centre_harmonic_voltage_content43_max, centre_harmonic_voltage_content43_min, + centre_harmonic_voltage_content43_avg, centre_harmonic_voltage_content43_cp95, centre_harmonic_voltage_content44_max, + centre_harmonic_voltage_content44_min, centre_harmonic_voltage_content44_avg, centre_harmonic_voltage_content44_cp95, + centre_harmonic_voltage_content45_max, centre_harmonic_voltage_content45_min, centre_harmonic_voltage_content45_avg, + centre_harmonic_voltage_content45_cp95, centre_harmonic_voltage_content46_max, centre_harmonic_voltage_content46_min, + centre_harmonic_voltage_content46_avg, centre_harmonic_voltage_content46_cp95, centre_harmonic_voltage_content47_max, + centre_harmonic_voltage_content47_min, centre_harmonic_voltage_content47_avg, centre_harmonic_voltage_content47_cp95, + centre_harmonic_voltage_content48_max, centre_harmonic_voltage_content48_min, centre_harmonic_voltage_content48_avg, + centre_harmonic_voltage_content48_cp95, centre_harmonic_voltage_content49_max, centre_harmonic_voltage_content49_min, + centre_harmonic_voltage_content49_avg, centre_harmonic_voltage_content49_cp95, centre_harmonic_voltage_content50_max, + centre_harmonic_voltage_content50_min, centre_harmonic_voltage_content50_avg, centre_harmonic_voltage_content50_cp95 + + \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpMeasurePhaseReportDPOMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpMeasurePhaseReportDPOMapper.xml new file mode 100644 index 000000000..726505989 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpMeasurePhaseReportDPOMapper.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id, data_date, phase, phase_voltage_effective_max, phase_voltage_effective_min, + phase_voltage_effective_avg, phase_voltage_effective_95, line_voltage_effective_max, + line_voltage_effective_min, line_voltage_effective_avg, line_voltage_effective_95, + v_de_up_max, v_de_up_min, v_de_up_avg, v_de_up_95, v_de_low_max, v_de_low_min, v_de_low_avg, + v_de_low_95, current_effective_max, current_effective_min, current_effective_avg, + current_effective_95, sp_active_power_max, sp_active_power_min, sp_active_power_avg, + sp_active_power_95, sp_reactive_power_max, sp_reactive_power_min, sp_reactive_power_avg, + sp_reactive_power_95, sp_apparent_power_max, sp_apparent_power_min, sp_apparent_power_avg, + sp_apparent_power_95, sp_power_factor_max, sp_power_factor_min, sp_power_factor_avg, + sp_power_factor_95, sp_fundamental_power_factor_max, sp_fundamental_power_factor_min, + sp_fundamental_power_factor_avg, sp_fundamental_power_factor_95 + + \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpMeasureReportDPOMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpMeasureReportDPOMapper.xml new file mode 100644 index 000000000..4bf7c24b3 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpMeasureReportDPOMapper.xml @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + measurement_point_id, data_date, frequency_max, frequency_min, frequency_avg, frequency_95, + frequency_deviation_max, frequency_deviation_min, frequency_deviation_avg, frequency_deviation_95, + total_active_power_max, total_active_power_min, total_active_power_avg, total_active_power_95, + total_reactive_power_max, total_reactive_power_min, total_reactive_power_avg, total_reactive_power_95, + total_apparent_power_max, total_apparent_power_min, total_apparent_power_avg, total_apparent_power_95, + tp_power_factor_max, tp_power_factor_min, tp_power_factor_avg, tp_power_factor_95, + fundamental_power_factor_max, fundamental_power_factor_min, fundamental_power_factor_avg, + fundamental_power_factor_95, positive_sequence_voltage_max, positive_sequence_voltage_min, + positive_sequence_voltage_avg, positive_sequence_voltage_95, negative_sequence_voltage_max, + negative_sequence_voltage_min, negative_sequence_voltage_avg, negative_sequence_voltage_95, + zero_sequence_voltage_max, zero_sequence_voltage_min, zero_sequence_voltage_avg, + zero_sequence_voltage_95, negative_sequence_voltage_unbalance_max, negative_sequence_voltage_unbalance_min, + negative_sequence_voltage_unbalance_avg, negative_sequence_voltage_unbalance_95, + zero_sequence_voltage_unbalance_max, zero_sequence_voltage_unbalance_min, zero_sequence_voltage_unbalance_avg, + zero_sequence_voltage_unbalance_95, positive_sequence_current_max, positive_sequence_current_min, + positive_sequence_current_avg, positive_sequence_current_95, negative_sequence_current_max, + negative_sequence_current_min, negative_sequence_current_avg, negative_sequence_current_95, + zero_sequence_current_max, zero_sequence_current_min, zero_sequence_current_avg, + zero_sequence_current_95, negative_sequence_current_unbalance_max, negative_sequence_current_unbalance_min, + negative_sequence_current_unbalance_avg, negative_sequence_current_unbalance_95, + zero_sequence_current_imbalance_max, zero_sequence_current_imbalance_min, zero_sequence_current_imbalance_avg, + zero_sequence_current_imbalance_95, equivalent_apparent_power_max, equivalent_apparent_power_min, + equivalent_apparent_power_avg, equivalent_apparent_power_95, equivalent_power_factor_max, + equivalent_power_factor_min, equivalent_power_factor_avg, equivalent_power_factor_95, + fundamental_wave_rateo_max, fundamental_wave_rateo_min, fundamental_wave_rateo_avg, + fundamental_wave_rateo_95, fundamental_wave_apparent_max, fundamental_wave_apparent_min, + fundamental_wave_apparent_avg, fundamental_wave_apparent_95, nonfundamental_wave_rateo_max, + nonfundamental_wave_rateo_min, nonfundamental_wave_rateo_avg, nonfundamental_wave_rateo_95, + unbalanced_apparent_power_max, unbalanced_apparent_power_min, unbalanced_apparent_power_avg, + unbalanced_apparent_power_95 + + \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpPltReportDPOMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpPltReportDPOMapper.xml new file mode 100644 index 000000000..a2d5efafd --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpPltReportDPOMapper.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + measurement_point_id, data_date, phase, long_time_flashing_max, long_time_flashing_min, + long_time_flashing_avg, long_time_flashing_95 + + \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpPollutionDMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpPollutionDMapper.xml new file mode 100644 index 000000000..c4b3450d2 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RMpPollutionDMapper.xml @@ -0,0 +1,13 @@ + + + + + + INSERT INTO r_mp_pollution_d ( line_Id, data_date, freq_dev, v_dev, v_unbalance, + v_all, plt, i_all, i_neg, v_inharm) VALUES + ( #{item.lineId}, #{item.dataDate}, #{item.freqDev}, #{item.vDev}, #{item.vUnbalance}, + #{item.vAll}, #{item.plt}, #{item.iAll}, #{item.iNeg}, #{item.vInharm} ) + ON DUPLICATE KEY UPDATE freq_dev = #{item.freqDev}, v_dev = #{item.vDev}, v_unbalance = #{item.vUnbalance}, + v_all = #{item.vAll}, plt = #{item.plt}, i_all = #{item.iAll}, i_neg = #{item.iNeg}, v_inharm = #{item.vInharm} + + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionOrgDMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionOrgDMapper.xml new file mode 100644 index 000000000..76abd4006 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionOrgDMapper.xml @@ -0,0 +1,11 @@ + + + + + + INSERT INTO r_stat_pollution_org_d ( org_id, data_date, pollution_type, `value`) VALUES + ( #{item.orgId}, #{item.dataDate}, #{item.pollutionType}, #{item.value} ) + ON DUPLICATE KEY UPDATE `value` = #{item.value} + + + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionOrgMMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionOrgMMapper.xml new file mode 100644 index 000000000..f845bdc32 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionOrgMMapper.xml @@ -0,0 +1,11 @@ + + + + + + INSERT INTO r_stat_pollution_org_m ( org_id, data_date, pollution_type, `value`) VALUES + ( #{item.orgId}, #{item.dataDate}, #{item.pollutionType}, #{item.value} ) + ON DUPLICATE KEY UPDATE `value` = #{item.value} + + + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionOrgQMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionOrgQMapper.xml new file mode 100644 index 000000000..ef7b43354 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionOrgQMapper.xml @@ -0,0 +1,10 @@ + + + + + + INSERT INTO r_stat_pollution_org_q ( org_id, data_date, pollution_type, `value`) VALUES + ( #{item.orgId}, #{item.dataDate}, #{item.pollutionType}, #{item.value} ) + ON DUPLICATE KEY UPDATE `value` = #{item.value} + + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionOrgYMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionOrgYMapper.xml new file mode 100644 index 000000000..c7a9be19d --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionOrgYMapper.xml @@ -0,0 +1,10 @@ + + + + + + INSERT INTO r_stat_pollution_org_y ( org_id, data_date, pollution_type, `value`) VALUES + ( #{item.orgId}, #{item.dataDate}, #{item.pollutionType}, #{item.value} ) + ON DUPLICATE KEY UPDATE `value` = #{item.value} + + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionSubstationDMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionSubstationDMapper.xml new file mode 100644 index 000000000..79c505a72 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionSubstationDMapper.xml @@ -0,0 +1,11 @@ + + + + + + INSERT INTO r_stat_pollution_substation_d ( substation_id, data_date, pollution_type, `value`) VALUES + ( #{item.substationId}, #{item.dataDate}, #{item.pollutionType}, #{item.value} ) + ON DUPLICATE KEY UPDATE `value` = #{item.value} + + + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionSubstationMMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionSubstationMMapper.xml new file mode 100644 index 000000000..6f59495b2 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionSubstationMMapper.xml @@ -0,0 +1,10 @@ + + + + + + INSERT INTO r_stat_pollution_substation_m ( substation_id, data_date, pollution_type, `value`) VALUES + ( #{item.substationId}, #{item.dataDate}, #{item.pollutionType}, #{item.value} ) + ON DUPLICATE KEY UPDATE `value` = #{item.value} + + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionSubstationQMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionSubstationQMapper.xml new file mode 100644 index 000000000..c92a336d5 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionSubstationQMapper.xml @@ -0,0 +1,10 @@ + + + + + + INSERT INTO r_stat_pollution_substation_q ( substation_id, data_date, pollution_type, `value`) VALUES + ( #{item.substationId}, #{item.dataDate}, #{item.pollutionType}, #{item.value} ) + ON DUPLICATE KEY UPDATE `value` = #{item.value} + + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionSubstationYMapper.xml b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionSubstationYMapper.xml new file mode 100644 index 000000000..f2d6cc24d --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/line/mapping/RStatPollutionSubstationYMapper.xml @@ -0,0 +1,10 @@ + + + + + + INSERT INTO r_stat_pollution_substation_y ( substation_id, data_date, pollution_type, `value`) VALUES + ( #{item.substationId}, #{item.dataDate}, #{item.pollutionType}, #{item.value} ) + ON DUPLICATE KEY UPDATE `value` = #{item.value} + + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/substion/subMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/substion/subMapper.java new file mode 100644 index 000000000..dc4f0ce80 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/substion/subMapper.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.mapper.substion; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:16 + */ +public interface subMapper { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/voltage/VoltageMapper.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/voltage/VoltageMapper.java new file mode 100644 index 000000000..cd668396f --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/mapper/voltage/VoltageMapper.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.mapper.voltage; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:16 + */ +public interface VoltageMapper { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/dto/LineDTO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/dto/LineDTO.java new file mode 100644 index 000000000..00e85f2ed --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/dto/LineDTO.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.pojo.dto; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:17 + */ +public class LineDTO { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/dto/OnLineRateDTO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/dto/OnLineRateDTO.java new file mode 100644 index 000000000..d835a2d8b --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/dto/OnLineRateDTO.java @@ -0,0 +1,18 @@ +package com.njcn.prepare.harmonic.pojo.dto; + +import lombok.Data; + +/** + * @author xiaoyao + * @version 1.0.0 + * @createTime 2022/10/27 10:56 + */ +@Data +public class OnLineRateDTO { + + private Integer onLineMinute; + + private Integer offLineMinute; + + private Double rate = 0.0; +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/dto/PollutionDTO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/dto/PollutionDTO.java new file mode 100644 index 000000000..a3346355b --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/dto/PollutionDTO.java @@ -0,0 +1,54 @@ +package com.njcn.prepare.harmonic.pojo.dto; + +import lombok.Data; + +@Data +public class PollutionDTO { + + /** + * 监测点id + */ + private String lineId; + + /** + * 频率偏差污染值 + */ + private Double freqDev = 0.0; + + /** + * 电压偏差污染值 + */ + private Double vDev = 0.0; + + /** + * 三相电压不平衡度污染值 + */ + private Double vUnbalance = 0.0; + + /** + * 谐波电压污染值 + */ + private Double vAll = 0.0; + + /** + * 长时电压闪变污染值 + */ + private Double plt = 0.0; + + /** + * 谐波电流污染值 + */ + private Double iAll = 0.0; + + /** + * 负序电流污染值 + */ + private Double iNeg = 0.0; + + /** + * 间谐波电压含有率污染值 + */ + private Double vInharm = 0.0; + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/param/LimitRateHanlderParam.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/param/LimitRateHanlderParam.java new file mode 100644 index 000000000..51816b666 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/param/LimitRateHanlderParam.java @@ -0,0 +1,30 @@ +package com.njcn.prepare.harmonic.pojo.param; + +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiOperation; +import lombok.Data; + +import java.util.List; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/19 11:41【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Data +@ApiOperation ("LimitRateHanlderParam") +public class LimitRateHanlderParam { + + @ApiModelProperty(name = "lineIds",value = "监测点索引集合") + private List lineIds; + + + @ApiModelProperty(name = "startTime",value = "处理数据开始时间") + private String startTime; + + @ApiModelProperty(name = "endTime",value = "处理数据结束时间") + private String endTime; +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/param/LineParam.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/param/LineParam.java new file mode 100644 index 000000000..dcc50f840 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/param/LineParam.java @@ -0,0 +1,29 @@ +package com.njcn.prepare.harmonic.pojo.param; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; +import java.util.List; + +/** + * @author qijian + * Date: 2022/10/20 11:41 + * @version V1.0.0 + */ +@Data +public class LineParam { + + @ApiModelProperty(name = "lineIds",value = "监测点索引集合") + private List lineIds; + + @ApiModelProperty(name = "type",value = "报表类型") + @NotNull(message = "报表类型不可为空") + private Integer type; + + @ApiModelProperty(name = "dataDate",value = "报表时间") + @NotBlank(message = "报表时间不可为空") + private String dataDate; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/AbnormalPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/AbnormalPO.java new file mode 100644 index 000000000..15e8e7833 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/AbnormalPO.java @@ -0,0 +1,245 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import cn.hutool.core.date.DateTime; +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * 告警数据表 + * + * @author denghuajun + * @version 1.0.0 + * @date 2022/10/18 10:20 + */ +@Data +@Measurement(name = "r_mp_surplus_abnormal_d") +public class AbnormalPO { + + @Column(name = "Time_Id") + private DateTime timeId; + + @Column(name = "Id") + private String id; + + @Column(name = "Phasic_Type") + private String phasicType; + + @Column(name="Value_Type") + private String valueType; + + @Column(name = "Voltage_Dev") + private Float voltageDev; + + @Column(name = "Uvoltage_Dev") + private Float uvoltageDev; + + @Column(name = "Flicker") + private Float flickerAllTime; + + @Column(name = "Freq") + private Float freqDev; + + @Column(name = "Ubalance") + private Float uBalance; + + @Column(name = "Uaberrance") + private Float uAberrance; + + @Column(name = "I_Neg") + private Float iNeg; + + @Column(name = "Uharm_2") + private Float uHarm2; + + @Column(name = "Uharm_3") + private Float uHarm3; + + @Column(name = "Uharm_4") + private Float uHarm4; + + @Column(name = "Uharm_5") + private Float uHarm5; + + @Column(name = "Uharm_6") + private Float uHarm6; + + @Column(name = "Uharm_7") + private Float uHarm7; + + @Column(name = "Uharm_8") + private Float uHarm8; + + @Column(name = "Uharm_9") + private Float uHarm9; + + @Column(name = "Uharm_10") + private Float uHarm10; + + @Column(name = "Uharm_11") + private Float uHarm11; + + @Column(name = "Uharm_12") + private Float uHarm12; + + @Column(name = "Uharm_13") + private Float uHarm13; + + @Column(name = "Uharm_14") + private Float uHarm14; + + @Column(name = "Uharm_15") + private Float uHarm15; + + @Column(name = "Uharm_16") + private Float uHarm16; + + @Column(name = "Uharm_17") + private Float uHarm17; + + @Column(name = "Uharm_18") + private Float uHarm18; + + @Column(name = "Uharm_19") + private Float uHarm19; + + @Column(name = "Uharm_20") + private Float uHarm20; + + @Column(name = "Uharm_21") + private Float uHarm21; + + @Column(name = "Uharm_22") + private Float uHarm22; + + @Column(name = "Uharm_23") + private Float uHarm23; + + @Column(name = "Uharm_24") + private Float uHarm24; + + @Column(name = "Uharm_25") + private Float uHarm25; + + @Column(name = "Iharm_2") + private Float iHarm2; + + @Column(name = "Iharm_3") + private Float iHarm3; + + @Column(name = "Iharm_4") + private Float iHarm4; + + @Column(name = "Iharm_5") + private Float iHarm5; + + @Column(name = "Iharm_6") + private Float iHarm6; + + @Column(name = "Iharm_7") + private Float iHarm7; + + @Column(name = "Iharm_8") + private Float iHarm8; + + @Column(name = "Iharm_9") + private Float iHarm9; + + @Column(name = "Iharm_10") + private Float iHarm10; + + @Column(name = "Iharm_11") + private Float iHarm11; + + @Column(name = "Iharm_12") + private Float iHarm12; + + @Column(name = "Iharm_13") + private Float iHarm13; + + @Column(name = "Iharm_14") + private Float iHarm14; + + @Column(name = "Iharm_15") + private Float iHarm15; + + @Column(name = "Iharm_16") + private Float iHarm16; + + @Column(name = "Iharm_17") + private Float iHarm17; + + @Column(name = "Iharm_18") + private Float iHarm18; + + @Column(name = "Iharm_19") + private Float iHarm19; + + @Column(name = "Iharm_20") + private Float iHarm20; + + @Column(name = "Iharm_21") + private Float iHarm21; + + @Column(name = "Iharm_22") + private Float iHarm22; + + @Column(name = "Iharm_23") + private Float iHarm23; + + @Column(name = "Iharm_24") + private Float iHarm24; + + @Column(name = "Iharm_25") + private Float iHarm25; + + @Column(name = "Inuharm_1") + private Float inuHarm1; + + @Column(name = "Inuharm_2") + private Float inuHarm2; + + @Column(name = "Inuharm_3") + private Float inuHarm3; + + @Column(name = "Inuharm_4") + private Float inuHarm4; + + @Column(name = "Inuharm_5") + private Float inuHarm5; + + @Column(name = "Inuharm_6") + private Float inuHarm6; + + @Column(name = "Inuharm_7") + private Float inuHarm7; + + @Column(name = "Inuharm_8") + private Float inuHarm8; + + @Column(name = "Inuharm_9") + private Float inuHarm9; + + @Column(name = "Inuharm_10") + private Float inuHarm10; + + @Column(name = "Inuharm_11") + private Float inuHarm11; + + @Column(name = "Inuharm_12") + private Float inuHarm12; + + @Column(name = "Inuharm_13") + private Float inuHarm13; + + @Column(name = "Inuharm_14") + private Float inuHarm14; + + @Column(name = "Inuharm_15") + private Float inuHarm15; + + @Column(name = "Inuharm_16") + private Float inuHarm16; +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataFlickerPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataFlickerPO.java new file mode 100644 index 000000000..6516168e4 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataFlickerPO.java @@ -0,0 +1,43 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * 类的介绍: + * + * @author xuyang + * @version 1.0.0 + * @createTime 2022/5/11 16:08 + */ +@Data +@Measurement(name = "data_flicker") +public class DataFlickerPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "fluc") + private Double fluc; + + @Column(name = "plt") + private Double plt; + + @Column(name = "pst") + private Double pst; +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataFlucPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataFlucPO.java new file mode 100644 index 000000000..9f0986c61 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataFlucPO.java @@ -0,0 +1,41 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * 类的介绍: + * + * @author xuyang + * @version 1.0.0 + * @createTime 2022/5/11 16:33 + */ +@Data +@Measurement(name = "data_fluc") +public class DataFlucPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "fluc") + private Double fluc; + + @Column(name = "fluccf") + private Double fluccf; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmPhasicIPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmPhasicIPO.java new file mode 100644 index 000000000..fc0eb1bc1 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmPhasicIPO.java @@ -0,0 +1,185 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * 类的介绍: + * + * @author xuyang + * @version 1.0.0 + * @createTime 2022/5/12 9:13 + */ +@Data +@Measurement(name = "data_harmphasic_i") +public class DataHarmPhasicIPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "i_1") + private Double i1; + + @Column(name = "i_2") + private Double i2; + + @Column(name = "i_3") + private Double i3; + + @Column(name = "i_4") + private Double i4; + + @Column(name = "i_5") + private Double i5; + + @Column(name = "i_6") + private Double i6; + + @Column(name = "i_7") + private Double i7; + + @Column(name = "i_8") + private Double i8; + + @Column(name = "i_9") + private Double i9; + + @Column(name = "i_10") + private Double i10; + + @Column(name = "i_11") + private Double i11; + + @Column(name = "i_12") + private Double i12; + + @Column(name = "i_13") + private Double i13; + + @Column(name = "i_14") + private Double i14; + + @Column(name = "i_15") + private Double i15; + + @Column(name = "i_16") + private Double i16; + + @Column(name = "i_17") + private Double i17; + + @Column(name = "i_18") + private Double i18; + + @Column(name = "i_19") + private Double i19; + + @Column(name = "i_20") + private Double i20; + + @Column(name = "i_21") + private Double i21; + + @Column(name = "i_22") + private Double i22; + + @Column(name = "i_23") + private Double i23; + + @Column(name = "i_24") + private Double i24; + + @Column(name = "i_25") + private Double i25; + + @Column(name = "i_26") + private Double i26; + + @Column(name = "i_27") + private Double i27; + + @Column(name = "i_28") + private Double i28; + + @Column(name = "i_29") + private Double i29; + + @Column(name = "i_30") + private Double i30; + + @Column(name = "i_31") + private Double i31; + + @Column(name = "i_32") + private Double i32; + + @Column(name = "i_33") + private Double i33; + + @Column(name = "i_34") + private Double i34; + + @Column(name = "i_35") + private Double i35; + + @Column(name = "i_36") + private Double i36; + + @Column(name = "i_37") + private Double i37; + + @Column(name = "i_38") + private Double i38; + + @Column(name = "i_39") + private Double i39; + + @Column(name = "i_40") + private Double i40; + + @Column(name = "i_41") + private Double i41; + + @Column(name = "i_42") + private Double i42; + + @Column(name = "i_43") + private Double i43; + + @Column(name = "i_44") + private Double i44; + + @Column(name = "i_45") + private Double i45; + + @Column(name = "i_46") + private Double i46; + + @Column(name = "i_47") + private Double i47; + + @Column(name = "i_48") + private Double i48; + + @Column(name = "i_49") + private Double i49; + + @Column(name = "i_50") + private Double i50; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmPhasicVPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmPhasicVPO.java new file mode 100644 index 000000000..8691d58c9 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmPhasicVPO.java @@ -0,0 +1,185 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * 类的介绍: + * + * @author xuyang + * @version 1.0.0 + * @createTime 2022/5/12 9:13 + */ +@Data +@Measurement(name = "data_harmphasic_v") +public class DataHarmPhasicVPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "v_1") + private Double v1; + + @Column(name = "v_2") + private Double v2; + + @Column(name = "v_3") + private Double v3; + + @Column(name = "v_4") + private Double v4; + + @Column(name = "v_5") + private Double v5; + + @Column(name = "v_6") + private Double v6; + + @Column(name = "v_7") + private Double v7; + + @Column(name = "v_8") + private Double v8; + + @Column(name = "v_9") + private Double v9; + + @Column(name = "v_10") + private Double v10; + + @Column(name = "v_11") + private Double v11; + + @Column(name = "v_12") + private Double v12; + + @Column(name = "v_13") + private Double v13; + + @Column(name = "v_14") + private Double v14; + + @Column(name = "v_15") + private Double v15; + + @Column(name = "v_16") + private Double v16; + + @Column(name = "v_17") + private Double v17; + + @Column(name = "v_18") + private Double v18; + + @Column(name = "v_19") + private Double v19; + + @Column(name = "v_20") + private Double v20; + + @Column(name = "v_21") + private Double v21; + + @Column(name = "v_22") + private Double v22; + + @Column(name = "v_23") + private Double v23; + + @Column(name = "v_24") + private Double v24; + + @Column(name = "v_25") + private Double v25; + + @Column(name = "v_26") + private Double v26; + + @Column(name = "v_27") + private Double v27; + + @Column(name = "v_28") + private Double v28; + + @Column(name = "v_29") + private Double v29; + + @Column(name = "v_30") + private Double v30; + + @Column(name = "v_31") + private Double v31; + + @Column(name = "v_32") + private Double v32; + + @Column(name = "v_33") + private Double v33; + + @Column(name = "v_34") + private Double v34; + + @Column(name = "v_35") + private Double v35; + + @Column(name = "v_36") + private Double v36; + + @Column(name = "v_37") + private Double v37; + + @Column(name = "v_38") + private Double v38; + + @Column(name = "v_39") + private Double v39; + + @Column(name = "v_40") + private Double v40; + + @Column(name = "v_41") + private Double v41; + + @Column(name = "v_42") + private Double v42; + + @Column(name = "v_43") + private Double v43; + + @Column(name = "v_44") + private Double v44; + + @Column(name = "v_45") + private Double v45; + + @Column(name = "v_46") + private Double v46; + + @Column(name = "v_47") + private Double v47; + + @Column(name = "v_48") + private Double v48; + + @Column(name = "v_49") + private Double v49; + + @Column(name = "v_50") + private Double v50; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmPowerPPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmPowerPPO.java new file mode 100644 index 000000000..046ebb146 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmPowerPPO.java @@ -0,0 +1,193 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * 类的介绍: + * + * @author xuyang + * @version 1.0.0 + * @createTime 2022/5/12 9:13 + */ +@Data +@Measurement(name = "data_harmpower_p") +public class DataHarmPowerPPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "df") + private Double df; + + @Column(name = "pf") + private Double pf; + + @Column(name = "p") + private Double p; + + @Column(name = "p_1") + private Double p1; + + @Column(name = "p_2") + private Double p2; + + @Column(name = "p_3") + private Double p3; + + @Column(name = "p_4") + private Double p4; + + @Column(name = "p_5") + private Double p5; + + @Column(name = "p_6") + private Double p6; + + @Column(name = "p_7") + private Double p7; + + @Column(name = "p_8") + private Double p8; + + @Column(name = "p_9") + private Double p9; + + @Column(name = "p_10") + private Double p10; + + @Column(name = "p_11") + private Double p11; + + @Column(name = "p_12") + private Double p12; + + @Column(name = "p_13") + private Double p13; + + @Column(name = "p_14") + private Double p14; + + @Column(name = "p_15") + private Double p15; + + @Column(name = "p_16") + private Double p16; + + @Column(name = "p_17") + private Double p17; + + @Column(name = "p_18") + private Double p18; + + @Column(name = "p_19") + private Double p19; + + @Column(name = "p_20") + private Double p20; + + @Column(name = "p_21") + private Double p21; + + @Column(name = "p_22") + private Double p22; + + @Column(name = "p_23") + private Double p23; + + @Column(name = "p_24") + private Double p24; + + @Column(name = "p_25") + private Double p25; + + @Column(name = "p_26") + private Double p26; + + @Column(name = "p_27") + private Double p27; + + @Column(name = "p_28") + private Double p28; + + @Column(name = "p_29") + private Double p29; + + @Column(name = "p_30") + private Double p30; + + @Column(name = "p_31") + private Double p31; + + @Column(name = "p_32") + private Double p32; + + @Column(name = "p_33") + private Double p33; + + @Column(name = "p_34") + private Double p34; + + @Column(name = "p_35") + private Double p35; + + @Column(name = "p_36") + private Double p36; + + @Column(name = "p_37") + private Double p37; + + @Column(name = "p_38") + private Double p38; + + @Column(name = "p_39") + private Double p39; + + @Column(name = "p_40") + private Double p40; + + @Column(name = "p_41") + private Double p41; + + @Column(name = "p_42") + private Double p42; + + @Column(name = "p_43") + private Double p43; + + @Column(name = "p_44") + private Double p44; + + @Column(name = "p_45") + private Double p45; + + @Column(name = "p_46") + private Double p46; + + @Column(name = "p_47") + private Double p47; + + @Column(name = "p_48") + private Double p48; + + @Column(name = "p_49") + private Double p49; + + @Column(name = "p_50") + private Double p50; +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmPowerQPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmPowerQPO.java new file mode 100644 index 000000000..53830af9c --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmPowerQPO.java @@ -0,0 +1,188 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * 类的介绍: + * + * @author xuyang + * @version 1.0.0 + * @createTime 2022/5/12 9:13 + */ +@Data +@Measurement(name = "data_harmpower_q") +public class DataHarmPowerQPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "q") + private Double q; + + @Column(name = "q_1") + private Double q1; + + @Column(name = "q_2") + private Double q2; + + @Column(name = "q_3") + private Double q3; + + @Column(name = "q_4") + private Double q4; + + @Column(name = "q_5") + private Double q5; + + @Column(name = "q_6") + private Double q6; + + @Column(name = "q_7") + private Double q7; + + @Column(name = "q_8") + private Double q8; + + @Column(name = "q_9") + private Double q9; + + @Column(name = "q_10") + private Double q10; + + @Column(name = "q_11") + private Double q11; + + @Column(name = "q_12") + private Double q12; + + @Column(name = "q_13") + private Double q13; + + @Column(name = "q_14") + private Double q14; + + @Column(name = "q_15") + private Double q15; + + @Column(name = "q_16") + private Double q16; + + @Column(name = "q_17") + private Double q17; + + @Column(name = "q_18") + private Double q18; + + @Column(name = "q_19") + private Double q19; + + @Column(name = "q_20") + private Double q20; + + @Column(name = "q_21") + private Double q21; + + @Column(name = "q_22") + private Double q22; + + @Column(name = "q_23") + private Double q23; + + @Column(name = "q_24") + private Double q24; + + @Column(name = "q_25") + private Double q25; + + @Column(name = "q_26") + private Double q26; + + @Column(name = "q_27") + private Double q27; + + @Column(name = "q_28") + private Double q28; + + @Column(name = "q_29") + private Double q29; + + @Column(name = "q_30") + private Double q30; + + @Column(name = "q_31") + private Double q31; + + @Column(name = "q_32") + private Double q32; + + @Column(name = "q_33") + private Double q33; + + @Column(name = "q_34") + private Double q34; + + @Column(name = "q_35") + private Double q35; + + @Column(name = "q_36") + private Double q36; + + @Column(name = "q_37") + private Double q37; + + @Column(name = "q_38") + private Double q38; + + @Column(name = "q_39") + private Double q39; + + @Column(name = "q_40") + private Double q40; + + @Column(name = "q_41") + private Double q41; + + @Column(name = "q_42") + private Double q42; + + @Column(name = "q_43") + private Double q43; + + @Column(name = "q_44") + private Double q44; + + @Column(name = "q_45") + private Double q45; + + @Column(name = "q_46") + private Double q46; + + @Column(name = "q_47") + private Double q47; + + @Column(name = "q_48") + private Double q48; + + @Column(name = "q_49") + private Double q49; + + @Column(name = "q_50") + private Double q50; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmPowerSPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmPowerSPO.java new file mode 100644 index 000000000..ac707be35 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmPowerSPO.java @@ -0,0 +1,188 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * 类的介绍: + * + * @author xuyang + * @version 1.0.0 + * @createTime 2022/5/12 9:13 + */ +@Data +@Measurement(name = "data_harmpower_s") +public class DataHarmPowerSPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "s") + private Double s; + + @Column(name = "s_1") + private Double s1; + + @Column(name = "s_2") + private Double s2; + + @Column(name = "s_3") + private Double s3; + + @Column(name = "s_4") + private Double s4; + + @Column(name = "s_5") + private Double s5; + + @Column(name = "s_6") + private Double s6; + + @Column(name = "s_7") + private Double s7; + + @Column(name = "s_8") + private Double s8; + + @Column(name = "s_9") + private Double s9; + + @Column(name = "s_10") + private Double s10; + + @Column(name = "s_11") + private Double s11; + + @Column(name = "s_12") + private Double s12; + + @Column(name = "s_13") + private Double s13; + + @Column(name = "s_14") + private Double s14; + + @Column(name = "s_15") + private Double s15; + + @Column(name = "s_16") + private Double s16; + + @Column(name = "s_17") + private Double s17; + + @Column(name = "s_18") + private Double s18; + + @Column(name = "s_19") + private Double s19; + + @Column(name = "s_20") + private Double s20; + + @Column(name = "s_21") + private Double s21; + + @Column(name = "s_22") + private Double s22; + + @Column(name = "s_23") + private Double s23; + + @Column(name = "s_24") + private Double s24; + + @Column(name = "s_25") + private Double s25; + + @Column(name = "s_26") + private Double s26; + + @Column(name = "s_27") + private Double s27; + + @Column(name = "s_28") + private Double s28; + + @Column(name = "s_29") + private Double s29; + + @Column(name = "s_30") + private Double s30; + + @Column(name = "s_31") + private Double s31; + + @Column(name = "s_32") + private Double s32; + + @Column(name = "s_33") + private Double s33; + + @Column(name = "s_34") + private Double s34; + + @Column(name = "s_35") + private Double s35; + + @Column(name = "s_36") + private Double s36; + + @Column(name = "s_37") + private Double s37; + + @Column(name = "s_38") + private Double s38; + + @Column(name = "s_39") + private Double s39; + + @Column(name = "s_40") + private Double s40; + + @Column(name = "s_41") + private Double s41; + + @Column(name = "s_42") + private Double s42; + + @Column(name = "s_43") + private Double s43; + + @Column(name = "s_44") + private Double s44; + + @Column(name = "s_45") + private Double s45; + + @Column(name = "s_46") + private Double s46; + + @Column(name = "s_47") + private Double s47; + + @Column(name = "s_48") + private Double s48; + + @Column(name = "s_49") + private Double s49; + + @Column(name = "s_50") + private Double s50; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmRateIPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmRateIPO.java new file mode 100644 index 000000000..aec68d1cf --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmRateIPO.java @@ -0,0 +1,185 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * 类的介绍: + * + * @author xuyang + * @version 1.0.0 + * @createTime 2022/5/12 9:13 + */ +@Data +@Measurement(name = "data_harmrate_i") +public class DataHarmRateIPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "i_1") + private Double i1; + + @Column(name = "i_2") + private Double i2; + + @Column(name = "i_3") + private Double i3; + + @Column(name = "i_4") + private Double i4; + + @Column(name = "i_5") + private Double i5; + + @Column(name = "i_6") + private Double i6; + + @Column(name = "i_7") + private Double i7; + + @Column(name = "i_8") + private Double i8; + + @Column(name = "i_9") + private Double i9; + + @Column(name = "i_10") + private Double i10; + + @Column(name = "i_11") + private Double i11; + + @Column(name = "i_12") + private Double i12; + + @Column(name = "i_13") + private Double i13; + + @Column(name = "i_14") + private Double i14; + + @Column(name = "i_15") + private Double i15; + + @Column(name = "i_16") + private Double i16; + + @Column(name = "i_17") + private Double i17; + + @Column(name = "i_18") + private Double i18; + + @Column(name = "i_19") + private Double i19; + + @Column(name = "i_20") + private Double i20; + + @Column(name = "i_21") + private Double i21; + + @Column(name = "i_22") + private Double i22; + + @Column(name = "i_23") + private Double i23; + + @Column(name = "i_24") + private Double i24; + + @Column(name = "i_25") + private Double i25; + + @Column(name = "i_26") + private Double i26; + + @Column(name = "i_27") + private Double i27; + + @Column(name = "i_28") + private Double i28; + + @Column(name = "i_29") + private Double i29; + + @Column(name = "i_30") + private Double i30; + + @Column(name = "i_31") + private Double i31; + + @Column(name = "i_32") + private Double i32; + + @Column(name = "i_33") + private Double i33; + + @Column(name = "i_34") + private Double i34; + + @Column(name = "i_35") + private Double i35; + + @Column(name = "i_36") + private Double i36; + + @Column(name = "i_37") + private Double i37; + + @Column(name = "i_38") + private Double i38; + + @Column(name = "i_39") + private Double i39; + + @Column(name = "i_40") + private Double i40; + + @Column(name = "i_41") + private Double i41; + + @Column(name = "i_42") + private Double i42; + + @Column(name = "i_43") + private Double i43; + + @Column(name = "i_44") + private Double i44; + + @Column(name = "i_45") + private Double i45; + + @Column(name = "i_46") + private Double i46; + + @Column(name = "i_47") + private Double i47; + + @Column(name = "i_48") + private Double i48; + + @Column(name = "i_49") + private Double i49; + + @Column(name = "i_50") + private Double i50; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmRateVPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmRateVPO.java new file mode 100644 index 000000000..6d0f893e5 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataHarmRateVPO.java @@ -0,0 +1,186 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/18 11:24【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Data +@Measurement(name = "data_harmrate_v") +public class DataHarmRateVPO { + + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "v_1") + private Double v1; + + @Column(name = "v_2") + private Double v2; + + @Column(name = "v_3") + private Double v3; + + @Column(name = "v_4") + private Double v4; + + @Column(name = "v_5") + private Double v5; + + @Column(name = "v_6") + private Double v6; + + @Column(name = "v_7") + private Double v7; + + @Column(name = "v_8") + private Double v8; + + @Column(name = "v_9") + private Double v9; + + @Column(name = "v_10") + private Double v10; + + @Column(name = "v_11") + private Double v11; + + @Column(name = "v_12") + private Double v12; + + @Column(name = "v_13") + private Double v13; + + @Column(name = "v_14") + private Double v14; + + @Column(name = "v_15") + private Double v15; + + @Column(name = "v_16") + private Double v16; + + @Column(name = "v_17") + private Double v17; + + @Column(name = "v_18") + private Double v18; + + @Column(name = "v_19") + private Double v19; + + @Column(name = "v_20") + private Double v20; + + @Column(name = "v_21") + private Double v21; + + @Column(name = "v_22") + private Double v22; + + @Column(name = "v_23") + private Double v23; + + @Column(name = "v_24") + private Double v24; + + @Column(name = "v_25") + private Double v25; + + @Column(name = "v_26") + private Double v26; + + @Column(name = "v_27") + private Double v27; + + @Column(name = "v_28") + private Double v28; + + @Column(name = "v_29") + private Double v29; + + @Column(name = "v_30") + private Double v30; + + @Column(name = "v_31") + private Double v31; + + @Column(name = "v_32") + private Double v32; + + @Column(name = "v_33") + private Double v33; + + @Column(name = "v_34") + private Double v34; + + @Column(name = "v_35") + private Double v35; + + @Column(name = "v_36") + private Double v36; + + @Column(name = "v_37") + private Double v37; + + @Column(name = "v_38") + private Double v38; + + @Column(name = "v_39") + private Double v39; + + @Column(name = "v_40") + private Double v40; + + @Column(name = "v_41") + private Double v41; + + @Column(name = "v_42") + private Double v42; + + @Column(name = "v_43") + private Double v43; + + @Column(name = "v_44") + private Double v44; + + @Column(name = "v_45") + private Double v45; + + @Column(name = "v_46") + private Double v46; + + @Column(name = "v_47") + private Double v47; + + @Column(name = "v_48") + private Double v48; + + @Column(name = "v_49") + private Double v49; + + @Column(name = "v_50") + private Double v50; +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataIPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataIPO.java new file mode 100644 index 000000000..301390995 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataIPO.java @@ -0,0 +1,196 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +@Data +@Measurement(name = "data_i") +public class DataIPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "i_neg") + private Double iNeg; + + @Column(name = "i_pos") + private Double iPos; + + @Column(name = "i_thd") + private Double iThd; + + @Column(name = "i_unbalance") + private Double iUnbalance; + + @Column(name = "i_zero") + private Double iZero; + + @Column(name = "rms") + private Double rms; + + @Column(name = "i_1") + private Double i1; + + @Column(name = "i_2") + private Double i2; + + @Column(name = "i_3") + private Double i3; + + @Column(name = "i_4") + private Double i4; + + @Column(name = "i_5") + private Double i5; + + @Column(name = "i_6") + private Double i6; + + @Column(name = "i_7") + private Double i7; + + @Column(name = "i_8") + private Double i8; + + @Column(name = "i_9") + private Double i9; + + @Column(name = "i_10") + private Double i10; + + @Column(name = "i_11") + private Double i11; + + @Column(name = "i_12") + private Double i12; + + @Column(name = "i_13") + private Double i13; + + @Column(name = "i_14") + private Double i14; + + @Column(name = "i_15") + private Double i15; + + @Column(name = "i_16") + private Double i16; + + @Column(name = "i_17") + private Double i17; + + @Column(name = "i_18") + private Double i18; + + @Column(name = "i_19") + private Double i19; + + @Column(name = "i_20") + private Double i20; + + @Column(name = "i_21") + private Double i21; + + @Column(name = "i_22") + private Double i22; + + @Column(name = "i_23") + private Double i23; + + @Column(name = "i_24") + private Double i24; + + @Column(name = "i_25") + private Double i25; + + @Column(name = "i_26") + private Double i26; + + @Column(name = "i_27") + private Double i27; + + @Column(name = "i_28") + private Double i28; + + @Column(name = "i_29") + private Double i29; + + @Column(name = "i_30") + private Double i30; + + @Column(name = "i_31") + private Double i31; + + @Column(name = "i_32") + private Double i32; + + @Column(name = "i_33") + private Double i33; + + @Column(name = "i_34") + private Double i34; + + @Column(name = "i_35") + private Double i35; + + @Column(name = "i_36") + private Double i36; + + @Column(name = "i_37") + private Double i37; + + @Column(name = "i_38") + private Double i38; + + @Column(name = "i_39") + private Double i39; + + @Column(name = "i_40") + private Double i40; + + @Column(name = "i_41") + private Double i41; + + @Column(name = "i_42") + private Double i42; + + @Column(name = "i_43") + private Double i43; + + @Column(name = "i_44") + private Double i44; + + @Column(name = "i_45") + private Double i45; + + @Column(name = "i_46") + private Double i46; + + @Column(name = "i_47") + private Double i47; + + @Column(name = "i_48") + private Double i48; + + @Column(name = "i_49") + private Double i49; + + @Column(name = "i_50") + private Double i50; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataInHarmIPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataInHarmIPO.java new file mode 100644 index 000000000..34a71c714 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataInHarmIPO.java @@ -0,0 +1,185 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * 类的介绍: + * + * @author xuyang + * @version 1.0.0 + * @createTime 2022/5/12 9:13 + */ +@Data +@Measurement(name = "data_harmphasic_i") +public class DataInHarmIPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "i_1") + private Double i1; + + @Column(name = "i_2") + private Double i2; + + @Column(name = "i_3") + private Double i3; + + @Column(name = "i_4") + private Double i4; + + @Column(name = "i_5") + private Double i5; + + @Column(name = "i_6") + private Double i6; + + @Column(name = "i_7") + private Double i7; + + @Column(name = "i_8") + private Double i8; + + @Column(name = "i_9") + private Double i9; + + @Column(name = "i_10") + private Double i10; + + @Column(name = "i_11") + private Double i11; + + @Column(name = "i_12") + private Double i12; + + @Column(name = "i_13") + private Double i13; + + @Column(name = "i_14") + private Double i14; + + @Column(name = "i_15") + private Double i15; + + @Column(name = "i_16") + private Double i16; + + @Column(name = "i_17") + private Double i17; + + @Column(name = "i_18") + private Double i18; + + @Column(name = "i_19") + private Double i19; + + @Column(name = "i_20") + private Double i20; + + @Column(name = "i_21") + private Double i21; + + @Column(name = "i_22") + private Double i22; + + @Column(name = "i_23") + private Double i23; + + @Column(name = "i_24") + private Double i24; + + @Column(name = "i_25") + private Double i25; + + @Column(name = "i_26") + private Double i26; + + @Column(name = "i_27") + private Double i27; + + @Column(name = "i_28") + private Double i28; + + @Column(name = "i_29") + private Double i29; + + @Column(name = "i_30") + private Double i30; + + @Column(name = "i_31") + private Double i31; + + @Column(name = "i_32") + private Double i32; + + @Column(name = "i_33") + private Double i33; + + @Column(name = "i_34") + private Double i34; + + @Column(name = "i_35") + private Double i35; + + @Column(name = "i_36") + private Double i36; + + @Column(name = "i_37") + private Double i37; + + @Column(name = "i_38") + private Double i38; + + @Column(name = "i_39") + private Double i39; + + @Column(name = "i_40") + private Double i40; + + @Column(name = "i_41") + private Double i41; + + @Column(name = "i_42") + private Double i42; + + @Column(name = "i_43") + private Double i43; + + @Column(name = "i_44") + private Double i44; + + @Column(name = "i_45") + private Double i45; + + @Column(name = "i_46") + private Double i46; + + @Column(name = "i_47") + private Double i47; + + @Column(name = "i_48") + private Double i48; + + @Column(name = "i_49") + private Double i49; + + @Column(name = "i_50") + private Double i50; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataInHarmRateIPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataInHarmRateIPO.java new file mode 100644 index 000000000..ce43b3e26 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataInHarmRateIPO.java @@ -0,0 +1,185 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * 类的介绍: + * + * @author xuyang + * @version 1.0.0 + * @createTime 2022/5/12 9:13 + */ +@Data +@Measurement(name = "data_inharmrate_i") +public class DataInHarmRateIPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "i_1") + private Double i1; + + @Column(name = "i_2") + private Double i2; + + @Column(name = "i_3") + private Double i3; + + @Column(name = "i_4") + private Double i4; + + @Column(name = "i_5") + private Double i5; + + @Column(name = "i_6") + private Double i6; + + @Column(name = "i_7") + private Double i7; + + @Column(name = "i_8") + private Double i8; + + @Column(name = "i_9") + private Double i9; + + @Column(name = "i_10") + private Double i10; + + @Column(name = "i_11") + private Double i11; + + @Column(name = "i_12") + private Double i12; + + @Column(name = "i_13") + private Double i13; + + @Column(name = "i_14") + private Double i14; + + @Column(name = "i_15") + private Double i15; + + @Column(name = "i_16") + private Double i16; + + @Column(name = "i_17") + private Double i17; + + @Column(name = "i_18") + private Double i18; + + @Column(name = "i_19") + private Double i19; + + @Column(name = "i_20") + private Double i20; + + @Column(name = "i_21") + private Double i21; + + @Column(name = "i_22") + private Double i22; + + @Column(name = "i_23") + private Double i23; + + @Column(name = "i_24") + private Double i24; + + @Column(name = "i_25") + private Double i25; + + @Column(name = "i_26") + private Double i26; + + @Column(name = "i_27") + private Double i27; + + @Column(name = "i_28") + private Double i28; + + @Column(name = "i_29") + private Double i29; + + @Column(name = "i_30") + private Double i30; + + @Column(name = "i_31") + private Double i31; + + @Column(name = "i_32") + private Double i32; + + @Column(name = "i_33") + private Double i33; + + @Column(name = "i_34") + private Double i34; + + @Column(name = "i_35") + private Double i35; + + @Column(name = "i_36") + private Double i36; + + @Column(name = "i_37") + private Double i37; + + @Column(name = "i_38") + private Double i38; + + @Column(name = "i_39") + private Double i39; + + @Column(name = "i_40") + private Double i40; + + @Column(name = "i_41") + private Double i41; + + @Column(name = "i_42") + private Double i42; + + @Column(name = "i_43") + private Double i43; + + @Column(name = "i_44") + private Double i44; + + @Column(name = "i_45") + private Double i45; + + @Column(name = "i_46") + private Double i46; + + @Column(name = "i_47") + private Double i47; + + @Column(name = "i_48") + private Double i48; + + @Column(name = "i_49") + private Double i49; + + @Column(name = "i_50") + private Double i50; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataInHarmRateVPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataInHarmRateVPO.java new file mode 100644 index 000000000..9233982c0 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataInHarmRateVPO.java @@ -0,0 +1,185 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * 类的介绍: + * + * @author xuyang + * @version 1.0.0 + * @createTime 2022/5/12 9:13 + */ +@Data +@Measurement(name = "data_inharmrate_v") +public class DataInHarmRateVPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "v_1") + private Double v1; + + @Column(name = "v_2") + private Double v2; + + @Column(name = "v_3") + private Double v3; + + @Column(name = "v_4") + private Double v4; + + @Column(name = "v_5") + private Double v5; + + @Column(name = "v_6") + private Double v6; + + @Column(name = "v_7") + private Double v7; + + @Column(name = "v_8") + private Double v8; + + @Column(name = "v_9") + private Double v9; + + @Column(name = "v_10") + private Double v10; + + @Column(name = "v_11") + private Double v11; + + @Column(name = "v_12") + private Double v12; + + @Column(name = "v_13") + private Double v13; + + @Column(name = "v_14") + private Double v14; + + @Column(name = "v_15") + private Double v15; + + @Column(name = "v_16") + private Double v16; + + @Column(name = "v_17") + private Double v17; + + @Column(name = "v_18") + private Double v18; + + @Column(name = "v_19") + private Double v19; + + @Column(name = "v_20") + private Double v20; + + @Column(name = "v_21") + private Double v21; + + @Column(name = "v_22") + private Double v22; + + @Column(name = "v_23") + private Double v23; + + @Column(name = "v_24") + private Double v24; + + @Column(name = "v_25") + private Double v25; + + @Column(name = "v_26") + private Double v26; + + @Column(name = "v_27") + private Double v27; + + @Column(name = "v_28") + private Double v28; + + @Column(name = "v_29") + private Double v29; + + @Column(name = "v_30") + private Double v30; + + @Column(name = "v_31") + private Double v31; + + @Column(name = "v_32") + private Double v32; + + @Column(name = "v_33") + private Double v33; + + @Column(name = "v_34") + private Double v34; + + @Column(name = "v_35") + private Double v35; + + @Column(name = "v_36") + private Double v36; + + @Column(name = "v_37") + private Double v37; + + @Column(name = "v_38") + private Double v38; + + @Column(name = "v_39") + private Double v39; + + @Column(name = "v_40") + private Double v40; + + @Column(name = "v_41") + private Double v41; + + @Column(name = "v_42") + private Double v42; + + @Column(name = "v_43") + private Double v43; + + @Column(name = "v_44") + private Double v44; + + @Column(name = "v_45") + private Double v45; + + @Column(name = "v_46") + private Double v46; + + @Column(name = "v_47") + private Double v47; + + @Column(name = "v_48") + private Double v48; + + @Column(name = "v_49") + private Double v49; + + @Column(name = "v_50") + private Double v50; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataInHarmVPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataInHarmVPO.java new file mode 100644 index 000000000..a22083b33 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataInHarmVPO.java @@ -0,0 +1,186 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/18 11:24【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Data +@Measurement(name = "data_inharm_v") +public class DataInHarmVPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "v_1") + private Double v1; + + @Column(name = "v_2") + private Double v2; + + @Column(name = "v_3") + private Double v3; + + @Column(name = "v_4") + private Double v4; + + @Column(name = "v_5") + private Double v5; + + @Column(name = "v_6") + private Double v6; + + @Column(name = "v_7") + private Double v7; + + @Column(name = "v_8") + private Double v8; + + @Column(name = "v_9") + private Double v9; + + @Column(name = "v_10") + private Double v10; + + @Column(name = "v_11") + private Double v11; + + @Column(name = "v_12") + private Double v12; + + @Column(name = "v_13") + private Double v13; + + @Column(name = "v_14") + private Double v14; + + @Column(name = "v_15") + private Double v15; + + @Column(name = "v_16") + private Double v16; + + @Column(name = "v_17") + private Double v17; + + @Column(name = "v_18") + private Double v18; + + @Column(name = "v_19") + private Double v19; + + @Column(name = "v_20") + private Double v20; + + @Column(name = "v_21") + private Double v21; + + @Column(name = "v_22") + private Double v22; + + @Column(name = "v_23") + private Double v23; + + @Column(name = "v_24") + private Double v24; + + @Column(name = "v_25") + private Double v25; + + @Column(name = "v_26") + private Double v26; + + @Column(name = "v_27") + private Double v27; + + @Column(name = "v_28") + private Double v28; + + @Column(name = "v_29") + private Double v29; + + @Column(name = "v_30") + private Double v30; + + @Column(name = "v_31") + private Double v31; + + @Column(name = "v_32") + private Double v32; + + @Column(name = "v_33") + private Double v33; + + @Column(name = "v_34") + private Double v34; + + @Column(name = "v_35") + private Double v35; + + @Column(name = "v_36") + private Double v36; + + @Column(name = "v_37") + private Double v37; + + @Column(name = "v_38") + private Double v38; + + @Column(name = "v_39") + private Double v39; + + @Column(name = "v_40") + private Double v40; + + @Column(name = "v_41") + private Double v41; + + @Column(name = "v_42") + private Double v42; + + @Column(name = "v_43") + private Double v43; + + @Column(name = "v_44") + private Double v44; + + @Column(name = "v_45") + private Double v45; + + @Column(name = "v_46") + private Double v46; + + @Column(name = "v_47") + private Double v47; + + @Column(name = "v_48") + private Double v48; + + @Column(name = "v_49") + private Double v49; + + @Column(name = "v_50") + private Double v50; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataPltPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataPltPO.java new file mode 100644 index 000000000..5a7d9d82c --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataPltPO.java @@ -0,0 +1,35 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +@Data +@Measurement(name = "data_plt") +public class DataPltPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "plt") + private Double plt; + + //自定义字段-闪变总计算次数 + @Column(name = "flicker_all_time") + private Integer flickerAllTime; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataPolluctionPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataPolluctionPO.java new file mode 100644 index 000000000..e75c41516 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataPolluctionPO.java @@ -0,0 +1,48 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * @author xiaoyao + * @version 1.0.0 + * @createTime 2022/10/21 13:45 + */ +@Data +@Measurement(name = "data_polluction") +public class DataPolluctionPO { + + @Column(name = "line_id") + private String lineId; + + @Column(name = "time") + private Instant time; + + @Column(name = "freq_dev") + private Double freqDev; + + @Column(name = "v_dev") + private Double vDev; + + @Column(name = "v_unbalance") + private Double vUnbalance; + + @Column(name = "v_all") + private Double vAll; + + @Column(name = "plt") + private Double plt; + + @Column(name = "i_all") + private Double iAll; + + @Column(name = "i_neg") + private Double iNeg; + + @Column(name = "v_inharm") + private Double vInharm; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataVPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataVPO.java new file mode 100644 index 000000000..06b9e0007 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DataVPO.java @@ -0,0 +1,214 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +@Data +@Measurement(name = "data_v") +public class DataVPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "freq") + private Double freq; + + @Column(name = "freq_dev") + private Double freqDev; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "rms") + private Double rms; + + @Column(name = "rms_lvr") + private Double rmsLvr; + + @Column(name = "vl_dev") + private Double vlDev; + + @Column(name = "vu_dev") + private Double vuDev; + + @Column(name = "v_1") + private Double v1; + + @Column(name = "v_2") + private Double v2; + + @Column(name = "v_3") + private Double v3; + + @Column(name = "v_4") + private Double v4; + + @Column(name = "v_5") + private Double v5; + + @Column(name = "v_6") + private Double v6; + + @Column(name = "v_7") + private Double v7; + + @Column(name = "v_8") + private Double v8; + + @Column(name = "v_9") + private Double v9; + + @Column(name = "v_10") + private Double v10; + + @Column(name = "v_11") + private Double v11; + + @Column(name = "v_12") + private Double v12; + + @Column(name = "v_13") + private Double v13; + + @Column(name = "v_14") + private Double v14; + + @Column(name = "v_15") + private Double v15; + + @Column(name = "v_16") + private Double v16; + + @Column(name = "v_17") + private Double v17; + + @Column(name = "v_18") + private Double v18; + + @Column(name = "v_19") + private Double v19; + + @Column(name = "v_20") + private Double v20; + + @Column(name = "v_21") + private Double v21; + + @Column(name = "v_22") + private Double v22; + + @Column(name = "v_23") + private Double v23; + + @Column(name = "v_24") + private Double v24; + + @Column(name = "v_25") + private Double v25; + + @Column(name = "v_26") + private Double v26; + + @Column(name = "v_27") + private Double v27; + + @Column(name = "v_28") + private Double v28; + + @Column(name = "v_29") + private Double v29; + + @Column(name = "v_30") + private Double v30; + + @Column(name = "v_31") + private Double v31; + + @Column(name = "v_32") + private Double v32; + + @Column(name = "v_33") + private Double v33; + + @Column(name = "v_34") + private Double v34; + + @Column(name = "v_35") + private Double v35; + + @Column(name = "v_36") + private Double v36; + + @Column(name = "v_37") + private Double v37; + + @Column(name = "v_38") + private Double v38; + + @Column(name = "v_39") + private Double v39; + + @Column(name = "v_40") + private Double v40; + + @Column(name = "v_41") + private Double v41; + + @Column(name = "v_42") + private Double v42; + + @Column(name = "v_43") + private Double v43; + + @Column(name = "v_44") + private Double v44; + + @Column(name = "v_45") + private Double v45; + + @Column(name = "v_46") + private Double v46; + + @Column(name = "v_47") + private Double v47; + + @Column(name = "v_48") + private Double v48; + + @Column(name = "v_49") + private Double v49; + + @Column(name = "v_50") + private Double v50; + + @Column(name = "v_neg") + private Double vNeg; + + @Column(name = "v_pos") + private Double vPos; + + @Column(name = "v_thd") + private Double vThd; + + @Column(name = "v_unbalance") + private Double vUnbalance; + + @Column(name = "v_zero") + private Double vZero; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "value_type") + private String valueType; + + //自定义字段-总计算次数 + @Column(name = "all_time") + private Integer allTime; +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DayHarmrateVPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DayHarmrateVPO.java new file mode 100644 index 000000000..f543a1c2b --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DayHarmrateVPO.java @@ -0,0 +1,177 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +@Data +@Measurement(name = "day_harmrate_v") +public class DayHarmrateVPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "v_1") + private double v1; + + @Column(name = "v_2") + private double v2; + + @Column(name = "v_3") + private double v3; + + @Column(name = "v_4") + private double v4; + + @Column(name = "v_5") + private double v5; + + @Column(name = "v_6") + private double v6; + + @Column(name = "v_7") + private double v7; + + @Column(name = "v_8") + private double v8; + + @Column(name = "v_9") + private double v9; + + @Column(name = "v_10") + private double v10; + + @Column(name = "v_11") + private double v11; + + @Column(name = "v_12") + private double v12; + + @Column(name = "v_13") + private double v13; + + @Column(name = "v_14") + private double v14; + + @Column(name = "v_15") + private double v15; + + @Column(name = "v_16") + private double v16; + + @Column(name = "v_17") + private double v17; + + @Column(name = "v_18") + private double v18; + + @Column(name = "v_19") + private double v19; + + @Column(name = "v_20") + private double v20; + + @Column(name = "v_21") + private double v21; + + @Column(name = "v_22") + private double v22; + + @Column(name = "v_23") + private double v23; + + @Column(name = "v_24") + private double v24; + + @Column(name = "v_25") + private double v25; + + @Column(name = "v_26") + private double v26; + + @Column(name = "v_27") + private double v27; + + @Column(name = "v_28") + private double v28; + + @Column(name = "v_29") + private double v29; + + @Column(name = "v_30") + private double v30; + + @Column(name = "v_31") + private double v31; + + @Column(name = "v_32") + private double v32; + + @Column(name = "v_33") + private double v33; + + @Column(name = "v_34") + private double v34; + + @Column(name = "v_35") + private double v35; + + @Column(name = "v_36") + private double v36; + + @Column(name = "v_37") + private double v37; + + @Column(name = "v_38") + private double v38; + + @Column(name = "v_39") + private double v39; + + @Column(name = "v_40") + private double v40; + + @Column(name = "v_41") + private double v41; + + @Column(name = "v_42") + private double v42; + + @Column(name = "v_43") + private double v43; + + @Column(name = "v_44") + private double v44; + + @Column(name = "v_45") + private double v45; + + @Column(name = "v_46") + private double v46; + + @Column(name = "v_47") + private double v47; + + @Column(name = "v_48") + private double v48; + + @Column(name = "v_49") + private double v49; + + @Column(name = "v_50") + private double v50; +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DayIPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DayIPO.java new file mode 100644 index 000000000..4c5324e1f --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DayIPO.java @@ -0,0 +1,13 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.influxdb.annotation.Measurement; + +@Data +@EqualsAndHashCode(callSuper = true) +@Measurement(name = "day_i") +public class DayIPO extends DataIPO { + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DayInharmVPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DayInharmVPO.java new file mode 100644 index 000000000..41d28f719 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DayInharmVPO.java @@ -0,0 +1,178 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +@Data +@Measurement(name = "day_inharm_v") +public class DayInharmVPO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "phasic_type") + private String phaseType; + + @Column(name = "value_type") + private String valueType; + + @Column(name = "quality_flag") + private String qualityFlag; + + @Column(name = "v_1") + private double v1; + + @Column(name = "v_2") + private double v2; + + @Column(name = "v_3") + private double v3; + + @Column(name = "v_4") + private double v4; + + @Column(name = "v_5") + private double v5; + + @Column(name = "v_6") + private double v6; + + @Column(name = "v_7") + private double v7; + + @Column(name = "v_8") + private double v8; + + @Column(name = "v_9") + private double v9; + + @Column(name = "v_10") + private double v10; + + @Column(name = "v_11") + private double v11; + + @Column(name = "v_12") + private double v12; + + @Column(name = "v_13") + private double v13; + + @Column(name = "v_14") + private double v14; + + @Column(name = "v_15") + private double v15; + + @Column(name = "v_16") + private double v16; + + @Column(name = "v_17") + private double v17; + + @Column(name = "v_18") + private double v18; + + @Column(name = "v_19") + private double v19; + + @Column(name = "v_20") + private double v20; + + @Column(name = "v_21") + private double v21; + + @Column(name = "v_22") + private double v22; + + @Column(name = "v_23") + private double v23; + + @Column(name = "v_24") + private double v24; + + @Column(name = "v_25") + private double v25; + + @Column(name = "v_26") + private double v26; + + @Column(name = "v_27") + private double v27; + + @Column(name = "v_28") + private double v28; + + @Column(name = "v_29") + private double v29; + + @Column(name = "v_30") + private double v30; + + @Column(name = "v_31") + private double v31; + + @Column(name = "v_32") + private double v32; + + @Column(name = "v_33") + private double v33; + + @Column(name = "v_34") + private double v34; + + @Column(name = "v_35") + private double v35; + + @Column(name = "v_36") + private double v36; + + @Column(name = "v_37") + private double v37; + + @Column(name = "v_38") + private double v38; + + @Column(name = "v_39") + private double v39; + + @Column(name = "v_40") + private double v40; + + @Column(name = "v_41") + private double v41; + + @Column(name = "v_42") + private double v42; + + @Column(name = "v_43") + private double v43; + + @Column(name = "v_44") + private double v44; + + @Column(name = "v_45") + private double v45; + + @Column(name = "v_46") + private double v46; + + @Column(name = "v_47") + private double v47; + + @Column(name = "v_48") + private double v48; + + @Column(name = "v_49") + private double v49; + + @Column(name = "v_50") + private double v50; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DayPltPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DayPltPO.java new file mode 100644 index 000000000..56ba76873 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DayPltPO.java @@ -0,0 +1,13 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.influxdb.annotation.Measurement; + +@EqualsAndHashCode(callSuper = true) +@Data +@Measurement(name = "day_plt") +public class DayPltPO extends DataPltPO { + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DayVPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DayVPO.java new file mode 100644 index 000000000..6fd1394c5 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/DayVPO.java @@ -0,0 +1,12 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.influxdb.annotation.Measurement; + +@Data +@EqualsAndHashCode(callSuper = true) +@Measurement(name = "day_v") +public class DayVPO extends DataVPO { + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/ExcelRpt.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/ExcelRpt.java new file mode 100644 index 000000000..17890bee8 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/ExcelRpt.java @@ -0,0 +1,55 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * (SysExcelRpt)实体类 + * + * @author qijian + * @since 2022-10-14 10:44:54 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName(value = "sys_excel_rpt") +public class ExcelRpt extends BaseEntity { + /** + * 主键 + */ + private String id; + /** + * 名称 + */ + private String name; + /** + * 监测点Id + */ + private String lineId; + /** + * 报表日期 + */ + private Date dataDate; + /** + * 报表模板Id + */ + private String tempId; + /** + * 报表内容 + */ + private String content; + /** + * 报表类型(1年 2季度 3月份 4周 5日) + */ + private Integer type; + /** + * 状态(0:删除;1:正常) + */ + private Integer state; + +} + + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/ExcelRptTemp.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/ExcelRptTemp.java new file mode 100644 index 000000000..20616b463 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/ExcelRptTemp.java @@ -0,0 +1,29 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.njcn.db.bo.BaseEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 自定义报表 + * @author qijian + * @since 2022-10-14 10:44:54 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName(value = "sys_excel_rpt_temp") +public class ExcelRptTemp extends BaseEntity { + private String id; + + private String name; + + private String content; + + private Integer state; + + private String valueTitle; + + private String reportType; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/LinePO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/LinePO.java new file mode 100644 index 000000000..cbab103d4 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/LinePO.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.pojo.po; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:17 + */ +public class LinePO { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/PqsCommunicatePO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/PqsCommunicatePO.java new file mode 100644 index 000000000..3611ad983 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/PqsCommunicatePO.java @@ -0,0 +1,30 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import lombok.Data; +import org.influxdb.annotation.Column; +import org.influxdb.annotation.Measurement; + +import java.time.Instant; + +/** + * @author xiaoyao + * @version 1.0.0 + * @createTime 2022/10/27 10:08 + */ + +@Data +@Measurement(name = "pqs_communicate") +public class PqsCommunicatePO { + + @Column(name = "time") + private Instant time; + + @Column(name = "line_id") + private String lineId; + + @Column(name = "type") + private Integer type; + + @Column(name = "description") + private String description; +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RMpPollutionD.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RMpPollutionD.java new file mode 100644 index 000000000..8d7775306 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RMpPollutionD.java @@ -0,0 +1,159 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; + +/** + *

+ * 监测点污区图统计日表 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +@TableName("r_mp_pollution_d") +public class RMpPollutionD implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 监测点id + */ + @TableId(value = "line_id", type = IdType.AUTO) + private String lineId; + + /** + * 时间 + */ + private LocalDateTime dataDate; + + /** + * 频率偏差 + */ + private Float freqDev; + + /** + * 电压偏差 + */ + private Float vDev; + + /** + * 三相电压不平衡度 + */ + private Float vUnbalance; + + /** + * 谐波电压(电压总谐波畸变率、各次谐波电压含有率) + */ + private Float vAll; + + /** + * 长时闪变 + */ + private Float plt; + + /** + * 谐波电流 + */ + private Float iAll; + + /** + * 负序电流 + */ + private Float iNeg; + + /** + * 间谐波电压含有率 + */ + private Float vInharm; + + public String getLineId() { + return lineId; + } + + public void setLineId(String lineId) { + this.lineId = lineId; + } + public LocalDateTime getDataDate() { + return dataDate; + } + + public void setDataDate(LocalDateTime dataDate) { + this.dataDate = dataDate; + } + public Float getFreqDev() { + return freqDev; + } + + public void setFreqDev(Float freqDev) { + this.freqDev = freqDev; + } + public Float getvDev() { + return vDev; + } + + public void setvDev(Float vDev) { + this.vDev = vDev; + } + public Float getvUnbalance() { + return vUnbalance; + } + + public void setvUnbalance(Float vUnbalance) { + this.vUnbalance = vUnbalance; + } + public Float getvAll() { + return vAll; + } + + public void setvAll(Float vAll) { + this.vAll = vAll; + } + public Float getPlt() { + return plt; + } + + public void setPlt(Float plt) { + this.plt = plt; + } + public Float getiAll() { + return iAll; + } + + public void setiAll(Float iAll) { + this.iAll = iAll; + } + public Float getiNeg() { + return iNeg; + } + + public void setiNeg(Float iNeg) { + this.iNeg = iNeg; + } + public Float getvInharm() { + return vInharm; + } + + public void setvInharm(Float vInharm) { + this.vInharm = vInharm; + } + + @Override + public String toString() { + return "RMpPollutionD{" + + "lineId=" + lineId + + ", dataDate=" + dataDate + + ", freqDev=" + freqDev + + ", vDev=" + vDev + + ", vUnbalance=" + vUnbalance + + ", vAll=" + vAll + + ", plt=" + plt + + ", iAll=" + iAll + + ", iNeg=" + iNeg + + ", vInharm=" + vInharm + + "}"; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionOrgD.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionOrgD.java new file mode 100644 index 000000000..99fb3f75c --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionOrgD.java @@ -0,0 +1,81 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; + +/** + *

+ * 单位污区图统计日表 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +@TableName("r_stat_pollution_org_d") +public class RStatPollutionOrgD implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 单位id + */ + @TableId(value = "org_id", type = IdType.AUTO) + private String orgId; + + /** + * 时间 + */ + private LocalDateTime dataDate; + + /** + * 污区图统计类型 + */ + private String pollutionType; + + /** + * 统计值 + */ + private Float value; + + public String getOrgId() { + return orgId; + } + + public void setOrgId(String orgId) { + this.orgId = orgId; + } + public LocalDateTime getDataDate() { + return dataDate; + } + + public void setDataDate(LocalDateTime dataDate) { + this.dataDate = dataDate; + } + public String getPollutionType() { + return pollutionType; + } + + public void setPollutionType(String pollutionType) { + this.pollutionType = pollutionType; + } + public Float getValue() { + return value; + } + + public void setValue(Float value) { + this.value = value; + } + + @Override + public String toString() { + return "RStatPollutionOrgD{" + + "orgId=" + orgId + + ", dataDate=" + dataDate + + ", pollutionType=" + pollutionType + + ", value=" + value + + "}"; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionOrgM.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionOrgM.java new file mode 100644 index 000000000..fd4245ae9 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionOrgM.java @@ -0,0 +1,81 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; + +/** + *

+ * 单位污区图统计月表 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +@TableName("r_stat_pollution_org_m") +public class RStatPollutionOrgM implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 单位id + */ + @TableId(value = "org_id", type = IdType.AUTO) + private String orgId; + + /** + * 时间 + */ + private LocalDateTime dataDate; + + /** + * 污区图统计类型 + */ + private String pollutionType; + + /** + * 统计值 + */ + private Float value; + + public String getOrgId() { + return orgId; + } + + public void setOrgId(String orgId) { + this.orgId = orgId; + } + public LocalDateTime getDataDate() { + return dataDate; + } + + public void setDataDate(LocalDateTime dataDate) { + this.dataDate = dataDate; + } + public String getPollutionType() { + return pollutionType; + } + + public void setPollutionType(String pollutionType) { + this.pollutionType = pollutionType; + } + public Float getValue() { + return value; + } + + public void setValue(Float value) { + this.value = value; + } + + @Override + public String toString() { + return "RStatPollutionOrgM{" + + "orgId=" + orgId + + ", dataDate=" + dataDate + + ", pollutionType=" + pollutionType + + ", value=" + value + + "}"; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionOrgQ.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionOrgQ.java new file mode 100644 index 000000000..d6bb01c3b --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionOrgQ.java @@ -0,0 +1,81 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; + +/** + *

+ * 单位污区图统计季表 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +@TableName("r_stat_pollution_org_q") +public class RStatPollutionOrgQ implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 单位id + */ + @TableId(value = "org_id", type = IdType.AUTO) + private String orgId; + + /** + * 时间 + */ + private LocalDateTime dataDate; + + /** + * 污区图统计类型 + */ + private String pollutionType; + + /** + * 统计值 + */ + private Float value; + + public String getOrgId() { + return orgId; + } + + public void setOrgId(String orgId) { + this.orgId = orgId; + } + public LocalDateTime getDataDate() { + return dataDate; + } + + public void setDataDate(LocalDateTime dataDate) { + this.dataDate = dataDate; + } + public String getPollutionType() { + return pollutionType; + } + + public void setPollutionType(String pollutionType) { + this.pollutionType = pollutionType; + } + public Float getValue() { + return value; + } + + public void setValue(Float value) { + this.value = value; + } + + @Override + public String toString() { + return "RStatPollutionOrgQ{" + + "orgId=" + orgId + + ", dataDate=" + dataDate + + ", pollutionType=" + pollutionType + + ", value=" + value + + "}"; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionOrgY.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionOrgY.java new file mode 100644 index 000000000..78bed8e19 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionOrgY.java @@ -0,0 +1,81 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; + +/** + *

+ * 单位污区图统计年表 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +@TableName("r_stat_pollution_org_y") +public class RStatPollutionOrgY implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 单位id + */ + @TableId(value = "org_id", type = IdType.AUTO) + private String orgId; + + /** + * 时间 + */ + private LocalDateTime dataDate; + + /** + * 污区图统计类型 + */ + private String pollutionType; + + /** + * 统计值 + */ + private Float value; + + public String getOrgId() { + return orgId; + } + + public void setOrgId(String orgId) { + this.orgId = orgId; + } + public LocalDateTime getDataDate() { + return dataDate; + } + + public void setDataDate(LocalDateTime dataDate) { + this.dataDate = dataDate; + } + public String getPollutionType() { + return pollutionType; + } + + public void setPollutionType(String pollutionType) { + this.pollutionType = pollutionType; + } + public Float getValue() { + return value; + } + + public void setValue(Float value) { + this.value = value; + } + + @Override + public String toString() { + return "RStatPollutionOrgY{" + + "orgId=" + orgId + + ", dataDate=" + dataDate + + ", pollutionType=" + pollutionType + + ", value=" + value + + "}"; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionSubstationD.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionSubstationD.java new file mode 100644 index 000000000..67899bee0 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionSubstationD.java @@ -0,0 +1,81 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; + +/** + *

+ * 变电站污区图统计日表 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +@TableName("r_stat_pollution_substation_d") +public class RStatPollutionSubstationD implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 变电站id + */ + @TableId(value = "substation_id", type = IdType.AUTO) + private String substationId; + + /** + * 时间 + */ + private LocalDateTime dataDate; + + /** + * 污区图统计类型 + */ + private String pollutionType; + + /** + * 统计值 + */ + private Float value; + + public String getSubstationId() { + return substationId; + } + + public void setSubstationId(String substationId) { + this.substationId = substationId; + } + public LocalDateTime getDataDate() { + return dataDate; + } + + public void setDataDate(LocalDateTime dataDate) { + this.dataDate = dataDate; + } + public String getPollutionType() { + return pollutionType; + } + + public void setPollutionType(String pollutionType) { + this.pollutionType = pollutionType; + } + public Float getValue() { + return value; + } + + public void setValue(Float value) { + this.value = value; + } + + @Override + public String toString() { + return "RStatPollutionSubstationD{" + + "substationId=" + substationId + + ", dataDate=" + dataDate + + ", pollutionType=" + pollutionType + + ", value=" + value + + "}"; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionSubstationM.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionSubstationM.java new file mode 100644 index 000000000..74f8d542c --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionSubstationM.java @@ -0,0 +1,81 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; + +/** + *

+ * 变电站污区图统计月表 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +@TableName("r_stat_pollution_substation_m") +public class RStatPollutionSubstationM implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 变电站id + */ + @TableId(value = "substation_id", type = IdType.AUTO) + private String substationId; + + /** + * 时间 + */ + private LocalDateTime dataDate; + + /** + * 污区图统计类型 + */ + private String pollutionType; + + /** + * 统计值 + */ + private Float value; + + public String getSubstationId() { + return substationId; + } + + public void setSubstationId(String substationId) { + this.substationId = substationId; + } + public LocalDateTime getDataDate() { + return dataDate; + } + + public void setDataDate(LocalDateTime dataDate) { + this.dataDate = dataDate; + } + public String getPollutionType() { + return pollutionType; + } + + public void setPollutionType(String pollutionType) { + this.pollutionType = pollutionType; + } + public Float getValue() { + return value; + } + + public void setValue(Float value) { + this.value = value; + } + + @Override + public String toString() { + return "RStatPollutionSubstationM{" + + "substationId=" + substationId + + ", dataDate=" + dataDate + + ", pollutionType=" + pollutionType + + ", value=" + value + + "}"; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionSubstationQ.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionSubstationQ.java new file mode 100644 index 000000000..167c4b594 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionSubstationQ.java @@ -0,0 +1,81 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; + +/** + *

+ * 变电站污区图统计季表 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +@TableName("r_stat_pollution_substation_q") +public class RStatPollutionSubstationQ implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 变电站id + */ + @TableId(value = "substation_id", type = IdType.AUTO) + private String substationId; + + /** + * 时间 + */ + private LocalDateTime dataDate; + + /** + * 污区图统计类型 + */ + private String pollutionType; + + /** + * 统计值 + */ + private Float value; + + public String getSubstationId() { + return substationId; + } + + public void setSubstationId(String substationId) { + this.substationId = substationId; + } + public LocalDateTime getDataDate() { + return dataDate; + } + + public void setDataDate(LocalDateTime dataDate) { + this.dataDate = dataDate; + } + public String getPollutionType() { + return pollutionType; + } + + public void setPollutionType(String pollutionType) { + this.pollutionType = pollutionType; + } + public Float getValue() { + return value; + } + + public void setValue(Float value) { + this.value = value; + } + + @Override + public String toString() { + return "RStatPollutionSubstationQ{" + + "substationId=" + substationId + + ", dataDate=" + dataDate + + ", pollutionType=" + pollutionType + + ", value=" + value + + "}"; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionSubstationY.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionSubstationY.java new file mode 100644 index 000000000..2ebf4b789 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/RStatPollutionSubstationY.java @@ -0,0 +1,81 @@ +package com.njcn.prepare.harmonic.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; + +/** + *

+ * 变电站污区图统计年表 + *

+ * + * @author xiaoyao + * @since 2022-10-20 + */ +@TableName("r_stat_pollution_substation_y") +public class RStatPollutionSubstationY implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 变电站id + */ + @TableId(value = "substation_id", type = IdType.AUTO) + private String substationId; + + /** + * 时间 + */ + private LocalDateTime dataDate; + + /** + * 污区图统计类型 + */ + private String pollutionType; + + /** + * 统计值 + */ + private Float value; + + public String getSubstationId() { + return substationId; + } + + public void setSubstationId(String substationId) { + this.substationId = substationId; + } + public LocalDateTime getDataDate() { + return dataDate; + } + + public void setDataDate(LocalDateTime dataDate) { + this.dataDate = dataDate; + } + public String getPollutionType() { + return pollutionType; + } + + public void setPollutionType(String pollutionType) { + this.pollutionType = pollutionType; + } + public Float getValue() { + return value; + } + + public void setValue(Float value) { + this.value = value; + } + + @Override + public String toString() { + return "RStatPollutionSubstationY{" + + "substationId=" + substationId + + ", dataDate=" + dataDate + + ", pollutionType=" + pollutionType + + ", value=" + value + + "}"; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/LimitTargetPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/LimitTargetPO.java new file mode 100644 index 000000000..c797891e5 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/LimitTargetPO.java @@ -0,0 +1,478 @@ +package com.njcn.prepare.harmonic.pojo.po.line; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.util.Date; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/20 18:26【需求编号】 + * + * @author clam + * @version V1.0.0 + */ + +/** + * 合格率统计表 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +@TableName(value = "limit_target") +public class LimitTargetPO { + /** + * 监测点ID合格率的变电站/装置/母线/线路序号 + */ + @TableField(value = "line_id") + private String lineId; + + /** + * 数据类型,’A’表示A相,’B’表示B相,’C’表示C相,’’M’表示ABC三项总和,T’表示总 + */ + @TableField(value = "phasic_type") + private String phasicType; + + /** + * 合格率时间 + */ + @TableField(value = "time") + private Date time; + + /** + * 总计算次数 + */ + @TableField(value = "all_time") + private Integer allTime; + + /** + * 闪变总计算次数 + */ + @TableField(value = "flicker_overtime") + private Integer flickerOvertime; + + /** + * 频率偏差越限次数 + */ + @TableField(value = "flicker_all_time") + private Integer flickerAllTime; + + /** + * 电压偏差越限次数 + */ + @TableField(value = "freq_dev_overtime") + private Integer freqDevOvertime; + + /** + * 电压不平衡度越限次数 + */ + @TableField(value = "voltage_dev_overtime") + private Integer voltageDevOvertime; + + /** + * 闪变越限次数 + */ + @TableField(value = "ubalance_overtime") + private Integer ubalanceOvertime; + + /** + * 电压谐波畸变率越限次数 + */ + @TableField(value = "uaberrance_overtime") + private Integer uaberranceOvertime; + + /** + * 负序电流限值次数 + */ + @TableField(value = "i_neg_overtime") + private Integer iNegOvertime; + + /** + * 2次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_2_overtime") + private Integer uharm2Overtime; + + /** + * 3次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_3_overtime") + private Integer uharm3Overtime; + + /** + * 4次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_4_overtime") + private Integer uharm4Overtime; + + /** + * 5次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_5_overtime") + private Integer uharm5Overtime; + + /** + * 6次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_6_overtime") + private Integer uharm6Overtime; + + /** + * 7次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_7_overtime") + private Integer uharm7Overtime; + + /** + * 8次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_8_overtime") + private Integer uharm8Overtime; + + /** + * 9次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_9_overtime") + private Integer uharm9Overtime; + + /** + * 10次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_10_overtime") + private Integer uharm10Overtime; + + /** + * 11次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_11_overtime") + private Integer uharm11Overtime; + + /** + * 12次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_12_overtime") + private Integer uharm12Overtime; + + /** + * 13次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_13_overtime") + private Integer uharm13Overtime; + + /** + * 14次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_14_overtime") + private Integer uharm14Overtime; + + /** + * 15次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_15_overtime") + private Integer uharm15Overtime; + + /** + * 16次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_16_overtime") + private Integer uharm16Overtime; + + /** + * 17次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_17_overtime") + private Integer uharm17Overtime; + + /** + * 18次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_18_overtime") + private Integer uharm18Overtime; + + /** + * 19次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_19_overtime") + private Integer uharm19Overtime; + + /** + * 20次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_20_overtime") + private Integer uharm20Overtime; + + /** + * 21次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_21_overtime") + private Integer uharm21Overtime; + + /** + * 22次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_22_overtime") + private Integer uharm22Overtime; + + /** + * 23次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_23_overtime") + private Integer uharm23Overtime; + + /** + * 24次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_24_overtime") + private Integer uharm24Overtime; + + /** + * 25次电压谐波含有率越限次数 + */ + @TableField(value = "uharm_25_overtime") + private Integer uharm25Overtime; + + /** + * 2次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_2_overtime") + private Integer iharm2Overtime; + + /** + * 3次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_3_overtime") + private Integer iharm3Overtime; + + /** + * 4次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_4_overtime") + private Integer iharm4Overtime; + + /** + * 5次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_5_overtime") + private Integer iharm5Overtime; + + /** + * 6次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_6_overtime") + private Integer iharm6Overtime; + + /** + * 7次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_7_overtime") + private Integer iharm7Overtime; + + /** + * 8次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_8_overtime") + private Integer iharm8Overtime; + + /** + * 9次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_9_overtime") + private Integer iharm9Overtime; + + /** + * 10次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_10_overtime") + private Integer iharm10Overtime; + + /** + * 11次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_11_overtime") + private Integer iharm11Overtime; + + /** + * 12次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_12_overtime") + private Integer iharm12Overtime; + + /** + * 13次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_13_overtime") + private Integer iharm13Overtime; + + /** + * 14次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_14_overtime") + private Integer iharm14Overtime; + + /** + * 15次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_15_overtime") + private Integer iharm15Overtime; + + /** + * 16次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_16_overtime") + private Integer iharm16Overtime; + + /** + * 17次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_17_overtime") + private Integer iharm17Overtime; + + /** + * 18次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_18_overtime") + private Integer iharm18Overtime; + + /** + * 19次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_19_overtime") + private Integer iharm19Overtime; + + /** + * 20次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_20_overtime") + private Integer iharm20Overtime; + + /** + * 21次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_21_overtime") + private Integer iharm21Overtime; + + /** + * 22次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_22_overtime") + private Integer iharm22Overtime; + + /** + * 23次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_23_overtime") + private Integer iharm23Overtime; + + /** + * 24次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_24_overtime") + private Integer iharm24Overtime; + + /** + * 25次电流谐波幅值越限次数 + */ + @TableField(value = "iharm_25_overtime") + private Integer iharm25Overtime; + + /** + * 0.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_1_overtime") + private Integer inuharm1Overtime; + + /** + * 1.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_2_overtime") + private Integer inuharm2Overtime; + + /** + * 2.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_3_overtime") + private Integer inuharm3Overtime; + + /** + * 3.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_4_overtime") + private Integer inuharm4Overtime; + + /** + * 4.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_5_overtime") + private Integer inuharm5Overtime; + + /** + * 5.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_6_overtime") + private Integer inuharm6Overtime; + + /** + * 6.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_7_overtime") + private Integer inuharm7Overtime; + + /** + * 7.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_8_overtime") + private Integer inuharm8Overtime; + + /** + * 8.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_9_overtime") + private Integer inuharm9Overtime; + + /** + * 9.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_10_overtime") + private Integer inuharm10Overtime; + + /** + * 10.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_11_overtime") + private Integer inuharm11Overtime; + + /** + * 11.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_12_overtime") + private Integer inuharm12Overtime; + + /** + * 12.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_13_overtime") + private Integer inuharm13Overtime; + + /** + * 13.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_14_overtime") + private Integer inuharm14Overtime; + + /** + * 14.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_15_overtime") + private Integer inuharm15Overtime; + + /** + * 15.5次间谐波电压限值次数 + */ + @TableField(value = "inuharm_16_overtime") + private Integer inuharm16Overtime; +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpFlickerReportDPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpFlickerReportDPO.java new file mode 100644 index 000000000..846244ffd --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpFlickerReportDPO.java @@ -0,0 +1,101 @@ +package com.njcn.prepare.harmonic.pojo.po.line; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import com.github.jeffreyning.mybatisplus.anno.MppMultiId; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.Date; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 14:15【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@ApiModel(value="com-njcn-prepare-harmonic-pojo-po-line-RMpFlickerReportDPO") +@Data +@TableName(value = "r_mp_flicker_report_d") +public class RMpFlickerReportDPO { + /** + * 监测点ID + */ + @MppMultiId(value = "measurement_point_id") + @ApiModelProperty(value="监测点ID") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @MppMultiId(value = "data_date") + @ApiModelProperty(value="生成数据的时间,每日统计一次") + private Date dataDate; + + /** + * 相别:"A" "B" "C" "ABC" "T" 配网部分相别的数据采用T标志存储 + */ + @MppMultiId(value = "phase") + @ApiModelProperty(value="相别:'A' 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储") + private String phase; + + /** + * 电压波动-最大值 + */ + @TableField(value = "VOLTAGE_FLUCTUATION_MAX") + @ApiModelProperty(value="电压波动-最大值") + private Double voltageFluctuationMax; + + /** + * 电压波动-最小值 + */ + @TableField(value = "VOLTAGE_FLUCTUATION_MIN") + @ApiModelProperty(value="电压波动-最小值") + private Double voltageFluctuationMin; + + /** + * 电压波动-平均值 + */ + @TableField(value = "VOLTAGE_FLUCTUATION_AVG") + @ApiModelProperty(value="电压波动-平均值") + private Double voltageFluctuationAvg; + + /** + * 电压波动-95值 + */ + @TableField(value = "VOLTAGE_FLUCTUATION_95") + @ApiModelProperty(value="电压波动-95值") + private Double voltageFluctuation95; + + /** + * 短时间闪变值-最大值 + */ + @TableField(value = "SHORT_TERM_SEVERITY_MAX") + @ApiModelProperty(value="短时间闪变值-最大值") + private Double shortTermSeverityMax; + + /** + * 短时间闪变值-最小值 + */ + @TableField(value = "SHORT_TERM_SEVERITY_MIN") + @ApiModelProperty(value="短时间闪变值-最小值") + private Double shortTermSeverityMin; + + /** + * 短时间闪变值-平均值 + */ + @TableField(value = "SHORT_TERM_SEVERITY_AVG") + @ApiModelProperty(value="短时间闪变值-平均值") + private Double shortTermSeverityAvg; + + /** + * 短时间闪变值-95值 + */ + @TableField(value = "SHORT_TERM_SEVERITY_95") + @ApiModelProperty(value="短时间闪变值-95值") + private Double shortTermSeverity95; +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpHarmonicIMagReportDPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpHarmonicIMagReportDPO.java new file mode 100644 index 000000000..6f5c83344 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpHarmonicIMagReportDPO.java @@ -0,0 +1,1476 @@ +package com.njcn.prepare.harmonic.pojo.po.line; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import com.github.jeffreyning.mybatisplus.anno.MppMultiId; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.Date; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 9:50【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +/** + * 稳态监测点指标日报-日表(主配网表) /各次谐波电流有效值 + */ +@ApiModel(value="com-njcn-prepare-harmonic-pojo-po-line-RMpHarmonicIMagReportDPO") +@Data +@TableName(value = "r_mp_harmonic_i_mag_report_d") +public class RMpHarmonicIMagReportDPO { + /** + * 监测点ID + */ + @MppMultiId(value = "measurement_point_id") + @ApiModelProperty(value="监测点ID") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @MppMultiId(value = "data_date") + @ApiModelProperty(value="生成数据的时间,每日统计一次") + private Date dataDate; + + /** + * 相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储 + */ + @MppMultiId(value = "phase") + @ApiModelProperty(value="相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储") + private String phase; + + /** + * 基波电流-最大值 + */ + @TableField(value = "fundamental_current_max") + @ApiModelProperty(value="基波电流-最大值") + private Double fundamentalCurrentMax; + + /** + * 基波电流-最小值 + */ + @TableField(value = "fundamental_current_min") + @ApiModelProperty(value="基波电流-最小值") + private Double fundamentalCurrentMin; + + /** + * 基波电流-平均值 + */ + @TableField(value = "fundamental_current_avg") + @ApiModelProperty(value="基波电流-平均值") + private Double fundamentalCurrentAvg; + + /** + * 基波电流-95值 + */ + @TableField(value = "fundamental_current_95") + @ApiModelProperty(value="基波电流-95值") + private Double fundamentalCurrent95; + + /** + * 电流总谐波畸变率-最大值 + */ + @TableField(value = "harmonic_current_thd_max") + @ApiModelProperty(value="电流总谐波畸变率-最大值") + private Double harmonicCurrentThdMax; + + /** + * 电流总谐波畸变率-最小值 + */ + @TableField(value = "harmonic_current_thd_min") + @ApiModelProperty(value="电流总谐波畸变率-最小值") + private Double harmonicCurrentThdMin; + + /** + * 电流总谐波畸变率-平均值 + */ + @TableField(value = "harmonic_current_thd_avg") + @ApiModelProperty(value="电流总谐波畸变率-平均值") + private Double harmonicCurrentThdAvg; + + /** + * 电流总谐波畸变率-95值 + */ + @TableField(value = "harmonic_current_thd_95") + @ApiModelProperty(value="电流总谐波畸变率-95值") + private Double harmonicCurrentThd95; + + /** + * 2次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_2_max") + @ApiModelProperty(value="2次谐波电流有效值-最大值") + private Double harmonicCurrentEffective2Max; + + /** + * 2次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_2_min") + @ApiModelProperty(value="2次谐波电流有效值-最小值") + private Double harmonicCurrentEffective2Min; + + /** + * 2次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_2_avg") + @ApiModelProperty(value="2次谐波电流有效值-平均值") + private Double harmonicCurrentEffective2Avg; + + /** + * 2次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_2_95") + @ApiModelProperty(value="2次谐波电流有效值-95值") + private Double harmonicCurrentEffective295; + + /** + * 3次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_3_max") + @ApiModelProperty(value="3次谐波电流有效值-最大值") + private Double harmonicCurrentEffective3Max; + + /** + * 3次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_3_min") + @ApiModelProperty(value="3次谐波电流有效值-最小值") + private Double harmonicCurrentEffective3Min; + + /** + * 3次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_3_avg") + @ApiModelProperty(value="3次谐波电流有效值-平均值") + private Double harmonicCurrentEffective3Avg; + + /** + * 3次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_3_95") + @ApiModelProperty(value="3次谐波电流有效值-95值") + private Double harmonicCurrentEffective395; + + /** + * 4次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_4_max") + @ApiModelProperty(value="4次谐波电流有效值-最大值") + private Double harmonicCurrentEffective4Max; + + /** + * 4次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_4_min") + @ApiModelProperty(value="4次谐波电流有效值-最小值") + private Double harmonicCurrentEffective4Min; + + /** + * 4次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_4_avg") + @ApiModelProperty(value="4次谐波电流有效值-平均值") + private Double harmonicCurrentEffective4Avg; + + /** + * 4次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_4_95") + @ApiModelProperty(value="4次谐波电流有效值-95值") + private Double harmonicCurrentEffective495; + + /** + * 5次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_5_max") + @ApiModelProperty(value="5次谐波电流有效值-最大值") + private Double harmonicCurrentEffective5Max; + + /** + * 5次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_5_min") + @ApiModelProperty(value="5次谐波电流有效值-最小值") + private Double harmonicCurrentEffective5Min; + + /** + * 5次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_5_avg") + @ApiModelProperty(value="5次谐波电流有效值-平均值") + private Double harmonicCurrentEffective5Avg; + + /** + * 5次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_5_95") + @ApiModelProperty(value="5次谐波电流有效值-95值") + private Double harmonicCurrentEffective595; + + /** + * 6次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_6_max") + @ApiModelProperty(value="6次谐波电流有效值-最大值") + private Double harmonicCurrentEffective6Max; + + /** + * 6次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_6_min") + @ApiModelProperty(value="6次谐波电流有效值-最小值") + private Double harmonicCurrentEffective6Min; + + /** + * 6次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_6_avg") + @ApiModelProperty(value="6次谐波电流有效值-平均值") + private Double harmonicCurrentEffective6Avg; + + /** + * 6次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_6_95") + @ApiModelProperty(value="6次谐波电流有效值-95值") + private Double harmonicCurrentEffective695; + + /** + * 7次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_7_max") + @ApiModelProperty(value="7次谐波电流有效值-最大值") + private Double harmonicCurrentEffective7Max; + + /** + * 7次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_7_min") + @ApiModelProperty(value="7次谐波电流有效值-最小值") + private Double harmonicCurrentEffective7Min; + + /** + * 7次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_7_avg") + @ApiModelProperty(value="7次谐波电流有效值-平均值") + private Double harmonicCurrentEffective7Avg; + + /** + * 7次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_7_95") + @ApiModelProperty(value="7次谐波电流有效值-95值") + private Double harmonicCurrentEffective795; + + /** + * 8次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_8_max") + @ApiModelProperty(value="8次谐波电流有效值-最大值") + private Double harmonicCurrentEffective8Max; + + /** + * 8次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_8_min") + @ApiModelProperty(value="8次谐波电流有效值-最小值") + private Double harmonicCurrentEffective8Min; + + /** + * 8次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_8_avg") + @ApiModelProperty(value="8次谐波电流有效值-平均值") + private Double harmonicCurrentEffective8Avg; + + /** + * 8次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_8_95") + @ApiModelProperty(value="8次谐波电流有效值-95值") + private Double harmonicCurrentEffective895; + + /** + * 9次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_9_max") + @ApiModelProperty(value="9次谐波电流有效值-最大值") + private Double harmonicCurrentEffective9Max; + + /** + * 9次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_9_min") + @ApiModelProperty(value="9次谐波电流有效值-最小值") + private Double harmonicCurrentEffective9Min; + + /** + * 9次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_9_avg") + @ApiModelProperty(value="9次谐波电流有效值-平均值") + private Double harmonicCurrentEffective9Avg; + + /** + * 9次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_9_95") + @ApiModelProperty(value="9次谐波电流有效值-95值") + private Double harmonicCurrentEffective995; + + /** + * 10次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_10_max") + @ApiModelProperty(value="10次谐波电流有效值-最大值") + private Double harmonicCurrentEffective10Max; + + /** + * 10次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_10_min") + @ApiModelProperty(value="10次谐波电流有效值-最小值") + private Double harmonicCurrentEffective10Min; + + /** + * 10次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_10_avg") + @ApiModelProperty(value="10次谐波电流有效值-平均值") + private Double harmonicCurrentEffective10Avg; + + /** + * 10次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_10_95") + @ApiModelProperty(value="10次谐波电流有效值-95值") + private Double harmonicCurrentEffective1095; + + /** + * 11次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_11_max") + @ApiModelProperty(value="11次谐波电流有效值-最大值") + private Double harmonicCurrentEffective11Max; + + /** + * 11次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_11_min") + @ApiModelProperty(value="11次谐波电流有效值-最小值") + private Double harmonicCurrentEffective11Min; + + /** + * 11次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_11_avg") + @ApiModelProperty(value="11次谐波电流有效值-平均值") + private Double harmonicCurrentEffective11Avg; + + /** + * 11次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_11_95") + @ApiModelProperty(value="11次谐波电流有效值-95值") + private Double harmonicCurrentEffective1195; + + /** + * 12次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_12_max") + @ApiModelProperty(value="12次谐波电流有效值-最大值") + private Double harmonicCurrentEffective12Max; + + /** + * 12次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_12_min") + @ApiModelProperty(value="12次谐波电流有效值-最小值") + private Double harmonicCurrentEffective12Min; + + /** + * 12次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_12_avg") + @ApiModelProperty(value="12次谐波电流有效值-平均值") + private Double harmonicCurrentEffective12Avg; + + /** + * 12次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_12_95") + @ApiModelProperty(value="12次谐波电流有效值-95值") + private Double harmonicCurrentEffective1295; + + /** + * 13次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_13_max") + @ApiModelProperty(value="13次谐波电流有效值-最大值") + private Double harmonicCurrentEffective13Max; + + /** + * 13次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_13_min") + @ApiModelProperty(value="13次谐波电流有效值-最小值") + private Double harmonicCurrentEffective13Min; + + /** + * 13次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_13_avg") + @ApiModelProperty(value="13次谐波电流有效值-平均值") + private Double harmonicCurrentEffective13Avg; + + /** + * 13次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_13_95") + @ApiModelProperty(value="13次谐波电流有效值-95值") + private Double harmonicCurrentEffective1395; + + /** + * 14次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_14_max") + @ApiModelProperty(value="14次谐波电流有效值-最大值") + private Double harmonicCurrentEffective14Max; + + /** + * 14次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_14_min") + @ApiModelProperty(value="14次谐波电流有效值-最小值") + private Double harmonicCurrentEffective14Min; + + /** + * 14次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_14_avg") + @ApiModelProperty(value="14次谐波电流有效值-平均值") + private Double harmonicCurrentEffective14Avg; + + /** + * 14次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_14_95") + @ApiModelProperty(value="14次谐波电流有效值-95值") + private Double harmonicCurrentEffective1495; + + /** + * 15次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_15_max") + @ApiModelProperty(value="15次谐波电流有效值-最大值") + private Double harmonicCurrentEffective15Max; + + /** + * 15次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_15_min") + @ApiModelProperty(value="15次谐波电流有效值-最小值") + private Double harmonicCurrentEffective15Min; + + /** + * 15次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_15_avg") + @ApiModelProperty(value="15次谐波电流有效值-平均值") + private Double harmonicCurrentEffective15Avg; + + /** + * 15次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_15_95") + @ApiModelProperty(value="15次谐波电流有效值-95值") + private Double harmonicCurrentEffective1595; + + /** + * 16次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_16_max") + @ApiModelProperty(value="16次谐波电流有效值-最大值") + private Double harmonicCurrentEffective16Max; + + /** + * 16次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_16_min") + @ApiModelProperty(value="16次谐波电流有效值-最小值") + private Double harmonicCurrentEffective16Min; + + /** + * 16次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_16_avg") + @ApiModelProperty(value="16次谐波电流有效值-平均值") + private Double harmonicCurrentEffective16Avg; + + /** + * 16次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_16_95") + @ApiModelProperty(value="16次谐波电流有效值-95值") + private Double harmonicCurrentEffective1695; + + /** + * 17次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_17_max") + @ApiModelProperty(value="17次谐波电流有效值-最大值") + private Double harmonicCurrentEffective17Max; + + /** + * 17次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_17_min") + @ApiModelProperty(value="17次谐波电流有效值-最小值") + private Double harmonicCurrentEffective17Min; + + /** + * 17次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_17_avg") + @ApiModelProperty(value="17次谐波电流有效值-平均值") + private Double harmonicCurrentEffective17Avg; + + /** + * 17次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_17_95") + @ApiModelProperty(value="17次谐波电流有效值-95值") + private Double harmonicCurrentEffective1795; + + /** + * 18次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_18_max") + @ApiModelProperty(value="18次谐波电流有效值-最大值") + private Double harmonicCurrentEffective18Max; + + /** + * 18次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_18_min") + @ApiModelProperty(value="18次谐波电流有效值-最小值") + private Double harmonicCurrentEffective18Min; + + /** + * 18次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_18_avg") + @ApiModelProperty(value="18次谐波电流有效值-平均值") + private Double harmonicCurrentEffective18Avg; + + /** + * 18次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_18_95") + @ApiModelProperty(value="18次谐波电流有效值-95值") + private Double harmonicCurrentEffective1895; + + /** + * 19次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_19_max") + @ApiModelProperty(value="19次谐波电流有效值-最大值") + private Double harmonicCurrentEffective19Max; + + /** + * 19次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_19_min") + @ApiModelProperty(value="19次谐波电流有效值-最小值") + private Double harmonicCurrentEffective19Min; + + /** + * 19次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_19_avg") + @ApiModelProperty(value="19次谐波电流有效值-平均值") + private Double harmonicCurrentEffective19Avg; + + /** + * 19次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_19_95") + @ApiModelProperty(value="19次谐波电流有效值-95值") + private Double harmonicCurrentEffective1995; + + /** + * 20次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_20_max") + @ApiModelProperty(value="20次谐波电流有效值-最大值") + private Double harmonicCurrentEffective20Max; + + /** + * 20次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_20_min") + @ApiModelProperty(value="20次谐波电流有效值-最小值") + private Double harmonicCurrentEffective20Min; + + /** + * 20次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_20_avg") + @ApiModelProperty(value="20次谐波电流有效值-平均值") + private Double harmonicCurrentEffective20Avg; + + /** + * 20次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_20_95") + @ApiModelProperty(value="20次谐波电流有效值-95值") + private Double harmonicCurrentEffective2095; + + /** + * 21次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_21_max") + @ApiModelProperty(value="21次谐波电流有效值-最大值") + private Double harmonicCurrentEffective21Max; + + /** + * 21次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_21_min") + @ApiModelProperty(value="21次谐波电流有效值-最小值") + private Double harmonicCurrentEffective21Min; + + /** + * 21次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_21_avg") + @ApiModelProperty(value="21次谐波电流有效值-平均值") + private Double harmonicCurrentEffective21Avg; + + /** + * 21次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_21_95") + @ApiModelProperty(value="21次谐波电流有效值-95值") + private Double harmonicCurrentEffective2195; + + /** + * 22次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_22_max") + @ApiModelProperty(value="22次谐波电流有效值-最大值") + private Double harmonicCurrentEffective22Max; + + /** + * 22次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_22_min") + @ApiModelProperty(value="22次谐波电流有效值-最小值") + private Double harmonicCurrentEffective22Min; + + /** + * 22次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_22_avg") + @ApiModelProperty(value="22次谐波电流有效值-平均值") + private Double harmonicCurrentEffective22Avg; + + /** + * 22次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_22_95") + @ApiModelProperty(value="22次谐波电流有效值-95值") + private Double harmonicCurrentEffective2295; + + /** + * 23次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_23_max") + @ApiModelProperty(value="23次谐波电流有效值-最大值") + private Double harmonicCurrentEffective23Max; + + /** + * 23次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_23_min") + @ApiModelProperty(value="23次谐波电流有效值-最小值") + private Double harmonicCurrentEffective23Min; + + /** + * 23次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_23_avg") + @ApiModelProperty(value="23次谐波电流有效值-平均值") + private Double harmonicCurrentEffective23Avg; + + /** + * 23次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_23_95") + @ApiModelProperty(value="23次谐波电流有效值-95值") + private Double harmonicCurrentEffective2395; + + /** + * 24次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_24_max") + @ApiModelProperty(value="24次谐波电流有效值-最大值") + private Double harmonicCurrentEffective24Max; + + /** + * 24次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_24_min") + @ApiModelProperty(value="24次谐波电流有效值-最小值") + private Double harmonicCurrentEffective24Min; + + /** + * 24次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_24_avg") + @ApiModelProperty(value="24次谐波电流有效值-平均值") + private Double harmonicCurrentEffective24Avg; + + /** + * 24次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_24_95") + @ApiModelProperty(value="24次谐波电流有效值-95值") + private Double harmonicCurrentEffective2495; + + /** + * 25次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_25_max") + @ApiModelProperty(value="25次谐波电流有效值-最大值") + private Double harmonicCurrentEffective25Max; + + /** + * 25次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_25_min") + @ApiModelProperty(value="25次谐波电流有效值-最小值") + private Double harmonicCurrentEffective25Min; + + /** + * 25次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_25_avg") + @ApiModelProperty(value="25次谐波电流有效值-平均值") + private Double harmonicCurrentEffective25Avg; + + /** + * 25次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_25_95") + @ApiModelProperty(value="25次谐波电流有效值-95值") + private Double harmonicCurrentEffective2595; + + /** + * 26次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_26_max") + @ApiModelProperty(value="26次谐波电流有效值-最大值") + private Double harmonicCurrentEffective26Max; + + /** + * 26次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_26_min") + @ApiModelProperty(value="26次谐波电流有效值-最小值") + private Double harmonicCurrentEffective26Min; + + /** + * 26次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_26_avg") + @ApiModelProperty(value="26次谐波电流有效值-平均值") + private Double harmonicCurrentEffective26Avg; + + /** + * 26次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_26_95") + @ApiModelProperty(value="26次谐波电流有效值-95值") + private Double harmonicCurrentEffective2695; + + /** + * 27次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_27_max") + @ApiModelProperty(value="27次谐波电流有效值-最大值") + private Double harmonicCurrentEffective27Max; + + /** + * 27次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_27_min") + @ApiModelProperty(value="27次谐波电流有效值-最小值") + private Double harmonicCurrentEffective27Min; + + /** + * 27次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_27_avg") + @ApiModelProperty(value="27次谐波电流有效值-平均值") + private Double harmonicCurrentEffective27Avg; + + /** + * 27次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_27_95") + @ApiModelProperty(value="27次谐波电流有效值-95值") + private Double harmonicCurrentEffective2795; + + /** + * 28次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_28_max") + @ApiModelProperty(value="28次谐波电流有效值-最大值") + private Double harmonicCurrentEffective28Max; + + /** + * 28次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_28_min") + @ApiModelProperty(value="28次谐波电流有效值-最小值") + private Double harmonicCurrentEffective28Min; + + /** + * 28次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_28_avg") + @ApiModelProperty(value="28次谐波电流有效值-平均值") + private Double harmonicCurrentEffective28Avg; + + /** + * 28次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_28_95") + @ApiModelProperty(value="28次谐波电流有效值-95值") + private Double harmonicCurrentEffective2895; + + /** + * 29次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_29_max") + @ApiModelProperty(value="29次谐波电流有效值-最大值") + private Double harmonicCurrentEffective29Max; + + /** + * 29次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_29_min") + @ApiModelProperty(value="29次谐波电流有效值-最小值") + private Double harmonicCurrentEffective29Min; + + /** + * 29次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_29_avg") + @ApiModelProperty(value="29次谐波电流有效值-平均值") + private Double harmonicCurrentEffective29Avg; + + /** + * 29次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_29_95") + @ApiModelProperty(value="29次谐波电流有效值-95值") + private Double harmonicCurrentEffective2995; + + /** + * 30次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_30_max") + @ApiModelProperty(value="30次谐波电流有效值-最大值") + private Double harmonicCurrentEffective30Max; + + /** + * 30次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_30_min") + @ApiModelProperty(value="30次谐波电流有效值-最小值") + private Double harmonicCurrentEffective30Min; + + /** + * 30次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_30_avg") + @ApiModelProperty(value="30次谐波电流有效值-平均值") + private Double harmonicCurrentEffective30Avg; + + /** + * 30次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_30_95") + @ApiModelProperty(value="30次谐波电流有效值-95值") + private Double harmonicCurrentEffective3095; + + /** + * 31次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_31_max") + @ApiModelProperty(value="31次谐波电流有效值-最大值") + private Double harmonicCurrentEffective31Max; + + /** + * 31次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_31_min") + @ApiModelProperty(value="31次谐波电流有效值-最小值") + private Double harmonicCurrentEffective31Min; + + /** + * 31次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_31_avg") + @ApiModelProperty(value="31次谐波电流有效值-平均值") + private Double harmonicCurrentEffective31Avg; + + /** + * 31次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_31_95") + @ApiModelProperty(value="31次谐波电流有效值-95值") + private Double harmonicCurrentEffective3195; + + /** + * 32次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_32_max") + @ApiModelProperty(value="32次谐波电流有效值-最大值") + private Double harmonicCurrentEffective32Max; + + /** + * 32次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_32_min") + @ApiModelProperty(value="32次谐波电流有效值-最小值") + private Double harmonicCurrentEffective32Min; + + /** + * 32次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_32_avg") + @ApiModelProperty(value="32次谐波电流有效值-平均值") + private Double harmonicCurrentEffective32Avg; + + /** + * 32次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_32_95") + @ApiModelProperty(value="32次谐波电流有效值-95值") + private Double harmonicCurrentEffective3295; + + /** + * 33次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_33_max") + @ApiModelProperty(value="33次谐波电流有效值-最大值") + private Double harmonicCurrentEffective33Max; + + /** + * 33次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_33_min") + @ApiModelProperty(value="33次谐波电流有效值-最小值") + private Double harmonicCurrentEffective33Min; + + /** + * 33次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_33_avg") + @ApiModelProperty(value="33次谐波电流有效值-平均值") + private Double harmonicCurrentEffective33Avg; + + /** + * 33次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_33_95") + @ApiModelProperty(value="33次谐波电流有效值-95值") + private Double harmonicCurrentEffective3395; + + /** + * 34次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_34_max") + @ApiModelProperty(value="34次谐波电流有效值-最大值") + private Double harmonicCurrentEffective34Max; + + /** + * 34次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_34_min") + @ApiModelProperty(value="34次谐波电流有效值-最小值") + private Double harmonicCurrentEffective34Min; + + /** + * 34次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_34_avg") + @ApiModelProperty(value="34次谐波电流有效值-平均值") + private Double harmonicCurrentEffective34Avg; + + /** + * 34次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_34_95") + @ApiModelProperty(value="34次谐波电流有效值-95值") + private Double harmonicCurrentEffective3495; + + /** + * 35次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_35_max") + @ApiModelProperty(value="35次谐波电流有效值-最大值") + private Double harmonicCurrentEffective35Max; + + /** + * 35次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_35_min") + @ApiModelProperty(value="35次谐波电流有效值-最小值") + private Double harmonicCurrentEffective35Min; + + /** + * 35次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_35_avg") + @ApiModelProperty(value="35次谐波电流有效值-平均值") + private Double harmonicCurrentEffective35Avg; + + /** + * 35次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_35_95") + @ApiModelProperty(value="35次谐波电流有效值-95值") + private Double harmonicCurrentEffective3595; + + /** + * 36次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_36_max") + @ApiModelProperty(value="36次谐波电流有效值-最大值") + private Double harmonicCurrentEffective36Max; + + /** + * 36次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_36_min") + @ApiModelProperty(value="36次谐波电流有效值-最小值") + private Double harmonicCurrentEffective36Min; + + /** + * 36次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_36_avg") + @ApiModelProperty(value="36次谐波电流有效值-平均值") + private Double harmonicCurrentEffective36Avg; + + /** + * 36次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_36_95") + @ApiModelProperty(value="36次谐波电流有效值-95值") + private Double harmonicCurrentEffective3695; + + /** + * 37次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_37_max") + @ApiModelProperty(value="37次谐波电流有效值-最大值") + private Double harmonicCurrentEffective37Max; + + /** + * 37次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_37_min") + @ApiModelProperty(value="37次谐波电流有效值-最小值") + private Double harmonicCurrentEffective37Min; + + /** + * 37次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_37_avg") + @ApiModelProperty(value="37次谐波电流有效值-平均值") + private Double harmonicCurrentEffective37Avg; + + /** + * 37次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_37_95") + @ApiModelProperty(value="37次谐波电流有效值-95值") + private Double harmonicCurrentEffective3795; + + /** + * 38次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_38_max") + @ApiModelProperty(value="38次谐波电流有效值-最大值") + private Double harmonicCurrentEffective38Max; + + /** + * 38次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_38_min") + @ApiModelProperty(value="38次谐波电流有效值-最小值") + private Double harmonicCurrentEffective38Min; + + /** + * 38次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_38_avg") + @ApiModelProperty(value="38次谐波电流有效值-平均值") + private Double harmonicCurrentEffective38Avg; + + /** + * 38次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_38_95") + @ApiModelProperty(value="38次谐波电流有效值-95值") + private Double harmonicCurrentEffective3895; + + /** + * 39次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_39_max") + @ApiModelProperty(value="39次谐波电流有效值-最大值") + private Double harmonicCurrentEffective39Max; + + /** + * 39次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_39_min") + @ApiModelProperty(value="39次谐波电流有效值-最小值") + private Double harmonicCurrentEffective39Min; + + /** + * 39次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_39_avg") + @ApiModelProperty(value="39次谐波电流有效值-平均值") + private Double harmonicCurrentEffective39Avg; + + /** + * 39次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_39_95") + @ApiModelProperty(value="39次谐波电流有效值-95值") + private Double harmonicCurrentEffective3995; + + /** + * 40次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_40_max") + @ApiModelProperty(value="40次谐波电流有效值-最大值") + private Double harmonicCurrentEffective40Max; + + /** + * 40次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_40_min") + @ApiModelProperty(value="40次谐波电流有效值-最小值") + private Double harmonicCurrentEffective40Min; + + /** + * 40次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_40_avg") + @ApiModelProperty(value="40次谐波电流有效值-平均值") + private Double harmonicCurrentEffective40Avg; + + /** + * 40次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_40_95") + @ApiModelProperty(value="40次谐波电流有效值-95值") + private Double harmonicCurrentEffective4095; + + /** + * 41次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_41_max") + @ApiModelProperty(value="41次谐波电流有效值-最大值") + private Double harmonicCurrentEffective41Max; + + /** + * 41次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_41_min") + @ApiModelProperty(value="41次谐波电流有效值-最小值") + private Double harmonicCurrentEffective41Min; + + /** + * 41次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_41_avg") + @ApiModelProperty(value="41次谐波电流有效值-平均值") + private Double harmonicCurrentEffective41Avg; + + /** + * 41次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_41_95") + @ApiModelProperty(value="41次谐波电流有效值-95值") + private Double harmonicCurrentEffective4195; + + /** + * 42次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_42_max") + @ApiModelProperty(value="42次谐波电流有效值-最大值") + private Double harmonicCurrentEffective42Max; + + /** + * 42次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_42_min") + @ApiModelProperty(value="42次谐波电流有效值-最小值") + private Double harmonicCurrentEffective42Min; + + /** + * 42次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_42_avg") + @ApiModelProperty(value="42次谐波电流有效值-平均值") + private Double harmonicCurrentEffective42Avg; + + /** + * 42次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_42_95") + @ApiModelProperty(value="42次谐波电流有效值-95值") + private Double harmonicCurrentEffective4295; + + /** + * 43次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_43_max") + @ApiModelProperty(value="43次谐波电流有效值-最大值") + private Double harmonicCurrentEffective43Max; + + /** + * 43次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_43_min") + @ApiModelProperty(value="43次谐波电流有效值-最小值") + private Double harmonicCurrentEffective43Min; + + /** + * 43次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_43_avg") + @ApiModelProperty(value="43次谐波电流有效值-平均值") + private Double harmonicCurrentEffective43Avg; + + /** + * 43次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_43_95") + @ApiModelProperty(value="43次谐波电流有效值-95值") + private Double harmonicCurrentEffective4395; + + /** + * 44次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_44_max") + @ApiModelProperty(value="44次谐波电流有效值-最大值") + private Double harmonicCurrentEffective44Max; + + /** + * 44次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_44_min") + @ApiModelProperty(value="44次谐波电流有效值-最小值") + private Double harmonicCurrentEffective44Min; + + /** + * 44次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_44_avg") + @ApiModelProperty(value="44次谐波电流有效值-平均值") + private Double harmonicCurrentEffective44Avg; + + /** + * 44次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_44_95") + @ApiModelProperty(value="44次谐波电流有效值-95值") + private Double harmonicCurrentEffective4495; + + /** + * 45次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_45_max") + @ApiModelProperty(value="45次谐波电流有效值-最大值") + private Double harmonicCurrentEffective45Max; + + /** + * 45次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_45_min") + @ApiModelProperty(value="45次谐波电流有效值-最小值") + private Double harmonicCurrentEffective45Min; + + /** + * 45次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_45_avg") + @ApiModelProperty(value="45次谐波电流有效值-平均值") + private Double harmonicCurrentEffective45Avg; + + /** + * 45次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_45_95") + @ApiModelProperty(value="45次谐波电流有效值-95值") + private Double harmonicCurrentEffective4595; + + /** + * 46次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_46_max") + @ApiModelProperty(value="46次谐波电流有效值-最大值") + private Double harmonicCurrentEffective46Max; + + /** + * 46次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_46_min") + @ApiModelProperty(value="46次谐波电流有效值-最小值") + private Double harmonicCurrentEffective46Min; + + /** + * 46次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_46_avg") + @ApiModelProperty(value="46次谐波电流有效值-平均值") + private Double harmonicCurrentEffective46Avg; + + /** + * 46次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_46_95") + @ApiModelProperty(value="46次谐波电流有效值-95值") + private Double harmonicCurrentEffective4695; + + /** + * 47次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_47_max") + @ApiModelProperty(value="47次谐波电流有效值-最大值") + private Double harmonicCurrentEffective47Max; + + /** + * 47次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_47_min") + @ApiModelProperty(value="47次谐波电流有效值-最小值") + private Double harmonicCurrentEffective47Min; + + /** + * 47次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_47_avg") + @ApiModelProperty(value="47次谐波电流有效值-平均值") + private Double harmonicCurrentEffective47Avg; + + /** + * 47次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_47_95") + @ApiModelProperty(value="47次谐波电流有效值-95值") + private Double harmonicCurrentEffective4795; + + /** + * 48次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_48_max") + @ApiModelProperty(value="48次谐波电流有效值-最大值") + private Double harmonicCurrentEffective48Max; + + /** + * 48次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_48_min") + @ApiModelProperty(value="48次谐波电流有效值-最小值") + private Double harmonicCurrentEffective48Min; + + /** + * 48次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_48_avg") + @ApiModelProperty(value="48次谐波电流有效值-平均值") + private Double harmonicCurrentEffective48Avg; + + /** + * 48次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_48_95") + @ApiModelProperty(value="48次谐波电流有效值-95值") + private Double harmonicCurrentEffective4895; + + /** + * 49次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_49_max") + @ApiModelProperty(value="49次谐波电流有效值-最大值") + private Double harmonicCurrentEffective49Max; + + /** + * 49次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_49_min") + @ApiModelProperty(value="49次谐波电流有效值-最小值") + private Double harmonicCurrentEffective49Min; + + /** + * 49次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_49_avg") + @ApiModelProperty(value="49次谐波电流有效值-平均值") + private Double harmonicCurrentEffective49Avg; + + /** + * 49次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_49_95") + @ApiModelProperty(value="49次谐波电流有效值-95值") + private Double harmonicCurrentEffective4995; + + /** + * 50次谐波电流有效值-最大值 + */ + @TableField(value = "harmonic_current_effective_50_max") + @ApiModelProperty(value="50次谐波电流有效值-最大值") + private Double harmonicCurrentEffective50Max; + + /** + * 50次谐波电流有效值-最小值 + */ + @TableField(value = "harmonic_current_effective_50_min") + @ApiModelProperty(value="50次谐波电流有效值-最小值") + private Double harmonicCurrentEffective50Min; + + /** + * 50次谐波电流有效值-平均值 + */ + @TableField(value = "harmonic_current_effective_50_avg") + @ApiModelProperty(value="50次谐波电流有效值-平均值") + private Double harmonicCurrentEffective50Avg; + + /** + * 50次谐波电流有效值-95值 + */ + @TableField(value = "harmonic_current_effective_50_95") + @ApiModelProperty(value="50次谐波电流有效值-95值") + private Double harmonicCurrentEffective5095; +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpHarmonicIRateReportDPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpHarmonicIRateReportDPO.java new file mode 100644 index 000000000..8f17c9a21 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpHarmonicIRateReportDPO.java @@ -0,0 +1,1420 @@ +package com.njcn.prepare.harmonic.pojo.po.line; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import com.github.jeffreyning.mybatisplus.anno.MppMultiId; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.Date; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 18:33【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +/** + * 稳态监测点指标日报-日表(主网表) /各次谐波电流含有率 + */ +@ApiModel(value="com-njcn-prepare-harmonic-pojo-po-line-RMpHarmonicIRateReportDPO") +@Data +@TableName(value = "r_mp_harmonic_i_rate_report_d") +public class RMpHarmonicIRateReportDPO { + /** + * 监测点ID + */ + @MppMultiId(value = "measurement_point_id") + @ApiModelProperty(value="监测点ID") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @MppMultiId(value = "data_date") + @ApiModelProperty(value="生成数据的时间,每日统计一次") + private Date dataDate; + + /** + * 相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储 + */ + @MppMultiId(value = "phase") + @ApiModelProperty(value="相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储") + private String phase; + + /** + * 2次谐波电流含有率-最大值 + */ + @TableField(value = "i_2_max") + @ApiModelProperty(value="2次谐波电流含有率-最大值") + private Double i2Max; + + /** + * 2次谐波电流含有率-最小值 + */ + @TableField(value = "i_2_min") + @ApiModelProperty(value="2次谐波电流含有率-最小值") + private Double i2Min; + + /** + * 2次谐波电流含有率-平均值 + */ + @TableField(value = "i_2_avg") + @ApiModelProperty(value="2次谐波电流含有率-平均值") + private Double i2Avg; + + /** + * 2次谐波电流含有率-cp95值 + */ + @TableField(value = "i_2_cp95") + @ApiModelProperty(value="2次谐波电流含有率-cp95值") + private Double i2Cp95; + + /** + * 3次谐波电流含有率-最大值 + */ + @TableField(value = "i_3_max") + @ApiModelProperty(value="3次谐波电流含有率-最大值") + private Double i3Max; + + /** + * 3次谐波电流含有率-最小值 + */ + @TableField(value = "i_3_min") + @ApiModelProperty(value="3次谐波电流含有率-最小值") + private Double i3Min; + + /** + * 3次谐波电流含有率-平均值 + */ + @TableField(value = "i_3_avg") + @ApiModelProperty(value="3次谐波电流含有率-平均值") + private Double i3Avg; + + /** + * 3次谐波电流含有率-cp95值 + */ + @TableField(value = "i_3_cp95") + @ApiModelProperty(value="3次谐波电流含有率-cp95值") + private Double i3Cp95; + + /** + * 4次谐波电流含有率-最大值 + */ + @TableField(value = "i_4_max") + @ApiModelProperty(value="4次谐波电流含有率-最大值") + private Double i4Max; + + /** + * 4次谐波电流含有率-最小值 + */ + @TableField(value = "i_4_min") + @ApiModelProperty(value="4次谐波电流含有率-最小值") + private Double i4Min; + + /** + * 4次谐波电流含有率-平均值 + */ + @TableField(value = "i_4_avg") + @ApiModelProperty(value="4次谐波电流含有率-平均值") + private Double i4Avg; + + /** + * 4次谐波电流含有率-cp95值 + */ + @TableField(value = "i_4_cp95") + @ApiModelProperty(value="4次谐波电流含有率-cp95值") + private Double i4Cp95; + + /** + * 5次谐波电流含有率-最大值 + */ + @TableField(value = "i_5_max") + @ApiModelProperty(value="5次谐波电流含有率-最大值") + private Double i5Max; + + /** + * 5次谐波电流含有率-最小值 + */ + @TableField(value = "i_5_min") + @ApiModelProperty(value="5次谐波电流含有率-最小值") + private Double i5Min; + + /** + * 5次谐波电流含有率-平均值 + */ + @TableField(value = "i_5_avg") + @ApiModelProperty(value="5次谐波电流含有率-平均值") + private Double i5Avg; + + /** + * 5次谐波电流含有率-cp95值 + */ + @TableField(value = "i_5_cp95") + @ApiModelProperty(value="5次谐波电流含有率-cp95值") + private Double i5Cp95; + + /** + * 6次谐波电流含有率-最大值 + */ + @TableField(value = "i_6_max") + @ApiModelProperty(value="6次谐波电流含有率-最大值") + private Double i6Max; + + /** + * 6次谐波电流含有率-最小值 + */ + @TableField(value = "i_6_min") + @ApiModelProperty(value="6次谐波电流含有率-最小值") + private Double i6Min; + + /** + * 6次谐波电流含有率-平均值 + */ + @TableField(value = "i_6_avg") + @ApiModelProperty(value="6次谐波电流含有率-平均值") + private Double i6Avg; + + /** + * 6次谐波电流含有率-cp95值 + */ + @TableField(value = "i_6_cp95") + @ApiModelProperty(value="6次谐波电流含有率-cp95值") + private Double i6Cp95; + + /** + * 7次谐波电流含有率-最大值 + */ + @TableField(value = "i_7_max") + @ApiModelProperty(value="7次谐波电流含有率-最大值") + private Double i7Max; + + /** + * 7次谐波电流含有率-最小值 + */ + @TableField(value = "i_7_min") + @ApiModelProperty(value="7次谐波电流含有率-最小值") + private Double i7Min; + + /** + * 7次谐波电流含有率-平均值 + */ + @TableField(value = "i_7_avg") + @ApiModelProperty(value="7次谐波电流含有率-平均值") + private Double i7Avg; + + /** + * 7次谐波电流含有率-cp95值 + */ + @TableField(value = "i_7_cp95") + @ApiModelProperty(value="7次谐波电流含有率-cp95值") + private Double i7Cp95; + + /** + * 8次谐波电流含有率-最大值 + */ + @TableField(value = "i_8_max") + @ApiModelProperty(value="8次谐波电流含有率-最大值") + private Double i8Max; + + /** + * 8次谐波电流含有率-最小值 + */ + @TableField(value = "i_8_min") + @ApiModelProperty(value="8次谐波电流含有率-最小值") + private Double i8Min; + + /** + * 8次谐波电流含有率-平均值 + */ + @TableField(value = "i_8_avg") + @ApiModelProperty(value="8次谐波电流含有率-平均值") + private Double i8Avg; + + /** + * 8次谐波电流含有率-cp95值 + */ + @TableField(value = "i_8_cp95") + @ApiModelProperty(value="8次谐波电流含有率-cp95值") + private Double i8Cp95; + + /** + * 9次谐波电流含有率-最大值 + */ + @TableField(value = "i_9_max") + @ApiModelProperty(value="9次谐波电流含有率-最大值") + private Double i9Max; + + /** + * 9次谐波电流含有率-最小值 + */ + @TableField(value = "i_9_min") + @ApiModelProperty(value="9次谐波电流含有率-最小值") + private Double i9Min; + + /** + * 9次谐波电流含有率-平均值 + */ + @TableField(value = "i_9_avg") + @ApiModelProperty(value="9次谐波电流含有率-平均值") + private Double i9Avg; + + /** + * 9次谐波电流含有率-cp95值 + */ + @TableField(value = "i_9_cp95") + @ApiModelProperty(value="9次谐波电流含有率-cp95值") + private Double i9Cp95; + + /** + * 10次谐波电流含有率-最大值 + */ + @TableField(value = "i_10_max") + @ApiModelProperty(value="10次谐波电流含有率-最大值") + private Double i10Max; + + /** + * 10次谐波电流含有率-最小值 + */ + @TableField(value = "i_10_min") + @ApiModelProperty(value="10次谐波电流含有率-最小值") + private Double i10Min; + + /** + * 10次谐波电流含有率-平均值 + */ + @TableField(value = "i_10_avg") + @ApiModelProperty(value="10次谐波电流含有率-平均值") + private Double i10Avg; + + /** + * 10次谐波电流含有率-cp95值 + */ + @TableField(value = "i_10_cp95") + @ApiModelProperty(value="10次谐波电流含有率-cp95值") + private Double i10Cp95; + + /** + * 11次谐波电流含有率-最大值 + */ + @TableField(value = "i_11_max") + @ApiModelProperty(value="11次谐波电流含有率-最大值") + private Double i11Max; + + /** + * 11次谐波电流含有率-最小值 + */ + @TableField(value = "i_11_min") + @ApiModelProperty(value="11次谐波电流含有率-最小值") + private Double i11Min; + + /** + * 11次谐波电流含有率-平均值 + */ + @TableField(value = "i_11_avg") + @ApiModelProperty(value="11次谐波电流含有率-平均值") + private Double i11Avg; + + /** + * 11次谐波电流含有率-cp95值 + */ + @TableField(value = "i_11_cp95") + @ApiModelProperty(value="11次谐波电流含有率-cp95值") + private Double i11Cp95; + + /** + * 12次谐波电流含有率-最大值 + */ + @TableField(value = "i_12_max") + @ApiModelProperty(value="12次谐波电流含有率-最大值") + private Double i12Max; + + /** + * 12次谐波电流含有率-最小值 + */ + @TableField(value = "i_12_min") + @ApiModelProperty(value="12次谐波电流含有率-最小值") + private Double i12Min; + + /** + * 12次谐波电流含有率-平均值 + */ + @TableField(value = "i_12_avg") + @ApiModelProperty(value="12次谐波电流含有率-平均值") + private Double i12Avg; + + /** + * 12次谐波电流含有率-cp95值 + */ + @TableField(value = "i_12_cp95") + @ApiModelProperty(value="12次谐波电流含有率-cp95值") + private Double i12Cp95; + + /** + * 13次谐波电流含有率-最大值 + */ + @TableField(value = "i_13_max") + @ApiModelProperty(value="13次谐波电流含有率-最大值") + private Double i13Max; + + /** + * 13次谐波电流含有率-最小值 + */ + @TableField(value = "i_13_min") + @ApiModelProperty(value="13次谐波电流含有率-最小值") + private Double i13Min; + + /** + * 13次谐波电流含有率-平均值 + */ + @TableField(value = "i_13_avg") + @ApiModelProperty(value="13次谐波电流含有率-平均值") + private Double i13Avg; + + /** + * 13次谐波电流含有率-cp95值 + */ + @TableField(value = "i_13_cp95") + @ApiModelProperty(value="13次谐波电流含有率-cp95值") + private Double i13Cp95; + + /** + * 14次谐波电流含有率-最大值 + */ + @TableField(value = "i_14_max") + @ApiModelProperty(value="14次谐波电流含有率-最大值") + private Double i14Max; + + /** + * 14次谐波电流含有率-最小值 + */ + @TableField(value = "i_14_min") + @ApiModelProperty(value="14次谐波电流含有率-最小值") + private Double i14Min; + + /** + * 14次谐波电流含有率-平均值 + */ + @TableField(value = "i_14_avg") + @ApiModelProperty(value="14次谐波电流含有率-平均值") + private Double i14Avg; + + /** + * 14次谐波电流含有率-cp95值 + */ + @TableField(value = "i_14_cp95") + @ApiModelProperty(value="14次谐波电流含有率-cp95值") + private Double i14Cp95; + + /** + * 15次谐波电流含有率-最大值 + */ + @TableField(value = "i_15_max") + @ApiModelProperty(value="15次谐波电流含有率-最大值") + private Double i15Max; + + /** + * 15次谐波电流含有率-最小值 + */ + @TableField(value = "i_15_min") + @ApiModelProperty(value="15次谐波电流含有率-最小值") + private Double i15Min; + + /** + * 15次谐波电流含有率-平均值 + */ + @TableField(value = "i_15_avg") + @ApiModelProperty(value="15次谐波电流含有率-平均值") + private Double i15Avg; + + /** + * 15次谐波电流含有率-cp95值 + */ + @TableField(value = "i_15_cp95") + @ApiModelProperty(value="15次谐波电流含有率-cp95值") + private Double i15Cp95; + + /** + * 16次谐波电流含有率-最大值 + */ + @TableField(value = "i_16_max") + @ApiModelProperty(value="16次谐波电流含有率-最大值") + private Double i16Max; + + /** + * 16次谐波电流含有率-最小值 + */ + @TableField(value = "i_16_min") + @ApiModelProperty(value="16次谐波电流含有率-最小值") + private Double i16Min; + + /** + * 16次谐波电流含有率-平均值 + */ + @TableField(value = "i_16_avg") + @ApiModelProperty(value="16次谐波电流含有率-平均值") + private Double i16Avg; + + /** + * 16次谐波电流含有率-cp95值 + */ + @TableField(value = "i_16_cp95") + @ApiModelProperty(value="16次谐波电流含有率-cp95值") + private Double i16Cp95; + + /** + * 17次谐波电流含有率-最大值 + */ + @TableField(value = "i_17_max") + @ApiModelProperty(value="17次谐波电流含有率-最大值") + private Double i17Max; + + /** + * 17次谐波电流含有率-最小值 + */ + @TableField(value = "i_17_min") + @ApiModelProperty(value="17次谐波电流含有率-最小值") + private Double i17Min; + + /** + * 17次谐波电流含有率-平均值 + */ + @TableField(value = "i_17_avg") + @ApiModelProperty(value="17次谐波电流含有率-平均值") + private Double i17Avg; + + /** + * 17次谐波电流含有率-cp95值 + */ + @TableField(value = "i_17_cp95") + @ApiModelProperty(value="17次谐波电流含有率-cp95值") + private Double i17Cp95; + + /** + * 18次谐波电流含有率-最大值 + */ + @TableField(value = "i_18_max") + @ApiModelProperty(value="18次谐波电流含有率-最大值") + private Double i18Max; + + /** + * 18次谐波电流含有率-最小值 + */ + @TableField(value = "i_18_min") + @ApiModelProperty(value="18次谐波电流含有率-最小值") + private Double i18Min; + + /** + * 18次谐波电流含有率-平均值 + */ + @TableField(value = "i_18_avg") + @ApiModelProperty(value="18次谐波电流含有率-平均值") + private Double i18Avg; + + /** + * 18次谐波电流含有率-cp95值 + */ + @TableField(value = "i_18_cp95") + @ApiModelProperty(value="18次谐波电流含有率-cp95值") + private Double i18Cp95; + + /** + * 19次谐波电流含有率-最大值 + */ + @TableField(value = "i_19_max") + @ApiModelProperty(value="19次谐波电流含有率-最大值") + private Double i19Max; + + /** + * 19次谐波电流含有率-最小值 + */ + @TableField(value = "i_19_min") + @ApiModelProperty(value="19次谐波电流含有率-最小值") + private Double i19Min; + + /** + * 19次谐波电流含有率-平均值 + */ + @TableField(value = "i_19_avg") + @ApiModelProperty(value="19次谐波电流含有率-平均值") + private Double i19Avg; + + /** + * 19次谐波电流含有率-cp95值 + */ + @TableField(value = "i_19_cp95") + @ApiModelProperty(value="19次谐波电流含有率-cp95值") + private Double i19Cp95; + + /** + * 20次谐波电流含有率-最大值 + */ + @TableField(value = "i_20_max") + @ApiModelProperty(value="20次谐波电流含有率-最大值") + private Double i20Max; + + /** + * 20次谐波电流含有率-最小值 + */ + @TableField(value = "i_20_min") + @ApiModelProperty(value="20次谐波电流含有率-最小值") + private Double i20Min; + + /** + * 20次谐波电流含有率-平均值 + */ + @TableField(value = "i_20_avg") + @ApiModelProperty(value="20次谐波电流含有率-平均值") + private Double i20Avg; + + /** + * 20次谐波电流含有率-cp95值 + */ + @TableField(value = "i_20_cp95") + @ApiModelProperty(value="20次谐波电流含有率-cp95值") + private Double i20Cp95; + + /** + * 21次谐波电流含有率-最大值 + */ + @TableField(value = "i_21_max") + @ApiModelProperty(value="21次谐波电流含有率-最大值") + private Double i21Max; + + /** + * 21次谐波电流含有率-最小值 + */ + @TableField(value = "i_21_min") + @ApiModelProperty(value="21次谐波电流含有率-最小值") + private Double i21Min; + + /** + * 21次谐波电流含有率-平均值 + */ + @TableField(value = "i_21_avg") + @ApiModelProperty(value="21次谐波电流含有率-平均值") + private Double i21Avg; + + /** + * 21次谐波电流含有率-cp95值 + */ + @TableField(value = "i_21_cp95") + @ApiModelProperty(value="21次谐波电流含有率-cp95值") + private Double i21Cp95; + + /** + * 22次谐波电流含有率-最大值 + */ + @TableField(value = "i_22_max") + @ApiModelProperty(value="22次谐波电流含有率-最大值") + private Double i22Max; + + /** + * 22次谐波电流含有率-最小值 + */ + @TableField(value = "i_22_min") + @ApiModelProperty(value="22次谐波电流含有率-最小值") + private Double i22Min; + + /** + * 22次谐波电流含有率-平均值 + */ + @TableField(value = "i_22_avg") + @ApiModelProperty(value="22次谐波电流含有率-平均值") + private Double i22Avg; + + /** + * 22次谐波电流含有率-cp95值 + */ + @TableField(value = "i_22_cp95") + @ApiModelProperty(value="22次谐波电流含有率-cp95值") + private Double i22Cp95; + + /** + * 23次谐波电流含有率-最大值 + */ + @TableField(value = "i_23_max") + @ApiModelProperty(value="23次谐波电流含有率-最大值") + private Double i23Max; + + /** + * 23次谐波电流含有率-最小值 + */ + @TableField(value = "i_23_min") + @ApiModelProperty(value="23次谐波电流含有率-最小值") + private Double i23Min; + + /** + * 23次谐波电流含有率-平均值 + */ + @TableField(value = "i_23_avg") + @ApiModelProperty(value="23次谐波电流含有率-平均值") + private Double i23Avg; + + /** + * 23次谐波电流含有率-cp95值 + */ + @TableField(value = "i_23_cp95") + @ApiModelProperty(value="23次谐波电流含有率-cp95值") + private Double i23Cp95; + + /** + * 24次谐波电流含有率-最大值 + */ + @TableField(value = "i_24_max") + @ApiModelProperty(value="24次谐波电流含有率-最大值") + private Double i24Max; + + /** + * 24次谐波电流含有率-最小值 + */ + @TableField(value = "i_24_min") + @ApiModelProperty(value="24次谐波电流含有率-最小值") + private Double i24Min; + + /** + * 24次谐波电流含有率-平均值 + */ + @TableField(value = "i_24_avg") + @ApiModelProperty(value="24次谐波电流含有率-平均值") + private Double i24Avg; + + /** + * 24次谐波电流含有率-cp95值 + */ + @TableField(value = "i_24_cp95") + @ApiModelProperty(value="24次谐波电流含有率-cp95值") + private Double i24Cp95; + + /** + * 25次谐波电流含有率-最大值 + */ + @TableField(value = "i_25_max") + @ApiModelProperty(value="25次谐波电流含有率-最大值") + private Double i25Max; + + /** + * 25次谐波电流含有率-最小值 + */ + @TableField(value = "i_25_min") + @ApiModelProperty(value="25次谐波电流含有率-最小值") + private Double i25Min; + + /** + * 25次谐波电流含有率-平均值 + */ + @TableField(value = "i_25_avg") + @ApiModelProperty(value="25次谐波电流含有率-平均值") + private Double i25Avg; + + /** + * 25次谐波电流含有率-cp95值 + */ + @TableField(value = "i_25_cp95") + @ApiModelProperty(value="25次谐波电流含有率-cp95值") + private Double i25Cp95; + + /** + * 26次谐波电流含有率-最大值 + */ + @TableField(value = "i_26_max") + @ApiModelProperty(value="26次谐波电流含有率-最大值") + private Double i26Max; + + /** + * 26次谐波电流含有率-最小值 + */ + @TableField(value = "i_26_min") + @ApiModelProperty(value="26次谐波电流含有率-最小值") + private Double i26Min; + + /** + * 26次谐波电流含有率-平均值 + */ + @TableField(value = "i_26_avg") + @ApiModelProperty(value="26次谐波电流含有率-平均值") + private Double i26Avg; + + /** + * 26次谐波电流含有率-cp95值 + */ + @TableField(value = "i_26_cp95") + @ApiModelProperty(value="26次谐波电流含有率-cp95值") + private Double i26Cp95; + + /** + * 27次谐波电流含有率-最大值 + */ + @TableField(value = "i_27_max") + @ApiModelProperty(value="27次谐波电流含有率-最大值") + private Double i27Max; + + /** + * 27次谐波电流含有率-最小值 + */ + @TableField(value = "i_27_min") + @ApiModelProperty(value="27次谐波电流含有率-最小值") + private Double i27Min; + + /** + * 27次谐波电流含有率-平均值 + */ + @TableField(value = "i_27_avg") + @ApiModelProperty(value="27次谐波电流含有率-平均值") + private Double i27Avg; + + /** + * 27次谐波电流含有率-cp95值 + */ + @TableField(value = "i_27_cp95") + @ApiModelProperty(value="27次谐波电流含有率-cp95值") + private Double i27Cp95; + + /** + * 28次谐波电流含有率-最大值 + */ + @TableField(value = "i_28_max") + @ApiModelProperty(value="28次谐波电流含有率-最大值") + private Double i28Max; + + /** + * 28次谐波电流含有率-最小值 + */ + @TableField(value = "i_28_min") + @ApiModelProperty(value="28次谐波电流含有率-最小值") + private Double i28Min; + + /** + * 28次谐波电流含有率-平均值 + */ + @TableField(value = "i_28_avg") + @ApiModelProperty(value="28次谐波电流含有率-平均值") + private Double i28Avg; + + /** + * 28次谐波电流含有率-cp95值 + */ + @TableField(value = "i_28_cp95") + @ApiModelProperty(value="28次谐波电流含有率-cp95值") + private Double i28Cp95; + + /** + * 29次谐波电流含有率-最大值 + */ + @TableField(value = "i_29_max") + @ApiModelProperty(value="29次谐波电流含有率-最大值") + private Double i29Max; + + /** + * 29次谐波电流含有率-最小值 + */ + @TableField(value = "i_29_min") + @ApiModelProperty(value="29次谐波电流含有率-最小值") + private Double i29Min; + + /** + * 29次谐波电流含有率-平均值 + */ + @TableField(value = "i_29_avg") + @ApiModelProperty(value="29次谐波电流含有率-平均值") + private Double i29Avg; + + /** + * 29次谐波电流含有率-cp95值 + */ + @TableField(value = "i_29_cp95") + @ApiModelProperty(value="29次谐波电流含有率-cp95值") + private Double i29Cp95; + + /** + * 30次谐波电流含有率-最大值 + */ + @TableField(value = "i_30_max") + @ApiModelProperty(value="30次谐波电流含有率-最大值") + private Double i30Max; + + /** + * 30次谐波电流含有率-最小值 + */ + @TableField(value = "i_30_min") + @ApiModelProperty(value="30次谐波电流含有率-最小值") + private Double i30Min; + + /** + * 30次谐波电流含有率-平均值 + */ + @TableField(value = "i_30_avg") + @ApiModelProperty(value="30次谐波电流含有率-平均值") + private Double i30Avg; + + /** + * 30次谐波电流含有率-cp95值 + */ + @TableField(value = "i_30_cp95") + @ApiModelProperty(value="30次谐波电流含有率-cp95值") + private Double i30Cp95; + + /** + * 31次谐波电流含有率-最大值 + */ + @TableField(value = "i_31_max") + @ApiModelProperty(value="31次谐波电流含有率-最大值") + private Double i31Max; + + /** + * 31次谐波电流含有率-最小值 + */ + @TableField(value = "i_31_min") + @ApiModelProperty(value="31次谐波电流含有率-最小值") + private Double i31Min; + + /** + * 31次谐波电流含有率-平均值 + */ + @TableField(value = "i_31_avg") + @ApiModelProperty(value="31次谐波电流含有率-平均值") + private Double i31Avg; + + /** + * 31次谐波电流含有率-cp95值 + */ + @TableField(value = "i_31_cp95") + @ApiModelProperty(value="31次谐波电流含有率-cp95值") + private Double i31Cp95; + + /** + * 32次谐波电流含有率-最大值 + */ + @TableField(value = "i_32_max") + @ApiModelProperty(value="32次谐波电流含有率-最大值") + private Double i32Max; + + /** + * 32次谐波电流含有率-最小值 + */ + @TableField(value = "i_32_min") + @ApiModelProperty(value="32次谐波电流含有率-最小值") + private Double i32Min; + + /** + * 32次谐波电流含有率-平均值 + */ + @TableField(value = "i_32_avg") + @ApiModelProperty(value="32次谐波电流含有率-平均值") + private Double i32Avg; + + /** + * 32次谐波电流含有率-cp95值 + */ + @TableField(value = "i_32_cp95") + @ApiModelProperty(value="32次谐波电流含有率-cp95值") + private Double i32Cp95; + + /** + * 33次谐波电流含有率-最大值 + */ + @TableField(value = "i_33_max") + @ApiModelProperty(value="33次谐波电流含有率-最大值") + private Double i33Max; + + /** + * 33次谐波电流含有率-最小值 + */ + @TableField(value = "i_33_min") + @ApiModelProperty(value="33次谐波电流含有率-最小值") + private Double i33Min; + + /** + * 33次谐波电流含有率-平均值 + */ + @TableField(value = "i_33_avg") + @ApiModelProperty(value="33次谐波电流含有率-平均值") + private Double i33Avg; + + /** + * 33次谐波电流含有率-cp95值 + */ + @TableField(value = "i_33_cp95") + @ApiModelProperty(value="33次谐波电流含有率-cp95值") + private Double i33Cp95; + + /** + * 34次谐波电流含有率-最大值 + */ + @TableField(value = "i_34_max") + @ApiModelProperty(value="34次谐波电流含有率-最大值") + private Double i34Max; + + /** + * 34次谐波电流含有率-最小值 + */ + @TableField(value = "i_34_min") + @ApiModelProperty(value="34次谐波电流含有率-最小值") + private Double i34Min; + + /** + * 34次谐波电流含有率-平均值 + */ + @TableField(value = "i_34_avg") + @ApiModelProperty(value="34次谐波电流含有率-平均值") + private Double i34Avg; + + /** + * 34次谐波电流含有率-cp95值 + */ + @TableField(value = "i_34_cp95") + @ApiModelProperty(value="34次谐波电流含有率-cp95值") + private Double i34Cp95; + + /** + * 35次谐波电流含有率-最大值 + */ + @TableField(value = "i_35_max") + @ApiModelProperty(value="35次谐波电流含有率-最大值") + private Double i35Max; + + /** + * 35次谐波电流含有率-最小值 + */ + @TableField(value = "i_35_min") + @ApiModelProperty(value="35次谐波电流含有率-最小值") + private Double i35Min; + + /** + * 35次谐波电流含有率-平均值 + */ + @TableField(value = "i_35_avg") + @ApiModelProperty(value="35次谐波电流含有率-平均值") + private Double i35Avg; + + /** + * 35次谐波电流含有率-cp95值 + */ + @TableField(value = "i_35_cp95") + @ApiModelProperty(value="35次谐波电流含有率-cp95值") + private Double i35Cp95; + + /** + * 36次谐波电流含有率-最大值 + */ + @TableField(value = "i_36_max") + @ApiModelProperty(value="36次谐波电流含有率-最大值") + private Double i36Max; + + /** + * 36次谐波电流含有率-最小值 + */ + @TableField(value = "i_36_min") + @ApiModelProperty(value="36次谐波电流含有率-最小值") + private Double i36Min; + + /** + * 36次谐波电流含有率-平均值 + */ + @TableField(value = "i_36_avg") + @ApiModelProperty(value="36次谐波电流含有率-平均值") + private Double i36Avg; + + /** + * 36次谐波电流含有率-cp95值 + */ + @TableField(value = "i_36_cp95") + @ApiModelProperty(value="36次谐波电流含有率-cp95值") + private Double i36Cp95; + + /** + * 37次谐波电流含有率-最大值 + */ + @TableField(value = "i_37_max") + @ApiModelProperty(value="37次谐波电流含有率-最大值") + private Double i37Max; + + /** + * 37次谐波电流含有率-最小值 + */ + @TableField(value = "i_37_min") + @ApiModelProperty(value="37次谐波电流含有率-最小值") + private Double i37Min; + + /** + * 37次谐波电流含有率-平均值 + */ + @TableField(value = "i_37_avg") + @ApiModelProperty(value="37次谐波电流含有率-平均值") + private Double i37Avg; + + /** + * 37次谐波电流含有率-cp95值 + */ + @TableField(value = "i_37_cp95") + @ApiModelProperty(value="37次谐波电流含有率-cp95值") + private Double i37Cp95; + + /** + * 38次谐波电流含有率-最大值 + */ + @TableField(value = "i_38_max") + @ApiModelProperty(value="38次谐波电流含有率-最大值") + private Double i38Max; + + /** + * 38次谐波电流含有率-最小值 + */ + @TableField(value = "i_38_min") + @ApiModelProperty(value="38次谐波电流含有率-最小值") + private Double i38Min; + + /** + * 38次谐波电流含有率-平均值 + */ + @TableField(value = "i_38_avg") + @ApiModelProperty(value="38次谐波电流含有率-平均值") + private Double i38Avg; + + /** + * 38次谐波电流含有率-cp95值 + */ + @TableField(value = "i_38_cp95") + @ApiModelProperty(value="38次谐波电流含有率-cp95值") + private Double i38Cp95; + + /** + * 39次谐波电流含有率-最大值 + */ + @TableField(value = "i_39_max") + @ApiModelProperty(value="39次谐波电流含有率-最大值") + private Double i39Max; + + /** + * 39次谐波电流含有率-最小值 + */ + @TableField(value = "i_39_min") + @ApiModelProperty(value="39次谐波电流含有率-最小值") + private Double i39Min; + + /** + * 39次谐波电流含有率-平均值 + */ + @TableField(value = "i_39_avg") + @ApiModelProperty(value="39次谐波电流含有率-平均值") + private Double i39Avg; + + /** + * 39次谐波电流含有率-cp95值 + */ + @TableField(value = "i_39_cp95") + @ApiModelProperty(value="39次谐波电流含有率-cp95值") + private Double i39Cp95; + + /** + * 40次谐波电流含有率-最大值 + */ + @TableField(value = "i_40_max") + @ApiModelProperty(value="40次谐波电流含有率-最大值") + private Double i40Max; + + /** + * 40次谐波电流含有率-最小值 + */ + @TableField(value = "i_40_min") + @ApiModelProperty(value="40次谐波电流含有率-最小值") + private Double i40Min; + + /** + * 40次谐波电流含有率-平均值 + */ + @TableField(value = "i_40_avg") + @ApiModelProperty(value="40次谐波电流含有率-平均值") + private Double i40Avg; + + /** + * 40次谐波电流含有率-cp95值 + */ + @TableField(value = "i_40_cp95") + @ApiModelProperty(value="40次谐波电流含有率-cp95值") + private Double i40Cp95; + + /** + * 41次谐波电流含有率-最大值 + */ + @TableField(value = "i_41_max") + @ApiModelProperty(value="41次谐波电流含有率-最大值") + private Double i41Max; + + /** + * 41次谐波电流含有率-最小值 + */ + @TableField(value = "i_41_min") + @ApiModelProperty(value="41次谐波电流含有率-最小值") + private Double i41Min; + + /** + * 41次谐波电流含有率-平均值 + */ + @TableField(value = "i_41_avg") + @ApiModelProperty(value="41次谐波电流含有率-平均值") + private Double i41Avg; + + /** + * 41次谐波电流含有率-cp95值 + */ + @TableField(value = "i_41_cp95") + @ApiModelProperty(value="41次谐波电流含有率-cp95值") + private Double i41Cp95; + + /** + * 42次谐波电流含有率-最大值 + */ + @TableField(value = "i_42_max") + @ApiModelProperty(value="42次谐波电流含有率-最大值") + private Double i42Max; + + /** + * 42次谐波电流含有率-最小值 + */ + @TableField(value = "i_42_min") + @ApiModelProperty(value="42次谐波电流含有率-最小值") + private Double i42Min; + + /** + * 42次谐波电流含有率-平均值 + */ + @TableField(value = "i_42_avg") + @ApiModelProperty(value="42次谐波电流含有率-平均值") + private Double i42Avg; + + /** + * 42次谐波电流含有率-cp95值 + */ + @TableField(value = "i_42_cp95") + @ApiModelProperty(value="42次谐波电流含有率-cp95值") + private Double i42Cp95; + + /** + * 43次谐波电流含有率-最大值 + */ + @TableField(value = "i_43_max") + @ApiModelProperty(value="43次谐波电流含有率-最大值") + private Double i43Max; + + /** + * 43次谐波电流含有率-最小值 + */ + @TableField(value = "i_43_min") + @ApiModelProperty(value="43次谐波电流含有率-最小值") + private Double i43Min; + + /** + * 43次谐波电流含有率-平均值 + */ + @TableField(value = "i_43_avg") + @ApiModelProperty(value="43次谐波电流含有率-平均值") + private Double i43Avg; + + /** + * 43次谐波电流含有率-cp95值 + */ + @TableField(value = "i_43_cp95") + @ApiModelProperty(value="43次谐波电流含有率-cp95值") + private Double i43Cp95; + + /** + * 44次谐波电流含有率-最大值 + */ + @TableField(value = "i_44_max") + @ApiModelProperty(value="44次谐波电流含有率-最大值") + private Double i44Max; + + /** + * 44次谐波电流含有率-最小值 + */ + @TableField(value = "i_44_min") + @ApiModelProperty(value="44次谐波电流含有率-最小值") + private Double i44Min; + + /** + * 44次谐波电流含有率-平均值 + */ + @TableField(value = "i_44_avg") + @ApiModelProperty(value="44次谐波电流含有率-平均值") + private Double i44Avg; + + /** + * 44次谐波电流含有率-cp95值 + */ + @TableField(value = "i_44_cp95") + @ApiModelProperty(value="44次谐波电流含有率-cp95值") + private Double i44Cp95; + + /** + * 45次谐波电流含有率-最大值 + */ + @TableField(value = "i_45_max") + @ApiModelProperty(value="45次谐波电流含有率-最大值") + private Double i45Max; + + /** + * 45次谐波电流含有率-最小值 + */ + @TableField(value = "i_45_min") + @ApiModelProperty(value="45次谐波电流含有率-最小值") + private Double i45Min; + + /** + * 45次谐波电流含有率-平均值 + */ + @TableField(value = "i_45_avg") + @ApiModelProperty(value="45次谐波电流含有率-平均值") + private Double i45Avg; + + /** + * 45次谐波电流含有率-cp95值 + */ + @TableField(value = "i_45_cp95") + @ApiModelProperty(value="45次谐波电流含有率-cp95值") + private Double i45Cp95; + + /** + * 46次谐波电流含有率-最大值 + */ + @TableField(value = "i_46_max") + @ApiModelProperty(value="46次谐波电流含有率-最大值") + private Double i46Max; + + /** + * 46次谐波电流含有率-最小值 + */ + @TableField(value = "i_46_min") + @ApiModelProperty(value="46次谐波电流含有率-最小值") + private Double i46Min; + + /** + * 46次谐波电流含有率-平均值 + */ + @TableField(value = "i_46_avg") + @ApiModelProperty(value="46次谐波电流含有率-平均值") + private Double i46Avg; + + /** + * 46次谐波电流含有率-cp95值 + */ + @TableField(value = "i_46_cp95") + @ApiModelProperty(value="46次谐波电流含有率-cp95值") + private Double i46Cp95; + + /** + * 47次谐波电流含有率-最大值 + */ + @TableField(value = "i_47_max") + @ApiModelProperty(value="47次谐波电流含有率-最大值") + private Double i47Max; + + /** + * 47次谐波电流含有率-最小值 + */ + @TableField(value = "i_47_min") + @ApiModelProperty(value="47次谐波电流含有率-最小值") + private Double i47Min; + + /** + * 47次谐波电流含有率-平均值 + */ + @TableField(value = "i_47_avg") + @ApiModelProperty(value="47次谐波电流含有率-平均值") + private Double i47Avg; + + /** + * 47次谐波电流含有率-cp95值 + */ + @TableField(value = "i_47_cp95") + @ApiModelProperty(value="47次谐波电流含有率-cp95值") + private Double i47Cp95; + + /** + * 48次谐波电流含有率-最大值 + */ + @TableField(value = "i_48_max") + @ApiModelProperty(value="48次谐波电流含有率-最大值") + private Double i48Max; + + /** + * 48次谐波电流含有率-最小值 + */ + @TableField(value = "i_48_min") + @ApiModelProperty(value="48次谐波电流含有率-最小值") + private Double i48Min; + + /** + * 48次谐波电流含有率-平均值 + */ + @TableField(value = "i_48_avg") + @ApiModelProperty(value="48次谐波电流含有率-平均值") + private Double i48Avg; + + /** + * 48次谐波电流含有率-cp95值 + */ + @TableField(value = "i_48_cp95") + @ApiModelProperty(value="48次谐波电流含有率-cp95值") + private Double i48Cp95; + + /** + * 49次谐波电流含有率-最大值 + */ + @TableField(value = "i_49_max") + @ApiModelProperty(value="49次谐波电流含有率-最大值") + private Double i49Max; + + /** + * 49次谐波电流含有率-最小值 + */ + @TableField(value = "i_49_min") + @ApiModelProperty(value="49次谐波电流含有率-最小值") + private Double i49Min; + + /** + * 49次谐波电流含有率-平均值 + */ + @TableField(value = "i_49_avg") + @ApiModelProperty(value="49次谐波电流含有率-平均值") + private Double i49Avg; + + /** + * 49次谐波电流含有率-cp95值 + */ + @TableField(value = "i_49_cp95") + @ApiModelProperty(value="49次谐波电流含有率-cp95值") + private Double i49Cp95; + + /** + * 50次谐波电流含有率-最大值 + */ + @TableField(value = "i_50_max") + @ApiModelProperty(value="50次谐波电流含有率-最大值") + private Double i50Max; + + /** + * 50次谐波电流含有率-最小值 + */ + @TableField(value = "i_50_min") + @ApiModelProperty(value="50次谐波电流含有率-最小值") + private Double i50Min; + + /** + * 50次谐波电流含有率-平均值 + */ + @TableField(value = "i_50_avg") + @ApiModelProperty(value="50次谐波电流含有率-平均值") + private Double i50Avg; + + /** + * 50次谐波电流含有率-cp95值 + */ + @TableField(value = "i_50_cp95") + @ApiModelProperty(value="50次谐波电流含有率-cp95值") + private Double i50Cp95; +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpHarmonicPReportDPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpHarmonicPReportDPO.java new file mode 100644 index 000000000..38094ef11 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpHarmonicPReportDPO.java @@ -0,0 +1,5198 @@ +package com.njcn.prepare.harmonic.pojo.po.line; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import com.github.jeffreyning.mybatisplus.anno.MppMultiId; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Date; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/25 10:33【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@ApiModel(value = "com-njcn-prepare-harmonic-pojo-po-line-RMpHarmonicPReportDPO") +@TableName(value = "r_mp_harmonic_p_report_d") +public class RMpHarmonicPReportDPO { + + + /** + * 监测点ID + */ + @MppMultiId(value = "measurement_point_id") + @ApiModelProperty(value = "监测点ID") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @MppMultiId(value = "data_date") + @ApiModelProperty(value = "生成数据的时间,每日统计一次") + private Date dataDate; + + /** + * 相别:"A" "B" "C" "ABC" "T" 配网部分相别的数据采用T标志存储 + */ + @MppMultiId(value = "phase") + @ApiModelProperty(value = "相别:'A' 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储") + private String phase; + + /** + * 基波无功功率-最大值 + */ + @TableField(value = "FUNDAMENTAL_RATEOFWORK_MAX") + @ApiModelProperty(value = "基波无功功率-最大值") + private Double fundamentalRateofworkMax; + + /** + * 基波无功功率-最小值 + */ + @TableField(value = "FUNDAMENTAL_RATEOFWORK_Min") + @ApiModelProperty(value = "基波无功功率-最小值") + private Double fundamentalRateofworkMin; + + /** + * 基波无功功率-平均值 + */ + @TableField(value = "FUNDAMENTAL_RATEOFWORK_avg") + @ApiModelProperty(value = "基波无功功率-平均值") + private Double fundamentalRateofworkAvg; + + /** + * 基波无功功率-95值 + */ + @TableField(value = "FUNDAMENTAL_RATEOFWORK_95") + @ApiModelProperty(value = "基波无功功率-95值") + private Double fundamentalRateofwork95; + + /** + * 基波有功功率-最大值 + */ + @TableField(value = "FUNDAMENTAL_ACTIVE_POWER_MAX") + @ApiModelProperty(value = "基波有功功率-最大值") + private Double fundamentalActivePowerMax; + + /** + * 基波有功功率-最小值 + */ + @TableField(value = "FUNDAMENTAL_ACTIVE_POWER_Min") + @ApiModelProperty(value = "基波有功功率-最小值") + private Double fundamentalActivePowerMin; + + /** + * 基波有功功率-平均值 + */ + @TableField(value = "FUNDAMENTAL_ACTIVE_POWER_avg") + @ApiModelProperty(value = "基波有功功率-平均值") + private Double fundamentalActivePowerAvg; + + /** + * 基波有功功率-95值 + */ + @TableField(value = "FUNDAMENTAL_ACTIVE_POWER_95") + @ApiModelProperty(value = "基波有功功率-95值") + private Double fundamentalActivePower95; + + /** + * 2次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_2_MAX") + @ApiModelProperty(value = "2次谐波有功功率-最大值") + private Double harmonicActivePower2Max; + + /** + * 2次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_2_MIN") + @ApiModelProperty(value = "2次谐波有功功率-最小值") + private Double harmonicActivePower2Min; + + /** + * 2次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_2_AVG") + @ApiModelProperty(value = "2次谐波有功功率-平均值") + private Double harmonicActivePower2Avg; + + /** + * 2次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_2_95") + @ApiModelProperty(value = "2次谐波有功功率-95值") + private Double harmonicActivePower295; + + /** + * 3次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_3_MAX") + @ApiModelProperty(value = "3次谐波有功功率-最大值") + private Double harmonicActivePower3Max; + + /** + * 3次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_3_MIN") + @ApiModelProperty(value = "3次谐波有功功率-最小值") + private Double harmonicActivePower3Min; + + /** + * 3次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_3_AVG") + @ApiModelProperty(value = "3次谐波有功功率-平均值") + private Double harmonicActivePower3Avg; + + /** + * 3次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_3_95") + @ApiModelProperty(value = "3次谐波有功功率-95值") + private Double harmonicActivePower395; + + /** + * 4次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_4_MAX") + @ApiModelProperty(value = "4次谐波有功功率-最大值") + private Double harmonicActivePower4Max; + + /** + * 4次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_4_MIN") + @ApiModelProperty(value = "4次谐波有功功率-最小值") + private Double harmonicActivePower4Min; + + /** + * 4次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_4_AVG") + @ApiModelProperty(value = "4次谐波有功功率-平均值") + private Double harmonicActivePower4Avg; + + /** + * 4次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_4_95") + @ApiModelProperty(value = "4次谐波有功功率-95值") + private Double harmonicActivePower495; + + /** + * 5次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_5_MAX") + @ApiModelProperty(value = "5次谐波有功功率-最大值") + private Double harmonicActivePower5Max; + + /** + * 5次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_5_MIN") + @ApiModelProperty(value = "5次谐波有功功率-最小值") + private Double harmonicActivePower5Min; + + /** + * 5次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_5_AVG") + @ApiModelProperty(value = "5次谐波有功功率-平均值") + private Double harmonicActivePower5Avg; + + /** + * 5次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_5_95") + @ApiModelProperty(value = "5次谐波有功功率-95值") + private Double harmonicActivePower595; + + /** + * 6次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_6_MAX") + @ApiModelProperty(value = "6次谐波有功功率-最大值") + private Double harmonicActivePower6Max; + + /** + * 6次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_6_MIN") + @ApiModelProperty(value = "6次谐波有功功率-最小值") + private Double harmonicActivePower6Min; + + /** + * 6次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_6_AVG") + @ApiModelProperty(value = "6次谐波有功功率-平均值") + private Double harmonicActivePower6Avg; + + /** + * 6次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_6_95") + @ApiModelProperty(value = "6次谐波有功功率-95值") + private Double harmonicActivePower695; + + /** + * 7次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_7_MAX") + @ApiModelProperty(value = "7次谐波有功功率-最大值") + private Double harmonicActivePower7Max; + + /** + * 7次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_7_MIN") + @ApiModelProperty(value = "7次谐波有功功率-最小值") + private Double harmonicActivePower7Min; + + /** + * 7次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_7_AVG") + @ApiModelProperty(value = "7次谐波有功功率-平均值") + private Double harmonicActivePower7Avg; + + /** + * 7次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_7_95") + @ApiModelProperty(value = "7次谐波有功功率-95值") + private Double harmonicActivePower795; + + /** + * 8次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_8_MAX") + @ApiModelProperty(value = "8次谐波有功功率-最大值") + private Double harmonicActivePower8Max; + + /** + * 8次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_8_MIN") + @ApiModelProperty(value = "8次谐波有功功率-最小值") + private Double harmonicActivePower8Min; + + /** + * 8次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_8_AVG") + @ApiModelProperty(value = "8次谐波有功功率-平均值") + private Double harmonicActivePower8Avg; + + /** + * 8次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_8_95") + @ApiModelProperty(value = "8次谐波有功功率-95值") + private Double harmonicActivePower895; + + /** + * 9次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_9_MAX") + @ApiModelProperty(value = "9次谐波有功功率-最大值") + private Double harmonicActivePower9Max; + + /** + * 9次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_9_MIN") + @ApiModelProperty(value = "9次谐波有功功率-最小值") + private Double harmonicActivePower9Min; + + /** + * 9次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_9_AVG") + @ApiModelProperty(value = "9次谐波有功功率-平均值") + private Double harmonicActivePower9Avg; + + /** + * 9次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_9_95") + @ApiModelProperty(value = "9次谐波有功功率-95值") + private Double harmonicActivePower995; + + /** + * 10次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_10_MAX") + @ApiModelProperty(value = "10次谐波有功功率-最大值") + private Double harmonicActivePower10Max; + + /** + * 10次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_10_MIN") + @ApiModelProperty(value = "10次谐波有功功率-最小值") + private Double harmonicActivePower10Min; + + /** + * 10次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_10_AVG") + @ApiModelProperty(value = "10次谐波有功功率-平均值") + private Double harmonicActivePower10Avg; + + /** + * 10次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_10_95") + @ApiModelProperty(value = "10次谐波有功功率-95值") + private Double harmonicActivePower1095; + + /** + * 11次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_11_MAX") + @ApiModelProperty(value = "11次谐波有功功率-最大值") + private Double harmonicActivePower11Max; + + /** + * 11次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_11_MIN") + @ApiModelProperty(value = "11次谐波有功功率-最小值") + private Double harmonicActivePower11Min; + + /** + * 11次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_11_AVG") + @ApiModelProperty(value = "11次谐波有功功率-平均值") + private Double harmonicActivePower11Avg; + + /** + * 11次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_11_95") + @ApiModelProperty(value = "11次谐波有功功率-95值") + private Double harmonicActivePower1195; + + /** + * 12次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_12_MAX") + @ApiModelProperty(value = "12次谐波有功功率-最大值") + private Double harmonicActivePower12Max; + + /** + * 12次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_12_MIN") + @ApiModelProperty(value = "12次谐波有功功率-最小值") + private Double harmonicActivePower12Min; + + /** + * 12次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_12_AVG") + @ApiModelProperty(value = "12次谐波有功功率-平均值") + private Double harmonicActivePower12Avg; + + /** + * 12次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_12_95") + @ApiModelProperty(value = "12次谐波有功功率-95值") + private Double harmonicActivePower1295; + + /** + * 13次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_13_MAX") + @ApiModelProperty(value = "13次谐波有功功率-最大值") + private Double harmonicActivePower13Max; + + /** + * 13次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_13_MIN") + @ApiModelProperty(value = "13次谐波有功功率-最小值") + private Double harmonicActivePower13Min; + + /** + * 13次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_13_AVG") + @ApiModelProperty(value = "13次谐波有功功率-平均值") + private Double harmonicActivePower13Avg; + + /** + * 13次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_13_95") + @ApiModelProperty(value = "13次谐波有功功率-95值") + private Double harmonicActivePower1395; + + /** + * 14次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_14_MAX") + @ApiModelProperty(value = "14次谐波有功功率-最大值") + private Double harmonicActivePower14Max; + + /** + * 14次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_14_MIN") + @ApiModelProperty(value = "14次谐波有功功率-最小值") + private Double harmonicActivePower14Min; + + /** + * 14次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_14_AVG") + @ApiModelProperty(value = "14次谐波有功功率-平均值") + private Double harmonicActivePower14Avg; + + /** + * 14次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_14_95") + @ApiModelProperty(value = "14次谐波有功功率-95值") + private Double harmonicActivePower1495; + + /** + * 15次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_15_MAX") + @ApiModelProperty(value = "15次谐波有功功率-最大值") + private Double harmonicActivePower15Max; + + /** + * 15次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_15_MIN") + @ApiModelProperty(value = "15次谐波有功功率-最小值") + private Double harmonicActivePower15Min; + + /** + * 15次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_15_AVG") + @ApiModelProperty(value = "15次谐波有功功率-平均值") + private Double harmonicActivePower15Avg; + + /** + * 15次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_15_95") + @ApiModelProperty(value = "15次谐波有功功率-95值") + private Double harmonicActivePower1595; + + /** + * 16次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_16_MAX") + @ApiModelProperty(value = "16次谐波有功功率-最大值") + private Double harmonicActivePower16Max; + + /** + * 16次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_16_MIN") + @ApiModelProperty(value = "16次谐波有功功率-最小值") + private Double harmonicActivePower16Min; + + /** + * 16次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_16_AVG") + @ApiModelProperty(value = "16次谐波有功功率-平均值") + private Double harmonicActivePower16Avg; + + /** + * 16次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_16_95") + @ApiModelProperty(value = "16次谐波有功功率-95值") + private Double harmonicActivePower1695; + + /** + * 17次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_17_MAX") + @ApiModelProperty(value = "17次谐波有功功率-最大值") + private Double harmonicActivePower17Max; + + /** + * 17次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_17_MIN") + @ApiModelProperty(value = "17次谐波有功功率-最小值") + private Double harmonicActivePower17Min; + + /** + * 17次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_17_AVG") + @ApiModelProperty(value = "17次谐波有功功率-平均值") + private Double harmonicActivePower17Avg; + + /** + * 17次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_17_95") + @ApiModelProperty(value = "17次谐波有功功率-95值") + private Double harmonicActivePower1795; + + /** + * 18次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_18_MAX") + @ApiModelProperty(value = "18次谐波有功功率-最大值") + private Double harmonicActivePower18Max; + + /** + * 18次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_18_MIN") + @ApiModelProperty(value = "18次谐波有功功率-最小值") + private Double harmonicActivePower18Min; + + /** + * 18次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_18_AVG") + @ApiModelProperty(value = "18次谐波有功功率-平均值") + private Double harmonicActivePower18Avg; + + /** + * 18次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_18_95") + @ApiModelProperty(value = "18次谐波有功功率-95值") + private Double harmonicActivePower1895; + + /** + * 19次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_19_MAX") + @ApiModelProperty(value = "19次谐波有功功率-最大值") + private Double harmonicActivePower19Max; + + /** + * 19次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_19_MIN") + @ApiModelProperty(value = "19次谐波有功功率-最小值") + private Double harmonicActivePower19Min; + + /** + * 19次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_19_AVG") + @ApiModelProperty(value = "19次谐波有功功率-平均值") + private Double harmonicActivePower19Avg; + + /** + * 19次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_19_95") + @ApiModelProperty(value = "19次谐波有功功率-95值") + private Double harmonicActivePower1995; + + /** + * 20次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_20_MAX") + @ApiModelProperty(value = "20次谐波有功功率-最大值") + private Double harmonicActivePower20Max; + + /** + * 20次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_20_MIN") + @ApiModelProperty(value = "20次谐波有功功率-最小值") + private Double harmonicActivePower20Min; + + /** + * 20次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_20_AVG") + @ApiModelProperty(value = "20次谐波有功功率-平均值") + private Double harmonicActivePower20Avg; + + /** + * 20次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_20_95") + @ApiModelProperty(value = "20次谐波有功功率-95值") + private Double harmonicActivePower2095; + + /** + * 21次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_21_MAX") + @ApiModelProperty(value = "21次谐波有功功率-最大值") + private Double harmonicActivePower21Max; + + /** + * 21次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_21_MIN") + @ApiModelProperty(value = "21次谐波有功功率-最小值") + private Double harmonicActivePower21Min; + + /** + * 21次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_21_AVG") + @ApiModelProperty(value = "21次谐波有功功率-平均值") + private Double harmonicActivePower21Avg; + + /** + * 21次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_21_95") + @ApiModelProperty(value = "21次谐波有功功率-95值") + private Double harmonicActivePower2195; + + /** + * 22次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_22_MAX") + @ApiModelProperty(value = "22次谐波有功功率-最大值") + private Double harmonicActivePower22Max; + + /** + * 22次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_22_MIN") + @ApiModelProperty(value = "22次谐波有功功率-最小值") + private Double harmonicActivePower22Min; + + /** + * 22次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_22_AVG") + @ApiModelProperty(value = "22次谐波有功功率-平均值") + private Double harmonicActivePower22Avg; + + /** + * 22次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_22_95") + @ApiModelProperty(value = "22次谐波有功功率-95值") + private Double harmonicActivePower2295; + + /** + * 23次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_23_MAX") + @ApiModelProperty(value = "23次谐波有功功率-最大值") + private Double harmonicActivePower23Max; + + /** + * 23次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_23_MIN") + @ApiModelProperty(value = "23次谐波有功功率-最小值") + private Double harmonicActivePower23Min; + + /** + * 23次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_23_AVG") + @ApiModelProperty(value = "23次谐波有功功率-平均值") + private Double harmonicActivePower23Avg; + + /** + * 23次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_23_95") + @ApiModelProperty(value = "23次谐波有功功率-95值") + private Double harmonicActivePower2395; + + /** + * 24次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_24_MAX") + @ApiModelProperty(value = "24次谐波有功功率-最大值") + private Double harmonicActivePower24Max; + + /** + * 24次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_24_MIN") + @ApiModelProperty(value = "24次谐波有功功率-最小值") + private Double harmonicActivePower24Min; + + /** + * 24次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_24_AVG") + @ApiModelProperty(value = "24次谐波有功功率-平均值") + private Double harmonicActivePower24Avg; + + /** + * 24次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_24_95") + @ApiModelProperty(value = "24次谐波有功功率-95值") + private Double harmonicActivePower2495; + + /** + * 25次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_25_MAX") + @ApiModelProperty(value = "25次谐波有功功率-最大值") + private Double harmonicActivePower25Max; + + /** + * 25次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_25_MIN") + @ApiModelProperty(value = "25次谐波有功功率-最小值") + private Double harmonicActivePower25Min; + + /** + * 25次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_25_AVG") + @ApiModelProperty(value = "25次谐波有功功率-平均值") + private Double harmonicActivePower25Avg; + + /** + * 25次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_25_95") + @ApiModelProperty(value = "25次谐波有功功率-95值") + private Double harmonicActivePower2595; + + /** + * 26次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_26_MAX") + @ApiModelProperty(value = "26次谐波有功功率-最大值") + private Double harmonicActivePower26Max; + + /** + * 26次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_26_MIN") + @ApiModelProperty(value = "26次谐波有功功率-最小值") + private Double harmonicActivePower26Min; + + /** + * 26次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_26_AVG") + @ApiModelProperty(value = "26次谐波有功功率-平均值") + private Double harmonicActivePower26Avg; + + /** + * 26次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_26_95") + @ApiModelProperty(value = "26次谐波有功功率-95值") + private Double harmonicActivePower2695; + + /** + * 27次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_27_MAX") + @ApiModelProperty(value = "27次谐波有功功率-最大值") + private Double harmonicActivePower27Max; + + /** + * 27次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_27_MIN") + @ApiModelProperty(value = "27次谐波有功功率-最小值") + private Double harmonicActivePower27Min; + + /** + * 27次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_27_AVG") + @ApiModelProperty(value = "27次谐波有功功率-平均值") + private Double harmonicActivePower27Avg; + + /** + * 27次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_27_95") + @ApiModelProperty(value = "27次谐波有功功率-95值") + private Double harmonicActivePower2795; + + /** + * 28次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_28_MAX") + @ApiModelProperty(value = "28次谐波有功功率-最大值") + private Double harmonicActivePower28Max; + + /** + * 28次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_28_MIN") + @ApiModelProperty(value = "28次谐波有功功率-最小值") + private Double harmonicActivePower28Min; + + /** + * 28次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_28_AVG") + @ApiModelProperty(value = "28次谐波有功功率-平均值") + private Double harmonicActivePower28Avg; + + /** + * 28次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_28_95") + @ApiModelProperty(value = "28次谐波有功功率-95值") + private Double harmonicActivePower2895; + + /** + * 29次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_29_MAX") + @ApiModelProperty(value = "29次谐波有功功率-最大值") + private Double harmonicActivePower29Max; + + /** + * 29次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_29_MIN") + @ApiModelProperty(value = "29次谐波有功功率-最小值") + private Double harmonicActivePower29Min; + + /** + * 29次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_29_AVG") + @ApiModelProperty(value = "29次谐波有功功率-平均值") + private Double harmonicActivePower29Avg; + + /** + * 29次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_29_95") + @ApiModelProperty(value = "29次谐波有功功率-95值") + private Double harmonicActivePower2995; + + /** + * 30次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_30_MAX") + @ApiModelProperty(value = "30次谐波有功功率-最大值") + private Double harmonicActivePower30Max; + + /** + * 30次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_30_MIN") + @ApiModelProperty(value = "30次谐波有功功率-最小值") + private Double harmonicActivePower30Min; + + /** + * 30次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_30_AVG") + @ApiModelProperty(value = "30次谐波有功功率-平均值") + private Double harmonicActivePower30Avg; + + /** + * 30次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_30_95") + @ApiModelProperty(value = "30次谐波有功功率-95值") + private Double harmonicActivePower3095; + + /** + * 31次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_31_MAX") + @ApiModelProperty(value = "31次谐波有功功率-最大值") + private Double harmonicActivePower31Max; + + /** + * 31次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_31_MIN") + @ApiModelProperty(value = "31次谐波有功功率-最小值") + private Double harmonicActivePower31Min; + + /** + * 31次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_31_AVG") + @ApiModelProperty(value = "31次谐波有功功率-平均值") + private Double harmonicActivePower31Avg; + + /** + * 31次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_31_95") + @ApiModelProperty(value = "31次谐波有功功率-95值") + private Double harmonicActivePower3195; + + /** + * 32次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_32_MAX") + @ApiModelProperty(value = "32次谐波有功功率-最大值") + private Double harmonicActivePower32Max; + + /** + * 32次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_32_MIN") + @ApiModelProperty(value = "32次谐波有功功率-最小值") + private Double harmonicActivePower32Min; + + /** + * 32次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_32_AVG") + @ApiModelProperty(value = "32次谐波有功功率-平均值") + private Double harmonicActivePower32Avg; + + /** + * 32次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_32_95") + @ApiModelProperty(value = "32次谐波有功功率-95值") + private Double harmonicActivePower3295; + + /** + * 33次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_33_MAX") + @ApiModelProperty(value = "33次谐波有功功率-最大值") + private Double harmonicActivePower33Max; + + /** + * 33次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_33_MIN") + @ApiModelProperty(value = "33次谐波有功功率-最小值") + private Double harmonicActivePower33Min; + + /** + * 33次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_33_AVG") + @ApiModelProperty(value = "33次谐波有功功率-平均值") + private Double harmonicActivePower33Avg; + + /** + * 33次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_33_95") + @ApiModelProperty(value = "33次谐波有功功率-95值") + private Double harmonicActivePower3395; + + /** + * 34次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_34_MAX") + @ApiModelProperty(value = "34次谐波有功功率-最大值") + private Double harmonicActivePower34Max; + + /** + * 34次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_34_MIN") + @ApiModelProperty(value = "34次谐波有功功率-最小值") + private Double harmonicActivePower34Min; + + /** + * 34次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_34_AVG") + @ApiModelProperty(value = "34次谐波有功功率-平均值") + private Double harmonicActivePower34Avg; + + /** + * 34次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_34_95") + @ApiModelProperty(value = "34次谐波有功功率-95值") + private Double harmonicActivePower3495; + + /** + * 35次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_35_MAX") + @ApiModelProperty(value = "35次谐波有功功率-最大值") + private Double harmonicActivePower35Max; + + /** + * 35次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_35_MIN") + @ApiModelProperty(value = "35次谐波有功功率-最小值") + private Double harmonicActivePower35Min; + + /** + * 35次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_35_AVG") + @ApiModelProperty(value = "35次谐波有功功率-平均值") + private Double harmonicActivePower35Avg; + + /** + * 35次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_35_95") + @ApiModelProperty(value = "35次谐波有功功率-95值") + private Double harmonicActivePower3595; + + /** + * 36次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_36_MAX") + @ApiModelProperty(value = "36次谐波有功功率-最大值") + private Double harmonicActivePower36Max; + + /** + * 36次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_36_MIN") + @ApiModelProperty(value = "36次谐波有功功率-最小值") + private Double harmonicActivePower36Min; + + /** + * 36次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_36_AVG") + @ApiModelProperty(value = "36次谐波有功功率-平均值") + private Double harmonicActivePower36Avg; + + /** + * 36次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_36_95") + @ApiModelProperty(value = "36次谐波有功功率-95值") + private Double harmonicActivePower3695; + + /** + * 37次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_37_MAX") + @ApiModelProperty(value = "37次谐波有功功率-最大值") + private Double harmonicActivePower37Max; + + /** + * 37次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_37_MIN") + @ApiModelProperty(value = "37次谐波有功功率-最小值") + private Double harmonicActivePower37Min; + + /** + * 37次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_37_AVG") + @ApiModelProperty(value = "37次谐波有功功率-平均值") + private Double harmonicActivePower37Avg; + + /** + * 37次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_37_95") + @ApiModelProperty(value = "37次谐波有功功率-95值") + private Double harmonicActivePower3795; + + /** + * 38次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_38_MAX") + @ApiModelProperty(value = "38次谐波有功功率-最大值") + private Double harmonicActivePower38Max; + + /** + * 38次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_38_MIN") + @ApiModelProperty(value = "38次谐波有功功率-最小值") + private Double harmonicActivePower38Min; + + /** + * 38次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_38_AVG") + @ApiModelProperty(value = "38次谐波有功功率-平均值") + private Double harmonicActivePower38Avg; + + /** + * 38次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_38_95") + @ApiModelProperty(value = "38次谐波有功功率-95值") + private Double harmonicActivePower3895; + + /** + * 39次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_39_MAX") + @ApiModelProperty(value = "39次谐波有功功率-最大值") + private Double harmonicActivePower39Max; + + /** + * 39次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_39_MIN") + @ApiModelProperty(value = "39次谐波有功功率-最小值") + private Double harmonicActivePower39Min; + + /** + * 39次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_39_AVG") + @ApiModelProperty(value = "39次谐波有功功率-平均值") + private Double harmonicActivePower39Avg; + + /** + * 39次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_39_95") + @ApiModelProperty(value = "39次谐波有功功率-95值") + private Double harmonicActivePower3995; + + /** + * 40次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_40_MAX") + @ApiModelProperty(value = "40次谐波有功功率-最大值") + private Double harmonicActivePower40Max; + + /** + * 40次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_40_MIN") + @ApiModelProperty(value = "40次谐波有功功率-最小值") + private Double harmonicActivePower40Min; + + /** + * 40次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_40_AVG") + @ApiModelProperty(value = "40次谐波有功功率-平均值") + private Double harmonicActivePower40Avg; + + /** + * 40次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_40_95") + @ApiModelProperty(value = "40次谐波有功功率-95值") + private Double harmonicActivePower4095; + + /** + * 41次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_41_MAX") + @ApiModelProperty(value = "41次谐波有功功率-最大值") + private Double harmonicActivePower41Max; + + /** + * 41次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_41_MIN") + @ApiModelProperty(value = "41次谐波有功功率-最小值") + private Double harmonicActivePower41Min; + + /** + * 41次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_41_AVG") + @ApiModelProperty(value = "41次谐波有功功率-平均值") + private Double harmonicActivePower41Avg; + + /** + * 41次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_41_95") + @ApiModelProperty(value = "41次谐波有功功率-95值") + private Double harmonicActivePower4195; + + /** + * 42次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_42_MAX") + @ApiModelProperty(value = "42次谐波有功功率-最大值") + private Double harmonicActivePower42Max; + + /** + * 42次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_42_MIN") + @ApiModelProperty(value = "42次谐波有功功率-最小值") + private Double harmonicActivePower42Min; + + /** + * 42次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_42_AVG") + @ApiModelProperty(value = "42次谐波有功功率-平均值") + private Double harmonicActivePower42Avg; + + /** + * 42次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_42_95") + @ApiModelProperty(value = "42次谐波有功功率-95值") + private Double harmonicActivePower4295; + + /** + * 43次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_43_MAX") + @ApiModelProperty(value = "43次谐波有功功率-最大值") + private Double harmonicActivePower43Max; + + /** + * 43次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_43_MIN") + @ApiModelProperty(value = "43次谐波有功功率-最小值") + private Double harmonicActivePower43Min; + + /** + * 43次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_43_AVG") + @ApiModelProperty(value = "43次谐波有功功率-平均值") + private Double harmonicActivePower43Avg; + + /** + * 43次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_43_95") + @ApiModelProperty(value = "43次谐波有功功率-95值") + private Double harmonicActivePower4395; + + /** + * 44次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_44_MAX") + @ApiModelProperty(value = "44次谐波有功功率-最大值") + private Double harmonicActivePower44Max; + + /** + * 44次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_44_MIN") + @ApiModelProperty(value = "44次谐波有功功率-最小值") + private Double harmonicActivePower44Min; + + /** + * 44次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_44_AVG") + @ApiModelProperty(value = "44次谐波有功功率-平均值") + private Double harmonicActivePower44Avg; + + /** + * 44次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_44_95") + @ApiModelProperty(value = "44次谐波有功功率-95值") + private Double harmonicActivePower4495; + + /** + * 45次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_45_MAX") + @ApiModelProperty(value = "45次谐波有功功率-最大值") + private Double harmonicActivePower45Max; + + /** + * 45次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_45_MIN") + @ApiModelProperty(value = "45次谐波有功功率-最小值") + private Double harmonicActivePower45Min; + + /** + * 45次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_45_AVG") + @ApiModelProperty(value = "45次谐波有功功率-平均值") + private Double harmonicActivePower45Avg; + + /** + * 45次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_45_95") + @ApiModelProperty(value = "45次谐波有功功率-95值") + private Double harmonicActivePower4595; + + /** + * 46次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_46_MAX") + @ApiModelProperty(value = "46次谐波有功功率-最大值") + private Double harmonicActivePower46Max; + + /** + * 46次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_46_MIN") + @ApiModelProperty(value = "46次谐波有功功率-最小值") + private Double harmonicActivePower46Min; + + /** + * 46次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_46_AVG") + @ApiModelProperty(value = "46次谐波有功功率-平均值") + private Double harmonicActivePower46Avg; + + /** + * 46次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_46_95") + @ApiModelProperty(value = "46次谐波有功功率-95值") + private Double harmonicActivePower4695; + + /** + * 47次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_47_MAX") + @ApiModelProperty(value = "47次谐波有功功率-最大值") + private Double harmonicActivePower47Max; + + /** + * 47次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_47_MIN") + @ApiModelProperty(value = "47次谐波有功功率-最小值") + private Double harmonicActivePower47Min; + + /** + * 47次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_47_AVG") + @ApiModelProperty(value = "47次谐波有功功率-平均值") + private Double harmonicActivePower47Avg; + + /** + * 47次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_47_95") + @ApiModelProperty(value = "47次谐波有功功率-95值") + private Double harmonicActivePower4795; + + /** + * 48次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_48_MAX") + @ApiModelProperty(value = "48次谐波有功功率-最大值") + private Double harmonicActivePower48Max; + + /** + * 48次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_48_MIN") + @ApiModelProperty(value = "48次谐波有功功率-最小值") + private Double harmonicActivePower48Min; + + /** + * 48次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_48_AVG") + @ApiModelProperty(value = "48次谐波有功功率-平均值") + private Double harmonicActivePower48Avg; + + /** + * 48次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_48_95") + @ApiModelProperty(value = "48次谐波有功功率-95值") + private Double harmonicActivePower4895; + + /** + * 49次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_49_MAX") + @ApiModelProperty(value = "49次谐波有功功率-最大值") + private Double harmonicActivePower49Max; + + /** + * 49次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_49_MIN") + @ApiModelProperty(value = "49次谐波有功功率-最小值") + private Double harmonicActivePower49Min; + + /** + * 49次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_49_AVG") + @ApiModelProperty(value = "49次谐波有功功率-平均值") + private Double harmonicActivePower49Avg; + + /** + * 49次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_49_95") + @ApiModelProperty(value = "49次谐波有功功率-95值") + private Double harmonicActivePower4995; + + /** + * 50次谐波有功功率-最大值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_50_MAX") + @ApiModelProperty(value = "50次谐波有功功率-最大值") + private Double harmonicActivePower50Max; + + /** + * 50次谐波有功功率-最小值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_50_MIN") + @ApiModelProperty(value = "50次谐波有功功率-最小值") + private Double harmonicActivePower50Min; + + /** + * 50次谐波有功功率-平均值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_50_AVG") + @ApiModelProperty(value = "50次谐波有功功率-平均值") + private Double harmonicActivePower50Avg; + + /** + * 50次谐波有功功率-95值 + */ + @TableField(value = "HARMONIC_ACTIVE_POWER_50_95") + @ApiModelProperty(value = "50次谐波有功功率-95值") + private Double harmonicActivePower5095; + + /** + * 获取监测点ID + * + * @return measurement_point_id - 监测点ID + */ + public String getMeasurementPointId() { + return measurementPointId; + } + + /** + * 设置监测点ID + * + * @param measurementPointId 监测点ID + */ + public void setMeasurementPointId(String measurementPointId) { + this.measurementPointId = measurementPointId; + } + + /** + * 获取生成数据的时间,每日统计一次 + * + * @return data_date - 生成数据的时间,每日统计一次 + */ + public Date getDataDate() { + return dataDate; + } + + /** + * 设置生成数据的时间,每日统计一次 + * + * @param dataDate 生成数据的时间,每日统计一次 + */ + public void setDataDate(Date dataDate) { + this.dataDate = dataDate; + } + + /** + * 获取相别:"A" "B" "C" "ABC" "T" 配网部分相别的数据采用T标志存储 + * + * @return phase - 相别:"A" "B" "C" "ABC" "T" 配网部分相别的数据采用T标志存储 + */ + public String getPhase() { + return phase; + } + + /** + * 设置相别:"A" "B" "C" "ABC" "T" 配网部分相别的数据采用T标志存储 + * + * @param phase 相别:"A" "B" "C" "ABC" "T" 配网部分相别的数据采用T标志存储 + */ + public void setPhase(String phase) { + this.phase = phase; + } + + /** + * 获取基波无功功率-最大值 + * + * @return FUNDAMENTAL_RATEOFWORK_MAX - 基波无功功率-最大值 + */ + public Double getFundamentalRateofworkMax() { + return fundamentalRateofworkMax; + } + + /** + * 设置基波无功功率-最大值 + * + * @param fundamentalRateofworkMax 基波无功功率-最大值 + */ + public void setFundamentalRateofworkMax(Double fundamentalRateofworkMax) { + this.fundamentalRateofworkMax = fundamentalRateofworkMax; + } + + /** + * 获取基波无功功率-最小值 + * + * @return FUNDAMENTAL_RATEOFWORK_Min - 基波无功功率-最小值 + */ + public Double getFundamentalRateofworkMin() { + return fundamentalRateofworkMin; + } + + /** + * 设置基波无功功率-最小值 + * + * @param fundamentalRateofworkMin 基波无功功率-最小值 + */ + public void setFundamentalRateofworkMin(Double fundamentalRateofworkMin) { + this.fundamentalRateofworkMin = fundamentalRateofworkMin; + } + + /** + * 获取基波无功功率-平均值 + * + * @return FUNDAMENTAL_RATEOFWORK_avg - 基波无功功率-平均值 + */ + public Double getFundamentalRateofworkAvg() { + return fundamentalRateofworkAvg; + } + + /** + * 设置基波无功功率-平均值 + * + * @param fundamentalRateofworkAvg 基波无功功率-平均值 + */ + public void setFundamentalRateofworkAvg(Double fundamentalRateofworkAvg) { + this.fundamentalRateofworkAvg = fundamentalRateofworkAvg; + } + + /** + * 获取基波无功功率-95值 + * + * @return FUNDAMENTAL_RATEOFWORK_95 - 基波无功功率-95值 + */ + public Double getFundamentalRateofwork95() { + return fundamentalRateofwork95; + } + + /** + * 设置基波无功功率-95值 + * + * @param fundamentalRateofwork95 基波无功功率-95值 + */ + public void setFundamentalRateofwork95(Double fundamentalRateofwork95) { + this.fundamentalRateofwork95 = fundamentalRateofwork95; + } + + /** + * 获取基波有功功率-最大值 + * + * @return FUNDAMENTAL_ACTIVE_POWER_MAX - 基波有功功率-最大值 + */ + public Double getFundamentalActivePowerMax() { + return fundamentalActivePowerMax; + } + + /** + * 设置基波有功功率-最大值 + * + * @param fundamentalActivePowerMax 基波有功功率-最大值 + */ + public void setFundamentalActivePowerMax(Double fundamentalActivePowerMax) { + this.fundamentalActivePowerMax = fundamentalActivePowerMax; + } + + /** + * 获取基波有功功率-最小值 + * + * @return FUNDAMENTAL_ACTIVE_POWER_Min - 基波有功功率-最小值 + */ + public Double getFundamentalActivePowerMin() { + return fundamentalActivePowerMin; + } + + /** + * 设置基波有功功率-最小值 + * + * @param fundamentalActivePowerMin 基波有功功率-最小值 + */ + public void setFundamentalActivePowerMin(Double fundamentalActivePowerMin) { + this.fundamentalActivePowerMin = fundamentalActivePowerMin; + } + + /** + * 获取基波有功功率-平均值 + * + * @return FUNDAMENTAL_ACTIVE_POWER_avg - 基波有功功率-平均值 + */ + public Double getFundamentalActivePowerAvg() { + return fundamentalActivePowerAvg; + } + + /** + * 设置基波有功功率-平均值 + * + * @param fundamentalActivePowerAvg 基波有功功率-平均值 + */ + public void setFundamentalActivePowerAvg(Double fundamentalActivePowerAvg) { + this.fundamentalActivePowerAvg = fundamentalActivePowerAvg; + } + + /** + * 获取基波有功功率-95值 + * + * @return FUNDAMENTAL_ACTIVE_POWER_95 - 基波有功功率-95值 + */ + public Double getFundamentalActivePower95() { + return fundamentalActivePower95; + } + + /** + * 设置基波有功功率-95值 + * + * @param fundamentalActivePower95 基波有功功率-95值 + */ + public void setFundamentalActivePower95(Double fundamentalActivePower95) { + this.fundamentalActivePower95 = fundamentalActivePower95; + } + + /** + * 获取2次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_2_MAX - 2次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower2Max() { + return harmonicActivePower2Max; + } + + /** + * 设置2次谐波有功功率-最大值 + * + * @param harmonicActivePower2Max 2次谐波有功功率-最大值 + */ + public void setHarmonicActivePower2Max(Double harmonicActivePower2Max) { + this.harmonicActivePower2Max = harmonicActivePower2Max; + } + + /** + * 获取2次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_2_MIN - 2次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower2Min() { + return harmonicActivePower2Min; + } + + /** + * 设置2次谐波有功功率-最小值 + * + * @param harmonicActivePower2Min 2次谐波有功功率-最小值 + */ + public void setHarmonicActivePower2Min(Double harmonicActivePower2Min) { + this.harmonicActivePower2Min = harmonicActivePower2Min; + } + + /** + * 获取2次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_2_AVG - 2次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower2Avg() { + return harmonicActivePower2Avg; + } + + /** + * 设置2次谐波有功功率-平均值 + * + * @param harmonicActivePower2Avg 2次谐波有功功率-平均值 + */ + public void setHarmonicActivePower2Avg(Double harmonicActivePower2Avg) { + this.harmonicActivePower2Avg = harmonicActivePower2Avg; + } + + /** + * 获取2次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_2_95 - 2次谐波有功功率-95值 + */ + public Double getHarmonicActivePower295() { + return harmonicActivePower295; + } + + /** + * 设置2次谐波有功功率-95值 + * + * @param harmonicActivePower295 2次谐波有功功率-95值 + */ + public void setHarmonicActivePower295(Double harmonicActivePower295) { + this.harmonicActivePower295 = harmonicActivePower295; + } + + /** + * 获取3次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_3_MAX - 3次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower3Max() { + return harmonicActivePower3Max; + } + + /** + * 设置3次谐波有功功率-最大值 + * + * @param harmonicActivePower3Max 3次谐波有功功率-最大值 + */ + public void setHarmonicActivePower3Max(Double harmonicActivePower3Max) { + this.harmonicActivePower3Max = harmonicActivePower3Max; + } + + /** + * 获取3次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_3_MIN - 3次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower3Min() { + return harmonicActivePower3Min; + } + + /** + * 设置3次谐波有功功率-最小值 + * + * @param harmonicActivePower3Min 3次谐波有功功率-最小值 + */ + public void setHarmonicActivePower3Min(Double harmonicActivePower3Min) { + this.harmonicActivePower3Min = harmonicActivePower3Min; + } + + /** + * 获取3次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_3_AVG - 3次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower3Avg() { + return harmonicActivePower3Avg; + } + + /** + * 设置3次谐波有功功率-平均值 + * + * @param harmonicActivePower3Avg 3次谐波有功功率-平均值 + */ + public void setHarmonicActivePower3Avg(Double harmonicActivePower3Avg) { + this.harmonicActivePower3Avg = harmonicActivePower3Avg; + } + + /** + * 获取3次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_3_95 - 3次谐波有功功率-95值 + */ + public Double getHarmonicActivePower395() { + return harmonicActivePower395; + } + + /** + * 设置3次谐波有功功率-95值 + * + * @param harmonicActivePower395 3次谐波有功功率-95值 + */ + public void setHarmonicActivePower395(Double harmonicActivePower395) { + this.harmonicActivePower395 = harmonicActivePower395; + } + + /** + * 获取4次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_4_MAX - 4次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower4Max() { + return harmonicActivePower4Max; + } + + /** + * 设置4次谐波有功功率-最大值 + * + * @param harmonicActivePower4Max 4次谐波有功功率-最大值 + */ + public void setHarmonicActivePower4Max(Double harmonicActivePower4Max) { + this.harmonicActivePower4Max = harmonicActivePower4Max; + } + + /** + * 获取4次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_4_MIN - 4次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower4Min() { + return harmonicActivePower4Min; + } + + /** + * 设置4次谐波有功功率-最小值 + * + * @param harmonicActivePower4Min 4次谐波有功功率-最小值 + */ + public void setHarmonicActivePower4Min(Double harmonicActivePower4Min) { + this.harmonicActivePower4Min = harmonicActivePower4Min; + } + + /** + * 获取4次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_4_AVG - 4次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower4Avg() { + return harmonicActivePower4Avg; + } + + /** + * 设置4次谐波有功功率-平均值 + * + * @param harmonicActivePower4Avg 4次谐波有功功率-平均值 + */ + public void setHarmonicActivePower4Avg(Double harmonicActivePower4Avg) { + this.harmonicActivePower4Avg = harmonicActivePower4Avg; + } + + /** + * 获取4次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_4_95 - 4次谐波有功功率-95值 + */ + public Double getHarmonicActivePower495() { + return harmonicActivePower495; + } + + /** + * 设置4次谐波有功功率-95值 + * + * @param harmonicActivePower495 4次谐波有功功率-95值 + */ + public void setHarmonicActivePower495(Double harmonicActivePower495) { + this.harmonicActivePower495 = harmonicActivePower495; + } + + /** + * 获取5次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_5_MAX - 5次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower5Max() { + return harmonicActivePower5Max; + } + + /** + * 设置5次谐波有功功率-最大值 + * + * @param harmonicActivePower5Max 5次谐波有功功率-最大值 + */ + public void setHarmonicActivePower5Max(Double harmonicActivePower5Max) { + this.harmonicActivePower5Max = harmonicActivePower5Max; + } + + /** + * 获取5次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_5_MIN - 5次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower5Min() { + return harmonicActivePower5Min; + } + + /** + * 设置5次谐波有功功率-最小值 + * + * @param harmonicActivePower5Min 5次谐波有功功率-最小值 + */ + public void setHarmonicActivePower5Min(Double harmonicActivePower5Min) { + this.harmonicActivePower5Min = harmonicActivePower5Min; + } + + /** + * 获取5次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_5_AVG - 5次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower5Avg() { + return harmonicActivePower5Avg; + } + + /** + * 设置5次谐波有功功率-平均值 + * + * @param harmonicActivePower5Avg 5次谐波有功功率-平均值 + */ + public void setHarmonicActivePower5Avg(Double harmonicActivePower5Avg) { + this.harmonicActivePower5Avg = harmonicActivePower5Avg; + } + + /** + * 获取5次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_5_95 - 5次谐波有功功率-95值 + */ + public Double getHarmonicActivePower595() { + return harmonicActivePower595; + } + + /** + * 设置5次谐波有功功率-95值 + * + * @param harmonicActivePower595 5次谐波有功功率-95值 + */ + public void setHarmonicActivePower595(Double harmonicActivePower595) { + this.harmonicActivePower595 = harmonicActivePower595; + } + + /** + * 获取6次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_6_MAX - 6次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower6Max() { + return harmonicActivePower6Max; + } + + /** + * 设置6次谐波有功功率-最大值 + * + * @param harmonicActivePower6Max 6次谐波有功功率-最大值 + */ + public void setHarmonicActivePower6Max(Double harmonicActivePower6Max) { + this.harmonicActivePower6Max = harmonicActivePower6Max; + } + + /** + * 获取6次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_6_MIN - 6次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower6Min() { + return harmonicActivePower6Min; + } + + /** + * 设置6次谐波有功功率-最小值 + * + * @param harmonicActivePower6Min 6次谐波有功功率-最小值 + */ + public void setHarmonicActivePower6Min(Double harmonicActivePower6Min) { + this.harmonicActivePower6Min = harmonicActivePower6Min; + } + + /** + * 获取6次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_6_AVG - 6次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower6Avg() { + return harmonicActivePower6Avg; + } + + /** + * 设置6次谐波有功功率-平均值 + * + * @param harmonicActivePower6Avg 6次谐波有功功率-平均值 + */ + public void setHarmonicActivePower6Avg(Double harmonicActivePower6Avg) { + this.harmonicActivePower6Avg = harmonicActivePower6Avg; + } + + /** + * 获取6次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_6_95 - 6次谐波有功功率-95值 + */ + public Double getHarmonicActivePower695() { + return harmonicActivePower695; + } + + /** + * 设置6次谐波有功功率-95值 + * + * @param harmonicActivePower695 6次谐波有功功率-95值 + */ + public void setHarmonicActivePower695(Double harmonicActivePower695) { + this.harmonicActivePower695 = harmonicActivePower695; + } + + /** + * 获取7次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_7_MAX - 7次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower7Max() { + return harmonicActivePower7Max; + } + + /** + * 设置7次谐波有功功率-最大值 + * + * @param harmonicActivePower7Max 7次谐波有功功率-最大值 + */ + public void setHarmonicActivePower7Max(Double harmonicActivePower7Max) { + this.harmonicActivePower7Max = harmonicActivePower7Max; + } + + /** + * 获取7次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_7_MIN - 7次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower7Min() { + return harmonicActivePower7Min; + } + + /** + * 设置7次谐波有功功率-最小值 + * + * @param harmonicActivePower7Min 7次谐波有功功率-最小值 + */ + public void setHarmonicActivePower7Min(Double harmonicActivePower7Min) { + this.harmonicActivePower7Min = harmonicActivePower7Min; + } + + /** + * 获取7次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_7_AVG - 7次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower7Avg() { + return harmonicActivePower7Avg; + } + + /** + * 设置7次谐波有功功率-平均值 + * + * @param harmonicActivePower7Avg 7次谐波有功功率-平均值 + */ + public void setHarmonicActivePower7Avg(Double harmonicActivePower7Avg) { + this.harmonicActivePower7Avg = harmonicActivePower7Avg; + } + + /** + * 获取7次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_7_95 - 7次谐波有功功率-95值 + */ + public Double getHarmonicActivePower795() { + return harmonicActivePower795; + } + + /** + * 设置7次谐波有功功率-95值 + * + * @param harmonicActivePower795 7次谐波有功功率-95值 + */ + public void setHarmonicActivePower795(Double harmonicActivePower795) { + this.harmonicActivePower795 = harmonicActivePower795; + } + + /** + * 获取8次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_8_MAX - 8次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower8Max() { + return harmonicActivePower8Max; + } + + /** + * 设置8次谐波有功功率-最大值 + * + * @param harmonicActivePower8Max 8次谐波有功功率-最大值 + */ + public void setHarmonicActivePower8Max(Double harmonicActivePower8Max) { + this.harmonicActivePower8Max = harmonicActivePower8Max; + } + + /** + * 获取8次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_8_MIN - 8次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower8Min() { + return harmonicActivePower8Min; + } + + /** + * 设置8次谐波有功功率-最小值 + * + * @param harmonicActivePower8Min 8次谐波有功功率-最小值 + */ + public void setHarmonicActivePower8Min(Double harmonicActivePower8Min) { + this.harmonicActivePower8Min = harmonicActivePower8Min; + } + + /** + * 获取8次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_8_AVG - 8次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower8Avg() { + return harmonicActivePower8Avg; + } + + /** + * 设置8次谐波有功功率-平均值 + * + * @param harmonicActivePower8Avg 8次谐波有功功率-平均值 + */ + public void setHarmonicActivePower8Avg(Double harmonicActivePower8Avg) { + this.harmonicActivePower8Avg = harmonicActivePower8Avg; + } + + /** + * 获取8次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_8_95 - 8次谐波有功功率-95值 + */ + public Double getHarmonicActivePower895() { + return harmonicActivePower895; + } + + /** + * 设置8次谐波有功功率-95值 + * + * @param harmonicActivePower895 8次谐波有功功率-95值 + */ + public void setHarmonicActivePower895(Double harmonicActivePower895) { + this.harmonicActivePower895 = harmonicActivePower895; + } + + /** + * 获取9次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_9_MAX - 9次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower9Max() { + return harmonicActivePower9Max; + } + + /** + * 设置9次谐波有功功率-最大值 + * + * @param harmonicActivePower9Max 9次谐波有功功率-最大值 + */ + public void setHarmonicActivePower9Max(Double harmonicActivePower9Max) { + this.harmonicActivePower9Max = harmonicActivePower9Max; + } + + /** + * 获取9次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_9_MIN - 9次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower9Min() { + return harmonicActivePower9Min; + } + + /** + * 设置9次谐波有功功率-最小值 + * + * @param harmonicActivePower9Min 9次谐波有功功率-最小值 + */ + public void setHarmonicActivePower9Min(Double harmonicActivePower9Min) { + this.harmonicActivePower9Min = harmonicActivePower9Min; + } + + /** + * 获取9次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_9_AVG - 9次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower9Avg() { + return harmonicActivePower9Avg; + } + + /** + * 设置9次谐波有功功率-平均值 + * + * @param harmonicActivePower9Avg 9次谐波有功功率-平均值 + */ + public void setHarmonicActivePower9Avg(Double harmonicActivePower9Avg) { + this.harmonicActivePower9Avg = harmonicActivePower9Avg; + } + + /** + * 获取9次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_9_95 - 9次谐波有功功率-95值 + */ + public Double getHarmonicActivePower995() { + return harmonicActivePower995; + } + + /** + * 设置9次谐波有功功率-95值 + * + * @param harmonicActivePower995 9次谐波有功功率-95值 + */ + public void setHarmonicActivePower995(Double harmonicActivePower995) { + this.harmonicActivePower995 = harmonicActivePower995; + } + + /** + * 获取10次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_10_MAX - 10次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower10Max() { + return harmonicActivePower10Max; + } + + /** + * 设置10次谐波有功功率-最大值 + * + * @param harmonicActivePower10Max 10次谐波有功功率-最大值 + */ + public void setHarmonicActivePower10Max(Double harmonicActivePower10Max) { + this.harmonicActivePower10Max = harmonicActivePower10Max; + } + + /** + * 获取10次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_10_MIN - 10次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower10Min() { + return harmonicActivePower10Min; + } + + /** + * 设置10次谐波有功功率-最小值 + * + * @param harmonicActivePower10Min 10次谐波有功功率-最小值 + */ + public void setHarmonicActivePower10Min(Double harmonicActivePower10Min) { + this.harmonicActivePower10Min = harmonicActivePower10Min; + } + + /** + * 获取10次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_10_AVG - 10次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower10Avg() { + return harmonicActivePower10Avg; + } + + /** + * 设置10次谐波有功功率-平均值 + * + * @param harmonicActivePower10Avg 10次谐波有功功率-平均值 + */ + public void setHarmonicActivePower10Avg(Double harmonicActivePower10Avg) { + this.harmonicActivePower10Avg = harmonicActivePower10Avg; + } + + /** + * 获取10次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_10_95 - 10次谐波有功功率-95值 + */ + public Double getHarmonicActivePower1095() { + return harmonicActivePower1095; + } + + /** + * 设置10次谐波有功功率-95值 + * + * @param harmonicActivePower1095 10次谐波有功功率-95值 + */ + public void setHarmonicActivePower1095(Double harmonicActivePower1095) { + this.harmonicActivePower1095 = harmonicActivePower1095; + } + + /** + * 获取11次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_11_MAX - 11次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower11Max() { + return harmonicActivePower11Max; + } + + /** + * 设置11次谐波有功功率-最大值 + * + * @param harmonicActivePower11Max 11次谐波有功功率-最大值 + */ + public void setHarmonicActivePower11Max(Double harmonicActivePower11Max) { + this.harmonicActivePower11Max = harmonicActivePower11Max; + } + + /** + * 获取11次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_11_MIN - 11次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower11Min() { + return harmonicActivePower11Min; + } + + /** + * 设置11次谐波有功功率-最小值 + * + * @param harmonicActivePower11Min 11次谐波有功功率-最小值 + */ + public void setHarmonicActivePower11Min(Double harmonicActivePower11Min) { + this.harmonicActivePower11Min = harmonicActivePower11Min; + } + + /** + * 获取11次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_11_AVG - 11次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower11Avg() { + return harmonicActivePower11Avg; + } + + /** + * 设置11次谐波有功功率-平均值 + * + * @param harmonicActivePower11Avg 11次谐波有功功率-平均值 + */ + public void setHarmonicActivePower11Avg(Double harmonicActivePower11Avg) { + this.harmonicActivePower11Avg = harmonicActivePower11Avg; + } + + /** + * 获取11次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_11_95 - 11次谐波有功功率-95值 + */ + public Double getHarmonicActivePower1195() { + return harmonicActivePower1195; + } + + /** + * 设置11次谐波有功功率-95值 + * + * @param harmonicActivePower1195 11次谐波有功功率-95值 + */ + public void setHarmonicActivePower1195(Double harmonicActivePower1195) { + this.harmonicActivePower1195 = harmonicActivePower1195; + } + + /** + * 获取12次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_12_MAX - 12次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower12Max() { + return harmonicActivePower12Max; + } + + /** + * 设置12次谐波有功功率-最大值 + * + * @param harmonicActivePower12Max 12次谐波有功功率-最大值 + */ + public void setHarmonicActivePower12Max(Double harmonicActivePower12Max) { + this.harmonicActivePower12Max = harmonicActivePower12Max; + } + + /** + * 获取12次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_12_MIN - 12次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower12Min() { + return harmonicActivePower12Min; + } + + /** + * 设置12次谐波有功功率-最小值 + * + * @param harmonicActivePower12Min 12次谐波有功功率-最小值 + */ + public void setHarmonicActivePower12Min(Double harmonicActivePower12Min) { + this.harmonicActivePower12Min = harmonicActivePower12Min; + } + + /** + * 获取12次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_12_AVG - 12次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower12Avg() { + return harmonicActivePower12Avg; + } + + /** + * 设置12次谐波有功功率-平均值 + * + * @param harmonicActivePower12Avg 12次谐波有功功率-平均值 + */ + public void setHarmonicActivePower12Avg(Double harmonicActivePower12Avg) { + this.harmonicActivePower12Avg = harmonicActivePower12Avg; + } + + /** + * 获取12次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_12_95 - 12次谐波有功功率-95值 + */ + public Double getHarmonicActivePower1295() { + return harmonicActivePower1295; + } + + /** + * 设置12次谐波有功功率-95值 + * + * @param harmonicActivePower1295 12次谐波有功功率-95值 + */ + public void setHarmonicActivePower1295(Double harmonicActivePower1295) { + this.harmonicActivePower1295 = harmonicActivePower1295; + } + + /** + * 获取13次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_13_MAX - 13次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower13Max() { + return harmonicActivePower13Max; + } + + /** + * 设置13次谐波有功功率-最大值 + * + * @param harmonicActivePower13Max 13次谐波有功功率-最大值 + */ + public void setHarmonicActivePower13Max(Double harmonicActivePower13Max) { + this.harmonicActivePower13Max = harmonicActivePower13Max; + } + + /** + * 获取13次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_13_MIN - 13次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower13Min() { + return harmonicActivePower13Min; + } + + /** + * 设置13次谐波有功功率-最小值 + * + * @param harmonicActivePower13Min 13次谐波有功功率-最小值 + */ + public void setHarmonicActivePower13Min(Double harmonicActivePower13Min) { + this.harmonicActivePower13Min = harmonicActivePower13Min; + } + + /** + * 获取13次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_13_AVG - 13次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower13Avg() { + return harmonicActivePower13Avg; + } + + /** + * 设置13次谐波有功功率-平均值 + * + * @param harmonicActivePower13Avg 13次谐波有功功率-平均值 + */ + public void setHarmonicActivePower13Avg(Double harmonicActivePower13Avg) { + this.harmonicActivePower13Avg = harmonicActivePower13Avg; + } + + /** + * 获取13次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_13_95 - 13次谐波有功功率-95值 + */ + public Double getHarmonicActivePower1395() { + return harmonicActivePower1395; + } + + /** + * 设置13次谐波有功功率-95值 + * + * @param harmonicActivePower1395 13次谐波有功功率-95值 + */ + public void setHarmonicActivePower1395(Double harmonicActivePower1395) { + this.harmonicActivePower1395 = harmonicActivePower1395; + } + + /** + * 获取14次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_14_MAX - 14次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower14Max() { + return harmonicActivePower14Max; + } + + /** + * 设置14次谐波有功功率-最大值 + * + * @param harmonicActivePower14Max 14次谐波有功功率-最大值 + */ + public void setHarmonicActivePower14Max(Double harmonicActivePower14Max) { + this.harmonicActivePower14Max = harmonicActivePower14Max; + } + + /** + * 获取14次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_14_MIN - 14次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower14Min() { + return harmonicActivePower14Min; + } + + /** + * 设置14次谐波有功功率-最小值 + * + * @param harmonicActivePower14Min 14次谐波有功功率-最小值 + */ + public void setHarmonicActivePower14Min(Double harmonicActivePower14Min) { + this.harmonicActivePower14Min = harmonicActivePower14Min; + } + + /** + * 获取14次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_14_AVG - 14次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower14Avg() { + return harmonicActivePower14Avg; + } + + /** + * 设置14次谐波有功功率-平均值 + * + * @param harmonicActivePower14Avg 14次谐波有功功率-平均值 + */ + public void setHarmonicActivePower14Avg(Double harmonicActivePower14Avg) { + this.harmonicActivePower14Avg = harmonicActivePower14Avg; + } + + /** + * 获取14次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_14_95 - 14次谐波有功功率-95值 + */ + public Double getHarmonicActivePower1495() { + return harmonicActivePower1495; + } + + /** + * 设置14次谐波有功功率-95值 + * + * @param harmonicActivePower1495 14次谐波有功功率-95值 + */ + public void setHarmonicActivePower1495(Double harmonicActivePower1495) { + this.harmonicActivePower1495 = harmonicActivePower1495; + } + + /** + * 获取15次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_15_MAX - 15次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower15Max() { + return harmonicActivePower15Max; + } + + /** + * 设置15次谐波有功功率-最大值 + * + * @param harmonicActivePower15Max 15次谐波有功功率-最大值 + */ + public void setHarmonicActivePower15Max(Double harmonicActivePower15Max) { + this.harmonicActivePower15Max = harmonicActivePower15Max; + } + + /** + * 获取15次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_15_MIN - 15次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower15Min() { + return harmonicActivePower15Min; + } + + /** + * 设置15次谐波有功功率-最小值 + * + * @param harmonicActivePower15Min 15次谐波有功功率-最小值 + */ + public void setHarmonicActivePower15Min(Double harmonicActivePower15Min) { + this.harmonicActivePower15Min = harmonicActivePower15Min; + } + + /** + * 获取15次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_15_AVG - 15次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower15Avg() { + return harmonicActivePower15Avg; + } + + /** + * 设置15次谐波有功功率-平均值 + * + * @param harmonicActivePower15Avg 15次谐波有功功率-平均值 + */ + public void setHarmonicActivePower15Avg(Double harmonicActivePower15Avg) { + this.harmonicActivePower15Avg = harmonicActivePower15Avg; + } + + /** + * 获取15次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_15_95 - 15次谐波有功功率-95值 + */ + public Double getHarmonicActivePower1595() { + return harmonicActivePower1595; + } + + /** + * 设置15次谐波有功功率-95值 + * + * @param harmonicActivePower1595 15次谐波有功功率-95值 + */ + public void setHarmonicActivePower1595(Double harmonicActivePower1595) { + this.harmonicActivePower1595 = harmonicActivePower1595; + } + + /** + * 获取16次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_16_MAX - 16次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower16Max() { + return harmonicActivePower16Max; + } + + /** + * 设置16次谐波有功功率-最大值 + * + * @param harmonicActivePower16Max 16次谐波有功功率-最大值 + */ + public void setHarmonicActivePower16Max(Double harmonicActivePower16Max) { + this.harmonicActivePower16Max = harmonicActivePower16Max; + } + + /** + * 获取16次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_16_MIN - 16次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower16Min() { + return harmonicActivePower16Min; + } + + /** + * 设置16次谐波有功功率-最小值 + * + * @param harmonicActivePower16Min 16次谐波有功功率-最小值 + */ + public void setHarmonicActivePower16Min(Double harmonicActivePower16Min) { + this.harmonicActivePower16Min = harmonicActivePower16Min; + } + + /** + * 获取16次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_16_AVG - 16次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower16Avg() { + return harmonicActivePower16Avg; + } + + /** + * 设置16次谐波有功功率-平均值 + * + * @param harmonicActivePower16Avg 16次谐波有功功率-平均值 + */ + public void setHarmonicActivePower16Avg(Double harmonicActivePower16Avg) { + this.harmonicActivePower16Avg = harmonicActivePower16Avg; + } + + /** + * 获取16次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_16_95 - 16次谐波有功功率-95值 + */ + public Double getHarmonicActivePower1695() { + return harmonicActivePower1695; + } + + /** + * 设置16次谐波有功功率-95值 + * + * @param harmonicActivePower1695 16次谐波有功功率-95值 + */ + public void setHarmonicActivePower1695(Double harmonicActivePower1695) { + this.harmonicActivePower1695 = harmonicActivePower1695; + } + + /** + * 获取17次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_17_MAX - 17次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower17Max() { + return harmonicActivePower17Max; + } + + /** + * 设置17次谐波有功功率-最大值 + * + * @param harmonicActivePower17Max 17次谐波有功功率-最大值 + */ + public void setHarmonicActivePower17Max(Double harmonicActivePower17Max) { + this.harmonicActivePower17Max = harmonicActivePower17Max; + } + + /** + * 获取17次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_17_MIN - 17次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower17Min() { + return harmonicActivePower17Min; + } + + /** + * 设置17次谐波有功功率-最小值 + * + * @param harmonicActivePower17Min 17次谐波有功功率-最小值 + */ + public void setHarmonicActivePower17Min(Double harmonicActivePower17Min) { + this.harmonicActivePower17Min = harmonicActivePower17Min; + } + + /** + * 获取17次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_17_AVG - 17次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower17Avg() { + return harmonicActivePower17Avg; + } + + /** + * 设置17次谐波有功功率-平均值 + * + * @param harmonicActivePower17Avg 17次谐波有功功率-平均值 + */ + public void setHarmonicActivePower17Avg(Double harmonicActivePower17Avg) { + this.harmonicActivePower17Avg = harmonicActivePower17Avg; + } + + /** + * 获取17次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_17_95 - 17次谐波有功功率-95值 + */ + public Double getHarmonicActivePower1795() { + return harmonicActivePower1795; + } + + /** + * 设置17次谐波有功功率-95值 + * + * @param harmonicActivePower1795 17次谐波有功功率-95值 + */ + public void setHarmonicActivePower1795(Double harmonicActivePower1795) { + this.harmonicActivePower1795 = harmonicActivePower1795; + } + + /** + * 获取18次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_18_MAX - 18次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower18Max() { + return harmonicActivePower18Max; + } + + /** + * 设置18次谐波有功功率-最大值 + * + * @param harmonicActivePower18Max 18次谐波有功功率-最大值 + */ + public void setHarmonicActivePower18Max(Double harmonicActivePower18Max) { + this.harmonicActivePower18Max = harmonicActivePower18Max; + } + + /** + * 获取18次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_18_MIN - 18次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower18Min() { + return harmonicActivePower18Min; + } + + /** + * 设置18次谐波有功功率-最小值 + * + * @param harmonicActivePower18Min 18次谐波有功功率-最小值 + */ + public void setHarmonicActivePower18Min(Double harmonicActivePower18Min) { + this.harmonicActivePower18Min = harmonicActivePower18Min; + } + + /** + * 获取18次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_18_AVG - 18次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower18Avg() { + return harmonicActivePower18Avg; + } + + /** + * 设置18次谐波有功功率-平均值 + * + * @param harmonicActivePower18Avg 18次谐波有功功率-平均值 + */ + public void setHarmonicActivePower18Avg(Double harmonicActivePower18Avg) { + this.harmonicActivePower18Avg = harmonicActivePower18Avg; + } + + /** + * 获取18次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_18_95 - 18次谐波有功功率-95值 + */ + public Double getHarmonicActivePower1895() { + return harmonicActivePower1895; + } + + /** + * 设置18次谐波有功功率-95值 + * + * @param harmonicActivePower1895 18次谐波有功功率-95值 + */ + public void setHarmonicActivePower1895(Double harmonicActivePower1895) { + this.harmonicActivePower1895 = harmonicActivePower1895; + } + + /** + * 获取19次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_19_MAX - 19次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower19Max() { + return harmonicActivePower19Max; + } + + /** + * 设置19次谐波有功功率-最大值 + * + * @param harmonicActivePower19Max 19次谐波有功功率-最大值 + */ + public void setHarmonicActivePower19Max(Double harmonicActivePower19Max) { + this.harmonicActivePower19Max = harmonicActivePower19Max; + } + + /** + * 获取19次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_19_MIN - 19次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower19Min() { + return harmonicActivePower19Min; + } + + /** + * 设置19次谐波有功功率-最小值 + * + * @param harmonicActivePower19Min 19次谐波有功功率-最小值 + */ + public void setHarmonicActivePower19Min(Double harmonicActivePower19Min) { + this.harmonicActivePower19Min = harmonicActivePower19Min; + } + + /** + * 获取19次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_19_AVG - 19次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower19Avg() { + return harmonicActivePower19Avg; + } + + /** + * 设置19次谐波有功功率-平均值 + * + * @param harmonicActivePower19Avg 19次谐波有功功率-平均值 + */ + public void setHarmonicActivePower19Avg(Double harmonicActivePower19Avg) { + this.harmonicActivePower19Avg = harmonicActivePower19Avg; + } + + /** + * 获取19次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_19_95 - 19次谐波有功功率-95值 + */ + public Double getHarmonicActivePower1995() { + return harmonicActivePower1995; + } + + /** + * 设置19次谐波有功功率-95值 + * + * @param harmonicActivePower1995 19次谐波有功功率-95值 + */ + public void setHarmonicActivePower1995(Double harmonicActivePower1995) { + this.harmonicActivePower1995 = harmonicActivePower1995; + } + + /** + * 获取20次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_20_MAX - 20次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower20Max() { + return harmonicActivePower20Max; + } + + /** + * 设置20次谐波有功功率-最大值 + * + * @param harmonicActivePower20Max 20次谐波有功功率-最大值 + */ + public void setHarmonicActivePower20Max(Double harmonicActivePower20Max) { + this.harmonicActivePower20Max = harmonicActivePower20Max; + } + + /** + * 获取20次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_20_MIN - 20次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower20Min() { + return harmonicActivePower20Min; + } + + /** + * 设置20次谐波有功功率-最小值 + * + * @param harmonicActivePower20Min 20次谐波有功功率-最小值 + */ + public void setHarmonicActivePower20Min(Double harmonicActivePower20Min) { + this.harmonicActivePower20Min = harmonicActivePower20Min; + } + + /** + * 获取20次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_20_AVG - 20次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower20Avg() { + return harmonicActivePower20Avg; + } + + /** + * 设置20次谐波有功功率-平均值 + * + * @param harmonicActivePower20Avg 20次谐波有功功率-平均值 + */ + public void setHarmonicActivePower20Avg(Double harmonicActivePower20Avg) { + this.harmonicActivePower20Avg = harmonicActivePower20Avg; + } + + /** + * 获取20次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_20_95 - 20次谐波有功功率-95值 + */ + public Double getHarmonicActivePower2095() { + return harmonicActivePower2095; + } + + /** + * 设置20次谐波有功功率-95值 + * + * @param harmonicActivePower2095 20次谐波有功功率-95值 + */ + public void setHarmonicActivePower2095(Double harmonicActivePower2095) { + this.harmonicActivePower2095 = harmonicActivePower2095; + } + + /** + * 获取21次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_21_MAX - 21次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower21Max() { + return harmonicActivePower21Max; + } + + /** + * 设置21次谐波有功功率-最大值 + * + * @param harmonicActivePower21Max 21次谐波有功功率-最大值 + */ + public void setHarmonicActivePower21Max(Double harmonicActivePower21Max) { + this.harmonicActivePower21Max = harmonicActivePower21Max; + } + + /** + * 获取21次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_21_MIN - 21次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower21Min() { + return harmonicActivePower21Min; + } + + /** + * 设置21次谐波有功功率-最小值 + * + * @param harmonicActivePower21Min 21次谐波有功功率-最小值 + */ + public void setHarmonicActivePower21Min(Double harmonicActivePower21Min) { + this.harmonicActivePower21Min = harmonicActivePower21Min; + } + + /** + * 获取21次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_21_AVG - 21次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower21Avg() { + return harmonicActivePower21Avg; + } + + /** + * 设置21次谐波有功功率-平均值 + * + * @param harmonicActivePower21Avg 21次谐波有功功率-平均值 + */ + public void setHarmonicActivePower21Avg(Double harmonicActivePower21Avg) { + this.harmonicActivePower21Avg = harmonicActivePower21Avg; + } + + /** + * 获取21次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_21_95 - 21次谐波有功功率-95值 + */ + public Double getHarmonicActivePower2195() { + return harmonicActivePower2195; + } + + /** + * 设置21次谐波有功功率-95值 + * + * @param harmonicActivePower2195 21次谐波有功功率-95值 + */ + public void setHarmonicActivePower2195(Double harmonicActivePower2195) { + this.harmonicActivePower2195 = harmonicActivePower2195; + } + + /** + * 获取22次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_22_MAX - 22次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower22Max() { + return harmonicActivePower22Max; + } + + /** + * 设置22次谐波有功功率-最大值 + * + * @param harmonicActivePower22Max 22次谐波有功功率-最大值 + */ + public void setHarmonicActivePower22Max(Double harmonicActivePower22Max) { + this.harmonicActivePower22Max = harmonicActivePower22Max; + } + + /** + * 获取22次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_22_MIN - 22次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower22Min() { + return harmonicActivePower22Min; + } + + /** + * 设置22次谐波有功功率-最小值 + * + * @param harmonicActivePower22Min 22次谐波有功功率-最小值 + */ + public void setHarmonicActivePower22Min(Double harmonicActivePower22Min) { + this.harmonicActivePower22Min = harmonicActivePower22Min; + } + + /** + * 获取22次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_22_AVG - 22次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower22Avg() { + return harmonicActivePower22Avg; + } + + /** + * 设置22次谐波有功功率-平均值 + * + * @param harmonicActivePower22Avg 22次谐波有功功率-平均值 + */ + public void setHarmonicActivePower22Avg(Double harmonicActivePower22Avg) { + this.harmonicActivePower22Avg = harmonicActivePower22Avg; + } + + /** + * 获取22次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_22_95 - 22次谐波有功功率-95值 + */ + public Double getHarmonicActivePower2295() { + return harmonicActivePower2295; + } + + /** + * 设置22次谐波有功功率-95值 + * + * @param harmonicActivePower2295 22次谐波有功功率-95值 + */ + public void setHarmonicActivePower2295(Double harmonicActivePower2295) { + this.harmonicActivePower2295 = harmonicActivePower2295; + } + + /** + * 获取23次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_23_MAX - 23次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower23Max() { + return harmonicActivePower23Max; + } + + /** + * 设置23次谐波有功功率-最大值 + * + * @param harmonicActivePower23Max 23次谐波有功功率-最大值 + */ + public void setHarmonicActivePower23Max(Double harmonicActivePower23Max) { + this.harmonicActivePower23Max = harmonicActivePower23Max; + } + + /** + * 获取23次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_23_MIN - 23次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower23Min() { + return harmonicActivePower23Min; + } + + /** + * 设置23次谐波有功功率-最小值 + * + * @param harmonicActivePower23Min 23次谐波有功功率-最小值 + */ + public void setHarmonicActivePower23Min(Double harmonicActivePower23Min) { + this.harmonicActivePower23Min = harmonicActivePower23Min; + } + + /** + * 获取23次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_23_AVG - 23次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower23Avg() { + return harmonicActivePower23Avg; + } + + /** + * 设置23次谐波有功功率-平均值 + * + * @param harmonicActivePower23Avg 23次谐波有功功率-平均值 + */ + public void setHarmonicActivePower23Avg(Double harmonicActivePower23Avg) { + this.harmonicActivePower23Avg = harmonicActivePower23Avg; + } + + /** + * 获取23次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_23_95 - 23次谐波有功功率-95值 + */ + public Double getHarmonicActivePower2395() { + return harmonicActivePower2395; + } + + /** + * 设置23次谐波有功功率-95值 + * + * @param harmonicActivePower2395 23次谐波有功功率-95值 + */ + public void setHarmonicActivePower2395(Double harmonicActivePower2395) { + this.harmonicActivePower2395 = harmonicActivePower2395; + } + + /** + * 获取24次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_24_MAX - 24次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower24Max() { + return harmonicActivePower24Max; + } + + /** + * 设置24次谐波有功功率-最大值 + * + * @param harmonicActivePower24Max 24次谐波有功功率-最大值 + */ + public void setHarmonicActivePower24Max(Double harmonicActivePower24Max) { + this.harmonicActivePower24Max = harmonicActivePower24Max; + } + + /** + * 获取24次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_24_MIN - 24次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower24Min() { + return harmonicActivePower24Min; + } + + /** + * 设置24次谐波有功功率-最小值 + * + * @param harmonicActivePower24Min 24次谐波有功功率-最小值 + */ + public void setHarmonicActivePower24Min(Double harmonicActivePower24Min) { + this.harmonicActivePower24Min = harmonicActivePower24Min; + } + + /** + * 获取24次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_24_AVG - 24次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower24Avg() { + return harmonicActivePower24Avg; + } + + /** + * 设置24次谐波有功功率-平均值 + * + * @param harmonicActivePower24Avg 24次谐波有功功率-平均值 + */ + public void setHarmonicActivePower24Avg(Double harmonicActivePower24Avg) { + this.harmonicActivePower24Avg = harmonicActivePower24Avg; + } + + /** + * 获取24次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_24_95 - 24次谐波有功功率-95值 + */ + public Double getHarmonicActivePower2495() { + return harmonicActivePower2495; + } + + /** + * 设置24次谐波有功功率-95值 + * + * @param harmonicActivePower2495 24次谐波有功功率-95值 + */ + public void setHarmonicActivePower2495(Double harmonicActivePower2495) { + this.harmonicActivePower2495 = harmonicActivePower2495; + } + + /** + * 获取25次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_25_MAX - 25次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower25Max() { + return harmonicActivePower25Max; + } + + /** + * 设置25次谐波有功功率-最大值 + * + * @param harmonicActivePower25Max 25次谐波有功功率-最大值 + */ + public void setHarmonicActivePower25Max(Double harmonicActivePower25Max) { + this.harmonicActivePower25Max = harmonicActivePower25Max; + } + + /** + * 获取25次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_25_MIN - 25次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower25Min() { + return harmonicActivePower25Min; + } + + /** + * 设置25次谐波有功功率-最小值 + * + * @param harmonicActivePower25Min 25次谐波有功功率-最小值 + */ + public void setHarmonicActivePower25Min(Double harmonicActivePower25Min) { + this.harmonicActivePower25Min = harmonicActivePower25Min; + } + + /** + * 获取25次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_25_AVG - 25次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower25Avg() { + return harmonicActivePower25Avg; + } + + /** + * 设置25次谐波有功功率-平均值 + * + * @param harmonicActivePower25Avg 25次谐波有功功率-平均值 + */ + public void setHarmonicActivePower25Avg(Double harmonicActivePower25Avg) { + this.harmonicActivePower25Avg = harmonicActivePower25Avg; + } + + /** + * 获取25次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_25_95 - 25次谐波有功功率-95值 + */ + public Double getHarmonicActivePower2595() { + return harmonicActivePower2595; + } + + /** + * 设置25次谐波有功功率-95值 + * + * @param harmonicActivePower2595 25次谐波有功功率-95值 + */ + public void setHarmonicActivePower2595(Double harmonicActivePower2595) { + this.harmonicActivePower2595 = harmonicActivePower2595; + } + + /** + * 获取26次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_26_MAX - 26次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower26Max() { + return harmonicActivePower26Max; + } + + /** + * 设置26次谐波有功功率-最大值 + * + * @param harmonicActivePower26Max 26次谐波有功功率-最大值 + */ + public void setHarmonicActivePower26Max(Double harmonicActivePower26Max) { + this.harmonicActivePower26Max = harmonicActivePower26Max; + } + + /** + * 获取26次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_26_MIN - 26次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower26Min() { + return harmonicActivePower26Min; + } + + /** + * 设置26次谐波有功功率-最小值 + * + * @param harmonicActivePower26Min 26次谐波有功功率-最小值 + */ + public void setHarmonicActivePower26Min(Double harmonicActivePower26Min) { + this.harmonicActivePower26Min = harmonicActivePower26Min; + } + + /** + * 获取26次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_26_AVG - 26次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower26Avg() { + return harmonicActivePower26Avg; + } + + /** + * 设置26次谐波有功功率-平均值 + * + * @param harmonicActivePower26Avg 26次谐波有功功率-平均值 + */ + public void setHarmonicActivePower26Avg(Double harmonicActivePower26Avg) { + this.harmonicActivePower26Avg = harmonicActivePower26Avg; + } + + /** + * 获取26次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_26_95 - 26次谐波有功功率-95值 + */ + public Double getHarmonicActivePower2695() { + return harmonicActivePower2695; + } + + /** + * 设置26次谐波有功功率-95值 + * + * @param harmonicActivePower2695 26次谐波有功功率-95值 + */ + public void setHarmonicActivePower2695(Double harmonicActivePower2695) { + this.harmonicActivePower2695 = harmonicActivePower2695; + } + + /** + * 获取27次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_27_MAX - 27次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower27Max() { + return harmonicActivePower27Max; + } + + /** + * 设置27次谐波有功功率-最大值 + * + * @param harmonicActivePower27Max 27次谐波有功功率-最大值 + */ + public void setHarmonicActivePower27Max(Double harmonicActivePower27Max) { + this.harmonicActivePower27Max = harmonicActivePower27Max; + } + + /** + * 获取27次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_27_MIN - 27次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower27Min() { + return harmonicActivePower27Min; + } + + /** + * 设置27次谐波有功功率-最小值 + * + * @param harmonicActivePower27Min 27次谐波有功功率-最小值 + */ + public void setHarmonicActivePower27Min(Double harmonicActivePower27Min) { + this.harmonicActivePower27Min = harmonicActivePower27Min; + } + + /** + * 获取27次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_27_AVG - 27次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower27Avg() { + return harmonicActivePower27Avg; + } + + /** + * 设置27次谐波有功功率-平均值 + * + * @param harmonicActivePower27Avg 27次谐波有功功率-平均值 + */ + public void setHarmonicActivePower27Avg(Double harmonicActivePower27Avg) { + this.harmonicActivePower27Avg = harmonicActivePower27Avg; + } + + /** + * 获取27次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_27_95 - 27次谐波有功功率-95值 + */ + public Double getHarmonicActivePower2795() { + return harmonicActivePower2795; + } + + /** + * 设置27次谐波有功功率-95值 + * + * @param harmonicActivePower2795 27次谐波有功功率-95值 + */ + public void setHarmonicActivePower2795(Double harmonicActivePower2795) { + this.harmonicActivePower2795 = harmonicActivePower2795; + } + + /** + * 获取28次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_28_MAX - 28次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower28Max() { + return harmonicActivePower28Max; + } + + /** + * 设置28次谐波有功功率-最大值 + * + * @param harmonicActivePower28Max 28次谐波有功功率-最大值 + */ + public void setHarmonicActivePower28Max(Double harmonicActivePower28Max) { + this.harmonicActivePower28Max = harmonicActivePower28Max; + } + + /** + * 获取28次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_28_MIN - 28次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower28Min() { + return harmonicActivePower28Min; + } + + /** + * 设置28次谐波有功功率-最小值 + * + * @param harmonicActivePower28Min 28次谐波有功功率-最小值 + */ + public void setHarmonicActivePower28Min(Double harmonicActivePower28Min) { + this.harmonicActivePower28Min = harmonicActivePower28Min; + } + + /** + * 获取28次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_28_AVG - 28次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower28Avg() { + return harmonicActivePower28Avg; + } + + /** + * 设置28次谐波有功功率-平均值 + * + * @param harmonicActivePower28Avg 28次谐波有功功率-平均值 + */ + public void setHarmonicActivePower28Avg(Double harmonicActivePower28Avg) { + this.harmonicActivePower28Avg = harmonicActivePower28Avg; + } + + /** + * 获取28次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_28_95 - 28次谐波有功功率-95值 + */ + public Double getHarmonicActivePower2895() { + return harmonicActivePower2895; + } + + /** + * 设置28次谐波有功功率-95值 + * + * @param harmonicActivePower2895 28次谐波有功功率-95值 + */ + public void setHarmonicActivePower2895(Double harmonicActivePower2895) { + this.harmonicActivePower2895 = harmonicActivePower2895; + } + + /** + * 获取29次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_29_MAX - 29次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower29Max() { + return harmonicActivePower29Max; + } + + /** + * 设置29次谐波有功功率-最大值 + * + * @param harmonicActivePower29Max 29次谐波有功功率-最大值 + */ + public void setHarmonicActivePower29Max(Double harmonicActivePower29Max) { + this.harmonicActivePower29Max = harmonicActivePower29Max; + } + + /** + * 获取29次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_29_MIN - 29次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower29Min() { + return harmonicActivePower29Min; + } + + /** + * 设置29次谐波有功功率-最小值 + * + * @param harmonicActivePower29Min 29次谐波有功功率-最小值 + */ + public void setHarmonicActivePower29Min(Double harmonicActivePower29Min) { + this.harmonicActivePower29Min = harmonicActivePower29Min; + } + + /** + * 获取29次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_29_AVG - 29次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower29Avg() { + return harmonicActivePower29Avg; + } + + /** + * 设置29次谐波有功功率-平均值 + * + * @param harmonicActivePower29Avg 29次谐波有功功率-平均值 + */ + public void setHarmonicActivePower29Avg(Double harmonicActivePower29Avg) { + this.harmonicActivePower29Avg = harmonicActivePower29Avg; + } + + /** + * 获取29次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_29_95 - 29次谐波有功功率-95值 + */ + public Double getHarmonicActivePower2995() { + return harmonicActivePower2995; + } + + /** + * 设置29次谐波有功功率-95值 + * + * @param harmonicActivePower2995 29次谐波有功功率-95值 + */ + public void setHarmonicActivePower2995(Double harmonicActivePower2995) { + this.harmonicActivePower2995 = harmonicActivePower2995; + } + + /** + * 获取30次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_30_MAX - 30次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower30Max() { + return harmonicActivePower30Max; + } + + /** + * 设置30次谐波有功功率-最大值 + * + * @param harmonicActivePower30Max 30次谐波有功功率-最大值 + */ + public void setHarmonicActivePower30Max(Double harmonicActivePower30Max) { + this.harmonicActivePower30Max = harmonicActivePower30Max; + } + + /** + * 获取30次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_30_MIN - 30次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower30Min() { + return harmonicActivePower30Min; + } + + /** + * 设置30次谐波有功功率-最小值 + * + * @param harmonicActivePower30Min 30次谐波有功功率-最小值 + */ + public void setHarmonicActivePower30Min(Double harmonicActivePower30Min) { + this.harmonicActivePower30Min = harmonicActivePower30Min; + } + + /** + * 获取30次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_30_AVG - 30次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower30Avg() { + return harmonicActivePower30Avg; + } + + /** + * 设置30次谐波有功功率-平均值 + * + * @param harmonicActivePower30Avg 30次谐波有功功率-平均值 + */ + public void setHarmonicActivePower30Avg(Double harmonicActivePower30Avg) { + this.harmonicActivePower30Avg = harmonicActivePower30Avg; + } + + /** + * 获取30次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_30_95 - 30次谐波有功功率-95值 + */ + public Double getHarmonicActivePower3095() { + return harmonicActivePower3095; + } + + /** + * 设置30次谐波有功功率-95值 + * + * @param harmonicActivePower3095 30次谐波有功功率-95值 + */ + public void setHarmonicActivePower3095(Double harmonicActivePower3095) { + this.harmonicActivePower3095 = harmonicActivePower3095; + } + + /** + * 获取31次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_31_MAX - 31次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower31Max() { + return harmonicActivePower31Max; + } + + /** + * 设置31次谐波有功功率-最大值 + * + * @param harmonicActivePower31Max 31次谐波有功功率-最大值 + */ + public void setHarmonicActivePower31Max(Double harmonicActivePower31Max) { + this.harmonicActivePower31Max = harmonicActivePower31Max; + } + + /** + * 获取31次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_31_MIN - 31次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower31Min() { + return harmonicActivePower31Min; + } + + /** + * 设置31次谐波有功功率-最小值 + * + * @param harmonicActivePower31Min 31次谐波有功功率-最小值 + */ + public void setHarmonicActivePower31Min(Double harmonicActivePower31Min) { + this.harmonicActivePower31Min = harmonicActivePower31Min; + } + + /** + * 获取31次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_31_AVG - 31次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower31Avg() { + return harmonicActivePower31Avg; + } + + /** + * 设置31次谐波有功功率-平均值 + * + * @param harmonicActivePower31Avg 31次谐波有功功率-平均值 + */ + public void setHarmonicActivePower31Avg(Double harmonicActivePower31Avg) { + this.harmonicActivePower31Avg = harmonicActivePower31Avg; + } + + /** + * 获取31次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_31_95 - 31次谐波有功功率-95值 + */ + public Double getHarmonicActivePower3195() { + return harmonicActivePower3195; + } + + /** + * 设置31次谐波有功功率-95值 + * + * @param harmonicActivePower3195 31次谐波有功功率-95值 + */ + public void setHarmonicActivePower3195(Double harmonicActivePower3195) { + this.harmonicActivePower3195 = harmonicActivePower3195; + } + + /** + * 获取32次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_32_MAX - 32次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower32Max() { + return harmonicActivePower32Max; + } + + /** + * 设置32次谐波有功功率-最大值 + * + * @param harmonicActivePower32Max 32次谐波有功功率-最大值 + */ + public void setHarmonicActivePower32Max(Double harmonicActivePower32Max) { + this.harmonicActivePower32Max = harmonicActivePower32Max; + } + + /** + * 获取32次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_32_MIN - 32次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower32Min() { + return harmonicActivePower32Min; + } + + /** + * 设置32次谐波有功功率-最小值 + * + * @param harmonicActivePower32Min 32次谐波有功功率-最小值 + */ + public void setHarmonicActivePower32Min(Double harmonicActivePower32Min) { + this.harmonicActivePower32Min = harmonicActivePower32Min; + } + + /** + * 获取32次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_32_AVG - 32次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower32Avg() { + return harmonicActivePower32Avg; + } + + /** + * 设置32次谐波有功功率-平均值 + * + * @param harmonicActivePower32Avg 32次谐波有功功率-平均值 + */ + public void setHarmonicActivePower32Avg(Double harmonicActivePower32Avg) { + this.harmonicActivePower32Avg = harmonicActivePower32Avg; + } + + /** + * 获取32次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_32_95 - 32次谐波有功功率-95值 + */ + public Double getHarmonicActivePower3295() { + return harmonicActivePower3295; + } + + /** + * 设置32次谐波有功功率-95值 + * + * @param harmonicActivePower3295 32次谐波有功功率-95值 + */ + public void setHarmonicActivePower3295(Double harmonicActivePower3295) { + this.harmonicActivePower3295 = harmonicActivePower3295; + } + + /** + * 获取33次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_33_MAX - 33次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower33Max() { + return harmonicActivePower33Max; + } + + /** + * 设置33次谐波有功功率-最大值 + * + * @param harmonicActivePower33Max 33次谐波有功功率-最大值 + */ + public void setHarmonicActivePower33Max(Double harmonicActivePower33Max) { + this.harmonicActivePower33Max = harmonicActivePower33Max; + } + + /** + * 获取33次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_33_MIN - 33次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower33Min() { + return harmonicActivePower33Min; + } + + /** + * 设置33次谐波有功功率-最小值 + * + * @param harmonicActivePower33Min 33次谐波有功功率-最小值 + */ + public void setHarmonicActivePower33Min(Double harmonicActivePower33Min) { + this.harmonicActivePower33Min = harmonicActivePower33Min; + } + + /** + * 获取33次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_33_AVG - 33次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower33Avg() { + return harmonicActivePower33Avg; + } + + /** + * 设置33次谐波有功功率-平均值 + * + * @param harmonicActivePower33Avg 33次谐波有功功率-平均值 + */ + public void setHarmonicActivePower33Avg(Double harmonicActivePower33Avg) { + this.harmonicActivePower33Avg = harmonicActivePower33Avg; + } + + /** + * 获取33次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_33_95 - 33次谐波有功功率-95值 + */ + public Double getHarmonicActivePower3395() { + return harmonicActivePower3395; + } + + /** + * 设置33次谐波有功功率-95值 + * + * @param harmonicActivePower3395 33次谐波有功功率-95值 + */ + public void setHarmonicActivePower3395(Double harmonicActivePower3395) { + this.harmonicActivePower3395 = harmonicActivePower3395; + } + + /** + * 获取34次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_34_MAX - 34次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower34Max() { + return harmonicActivePower34Max; + } + + /** + * 设置34次谐波有功功率-最大值 + * + * @param harmonicActivePower34Max 34次谐波有功功率-最大值 + */ + public void setHarmonicActivePower34Max(Double harmonicActivePower34Max) { + this.harmonicActivePower34Max = harmonicActivePower34Max; + } + + /** + * 获取34次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_34_MIN - 34次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower34Min() { + return harmonicActivePower34Min; + } + + /** + * 设置34次谐波有功功率-最小值 + * + * @param harmonicActivePower34Min 34次谐波有功功率-最小值 + */ + public void setHarmonicActivePower34Min(Double harmonicActivePower34Min) { + this.harmonicActivePower34Min = harmonicActivePower34Min; + } + + /** + * 获取34次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_34_AVG - 34次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower34Avg() { + return harmonicActivePower34Avg; + } + + /** + * 设置34次谐波有功功率-平均值 + * + * @param harmonicActivePower34Avg 34次谐波有功功率-平均值 + */ + public void setHarmonicActivePower34Avg(Double harmonicActivePower34Avg) { + this.harmonicActivePower34Avg = harmonicActivePower34Avg; + } + + /** + * 获取34次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_34_95 - 34次谐波有功功率-95值 + */ + public Double getHarmonicActivePower3495() { + return harmonicActivePower3495; + } + + /** + * 设置34次谐波有功功率-95值 + * + * @param harmonicActivePower3495 34次谐波有功功率-95值 + */ + public void setHarmonicActivePower3495(Double harmonicActivePower3495) { + this.harmonicActivePower3495 = harmonicActivePower3495; + } + + /** + * 获取35次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_35_MAX - 35次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower35Max() { + return harmonicActivePower35Max; + } + + /** + * 设置35次谐波有功功率-最大值 + * + * @param harmonicActivePower35Max 35次谐波有功功率-最大值 + */ + public void setHarmonicActivePower35Max(Double harmonicActivePower35Max) { + this.harmonicActivePower35Max = harmonicActivePower35Max; + } + + /** + * 获取35次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_35_MIN - 35次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower35Min() { + return harmonicActivePower35Min; + } + + /** + * 设置35次谐波有功功率-最小值 + * + * @param harmonicActivePower35Min 35次谐波有功功率-最小值 + */ + public void setHarmonicActivePower35Min(Double harmonicActivePower35Min) { + this.harmonicActivePower35Min = harmonicActivePower35Min; + } + + /** + * 获取35次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_35_AVG - 35次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower35Avg() { + return harmonicActivePower35Avg; + } + + /** + * 设置35次谐波有功功率-平均值 + * + * @param harmonicActivePower35Avg 35次谐波有功功率-平均值 + */ + public void setHarmonicActivePower35Avg(Double harmonicActivePower35Avg) { + this.harmonicActivePower35Avg = harmonicActivePower35Avg; + } + + /** + * 获取35次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_35_95 - 35次谐波有功功率-95值 + */ + public Double getHarmonicActivePower3595() { + return harmonicActivePower3595; + } + + /** + * 设置35次谐波有功功率-95值 + * + * @param harmonicActivePower3595 35次谐波有功功率-95值 + */ + public void setHarmonicActivePower3595(Double harmonicActivePower3595) { + this.harmonicActivePower3595 = harmonicActivePower3595; + } + + /** + * 获取36次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_36_MAX - 36次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower36Max() { + return harmonicActivePower36Max; + } + + /** + * 设置36次谐波有功功率-最大值 + * + * @param harmonicActivePower36Max 36次谐波有功功率-最大值 + */ + public void setHarmonicActivePower36Max(Double harmonicActivePower36Max) { + this.harmonicActivePower36Max = harmonicActivePower36Max; + } + + /** + * 获取36次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_36_MIN - 36次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower36Min() { + return harmonicActivePower36Min; + } + + /** + * 设置36次谐波有功功率-最小值 + * + * @param harmonicActivePower36Min 36次谐波有功功率-最小值 + */ + public void setHarmonicActivePower36Min(Double harmonicActivePower36Min) { + this.harmonicActivePower36Min = harmonicActivePower36Min; + } + + /** + * 获取36次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_36_AVG - 36次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower36Avg() { + return harmonicActivePower36Avg; + } + + /** + * 设置36次谐波有功功率-平均值 + * + * @param harmonicActivePower36Avg 36次谐波有功功率-平均值 + */ + public void setHarmonicActivePower36Avg(Double harmonicActivePower36Avg) { + this.harmonicActivePower36Avg = harmonicActivePower36Avg; + } + + /** + * 获取36次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_36_95 - 36次谐波有功功率-95值 + */ + public Double getHarmonicActivePower3695() { + return harmonicActivePower3695; + } + + /** + * 设置36次谐波有功功率-95值 + * + * @param harmonicActivePower3695 36次谐波有功功率-95值 + */ + public void setHarmonicActivePower3695(Double harmonicActivePower3695) { + this.harmonicActivePower3695 = harmonicActivePower3695; + } + + /** + * 获取37次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_37_MAX - 37次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower37Max() { + return harmonicActivePower37Max; + } + + /** + * 设置37次谐波有功功率-最大值 + * + * @param harmonicActivePower37Max 37次谐波有功功率-最大值 + */ + public void setHarmonicActivePower37Max(Double harmonicActivePower37Max) { + this.harmonicActivePower37Max = harmonicActivePower37Max; + } + + /** + * 获取37次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_37_MIN - 37次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower37Min() { + return harmonicActivePower37Min; + } + + /** + * 设置37次谐波有功功率-最小值 + * + * @param harmonicActivePower37Min 37次谐波有功功率-最小值 + */ + public void setHarmonicActivePower37Min(Double harmonicActivePower37Min) { + this.harmonicActivePower37Min = harmonicActivePower37Min; + } + + /** + * 获取37次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_37_AVG - 37次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower37Avg() { + return harmonicActivePower37Avg; + } + + /** + * 设置37次谐波有功功率-平均值 + * + * @param harmonicActivePower37Avg 37次谐波有功功率-平均值 + */ + public void setHarmonicActivePower37Avg(Double harmonicActivePower37Avg) { + this.harmonicActivePower37Avg = harmonicActivePower37Avg; + } + + /** + * 获取37次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_37_95 - 37次谐波有功功率-95值 + */ + public Double getHarmonicActivePower3795() { + return harmonicActivePower3795; + } + + /** + * 设置37次谐波有功功率-95值 + * + * @param harmonicActivePower3795 37次谐波有功功率-95值 + */ + public void setHarmonicActivePower3795(Double harmonicActivePower3795) { + this.harmonicActivePower3795 = harmonicActivePower3795; + } + + /** + * 获取38次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_38_MAX - 38次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower38Max() { + return harmonicActivePower38Max; + } + + /** + * 设置38次谐波有功功率-最大值 + * + * @param harmonicActivePower38Max 38次谐波有功功率-最大值 + */ + public void setHarmonicActivePower38Max(Double harmonicActivePower38Max) { + this.harmonicActivePower38Max = harmonicActivePower38Max; + } + + /** + * 获取38次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_38_MIN - 38次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower38Min() { + return harmonicActivePower38Min; + } + + /** + * 设置38次谐波有功功率-最小值 + * + * @param harmonicActivePower38Min 38次谐波有功功率-最小值 + */ + public void setHarmonicActivePower38Min(Double harmonicActivePower38Min) { + this.harmonicActivePower38Min = harmonicActivePower38Min; + } + + /** + * 获取38次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_38_AVG - 38次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower38Avg() { + return harmonicActivePower38Avg; + } + + /** + * 设置38次谐波有功功率-平均值 + * + * @param harmonicActivePower38Avg 38次谐波有功功率-平均值 + */ + public void setHarmonicActivePower38Avg(Double harmonicActivePower38Avg) { + this.harmonicActivePower38Avg = harmonicActivePower38Avg; + } + + /** + * 获取38次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_38_95 - 38次谐波有功功率-95值 + */ + public Double getHarmonicActivePower3895() { + return harmonicActivePower3895; + } + + /** + * 设置38次谐波有功功率-95值 + * + * @param harmonicActivePower3895 38次谐波有功功率-95值 + */ + public void setHarmonicActivePower3895(Double harmonicActivePower3895) { + this.harmonicActivePower3895 = harmonicActivePower3895; + } + + /** + * 获取39次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_39_MAX - 39次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower39Max() { + return harmonicActivePower39Max; + } + + /** + * 设置39次谐波有功功率-最大值 + * + * @param harmonicActivePower39Max 39次谐波有功功率-最大值 + */ + public void setHarmonicActivePower39Max(Double harmonicActivePower39Max) { + this.harmonicActivePower39Max = harmonicActivePower39Max; + } + + /** + * 获取39次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_39_MIN - 39次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower39Min() { + return harmonicActivePower39Min; + } + + /** + * 设置39次谐波有功功率-最小值 + * + * @param harmonicActivePower39Min 39次谐波有功功率-最小值 + */ + public void setHarmonicActivePower39Min(Double harmonicActivePower39Min) { + this.harmonicActivePower39Min = harmonicActivePower39Min; + } + + /** + * 获取39次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_39_AVG - 39次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower39Avg() { + return harmonicActivePower39Avg; + } + + /** + * 设置39次谐波有功功率-平均值 + * + * @param harmonicActivePower39Avg 39次谐波有功功率-平均值 + */ + public void setHarmonicActivePower39Avg(Double harmonicActivePower39Avg) { + this.harmonicActivePower39Avg = harmonicActivePower39Avg; + } + + /** + * 获取39次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_39_95 - 39次谐波有功功率-95值 + */ + public Double getHarmonicActivePower3995() { + return harmonicActivePower3995; + } + + /** + * 设置39次谐波有功功率-95值 + * + * @param harmonicActivePower3995 39次谐波有功功率-95值 + */ + public void setHarmonicActivePower3995(Double harmonicActivePower3995) { + this.harmonicActivePower3995 = harmonicActivePower3995; + } + + /** + * 获取40次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_40_MAX - 40次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower40Max() { + return harmonicActivePower40Max; + } + + /** + * 设置40次谐波有功功率-最大值 + * + * @param harmonicActivePower40Max 40次谐波有功功率-最大值 + */ + public void setHarmonicActivePower40Max(Double harmonicActivePower40Max) { + this.harmonicActivePower40Max = harmonicActivePower40Max; + } + + /** + * 获取40次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_40_MIN - 40次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower40Min() { + return harmonicActivePower40Min; + } + + /** + * 设置40次谐波有功功率-最小值 + * + * @param harmonicActivePower40Min 40次谐波有功功率-最小值 + */ + public void setHarmonicActivePower40Min(Double harmonicActivePower40Min) { + this.harmonicActivePower40Min = harmonicActivePower40Min; + } + + /** + * 获取40次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_40_AVG - 40次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower40Avg() { + return harmonicActivePower40Avg; + } + + /** + * 设置40次谐波有功功率-平均值 + * + * @param harmonicActivePower40Avg 40次谐波有功功率-平均值 + */ + public void setHarmonicActivePower40Avg(Double harmonicActivePower40Avg) { + this.harmonicActivePower40Avg = harmonicActivePower40Avg; + } + + /** + * 获取40次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_40_95 - 40次谐波有功功率-95值 + */ + public Double getHarmonicActivePower4095() { + return harmonicActivePower4095; + } + + /** + * 设置40次谐波有功功率-95值 + * + * @param harmonicActivePower4095 40次谐波有功功率-95值 + */ + public void setHarmonicActivePower4095(Double harmonicActivePower4095) { + this.harmonicActivePower4095 = harmonicActivePower4095; + } + + /** + * 获取41次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_41_MAX - 41次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower41Max() { + return harmonicActivePower41Max; + } + + /** + * 设置41次谐波有功功率-最大值 + * + * @param harmonicActivePower41Max 41次谐波有功功率-最大值 + */ + public void setHarmonicActivePower41Max(Double harmonicActivePower41Max) { + this.harmonicActivePower41Max = harmonicActivePower41Max; + } + + /** + * 获取41次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_41_MIN - 41次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower41Min() { + return harmonicActivePower41Min; + } + + /** + * 设置41次谐波有功功率-最小值 + * + * @param harmonicActivePower41Min 41次谐波有功功率-最小值 + */ + public void setHarmonicActivePower41Min(Double harmonicActivePower41Min) { + this.harmonicActivePower41Min = harmonicActivePower41Min; + } + + /** + * 获取41次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_41_AVG - 41次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower41Avg() { + return harmonicActivePower41Avg; + } + + /** + * 设置41次谐波有功功率-平均值 + * + * @param harmonicActivePower41Avg 41次谐波有功功率-平均值 + */ + public void setHarmonicActivePower41Avg(Double harmonicActivePower41Avg) { + this.harmonicActivePower41Avg = harmonicActivePower41Avg; + } + + /** + * 获取41次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_41_95 - 41次谐波有功功率-95值 + */ + public Double getHarmonicActivePower4195() { + return harmonicActivePower4195; + } + + /** + * 设置41次谐波有功功率-95值 + * + * @param harmonicActivePower4195 41次谐波有功功率-95值 + */ + public void setHarmonicActivePower4195(Double harmonicActivePower4195) { + this.harmonicActivePower4195 = harmonicActivePower4195; + } + + /** + * 获取42次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_42_MAX - 42次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower42Max() { + return harmonicActivePower42Max; + } + + /** + * 设置42次谐波有功功率-最大值 + * + * @param harmonicActivePower42Max 42次谐波有功功率-最大值 + */ + public void setHarmonicActivePower42Max(Double harmonicActivePower42Max) { + this.harmonicActivePower42Max = harmonicActivePower42Max; + } + + /** + * 获取42次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_42_MIN - 42次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower42Min() { + return harmonicActivePower42Min; + } + + /** + * 设置42次谐波有功功率-最小值 + * + * @param harmonicActivePower42Min 42次谐波有功功率-最小值 + */ + public void setHarmonicActivePower42Min(Double harmonicActivePower42Min) { + this.harmonicActivePower42Min = harmonicActivePower42Min; + } + + /** + * 获取42次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_42_AVG - 42次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower42Avg() { + return harmonicActivePower42Avg; + } + + /** + * 设置42次谐波有功功率-平均值 + * + * @param harmonicActivePower42Avg 42次谐波有功功率-平均值 + */ + public void setHarmonicActivePower42Avg(Double harmonicActivePower42Avg) { + this.harmonicActivePower42Avg = harmonicActivePower42Avg; + } + + /** + * 获取42次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_42_95 - 42次谐波有功功率-95值 + */ + public Double getHarmonicActivePower4295() { + return harmonicActivePower4295; + } + + /** + * 设置42次谐波有功功率-95值 + * + * @param harmonicActivePower4295 42次谐波有功功率-95值 + */ + public void setHarmonicActivePower4295(Double harmonicActivePower4295) { + this.harmonicActivePower4295 = harmonicActivePower4295; + } + + /** + * 获取43次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_43_MAX - 43次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower43Max() { + return harmonicActivePower43Max; + } + + /** + * 设置43次谐波有功功率-最大值 + * + * @param harmonicActivePower43Max 43次谐波有功功率-最大值 + */ + public void setHarmonicActivePower43Max(Double harmonicActivePower43Max) { + this.harmonicActivePower43Max = harmonicActivePower43Max; + } + + /** + * 获取43次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_43_MIN - 43次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower43Min() { + return harmonicActivePower43Min; + } + + /** + * 设置43次谐波有功功率-最小值 + * + * @param harmonicActivePower43Min 43次谐波有功功率-最小值 + */ + public void setHarmonicActivePower43Min(Double harmonicActivePower43Min) { + this.harmonicActivePower43Min = harmonicActivePower43Min; + } + + /** + * 获取43次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_43_AVG - 43次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower43Avg() { + return harmonicActivePower43Avg; + } + + /** + * 设置43次谐波有功功率-平均值 + * + * @param harmonicActivePower43Avg 43次谐波有功功率-平均值 + */ + public void setHarmonicActivePower43Avg(Double harmonicActivePower43Avg) { + this.harmonicActivePower43Avg = harmonicActivePower43Avg; + } + + /** + * 获取43次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_43_95 - 43次谐波有功功率-95值 + */ + public Double getHarmonicActivePower4395() { + return harmonicActivePower4395; + } + + /** + * 设置43次谐波有功功率-95值 + * + * @param harmonicActivePower4395 43次谐波有功功率-95值 + */ + public void setHarmonicActivePower4395(Double harmonicActivePower4395) { + this.harmonicActivePower4395 = harmonicActivePower4395; + } + + /** + * 获取44次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_44_MAX - 44次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower44Max() { + return harmonicActivePower44Max; + } + + /** + * 设置44次谐波有功功率-最大值 + * + * @param harmonicActivePower44Max 44次谐波有功功率-最大值 + */ + public void setHarmonicActivePower44Max(Double harmonicActivePower44Max) { + this.harmonicActivePower44Max = harmonicActivePower44Max; + } + + /** + * 获取44次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_44_MIN - 44次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower44Min() { + return harmonicActivePower44Min; + } + + /** + * 设置44次谐波有功功率-最小值 + * + * @param harmonicActivePower44Min 44次谐波有功功率-最小值 + */ + public void setHarmonicActivePower44Min(Double harmonicActivePower44Min) { + this.harmonicActivePower44Min = harmonicActivePower44Min; + } + + /** + * 获取44次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_44_AVG - 44次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower44Avg() { + return harmonicActivePower44Avg; + } + + /** + * 设置44次谐波有功功率-平均值 + * + * @param harmonicActivePower44Avg 44次谐波有功功率-平均值 + */ + public void setHarmonicActivePower44Avg(Double harmonicActivePower44Avg) { + this.harmonicActivePower44Avg = harmonicActivePower44Avg; + } + + /** + * 获取44次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_44_95 - 44次谐波有功功率-95值 + */ + public Double getHarmonicActivePower4495() { + return harmonicActivePower4495; + } + + /** + * 设置44次谐波有功功率-95值 + * + * @param harmonicActivePower4495 44次谐波有功功率-95值 + */ + public void setHarmonicActivePower4495(Double harmonicActivePower4495) { + this.harmonicActivePower4495 = harmonicActivePower4495; + } + + /** + * 获取45次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_45_MAX - 45次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower45Max() { + return harmonicActivePower45Max; + } + + /** + * 设置45次谐波有功功率-最大值 + * + * @param harmonicActivePower45Max 45次谐波有功功率-最大值 + */ + public void setHarmonicActivePower45Max(Double harmonicActivePower45Max) { + this.harmonicActivePower45Max = harmonicActivePower45Max; + } + + /** + * 获取45次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_45_MIN - 45次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower45Min() { + return harmonicActivePower45Min; + } + + /** + * 设置45次谐波有功功率-最小值 + * + * @param harmonicActivePower45Min 45次谐波有功功率-最小值 + */ + public void setHarmonicActivePower45Min(Double harmonicActivePower45Min) { + this.harmonicActivePower45Min = harmonicActivePower45Min; + } + + /** + * 获取45次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_45_AVG - 45次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower45Avg() { + return harmonicActivePower45Avg; + } + + /** + * 设置45次谐波有功功率-平均值 + * + * @param harmonicActivePower45Avg 45次谐波有功功率-平均值 + */ + public void setHarmonicActivePower45Avg(Double harmonicActivePower45Avg) { + this.harmonicActivePower45Avg = harmonicActivePower45Avg; + } + + /** + * 获取45次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_45_95 - 45次谐波有功功率-95值 + */ + public Double getHarmonicActivePower4595() { + return harmonicActivePower4595; + } + + /** + * 设置45次谐波有功功率-95值 + * + * @param harmonicActivePower4595 45次谐波有功功率-95值 + */ + public void setHarmonicActivePower4595(Double harmonicActivePower4595) { + this.harmonicActivePower4595 = harmonicActivePower4595; + } + + /** + * 获取46次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_46_MAX - 46次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower46Max() { + return harmonicActivePower46Max; + } + + /** + * 设置46次谐波有功功率-最大值 + * + * @param harmonicActivePower46Max 46次谐波有功功率-最大值 + */ + public void setHarmonicActivePower46Max(Double harmonicActivePower46Max) { + this.harmonicActivePower46Max = harmonicActivePower46Max; + } + + /** + * 获取46次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_46_MIN - 46次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower46Min() { + return harmonicActivePower46Min; + } + + /** + * 设置46次谐波有功功率-最小值 + * + * @param harmonicActivePower46Min 46次谐波有功功率-最小值 + */ + public void setHarmonicActivePower46Min(Double harmonicActivePower46Min) { + this.harmonicActivePower46Min = harmonicActivePower46Min; + } + + /** + * 获取46次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_46_AVG - 46次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower46Avg() { + return harmonicActivePower46Avg; + } + + /** + * 设置46次谐波有功功率-平均值 + * + * @param harmonicActivePower46Avg 46次谐波有功功率-平均值 + */ + public void setHarmonicActivePower46Avg(Double harmonicActivePower46Avg) { + this.harmonicActivePower46Avg = harmonicActivePower46Avg; + } + + /** + * 获取46次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_46_95 - 46次谐波有功功率-95值 + */ + public Double getHarmonicActivePower4695() { + return harmonicActivePower4695; + } + + /** + * 设置46次谐波有功功率-95值 + * + * @param harmonicActivePower4695 46次谐波有功功率-95值 + */ + public void setHarmonicActivePower4695(Double harmonicActivePower4695) { + this.harmonicActivePower4695 = harmonicActivePower4695; + } + + /** + * 获取47次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_47_MAX - 47次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower47Max() { + return harmonicActivePower47Max; + } + + /** + * 设置47次谐波有功功率-最大值 + * + * @param harmonicActivePower47Max 47次谐波有功功率-最大值 + */ + public void setHarmonicActivePower47Max(Double harmonicActivePower47Max) { + this.harmonicActivePower47Max = harmonicActivePower47Max; + } + + /** + * 获取47次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_47_MIN - 47次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower47Min() { + return harmonicActivePower47Min; + } + + /** + * 设置47次谐波有功功率-最小值 + * + * @param harmonicActivePower47Min 47次谐波有功功率-最小值 + */ + public void setHarmonicActivePower47Min(Double harmonicActivePower47Min) { + this.harmonicActivePower47Min = harmonicActivePower47Min; + } + + /** + * 获取47次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_47_AVG - 47次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower47Avg() { + return harmonicActivePower47Avg; + } + + /** + * 设置47次谐波有功功率-平均值 + * + * @param harmonicActivePower47Avg 47次谐波有功功率-平均值 + */ + public void setHarmonicActivePower47Avg(Double harmonicActivePower47Avg) { + this.harmonicActivePower47Avg = harmonicActivePower47Avg; + } + + /** + * 获取47次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_47_95 - 47次谐波有功功率-95值 + */ + public Double getHarmonicActivePower4795() { + return harmonicActivePower4795; + } + + /** + * 设置47次谐波有功功率-95值 + * + * @param harmonicActivePower4795 47次谐波有功功率-95值 + */ + public void setHarmonicActivePower4795(Double harmonicActivePower4795) { + this.harmonicActivePower4795 = harmonicActivePower4795; + } + + /** + * 获取48次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_48_MAX - 48次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower48Max() { + return harmonicActivePower48Max; + } + + /** + * 设置48次谐波有功功率-最大值 + * + * @param harmonicActivePower48Max 48次谐波有功功率-最大值 + */ + public void setHarmonicActivePower48Max(Double harmonicActivePower48Max) { + this.harmonicActivePower48Max = harmonicActivePower48Max; + } + + /** + * 获取48次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_48_MIN - 48次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower48Min() { + return harmonicActivePower48Min; + } + + /** + * 设置48次谐波有功功率-最小值 + * + * @param harmonicActivePower48Min 48次谐波有功功率-最小值 + */ + public void setHarmonicActivePower48Min(Double harmonicActivePower48Min) { + this.harmonicActivePower48Min = harmonicActivePower48Min; + } + + /** + * 获取48次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_48_AVG - 48次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower48Avg() { + return harmonicActivePower48Avg; + } + + /** + * 设置48次谐波有功功率-平均值 + * + * @param harmonicActivePower48Avg 48次谐波有功功率-平均值 + */ + public void setHarmonicActivePower48Avg(Double harmonicActivePower48Avg) { + this.harmonicActivePower48Avg = harmonicActivePower48Avg; + } + + /** + * 获取48次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_48_95 - 48次谐波有功功率-95值 + */ + public Double getHarmonicActivePower4895() { + return harmonicActivePower4895; + } + + /** + * 设置48次谐波有功功率-95值 + * + * @param harmonicActivePower4895 48次谐波有功功率-95值 + */ + public void setHarmonicActivePower4895(Double harmonicActivePower4895) { + this.harmonicActivePower4895 = harmonicActivePower4895; + } + + /** + * 获取49次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_49_MAX - 49次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower49Max() { + return harmonicActivePower49Max; + } + + /** + * 设置49次谐波有功功率-最大值 + * + * @param harmonicActivePower49Max 49次谐波有功功率-最大值 + */ + public void setHarmonicActivePower49Max(Double harmonicActivePower49Max) { + this.harmonicActivePower49Max = harmonicActivePower49Max; + } + + /** + * 获取49次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_49_MIN - 49次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower49Min() { + return harmonicActivePower49Min; + } + + /** + * 设置49次谐波有功功率-最小值 + * + * @param harmonicActivePower49Min 49次谐波有功功率-最小值 + */ + public void setHarmonicActivePower49Min(Double harmonicActivePower49Min) { + this.harmonicActivePower49Min = harmonicActivePower49Min; + } + + /** + * 获取49次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_49_AVG - 49次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower49Avg() { + return harmonicActivePower49Avg; + } + + /** + * 设置49次谐波有功功率-平均值 + * + * @param harmonicActivePower49Avg 49次谐波有功功率-平均值 + */ + public void setHarmonicActivePower49Avg(Double harmonicActivePower49Avg) { + this.harmonicActivePower49Avg = harmonicActivePower49Avg; + } + + /** + * 获取49次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_49_95 - 49次谐波有功功率-95值 + */ + public Double getHarmonicActivePower4995() { + return harmonicActivePower4995; + } + + /** + * 设置49次谐波有功功率-95值 + * + * @param harmonicActivePower4995 49次谐波有功功率-95值 + */ + public void setHarmonicActivePower4995(Double harmonicActivePower4995) { + this.harmonicActivePower4995 = harmonicActivePower4995; + } + + /** + * 获取50次谐波有功功率-最大值 + * + * @return HARMONIC_ACTIVE_POWER_50_MAX - 50次谐波有功功率-最大值 + */ + public Double getHarmonicActivePower50Max() { + return harmonicActivePower50Max; + } + + /** + * 设置50次谐波有功功率-最大值 + * + * @param harmonicActivePower50Max 50次谐波有功功率-最大值 + */ + public void setHarmonicActivePower50Max(Double harmonicActivePower50Max) { + this.harmonicActivePower50Max = harmonicActivePower50Max; + } + + /** + * 获取50次谐波有功功率-最小值 + * + * @return HARMONIC_ACTIVE_POWER_50_MIN - 50次谐波有功功率-最小值 + */ + public Double getHarmonicActivePower50Min() { + return harmonicActivePower50Min; + } + + /** + * 设置50次谐波有功功率-最小值 + * + * @param harmonicActivePower50Min 50次谐波有功功率-最小值 + */ + public void setHarmonicActivePower50Min(Double harmonicActivePower50Min) { + this.harmonicActivePower50Min = harmonicActivePower50Min; + } + + /** + * 获取50次谐波有功功率-平均值 + * + * @return HARMONIC_ACTIVE_POWER_50_AVG - 50次谐波有功功率-平均值 + */ + public Double getHarmonicActivePower50Avg() { + return harmonicActivePower50Avg; + } + + /** + * 设置50次谐波有功功率-平均值 + * + * @param harmonicActivePower50Avg 50次谐波有功功率-平均值 + */ + public void setHarmonicActivePower50Avg(Double harmonicActivePower50Avg) { + this.harmonicActivePower50Avg = harmonicActivePower50Avg; + } + + /** + * 获取50次谐波有功功率-95值 + * + * @return HARMONIC_ACTIVE_POWER_50_95 - 50次谐波有功功率-95值 + */ + public Double getHarmonicActivePower5095() { + return harmonicActivePower5095; + } + + /** + * 设置50次谐波有功功率-95值 + * + * @param harmonicActivePower5095 50次谐波有功功率-95值 + */ + public void setHarmonicActivePower5095(Double harmonicActivePower5095) { + this.harmonicActivePower5095 = harmonicActivePower5095; + } +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpHarmonicVRateReportDPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpHarmonicVRateReportDPO.java new file mode 100644 index 000000000..8eb3f8964 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpHarmonicVRateReportDPO.java @@ -0,0 +1,5200 @@ +package com.njcn.prepare.harmonic.pojo.po.line; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import com.github.jeffreyning.mybatisplus.anno.MppMultiId; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Date; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/25 11:11【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +/** + * 稳态监测点指标日报-日表(主配网表) /各次谐波电压含有率 + */ +@ApiModel(value="com-njcn-prepare-harmonic-pojo-po-line-RMpHarmonicVRateReportDPO") +@TableName(value = "r_mp_harmonic_v_rate_report_d") +public class RMpHarmonicVRateReportDPO { + /** + * 监测点ID + */ + @MppMultiId(value = "measurement_point_id") + @ApiModelProperty(value="监测点ID") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @MppMultiId(value = "data_date") + @ApiModelProperty(value="生成数据的时间,每日统计一次") + private Date dataDate; + + /** + * 相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储 + */ + @MppMultiId(value = "phase") + @ApiModelProperty(value="相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储") + private String phase; + + /** + * 电压总谐波畸变率-最大值 + */ + @TableField(value = "voltage_harmonic_thd_max") + @ApiModelProperty(value="电压总谐波畸变率-最大值") + private Double voltageHarmonicThdMax; + + /** + * 电压总谐波畸变率-最小值 + */ + @TableField(value = "voltage_harmonic_thd_min") + @ApiModelProperty(value="电压总谐波畸变率-最小值") + private Double voltageHarmonicThdMin; + + /** + * 电压总谐波畸变率-平均值 + */ + @TableField(value = "voltage_harmonic_thd_avg") + @ApiModelProperty(value="电压总谐波畸变率-平均值") + private Double voltageHarmonicThdAvg; + + /** + * 电压总谐波畸变率-95值 + */ + @TableField(value = "voltage_harmonic_thd_95") + @ApiModelProperty(value="电压总谐波畸变率-95值") + private Double voltageHarmonicThd95; + + /** + * 相(线)电压基波有效值-最大值 + */ + @TableField(value = "fundamental_voltage_max") + @ApiModelProperty(value="相(线)电压基波有效值-最大值") + private Double fundamentalVoltageMax; + + /** + * 相(线)电压基波有效值-最小值 + */ + @TableField(value = "fundamental_voltage_min") + @ApiModelProperty(value="相(线)电压基波有效值-最小值") + private Double fundamentalVoltageMin; + + /** + * 相(线)电压基波有效值-平均值 + */ + @TableField(value = "fundamental_voltage_avg") + @ApiModelProperty(value="相(线)电压基波有效值-平均值") + private Double fundamentalVoltageAvg; + + /** + * 相(线)电压基波有效值-95值 + */ + @TableField(value = "fundamental_voltage_95") + @ApiModelProperty(value="相(线)电压基波有效值-95值") + private Double fundamentalVoltage95; + + /** + * 2次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_2_max") + @ApiModelProperty(value="2次谐波电压含有率最大值") + private Double harmonicVoltageContent2Max; + + /** + * 2次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_2_min") + @ApiModelProperty(value="2次谐波电压含有率最小值") + private Double harmonicVoltageContent2Min; + + /** + * 2次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_2_avg") + @ApiModelProperty(value="2次谐波电压含有率平均值") + private Double harmonicVoltageContent2Avg; + + /** + * 2次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_2_95") + @ApiModelProperty(value="2次谐波电压含有率95值") + private Double harmonicVoltageContent295; + + /** + * 3次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_3_max") + @ApiModelProperty(value="3次谐波电压含有率最大值") + private Double harmonicVoltageContent3Max; + + /** + * 3次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_3_min") + @ApiModelProperty(value="3次谐波电压含有率最小值") + private Double harmonicVoltageContent3Min; + + /** + * 3次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_3_avg") + @ApiModelProperty(value="3次谐波电压含有率平均值") + private Double harmonicVoltageContent3Avg; + + /** + * 3次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_3_95") + @ApiModelProperty(value="3次谐波电压含有率95值") + private Double harmonicVoltageContent395; + + /** + * 4次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_4_max") + @ApiModelProperty(value="4次谐波电压含有率最大值") + private Double harmonicVoltageContent4Max; + + /** + * 4次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_4_min") + @ApiModelProperty(value="4次谐波电压含有率最小值") + private Double harmonicVoltageContent4Min; + + /** + * 4次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_4_avg") + @ApiModelProperty(value="4次谐波电压含有率平均值") + private Double harmonicVoltageContent4Avg; + + /** + * 4次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_4_95") + @ApiModelProperty(value="4次谐波电压含有率95值") + private Double harmonicVoltageContent495; + + /** + * 5次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_5_max") + @ApiModelProperty(value="5次谐波电压含有率最大值") + private Double harmonicVoltageContent5Max; + + /** + * 5次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_5_min") + @ApiModelProperty(value="5次谐波电压含有率最小值") + private Double harmonicVoltageContent5Min; + + /** + * 5次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_5_avg") + @ApiModelProperty(value="5次谐波电压含有率平均值") + private Double harmonicVoltageContent5Avg; + + /** + * 5次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_5_95") + @ApiModelProperty(value="5次谐波电压含有率95值") + private Double harmonicVoltageContent595; + + /** + * 6次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_6_max") + @ApiModelProperty(value="6次谐波电压含有率最大值") + private Double harmonicVoltageContent6Max; + + /** + * 6次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_6_min") + @ApiModelProperty(value="6次谐波电压含有率最小值") + private Double harmonicVoltageContent6Min; + + /** + * 6次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_6_avg") + @ApiModelProperty(value="6次谐波电压含有率平均值") + private Double harmonicVoltageContent6Avg; + + /** + * 6次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_6_95") + @ApiModelProperty(value="6次谐波电压含有率95值") + private Double harmonicVoltageContent695; + + /** + * 7次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_7_max") + @ApiModelProperty(value="7次谐波电压含有率最大值") + private Double harmonicVoltageContent7Max; + + /** + * 7次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_7_min") + @ApiModelProperty(value="7次谐波电压含有率最小值") + private Double harmonicVoltageContent7Min; + + /** + * 7次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_7_avg") + @ApiModelProperty(value="7次谐波电压含有率平均值") + private Double harmonicVoltageContent7Avg; + + /** + * 7次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_7_95") + @ApiModelProperty(value="7次谐波电压含有率95值") + private Double harmonicVoltageContent795; + + /** + * 8次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_8_max") + @ApiModelProperty(value="8次谐波电压含有率最大值") + private Double harmonicVoltageContent8Max; + + /** + * 8次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_8_min") + @ApiModelProperty(value="8次谐波电压含有率最小值") + private Double harmonicVoltageContent8Min; + + /** + * 8次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_8_avg") + @ApiModelProperty(value="8次谐波电压含有率平均值") + private Double harmonicVoltageContent8Avg; + + /** + * 8次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_8_95") + @ApiModelProperty(value="8次谐波电压含有率95值") + private Double harmonicVoltageContent895; + + /** + * 9次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_9_max") + @ApiModelProperty(value="9次谐波电压含有率最大值") + private Double harmonicVoltageContent9Max; + + /** + * 9次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_9_min") + @ApiModelProperty(value="9次谐波电压含有率最小值") + private Double harmonicVoltageContent9Min; + + /** + * 9次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_9_avg") + @ApiModelProperty(value="9次谐波电压含有率平均值") + private Double harmonicVoltageContent9Avg; + + /** + * 9次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_9_95") + @ApiModelProperty(value="9次谐波电压含有率95值") + private Double harmonicVoltageContent995; + + /** + * 10次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_10_max") + @ApiModelProperty(value="10次谐波电压含有率最大值") + private Double harmonicVoltageContent10Max; + + /** + * 10次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_10_min") + @ApiModelProperty(value="10次谐波电压含有率最小值") + private Double harmonicVoltageContent10Min; + + /** + * 10次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_10_avg") + @ApiModelProperty(value="10次谐波电压含有率平均值") + private Double harmonicVoltageContent10Avg; + + /** + * 10次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_10_95") + @ApiModelProperty(value="10次谐波电压含有率95值") + private Double harmonicVoltageContent1095; + + /** + * 11次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_11_max") + @ApiModelProperty(value="11次谐波电压含有率最大值") + private Double harmonicVoltageContent11Max; + + /** + * 11次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_11_min") + @ApiModelProperty(value="11次谐波电压含有率最小值") + private Double harmonicVoltageContent11Min; + + /** + * 11次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_11_avg") + @ApiModelProperty(value="11次谐波电压含有率平均值") + private Double harmonicVoltageContent11Avg; + + /** + * 11次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_11_95") + @ApiModelProperty(value="11次谐波电压含有率95值") + private Double harmonicVoltageContent1195; + + /** + * 12次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_12_max") + @ApiModelProperty(value="12次谐波电压含有率最大值") + private Double harmonicVoltageContent12Max; + + /** + * 12次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_12_min") + @ApiModelProperty(value="12次谐波电压含有率最小值") + private Double harmonicVoltageContent12Min; + + /** + * 12次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_12_avg") + @ApiModelProperty(value="12次谐波电压含有率平均值") + private Double harmonicVoltageContent12Avg; + + /** + * 12次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_12_95") + @ApiModelProperty(value="12次谐波电压含有率95值") + private Double harmonicVoltageContent1295; + + /** + * 13次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_13_max") + @ApiModelProperty(value="13次谐波电压含有率最大值") + private Double harmonicVoltageContent13Max; + + /** + * 13次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_13_min") + @ApiModelProperty(value="13次谐波电压含有率最小值") + private Double harmonicVoltageContent13Min; + + /** + * 13次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_13_avg") + @ApiModelProperty(value="13次谐波电压含有率平均值") + private Double harmonicVoltageContent13Avg; + + /** + * 13次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_13_95") + @ApiModelProperty(value="13次谐波电压含有率95值") + private Double harmonicVoltageContent1395; + + /** + * 14次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_14_max") + @ApiModelProperty(value="14次谐波电压含有率最大值") + private Double harmonicVoltageContent14Max; + + /** + * 14次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_14_min") + @ApiModelProperty(value="14次谐波电压含有率最小值") + private Double harmonicVoltageContent14Min; + + /** + * 14次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_14_avg") + @ApiModelProperty(value="14次谐波电压含有率平均值") + private Double harmonicVoltageContent14Avg; + + /** + * 14次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_14_95") + @ApiModelProperty(value="14次谐波电压含有率95值") + private Double harmonicVoltageContent1495; + + /** + * 15次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_15_max") + @ApiModelProperty(value="15次谐波电压含有率最大值") + private Double harmonicVoltageContent15Max; + + /** + * 15次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_15_min") + @ApiModelProperty(value="15次谐波电压含有率最小值") + private Double harmonicVoltageContent15Min; + + /** + * 15次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_15_avg") + @ApiModelProperty(value="15次谐波电压含有率平均值") + private Double harmonicVoltageContent15Avg; + + /** + * 15次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_15_95") + @ApiModelProperty(value="15次谐波电压含有率95值") + private Double harmonicVoltageContent1595; + + /** + * 16次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_16_max") + @ApiModelProperty(value="16次谐波电压含有率最大值") + private Double harmonicVoltageContent16Max; + + /** + * 16次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_16_min") + @ApiModelProperty(value="16次谐波电压含有率最小值") + private Double harmonicVoltageContent16Min; + + /** + * 16次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_16_avg") + @ApiModelProperty(value="16次谐波电压含有率平均值") + private Double harmonicVoltageContent16Avg; + + /** + * 16次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_16_95") + @ApiModelProperty(value="16次谐波电压含有率95值") + private Double harmonicVoltageContent1695; + + /** + * 17次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_17_max") + @ApiModelProperty(value="17次谐波电压含有率最大值") + private Double harmonicVoltageContent17Max; + + /** + * 17次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_17_min") + @ApiModelProperty(value="17次谐波电压含有率最小值") + private Double harmonicVoltageContent17Min; + + /** + * 17次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_17_avg") + @ApiModelProperty(value="17次谐波电压含有率平均值") + private Double harmonicVoltageContent17Avg; + + /** + * 17次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_17_95") + @ApiModelProperty(value="17次谐波电压含有率95值") + private Double harmonicVoltageContent1795; + + /** + * 18次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_18_max") + @ApiModelProperty(value="18次谐波电压含有率最大值") + private Double harmonicVoltageContent18Max; + + /** + * 18次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_18_min") + @ApiModelProperty(value="18次谐波电压含有率最小值") + private Double harmonicVoltageContent18Min; + + /** + * 18次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_18_avg") + @ApiModelProperty(value="18次谐波电压含有率平均值") + private Double harmonicVoltageContent18Avg; + + /** + * 18次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_18_95") + @ApiModelProperty(value="18次谐波电压含有率95值") + private Double harmonicVoltageContent1895; + + /** + * 19次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_19_max") + @ApiModelProperty(value="19次谐波电压含有率最大值") + private Double harmonicVoltageContent19Max; + + /** + * 19次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_19_min") + @ApiModelProperty(value="19次谐波电压含有率最小值") + private Double harmonicVoltageContent19Min; + + /** + * 19次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_19_avg") + @ApiModelProperty(value="19次谐波电压含有率平均值") + private Double harmonicVoltageContent19Avg; + + /** + * 19次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_19_95") + @ApiModelProperty(value="19次谐波电压含有率95值") + private Double harmonicVoltageContent1995; + + /** + * 20次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_20_max") + @ApiModelProperty(value="20次谐波电压含有率最大值") + private Double harmonicVoltageContent20Max; + + /** + * 20次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_20_min") + @ApiModelProperty(value="20次谐波电压含有率最小值") + private Double harmonicVoltageContent20Min; + + /** + * 20次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_20_avg") + @ApiModelProperty(value="20次谐波电压含有率平均值") + private Double harmonicVoltageContent20Avg; + + /** + * 20次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_20_95") + @ApiModelProperty(value="20次谐波电压含有率95值") + private Double harmonicVoltageContent2095; + + /** + * 21次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_21_max") + @ApiModelProperty(value="21次谐波电压含有率最大值") + private Double harmonicVoltageContent21Max; + + /** + * 21次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_21_min") + @ApiModelProperty(value="21次谐波电压含有率最小值") + private Double harmonicVoltageContent21Min; + + /** + * 21次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_21_avg") + @ApiModelProperty(value="21次谐波电压含有率平均值") + private Double harmonicVoltageContent21Avg; + + /** + * 21次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_21_95") + @ApiModelProperty(value="21次谐波电压含有率95值") + private Double harmonicVoltageContent2195; + + /** + * 22次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_22_max") + @ApiModelProperty(value="22次谐波电压含有率最大值") + private Double harmonicVoltageContent22Max; + + /** + * 22次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_22_min") + @ApiModelProperty(value="22次谐波电压含有率最小值") + private Double harmonicVoltageContent22Min; + + /** + * 22次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_22_avg") + @ApiModelProperty(value="22次谐波电压含有率平均值") + private Double harmonicVoltageContent22Avg; + + /** + * 22次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_22_95") + @ApiModelProperty(value="22次谐波电压含有率95值") + private Double harmonicVoltageContent2295; + + /** + * 23次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_23_max") + @ApiModelProperty(value="23次谐波电压含有率最大值") + private Double harmonicVoltageContent23Max; + + /** + * 23次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_23_min") + @ApiModelProperty(value="23次谐波电压含有率最小值") + private Double harmonicVoltageContent23Min; + + /** + * 23次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_23_avg") + @ApiModelProperty(value="23次谐波电压含有率平均值") + private Double harmonicVoltageContent23Avg; + + /** + * 23次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_23_95") + @ApiModelProperty(value="23次谐波电压含有率95值") + private Double harmonicVoltageContent2395; + + /** + * 24次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_24_max") + @ApiModelProperty(value="24次谐波电压含有率最大值") + private Double harmonicVoltageContent24Max; + + /** + * 24次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_24_min") + @ApiModelProperty(value="24次谐波电压含有率最小值") + private Double harmonicVoltageContent24Min; + + /** + * 24次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_24_avg") + @ApiModelProperty(value="24次谐波电压含有率平均值") + private Double harmonicVoltageContent24Avg; + + /** + * 24次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_24_95") + @ApiModelProperty(value="24次谐波电压含有率95值") + private Double harmonicVoltageContent2495; + + /** + * 25次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_25_max") + @ApiModelProperty(value="25次谐波电压含有率最大值") + private Double harmonicVoltageContent25Max; + + /** + * 25次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_25_min") + @ApiModelProperty(value="25次谐波电压含有率最小值") + private Double harmonicVoltageContent25Min; + + /** + * 25次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_25_avg") + @ApiModelProperty(value="25次谐波电压含有率平均值") + private Double harmonicVoltageContent25Avg; + + /** + * 25次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_25_95") + @ApiModelProperty(value="25次谐波电压含有率95值") + private Double harmonicVoltageContent2595; + + /** + * 26次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_26_max") + @ApiModelProperty(value="26次谐波电压含有率最大值") + private Double harmonicVoltageContent26Max; + + /** + * 26次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_26_min") + @ApiModelProperty(value="26次谐波电压含有率最小值") + private Double harmonicVoltageContent26Min; + + /** + * 26次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_26_avg") + @ApiModelProperty(value="26次谐波电压含有率平均值") + private Double harmonicVoltageContent26Avg; + + /** + * 26次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_26_95") + @ApiModelProperty(value="26次谐波电压含有率95值") + private Double harmonicVoltageContent2695; + + /** + * 27次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_27_max") + @ApiModelProperty(value="27次谐波电压含有率最大值") + private Double harmonicVoltageContent27Max; + + /** + * 27次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_27_min") + @ApiModelProperty(value="27次谐波电压含有率最小值") + private Double harmonicVoltageContent27Min; + + /** + * 27次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_27_avg") + @ApiModelProperty(value="27次谐波电压含有率平均值") + private Double harmonicVoltageContent27Avg; + + /** + * 27次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_27_95") + @ApiModelProperty(value="27次谐波电压含有率95值") + private Double harmonicVoltageContent2795; + + /** + * 28次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_28_max") + @ApiModelProperty(value="28次谐波电压含有率最大值") + private Double harmonicVoltageContent28Max; + + /** + * 28次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_28_min") + @ApiModelProperty(value="28次谐波电压含有率最小值") + private Double harmonicVoltageContent28Min; + + /** + * 28次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_28_avg") + @ApiModelProperty(value="28次谐波电压含有率平均值") + private Double harmonicVoltageContent28Avg; + + /** + * 28次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_28_95") + @ApiModelProperty(value="28次谐波电压含有率95值") + private Double harmonicVoltageContent2895; + + /** + * 29次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_29_max") + @ApiModelProperty(value="29次谐波电压含有率最大值") + private Double harmonicVoltageContent29Max; + + /** + * 29次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_29_min") + @ApiModelProperty(value="29次谐波电压含有率最小值") + private Double harmonicVoltageContent29Min; + + /** + * 29次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_29_avg") + @ApiModelProperty(value="29次谐波电压含有率平均值") + private Double harmonicVoltageContent29Avg; + + /** + * 29次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_29_95") + @ApiModelProperty(value="29次谐波电压含有率95值") + private Double harmonicVoltageContent2995; + + /** + * 30次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_30_max") + @ApiModelProperty(value="30次谐波电压含有率最大值") + private Double harmonicVoltageContent30Max; + + /** + * 30次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_30_min") + @ApiModelProperty(value="30次谐波电压含有率最小值") + private Double harmonicVoltageContent30Min; + + /** + * 30次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_30_avg") + @ApiModelProperty(value="30次谐波电压含有率平均值") + private Double harmonicVoltageContent30Avg; + + /** + * 30次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_30_95") + @ApiModelProperty(value="30次谐波电压含有率95值") + private Double harmonicVoltageContent3095; + + /** + * 31次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_31_max") + @ApiModelProperty(value="31次谐波电压含有率最大值") + private Double harmonicVoltageContent31Max; + + /** + * 31次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_31_min") + @ApiModelProperty(value="31次谐波电压含有率最小值") + private Double harmonicVoltageContent31Min; + + /** + * 31次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_31_avg") + @ApiModelProperty(value="31次谐波电压含有率平均值") + private Double harmonicVoltageContent31Avg; + + /** + * 31次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_31_95") + @ApiModelProperty(value="31次谐波电压含有率95值") + private Double harmonicVoltageContent3195; + + /** + * 32次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_32_max") + @ApiModelProperty(value="32次谐波电压含有率最大值") + private Double harmonicVoltageContent32Max; + + /** + * 32次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_32_min") + @ApiModelProperty(value="32次谐波电压含有率最小值") + private Double harmonicVoltageContent32Min; + + /** + * 32次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_32_avg") + @ApiModelProperty(value="32次谐波电压含有率平均值") + private Double harmonicVoltageContent32Avg; + + /** + * 32次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_32_95") + @ApiModelProperty(value="32次谐波电压含有率95值") + private Double harmonicVoltageContent3295; + + /** + * 33次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_33_max") + @ApiModelProperty(value="33次谐波电压含有率最大值") + private Double harmonicVoltageContent33Max; + + /** + * 33次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_33_min") + @ApiModelProperty(value="33次谐波电压含有率最小值") + private Double harmonicVoltageContent33Min; + + /** + * 33次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_33_avg") + @ApiModelProperty(value="33次谐波电压含有率平均值") + private Double harmonicVoltageContent33Avg; + + /** + * 33次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_33_95") + @ApiModelProperty(value="33次谐波电压含有率95值") + private Double harmonicVoltageContent3395; + + /** + * 34次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_34_max") + @ApiModelProperty(value="34次谐波电压含有率最大值") + private Double harmonicVoltageContent34Max; + + /** + * 34次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_34_min") + @ApiModelProperty(value="34次谐波电压含有率最小值") + private Double harmonicVoltageContent34Min; + + /** + * 34次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_34_avg") + @ApiModelProperty(value="34次谐波电压含有率平均值") + private Double harmonicVoltageContent34Avg; + + /** + * 34次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_34_95") + @ApiModelProperty(value="34次谐波电压含有率95值") + private Double harmonicVoltageContent3495; + + /** + * 35次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_35_max") + @ApiModelProperty(value="35次谐波电压含有率最大值") + private Double harmonicVoltageContent35Max; + + /** + * 35次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_35_min") + @ApiModelProperty(value="35次谐波电压含有率最小值") + private Double harmonicVoltageContent35Min; + + /** + * 35次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_35_avg") + @ApiModelProperty(value="35次谐波电压含有率平均值") + private Double harmonicVoltageContent35Avg; + + /** + * 35次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_35_95") + @ApiModelProperty(value="35次谐波电压含有率95值") + private Double harmonicVoltageContent3595; + + /** + * 36次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_36_max") + @ApiModelProperty(value="36次谐波电压含有率最大值") + private Double harmonicVoltageContent36Max; + + /** + * 36次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_36_min") + @ApiModelProperty(value="36次谐波电压含有率最小值") + private Double harmonicVoltageContent36Min; + + /** + * 36次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_36_avg") + @ApiModelProperty(value="36次谐波电压含有率平均值") + private Double harmonicVoltageContent36Avg; + + /** + * 36次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_36_95") + @ApiModelProperty(value="36次谐波电压含有率95值") + private Double harmonicVoltageContent3695; + + /** + * 37次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_37_max") + @ApiModelProperty(value="37次谐波电压含有率最大值") + private Double harmonicVoltageContent37Max; + + /** + * 37次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_37_min") + @ApiModelProperty(value="37次谐波电压含有率最小值") + private Double harmonicVoltageContent37Min; + + /** + * 37次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_37_avg") + @ApiModelProperty(value="37次谐波电压含有率平均值") + private Double harmonicVoltageContent37Avg; + + /** + * 37次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_37_95") + @ApiModelProperty(value="37次谐波电压含有率95值") + private Double harmonicVoltageContent3795; + + /** + * 38次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_38_max") + @ApiModelProperty(value="38次谐波电压含有率最大值") + private Double harmonicVoltageContent38Max; + + /** + * 38次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_38_min") + @ApiModelProperty(value="38次谐波电压含有率最小值") + private Double harmonicVoltageContent38Min; + + /** + * 38次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_38_avg") + @ApiModelProperty(value="38次谐波电压含有率平均值") + private Double harmonicVoltageContent38Avg; + + /** + * 38次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_38_95") + @ApiModelProperty(value="38次谐波电压含有率95值") + private Double harmonicVoltageContent3895; + + /** + * 39次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_39_max") + @ApiModelProperty(value="39次谐波电压含有率最大值") + private Double harmonicVoltageContent39Max; + + /** + * 39次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_39_min") + @ApiModelProperty(value="39次谐波电压含有率最小值") + private Double harmonicVoltageContent39Min; + + /** + * 39次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_39_avg") + @ApiModelProperty(value="39次谐波电压含有率平均值") + private Double harmonicVoltageContent39Avg; + + /** + * 39次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_39_95") + @ApiModelProperty(value="39次谐波电压含有率95值") + private Double harmonicVoltageContent3995; + + /** + * 40次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_40_max") + @ApiModelProperty(value="40次谐波电压含有率最大值") + private Double harmonicVoltageContent40Max; + + /** + * 40次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_40_min") + @ApiModelProperty(value="40次谐波电压含有率最小值") + private Double harmonicVoltageContent40Min; + + /** + * 40次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_40_avg") + @ApiModelProperty(value="40次谐波电压含有率平均值") + private Double harmonicVoltageContent40Avg; + + /** + * 40次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_40_95") + @ApiModelProperty(value="40次谐波电压含有率95值") + private Double harmonicVoltageContent4095; + + /** + * 41次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_41_max") + @ApiModelProperty(value="41次谐波电压含有率最大值") + private Double harmonicVoltageContent41Max; + + /** + * 41次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_41_min") + @ApiModelProperty(value="41次谐波电压含有率最小值") + private Double harmonicVoltageContent41Min; + + /** + * 41次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_41_avg") + @ApiModelProperty(value="41次谐波电压含有率平均值") + private Double harmonicVoltageContent41Avg; + + /** + * 41次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_41_95") + @ApiModelProperty(value="41次谐波电压含有率95值") + private Double harmonicVoltageContent4195; + + /** + * 42次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_42_max") + @ApiModelProperty(value="42次谐波电压含有率最大值") + private Double harmonicVoltageContent42Max; + + /** + * 42次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_42_min") + @ApiModelProperty(value="42次谐波电压含有率最小值") + private Double harmonicVoltageContent42Min; + + /** + * 42次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_42_avg") + @ApiModelProperty(value="42次谐波电压含有率平均值") + private Double harmonicVoltageContent42Avg; + + /** + * 42次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_42_95") + @ApiModelProperty(value="42次谐波电压含有率95值") + private Double harmonicVoltageContent4295; + + /** + * 43次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_43_max") + @ApiModelProperty(value="43次谐波电压含有率最大值") + private Double harmonicVoltageContent43Max; + + /** + * 43次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_43_min") + @ApiModelProperty(value="43次谐波电压含有率最小值") + private Double harmonicVoltageContent43Min; + + /** + * 43次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_43_avg") + @ApiModelProperty(value="43次谐波电压含有率平均值") + private Double harmonicVoltageContent43Avg; + + /** + * 43次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_43_95") + @ApiModelProperty(value="43次谐波电压含有率95值") + private Double harmonicVoltageContent4395; + + /** + * 44次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_44_max") + @ApiModelProperty(value="44次谐波电压含有率最大值") + private Double harmonicVoltageContent44Max; + + /** + * 44次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_44_min") + @ApiModelProperty(value="44次谐波电压含有率最小值") + private Double harmonicVoltageContent44Min; + + /** + * 44次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_44_avg") + @ApiModelProperty(value="44次谐波电压含有率平均值") + private Double harmonicVoltageContent44Avg; + + /** + * 44次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_44_95") + @ApiModelProperty(value="44次谐波电压含有率95值") + private Double harmonicVoltageContent4495; + + /** + * 45次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_45_max") + @ApiModelProperty(value="45次谐波电压含有率最大值") + private Double harmonicVoltageContent45Max; + + /** + * 45次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_45_min") + @ApiModelProperty(value="45次谐波电压含有率最小值") + private Double harmonicVoltageContent45Min; + + /** + * 45次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_45_avg") + @ApiModelProperty(value="45次谐波电压含有率平均值") + private Double harmonicVoltageContent45Avg; + + /** + * 45次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_45_95") + @ApiModelProperty(value="45次谐波电压含有率95值") + private Double harmonicVoltageContent4595; + + /** + * 46次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_46_max") + @ApiModelProperty(value="46次谐波电压含有率最大值") + private Double harmonicVoltageContent46Max; + + /** + * 46次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_46_min") + @ApiModelProperty(value="46次谐波电压含有率最小值") + private Double harmonicVoltageContent46Min; + + /** + * 46次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_46_avg") + @ApiModelProperty(value="46次谐波电压含有率平均值") + private Double harmonicVoltageContent46Avg; + + /** + * 46次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_46_95") + @ApiModelProperty(value="46次谐波电压含有率95值") + private Double harmonicVoltageContent4695; + + /** + * 47次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_47_max") + @ApiModelProperty(value="47次谐波电压含有率最大值") + private Double harmonicVoltageContent47Max; + + /** + * 47次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_47_min") + @ApiModelProperty(value="47次谐波电压含有率最小值") + private Double harmonicVoltageContent47Min; + + /** + * 47次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_47_avg") + @ApiModelProperty(value="47次谐波电压含有率平均值") + private Double harmonicVoltageContent47Avg; + + /** + * 47次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_47_95") + @ApiModelProperty(value="47次谐波电压含有率95值") + private Double harmonicVoltageContent4795; + + /** + * 48次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_48_max") + @ApiModelProperty(value="48次谐波电压含有率最大值") + private Double harmonicVoltageContent48Max; + + /** + * 48次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_48_min") + @ApiModelProperty(value="48次谐波电压含有率最小值") + private Double harmonicVoltageContent48Min; + + /** + * 48次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_48_avg") + @ApiModelProperty(value="48次谐波电压含有率平均值") + private Double harmonicVoltageContent48Avg; + + /** + * 48次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_48_95") + @ApiModelProperty(value="48次谐波电压含有率95值") + private Double harmonicVoltageContent4895; + + /** + * 49次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_49_max") + @ApiModelProperty(value="49次谐波电压含有率最大值") + private Double harmonicVoltageContent49Max; + + /** + * 49次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_49_min") + @ApiModelProperty(value="49次谐波电压含有率最小值") + private Double harmonicVoltageContent49Min; + + /** + * 49次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_49_avg") + @ApiModelProperty(value="49次谐波电压含有率平均值") + private Double harmonicVoltageContent49Avg; + + /** + * 49次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_49_95") + @ApiModelProperty(value="49次谐波电压含有率95值") + private Double harmonicVoltageContent4995; + + /** + * 50次谐波电压含有率最大值 + */ + @TableField(value = "harmonic_voltage_content_50_max") + @ApiModelProperty(value="50次谐波电压含有率最大值") + private Double harmonicVoltageContent50Max; + + /** + * 50次谐波电压含有率最小值 + */ + @TableField(value = "harmonic_voltage_content_50_min") + @ApiModelProperty(value="50次谐波电压含有率最小值") + private Double harmonicVoltageContent50Min; + + /** + * 50次谐波电压含有率平均值 + */ + @TableField(value = "harmonic_voltage_content_50_avg") + @ApiModelProperty(value="50次谐波电压含有率平均值") + private Double harmonicVoltageContent50Avg; + + /** + * 50次谐波电压含有率95值 + */ + @TableField(value = "harmonic_voltage_content_50_95") + @ApiModelProperty(value="50次谐波电压含有率95值") + private Double harmonicVoltageContent5095; + + /** + * 获取监测点ID + * + * @return measurement_point_id - 监测点ID + */ + public String getMeasurementPointId() { + return measurementPointId; + } + + /** + * 设置监测点ID + * + * @param measurementPointId 监测点ID + */ + public void setMeasurementPointId(String measurementPointId) { + this.measurementPointId = measurementPointId; + } + + /** + * 获取生成数据的时间,每日统计一次 + * + * @return data_date - 生成数据的时间,每日统计一次 + */ + public Date getDataDate() { + return dataDate; + } + + /** + * 设置生成数据的时间,每日统计一次 + * + * @param dataDate 生成数据的时间,每日统计一次 + */ + public void setDataDate(Date dataDate) { + this.dataDate = dataDate; + } + + /** + * 获取相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储 + * + * @return phase - 相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储 + */ + public String getPhase() { + return phase; + } + + /** + * 设置相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储 + * + * @param phase 相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储 + */ + public void setPhase(String phase) { + this.phase = phase; + } + + /** + * 获取电压总谐波畸变率-最大值 + * + * @return voltage_harmonic_thd_max - 电压总谐波畸变率-最大值 + */ + public Double getVoltageHarmonicThdMax() { + return voltageHarmonicThdMax; + } + + /** + * 设置电压总谐波畸变率-最大值 + * + * @param voltageHarmonicThdMax 电压总谐波畸变率-最大值 + */ + public void setVoltageHarmonicThdMax(Double voltageHarmonicThdMax) { + this.voltageHarmonicThdMax = voltageHarmonicThdMax; + } + + /** + * 获取电压总谐波畸变率-最小值 + * + * @return voltage_harmonic_thd_min - 电压总谐波畸变率-最小值 + */ + public Double getVoltageHarmonicThdMin() { + return voltageHarmonicThdMin; + } + + /** + * 设置电压总谐波畸变率-最小值 + * + * @param voltageHarmonicThdMin 电压总谐波畸变率-最小值 + */ + public void setVoltageHarmonicThdMin(Double voltageHarmonicThdMin) { + this.voltageHarmonicThdMin = voltageHarmonicThdMin; + } + + /** + * 获取电压总谐波畸变率-平均值 + * + * @return voltage_harmonic_thd_avg - 电压总谐波畸变率-平均值 + */ + public Double getVoltageHarmonicThdAvg() { + return voltageHarmonicThdAvg; + } + + /** + * 设置电压总谐波畸变率-平均值 + * + * @param voltageHarmonicThdAvg 电压总谐波畸变率-平均值 + */ + public void setVoltageHarmonicThdAvg(Double voltageHarmonicThdAvg) { + this.voltageHarmonicThdAvg = voltageHarmonicThdAvg; + } + + /** + * 获取电压总谐波畸变率-95值 + * + * @return voltage_harmonic_thd_95 - 电压总谐波畸变率-95值 + */ + public Double getVoltageHarmonicThd95() { + return voltageHarmonicThd95; + } + + /** + * 设置电压总谐波畸变率-95值 + * + * @param voltageHarmonicThd95 电压总谐波畸变率-95值 + */ + public void setVoltageHarmonicThd95(Double voltageHarmonicThd95) { + this.voltageHarmonicThd95 = voltageHarmonicThd95; + } + + /** + * 获取相(线)电压基波有效值-最大值 + * + * @return fundamental_voltage_max - 相(线)电压基波有效值-最大值 + */ + public Double getFundamentalVoltageMax() { + return fundamentalVoltageMax; + } + + /** + * 设置相(线)电压基波有效值-最大值 + * + * @param fundamentalVoltageMax 相(线)电压基波有效值-最大值 + */ + public void setFundamentalVoltageMax(Double fundamentalVoltageMax) { + this.fundamentalVoltageMax = fundamentalVoltageMax; + } + + /** + * 获取相(线)电压基波有效值-最小值 + * + * @return fundamental_voltage_min - 相(线)电压基波有效值-最小值 + */ + public Double getFundamentalVoltageMin() { + return fundamentalVoltageMin; + } + + /** + * 设置相(线)电压基波有效值-最小值 + * + * @param fundamentalVoltageMin 相(线)电压基波有效值-最小值 + */ + public void setFundamentalVoltageMin(Double fundamentalVoltageMin) { + this.fundamentalVoltageMin = fundamentalVoltageMin; + } + + /** + * 获取相(线)电压基波有效值-平均值 + * + * @return fundamental_voltage_avg - 相(线)电压基波有效值-平均值 + */ + public Double getFundamentalVoltageAvg() { + return fundamentalVoltageAvg; + } + + /** + * 设置相(线)电压基波有效值-平均值 + * + * @param fundamentalVoltageAvg 相(线)电压基波有效值-平均值 + */ + public void setFundamentalVoltageAvg(Double fundamentalVoltageAvg) { + this.fundamentalVoltageAvg = fundamentalVoltageAvg; + } + + /** + * 获取相(线)电压基波有效值-95值 + * + * @return fundamental_voltage_95 - 相(线)电压基波有效值-95值 + */ + public Double getFundamentalVoltage95() { + return fundamentalVoltage95; + } + + /** + * 设置相(线)电压基波有效值-95值 + * + * @param fundamentalVoltage95 相(线)电压基波有效值-95值 + */ + public void setFundamentalVoltage95(Double fundamentalVoltage95) { + this.fundamentalVoltage95 = fundamentalVoltage95; + } + + /** + * 获取2次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_2_max - 2次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent2Max() { + return harmonicVoltageContent2Max; + } + + /** + * 设置2次谐波电压含有率最大值 + * + * @param harmonicVoltageContent2Max 2次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent2Max(Double harmonicVoltageContent2Max) { + this.harmonicVoltageContent2Max = harmonicVoltageContent2Max; + } + + /** + * 获取2次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_2_min - 2次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent2Min() { + return harmonicVoltageContent2Min; + } + + /** + * 设置2次谐波电压含有率最小值 + * + * @param harmonicVoltageContent2Min 2次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent2Min(Double harmonicVoltageContent2Min) { + this.harmonicVoltageContent2Min = harmonicVoltageContent2Min; + } + + /** + * 获取2次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_2_avg - 2次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent2Avg() { + return harmonicVoltageContent2Avg; + } + + /** + * 设置2次谐波电压含有率平均值 + * + * @param harmonicVoltageContent2Avg 2次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent2Avg(Double harmonicVoltageContent2Avg) { + this.harmonicVoltageContent2Avg = harmonicVoltageContent2Avg; + } + + /** + * 获取2次谐波电压含有率95值 + * + * @return harmonic_voltage_content_2_95 - 2次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent295() { + return harmonicVoltageContent295; + } + + /** + * 设置2次谐波电压含有率95值 + * + * @param harmonicVoltageContent295 2次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent295(Double harmonicVoltageContent295) { + this.harmonicVoltageContent295 = harmonicVoltageContent295; + } + + /** + * 获取3次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_3_max - 3次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent3Max() { + return harmonicVoltageContent3Max; + } + + /** + * 设置3次谐波电压含有率最大值 + * + * @param harmonicVoltageContent3Max 3次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent3Max(Double harmonicVoltageContent3Max) { + this.harmonicVoltageContent3Max = harmonicVoltageContent3Max; + } + + /** + * 获取3次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_3_min - 3次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent3Min() { + return harmonicVoltageContent3Min; + } + + /** + * 设置3次谐波电压含有率最小值 + * + * @param harmonicVoltageContent3Min 3次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent3Min(Double harmonicVoltageContent3Min) { + this.harmonicVoltageContent3Min = harmonicVoltageContent3Min; + } + + /** + * 获取3次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_3_avg - 3次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent3Avg() { + return harmonicVoltageContent3Avg; + } + + /** + * 设置3次谐波电压含有率平均值 + * + * @param harmonicVoltageContent3Avg 3次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent3Avg(Double harmonicVoltageContent3Avg) { + this.harmonicVoltageContent3Avg = harmonicVoltageContent3Avg; + } + + /** + * 获取3次谐波电压含有率95值 + * + * @return harmonic_voltage_content_3_95 - 3次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent395() { + return harmonicVoltageContent395; + } + + /** + * 设置3次谐波电压含有率95值 + * + * @param harmonicVoltageContent395 3次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent395(Double harmonicVoltageContent395) { + this.harmonicVoltageContent395 = harmonicVoltageContent395; + } + + /** + * 获取4次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_4_max - 4次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent4Max() { + return harmonicVoltageContent4Max; + } + + /** + * 设置4次谐波电压含有率最大值 + * + * @param harmonicVoltageContent4Max 4次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent4Max(Double harmonicVoltageContent4Max) { + this.harmonicVoltageContent4Max = harmonicVoltageContent4Max; + } + + /** + * 获取4次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_4_min - 4次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent4Min() { + return harmonicVoltageContent4Min; + } + + /** + * 设置4次谐波电压含有率最小值 + * + * @param harmonicVoltageContent4Min 4次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent4Min(Double harmonicVoltageContent4Min) { + this.harmonicVoltageContent4Min = harmonicVoltageContent4Min; + } + + /** + * 获取4次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_4_avg - 4次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent4Avg() { + return harmonicVoltageContent4Avg; + } + + /** + * 设置4次谐波电压含有率平均值 + * + * @param harmonicVoltageContent4Avg 4次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent4Avg(Double harmonicVoltageContent4Avg) { + this.harmonicVoltageContent4Avg = harmonicVoltageContent4Avg; + } + + /** + * 获取4次谐波电压含有率95值 + * + * @return harmonic_voltage_content_4_95 - 4次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent495() { + return harmonicVoltageContent495; + } + + /** + * 设置4次谐波电压含有率95值 + * + * @param harmonicVoltageContent495 4次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent495(Double harmonicVoltageContent495) { + this.harmonicVoltageContent495 = harmonicVoltageContent495; + } + + /** + * 获取5次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_5_max - 5次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent5Max() { + return harmonicVoltageContent5Max; + } + + /** + * 设置5次谐波电压含有率最大值 + * + * @param harmonicVoltageContent5Max 5次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent5Max(Double harmonicVoltageContent5Max) { + this.harmonicVoltageContent5Max = harmonicVoltageContent5Max; + } + + /** + * 获取5次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_5_min - 5次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent5Min() { + return harmonicVoltageContent5Min; + } + + /** + * 设置5次谐波电压含有率最小值 + * + * @param harmonicVoltageContent5Min 5次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent5Min(Double harmonicVoltageContent5Min) { + this.harmonicVoltageContent5Min = harmonicVoltageContent5Min; + } + + /** + * 获取5次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_5_avg - 5次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent5Avg() { + return harmonicVoltageContent5Avg; + } + + /** + * 设置5次谐波电压含有率平均值 + * + * @param harmonicVoltageContent5Avg 5次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent5Avg(Double harmonicVoltageContent5Avg) { + this.harmonicVoltageContent5Avg = harmonicVoltageContent5Avg; + } + + /** + * 获取5次谐波电压含有率95值 + * + * @return harmonic_voltage_content_5_95 - 5次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent595() { + return harmonicVoltageContent595; + } + + /** + * 设置5次谐波电压含有率95值 + * + * @param harmonicVoltageContent595 5次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent595(Double harmonicVoltageContent595) { + this.harmonicVoltageContent595 = harmonicVoltageContent595; + } + + /** + * 获取6次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_6_max - 6次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent6Max() { + return harmonicVoltageContent6Max; + } + + /** + * 设置6次谐波电压含有率最大值 + * + * @param harmonicVoltageContent6Max 6次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent6Max(Double harmonicVoltageContent6Max) { + this.harmonicVoltageContent6Max = harmonicVoltageContent6Max; + } + + /** + * 获取6次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_6_min - 6次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent6Min() { + return harmonicVoltageContent6Min; + } + + /** + * 设置6次谐波电压含有率最小值 + * + * @param harmonicVoltageContent6Min 6次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent6Min(Double harmonicVoltageContent6Min) { + this.harmonicVoltageContent6Min = harmonicVoltageContent6Min; + } + + /** + * 获取6次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_6_avg - 6次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent6Avg() { + return harmonicVoltageContent6Avg; + } + + /** + * 设置6次谐波电压含有率平均值 + * + * @param harmonicVoltageContent6Avg 6次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent6Avg(Double harmonicVoltageContent6Avg) { + this.harmonicVoltageContent6Avg = harmonicVoltageContent6Avg; + } + + /** + * 获取6次谐波电压含有率95值 + * + * @return harmonic_voltage_content_6_95 - 6次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent695() { + return harmonicVoltageContent695; + } + + /** + * 设置6次谐波电压含有率95值 + * + * @param harmonicVoltageContent695 6次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent695(Double harmonicVoltageContent695) { + this.harmonicVoltageContent695 = harmonicVoltageContent695; + } + + /** + * 获取7次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_7_max - 7次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent7Max() { + return harmonicVoltageContent7Max; + } + + /** + * 设置7次谐波电压含有率最大值 + * + * @param harmonicVoltageContent7Max 7次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent7Max(Double harmonicVoltageContent7Max) { + this.harmonicVoltageContent7Max = harmonicVoltageContent7Max; + } + + /** + * 获取7次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_7_min - 7次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent7Min() { + return harmonicVoltageContent7Min; + } + + /** + * 设置7次谐波电压含有率最小值 + * + * @param harmonicVoltageContent7Min 7次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent7Min(Double harmonicVoltageContent7Min) { + this.harmonicVoltageContent7Min = harmonicVoltageContent7Min; + } + + /** + * 获取7次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_7_avg - 7次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent7Avg() { + return harmonicVoltageContent7Avg; + } + + /** + * 设置7次谐波电压含有率平均值 + * + * @param harmonicVoltageContent7Avg 7次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent7Avg(Double harmonicVoltageContent7Avg) { + this.harmonicVoltageContent7Avg = harmonicVoltageContent7Avg; + } + + /** + * 获取7次谐波电压含有率95值 + * + * @return harmonic_voltage_content_7_95 - 7次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent795() { + return harmonicVoltageContent795; + } + + /** + * 设置7次谐波电压含有率95值 + * + * @param harmonicVoltageContent795 7次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent795(Double harmonicVoltageContent795) { + this.harmonicVoltageContent795 = harmonicVoltageContent795; + } + + /** + * 获取8次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_8_max - 8次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent8Max() { + return harmonicVoltageContent8Max; + } + + /** + * 设置8次谐波电压含有率最大值 + * + * @param harmonicVoltageContent8Max 8次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent8Max(Double harmonicVoltageContent8Max) { + this.harmonicVoltageContent8Max = harmonicVoltageContent8Max; + } + + /** + * 获取8次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_8_min - 8次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent8Min() { + return harmonicVoltageContent8Min; + } + + /** + * 设置8次谐波电压含有率最小值 + * + * @param harmonicVoltageContent8Min 8次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent8Min(Double harmonicVoltageContent8Min) { + this.harmonicVoltageContent8Min = harmonicVoltageContent8Min; + } + + /** + * 获取8次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_8_avg - 8次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent8Avg() { + return harmonicVoltageContent8Avg; + } + + /** + * 设置8次谐波电压含有率平均值 + * + * @param harmonicVoltageContent8Avg 8次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent8Avg(Double harmonicVoltageContent8Avg) { + this.harmonicVoltageContent8Avg = harmonicVoltageContent8Avg; + } + + /** + * 获取8次谐波电压含有率95值 + * + * @return harmonic_voltage_content_8_95 - 8次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent895() { + return harmonicVoltageContent895; + } + + /** + * 设置8次谐波电压含有率95值 + * + * @param harmonicVoltageContent895 8次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent895(Double harmonicVoltageContent895) { + this.harmonicVoltageContent895 = harmonicVoltageContent895; + } + + /** + * 获取9次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_9_max - 9次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent9Max() { + return harmonicVoltageContent9Max; + } + + /** + * 设置9次谐波电压含有率最大值 + * + * @param harmonicVoltageContent9Max 9次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent9Max(Double harmonicVoltageContent9Max) { + this.harmonicVoltageContent9Max = harmonicVoltageContent9Max; + } + + /** + * 获取9次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_9_min - 9次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent9Min() { + return harmonicVoltageContent9Min; + } + + /** + * 设置9次谐波电压含有率最小值 + * + * @param harmonicVoltageContent9Min 9次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent9Min(Double harmonicVoltageContent9Min) { + this.harmonicVoltageContent9Min = harmonicVoltageContent9Min; + } + + /** + * 获取9次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_9_avg - 9次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent9Avg() { + return harmonicVoltageContent9Avg; + } + + /** + * 设置9次谐波电压含有率平均值 + * + * @param harmonicVoltageContent9Avg 9次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent9Avg(Double harmonicVoltageContent9Avg) { + this.harmonicVoltageContent9Avg = harmonicVoltageContent9Avg; + } + + /** + * 获取9次谐波电压含有率95值 + * + * @return harmonic_voltage_content_9_95 - 9次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent995() { + return harmonicVoltageContent995; + } + + /** + * 设置9次谐波电压含有率95值 + * + * @param harmonicVoltageContent995 9次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent995(Double harmonicVoltageContent995) { + this.harmonicVoltageContent995 = harmonicVoltageContent995; + } + + /** + * 获取10次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_10_max - 10次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent10Max() { + return harmonicVoltageContent10Max; + } + + /** + * 设置10次谐波电压含有率最大值 + * + * @param harmonicVoltageContent10Max 10次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent10Max(Double harmonicVoltageContent10Max) { + this.harmonicVoltageContent10Max = harmonicVoltageContent10Max; + } + + /** + * 获取10次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_10_min - 10次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent10Min() { + return harmonicVoltageContent10Min; + } + + /** + * 设置10次谐波电压含有率最小值 + * + * @param harmonicVoltageContent10Min 10次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent10Min(Double harmonicVoltageContent10Min) { + this.harmonicVoltageContent10Min = harmonicVoltageContent10Min; + } + + /** + * 获取10次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_10_avg - 10次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent10Avg() { + return harmonicVoltageContent10Avg; + } + + /** + * 设置10次谐波电压含有率平均值 + * + * @param harmonicVoltageContent10Avg 10次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent10Avg(Double harmonicVoltageContent10Avg) { + this.harmonicVoltageContent10Avg = harmonicVoltageContent10Avg; + } + + /** + * 获取10次谐波电压含有率95值 + * + * @return harmonic_voltage_content_10_95 - 10次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent1095() { + return harmonicVoltageContent1095; + } + + /** + * 设置10次谐波电压含有率95值 + * + * @param harmonicVoltageContent1095 10次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent1095(Double harmonicVoltageContent1095) { + this.harmonicVoltageContent1095 = harmonicVoltageContent1095; + } + + /** + * 获取11次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_11_max - 11次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent11Max() { + return harmonicVoltageContent11Max; + } + + /** + * 设置11次谐波电压含有率最大值 + * + * @param harmonicVoltageContent11Max 11次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent11Max(Double harmonicVoltageContent11Max) { + this.harmonicVoltageContent11Max = harmonicVoltageContent11Max; + } + + /** + * 获取11次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_11_min - 11次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent11Min() { + return harmonicVoltageContent11Min; + } + + /** + * 设置11次谐波电压含有率最小值 + * + * @param harmonicVoltageContent11Min 11次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent11Min(Double harmonicVoltageContent11Min) { + this.harmonicVoltageContent11Min = harmonicVoltageContent11Min; + } + + /** + * 获取11次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_11_avg - 11次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent11Avg() { + return harmonicVoltageContent11Avg; + } + + /** + * 设置11次谐波电压含有率平均值 + * + * @param harmonicVoltageContent11Avg 11次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent11Avg(Double harmonicVoltageContent11Avg) { + this.harmonicVoltageContent11Avg = harmonicVoltageContent11Avg; + } + + /** + * 获取11次谐波电压含有率95值 + * + * @return harmonic_voltage_content_11_95 - 11次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent1195() { + return harmonicVoltageContent1195; + } + + /** + * 设置11次谐波电压含有率95值 + * + * @param harmonicVoltageContent1195 11次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent1195(Double harmonicVoltageContent1195) { + this.harmonicVoltageContent1195 = harmonicVoltageContent1195; + } + + /** + * 获取12次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_12_max - 12次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent12Max() { + return harmonicVoltageContent12Max; + } + + /** + * 设置12次谐波电压含有率最大值 + * + * @param harmonicVoltageContent12Max 12次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent12Max(Double harmonicVoltageContent12Max) { + this.harmonicVoltageContent12Max = harmonicVoltageContent12Max; + } + + /** + * 获取12次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_12_min - 12次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent12Min() { + return harmonicVoltageContent12Min; + } + + /** + * 设置12次谐波电压含有率最小值 + * + * @param harmonicVoltageContent12Min 12次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent12Min(Double harmonicVoltageContent12Min) { + this.harmonicVoltageContent12Min = harmonicVoltageContent12Min; + } + + /** + * 获取12次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_12_avg - 12次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent12Avg() { + return harmonicVoltageContent12Avg; + } + + /** + * 设置12次谐波电压含有率平均值 + * + * @param harmonicVoltageContent12Avg 12次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent12Avg(Double harmonicVoltageContent12Avg) { + this.harmonicVoltageContent12Avg = harmonicVoltageContent12Avg; + } + + /** + * 获取12次谐波电压含有率95值 + * + * @return harmonic_voltage_content_12_95 - 12次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent1295() { + return harmonicVoltageContent1295; + } + + /** + * 设置12次谐波电压含有率95值 + * + * @param harmonicVoltageContent1295 12次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent1295(Double harmonicVoltageContent1295) { + this.harmonicVoltageContent1295 = harmonicVoltageContent1295; + } + + /** + * 获取13次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_13_max - 13次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent13Max() { + return harmonicVoltageContent13Max; + } + + /** + * 设置13次谐波电压含有率最大值 + * + * @param harmonicVoltageContent13Max 13次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent13Max(Double harmonicVoltageContent13Max) { + this.harmonicVoltageContent13Max = harmonicVoltageContent13Max; + } + + /** + * 获取13次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_13_min - 13次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent13Min() { + return harmonicVoltageContent13Min; + } + + /** + * 设置13次谐波电压含有率最小值 + * + * @param harmonicVoltageContent13Min 13次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent13Min(Double harmonicVoltageContent13Min) { + this.harmonicVoltageContent13Min = harmonicVoltageContent13Min; + } + + /** + * 获取13次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_13_avg - 13次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent13Avg() { + return harmonicVoltageContent13Avg; + } + + /** + * 设置13次谐波电压含有率平均值 + * + * @param harmonicVoltageContent13Avg 13次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent13Avg(Double harmonicVoltageContent13Avg) { + this.harmonicVoltageContent13Avg = harmonicVoltageContent13Avg; + } + + /** + * 获取13次谐波电压含有率95值 + * + * @return harmonic_voltage_content_13_95 - 13次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent1395() { + return harmonicVoltageContent1395; + } + + /** + * 设置13次谐波电压含有率95值 + * + * @param harmonicVoltageContent1395 13次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent1395(Double harmonicVoltageContent1395) { + this.harmonicVoltageContent1395 = harmonicVoltageContent1395; + } + + /** + * 获取14次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_14_max - 14次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent14Max() { + return harmonicVoltageContent14Max; + } + + /** + * 设置14次谐波电压含有率最大值 + * + * @param harmonicVoltageContent14Max 14次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent14Max(Double harmonicVoltageContent14Max) { + this.harmonicVoltageContent14Max = harmonicVoltageContent14Max; + } + + /** + * 获取14次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_14_min - 14次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent14Min() { + return harmonicVoltageContent14Min; + } + + /** + * 设置14次谐波电压含有率最小值 + * + * @param harmonicVoltageContent14Min 14次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent14Min(Double harmonicVoltageContent14Min) { + this.harmonicVoltageContent14Min = harmonicVoltageContent14Min; + } + + /** + * 获取14次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_14_avg - 14次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent14Avg() { + return harmonicVoltageContent14Avg; + } + + /** + * 设置14次谐波电压含有率平均值 + * + * @param harmonicVoltageContent14Avg 14次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent14Avg(Double harmonicVoltageContent14Avg) { + this.harmonicVoltageContent14Avg = harmonicVoltageContent14Avg; + } + + /** + * 获取14次谐波电压含有率95值 + * + * @return harmonic_voltage_content_14_95 - 14次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent1495() { + return harmonicVoltageContent1495; + } + + /** + * 设置14次谐波电压含有率95值 + * + * @param harmonicVoltageContent1495 14次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent1495(Double harmonicVoltageContent1495) { + this.harmonicVoltageContent1495 = harmonicVoltageContent1495; + } + + /** + * 获取15次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_15_max - 15次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent15Max() { + return harmonicVoltageContent15Max; + } + + /** + * 设置15次谐波电压含有率最大值 + * + * @param harmonicVoltageContent15Max 15次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent15Max(Double harmonicVoltageContent15Max) { + this.harmonicVoltageContent15Max = harmonicVoltageContent15Max; + } + + /** + * 获取15次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_15_min - 15次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent15Min() { + return harmonicVoltageContent15Min; + } + + /** + * 设置15次谐波电压含有率最小值 + * + * @param harmonicVoltageContent15Min 15次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent15Min(Double harmonicVoltageContent15Min) { + this.harmonicVoltageContent15Min = harmonicVoltageContent15Min; + } + + /** + * 获取15次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_15_avg - 15次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent15Avg() { + return harmonicVoltageContent15Avg; + } + + /** + * 设置15次谐波电压含有率平均值 + * + * @param harmonicVoltageContent15Avg 15次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent15Avg(Double harmonicVoltageContent15Avg) { + this.harmonicVoltageContent15Avg = harmonicVoltageContent15Avg; + } + + /** + * 获取15次谐波电压含有率95值 + * + * @return harmonic_voltage_content_15_95 - 15次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent1595() { + return harmonicVoltageContent1595; + } + + /** + * 设置15次谐波电压含有率95值 + * + * @param harmonicVoltageContent1595 15次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent1595(Double harmonicVoltageContent1595) { + this.harmonicVoltageContent1595 = harmonicVoltageContent1595; + } + + /** + * 获取16次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_16_max - 16次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent16Max() { + return harmonicVoltageContent16Max; + } + + /** + * 设置16次谐波电压含有率最大值 + * + * @param harmonicVoltageContent16Max 16次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent16Max(Double harmonicVoltageContent16Max) { + this.harmonicVoltageContent16Max = harmonicVoltageContent16Max; + } + + /** + * 获取16次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_16_min - 16次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent16Min() { + return harmonicVoltageContent16Min; + } + + /** + * 设置16次谐波电压含有率最小值 + * + * @param harmonicVoltageContent16Min 16次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent16Min(Double harmonicVoltageContent16Min) { + this.harmonicVoltageContent16Min = harmonicVoltageContent16Min; + } + + /** + * 获取16次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_16_avg - 16次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent16Avg() { + return harmonicVoltageContent16Avg; + } + + /** + * 设置16次谐波电压含有率平均值 + * + * @param harmonicVoltageContent16Avg 16次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent16Avg(Double harmonicVoltageContent16Avg) { + this.harmonicVoltageContent16Avg = harmonicVoltageContent16Avg; + } + + /** + * 获取16次谐波电压含有率95值 + * + * @return harmonic_voltage_content_16_95 - 16次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent1695() { + return harmonicVoltageContent1695; + } + + /** + * 设置16次谐波电压含有率95值 + * + * @param harmonicVoltageContent1695 16次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent1695(Double harmonicVoltageContent1695) { + this.harmonicVoltageContent1695 = harmonicVoltageContent1695; + } + + /** + * 获取17次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_17_max - 17次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent17Max() { + return harmonicVoltageContent17Max; + } + + /** + * 设置17次谐波电压含有率最大值 + * + * @param harmonicVoltageContent17Max 17次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent17Max(Double harmonicVoltageContent17Max) { + this.harmonicVoltageContent17Max = harmonicVoltageContent17Max; + } + + /** + * 获取17次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_17_min - 17次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent17Min() { + return harmonicVoltageContent17Min; + } + + /** + * 设置17次谐波电压含有率最小值 + * + * @param harmonicVoltageContent17Min 17次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent17Min(Double harmonicVoltageContent17Min) { + this.harmonicVoltageContent17Min = harmonicVoltageContent17Min; + } + + /** + * 获取17次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_17_avg - 17次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent17Avg() { + return harmonicVoltageContent17Avg; + } + + /** + * 设置17次谐波电压含有率平均值 + * + * @param harmonicVoltageContent17Avg 17次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent17Avg(Double harmonicVoltageContent17Avg) { + this.harmonicVoltageContent17Avg = harmonicVoltageContent17Avg; + } + + /** + * 获取17次谐波电压含有率95值 + * + * @return harmonic_voltage_content_17_95 - 17次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent1795() { + return harmonicVoltageContent1795; + } + + /** + * 设置17次谐波电压含有率95值 + * + * @param harmonicVoltageContent1795 17次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent1795(Double harmonicVoltageContent1795) { + this.harmonicVoltageContent1795 = harmonicVoltageContent1795; + } + + /** + * 获取18次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_18_max - 18次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent18Max() { + return harmonicVoltageContent18Max; + } + + /** + * 设置18次谐波电压含有率最大值 + * + * @param harmonicVoltageContent18Max 18次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent18Max(Double harmonicVoltageContent18Max) { + this.harmonicVoltageContent18Max = harmonicVoltageContent18Max; + } + + /** + * 获取18次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_18_min - 18次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent18Min() { + return harmonicVoltageContent18Min; + } + + /** + * 设置18次谐波电压含有率最小值 + * + * @param harmonicVoltageContent18Min 18次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent18Min(Double harmonicVoltageContent18Min) { + this.harmonicVoltageContent18Min = harmonicVoltageContent18Min; + } + + /** + * 获取18次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_18_avg - 18次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent18Avg() { + return harmonicVoltageContent18Avg; + } + + /** + * 设置18次谐波电压含有率平均值 + * + * @param harmonicVoltageContent18Avg 18次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent18Avg(Double harmonicVoltageContent18Avg) { + this.harmonicVoltageContent18Avg = harmonicVoltageContent18Avg; + } + + /** + * 获取18次谐波电压含有率95值 + * + * @return harmonic_voltage_content_18_95 - 18次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent1895() { + return harmonicVoltageContent1895; + } + + /** + * 设置18次谐波电压含有率95值 + * + * @param harmonicVoltageContent1895 18次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent1895(Double harmonicVoltageContent1895) { + this.harmonicVoltageContent1895 = harmonicVoltageContent1895; + } + + /** + * 获取19次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_19_max - 19次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent19Max() { + return harmonicVoltageContent19Max; + } + + /** + * 设置19次谐波电压含有率最大值 + * + * @param harmonicVoltageContent19Max 19次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent19Max(Double harmonicVoltageContent19Max) { + this.harmonicVoltageContent19Max = harmonicVoltageContent19Max; + } + + /** + * 获取19次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_19_min - 19次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent19Min() { + return harmonicVoltageContent19Min; + } + + /** + * 设置19次谐波电压含有率最小值 + * + * @param harmonicVoltageContent19Min 19次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent19Min(Double harmonicVoltageContent19Min) { + this.harmonicVoltageContent19Min = harmonicVoltageContent19Min; + } + + /** + * 获取19次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_19_avg - 19次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent19Avg() { + return harmonicVoltageContent19Avg; + } + + /** + * 设置19次谐波电压含有率平均值 + * + * @param harmonicVoltageContent19Avg 19次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent19Avg(Double harmonicVoltageContent19Avg) { + this.harmonicVoltageContent19Avg = harmonicVoltageContent19Avg; + } + + /** + * 获取19次谐波电压含有率95值 + * + * @return harmonic_voltage_content_19_95 - 19次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent1995() { + return harmonicVoltageContent1995; + } + + /** + * 设置19次谐波电压含有率95值 + * + * @param harmonicVoltageContent1995 19次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent1995(Double harmonicVoltageContent1995) { + this.harmonicVoltageContent1995 = harmonicVoltageContent1995; + } + + /** + * 获取20次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_20_max - 20次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent20Max() { + return harmonicVoltageContent20Max; + } + + /** + * 设置20次谐波电压含有率最大值 + * + * @param harmonicVoltageContent20Max 20次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent20Max(Double harmonicVoltageContent20Max) { + this.harmonicVoltageContent20Max = harmonicVoltageContent20Max; + } + + /** + * 获取20次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_20_min - 20次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent20Min() { + return harmonicVoltageContent20Min; + } + + /** + * 设置20次谐波电压含有率最小值 + * + * @param harmonicVoltageContent20Min 20次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent20Min(Double harmonicVoltageContent20Min) { + this.harmonicVoltageContent20Min = harmonicVoltageContent20Min; + } + + /** + * 获取20次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_20_avg - 20次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent20Avg() { + return harmonicVoltageContent20Avg; + } + + /** + * 设置20次谐波电压含有率平均值 + * + * @param harmonicVoltageContent20Avg 20次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent20Avg(Double harmonicVoltageContent20Avg) { + this.harmonicVoltageContent20Avg = harmonicVoltageContent20Avg; + } + + /** + * 获取20次谐波电压含有率95值 + * + * @return harmonic_voltage_content_20_95 - 20次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent2095() { + return harmonicVoltageContent2095; + } + + /** + * 设置20次谐波电压含有率95值 + * + * @param harmonicVoltageContent2095 20次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent2095(Double harmonicVoltageContent2095) { + this.harmonicVoltageContent2095 = harmonicVoltageContent2095; + } + + /** + * 获取21次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_21_max - 21次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent21Max() { + return harmonicVoltageContent21Max; + } + + /** + * 设置21次谐波电压含有率最大值 + * + * @param harmonicVoltageContent21Max 21次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent21Max(Double harmonicVoltageContent21Max) { + this.harmonicVoltageContent21Max = harmonicVoltageContent21Max; + } + + /** + * 获取21次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_21_min - 21次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent21Min() { + return harmonicVoltageContent21Min; + } + + /** + * 设置21次谐波电压含有率最小值 + * + * @param harmonicVoltageContent21Min 21次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent21Min(Double harmonicVoltageContent21Min) { + this.harmonicVoltageContent21Min = harmonicVoltageContent21Min; + } + + /** + * 获取21次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_21_avg - 21次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent21Avg() { + return harmonicVoltageContent21Avg; + } + + /** + * 设置21次谐波电压含有率平均值 + * + * @param harmonicVoltageContent21Avg 21次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent21Avg(Double harmonicVoltageContent21Avg) { + this.harmonicVoltageContent21Avg = harmonicVoltageContent21Avg; + } + + /** + * 获取21次谐波电压含有率95值 + * + * @return harmonic_voltage_content_21_95 - 21次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent2195() { + return harmonicVoltageContent2195; + } + + /** + * 设置21次谐波电压含有率95值 + * + * @param harmonicVoltageContent2195 21次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent2195(Double harmonicVoltageContent2195) { + this.harmonicVoltageContent2195 = harmonicVoltageContent2195; + } + + /** + * 获取22次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_22_max - 22次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent22Max() { + return harmonicVoltageContent22Max; + } + + /** + * 设置22次谐波电压含有率最大值 + * + * @param harmonicVoltageContent22Max 22次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent22Max(Double harmonicVoltageContent22Max) { + this.harmonicVoltageContent22Max = harmonicVoltageContent22Max; + } + + /** + * 获取22次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_22_min - 22次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent22Min() { + return harmonicVoltageContent22Min; + } + + /** + * 设置22次谐波电压含有率最小值 + * + * @param harmonicVoltageContent22Min 22次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent22Min(Double harmonicVoltageContent22Min) { + this.harmonicVoltageContent22Min = harmonicVoltageContent22Min; + } + + /** + * 获取22次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_22_avg - 22次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent22Avg() { + return harmonicVoltageContent22Avg; + } + + /** + * 设置22次谐波电压含有率平均值 + * + * @param harmonicVoltageContent22Avg 22次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent22Avg(Double harmonicVoltageContent22Avg) { + this.harmonicVoltageContent22Avg = harmonicVoltageContent22Avg; + } + + /** + * 获取22次谐波电压含有率95值 + * + * @return harmonic_voltage_content_22_95 - 22次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent2295() { + return harmonicVoltageContent2295; + } + + /** + * 设置22次谐波电压含有率95值 + * + * @param harmonicVoltageContent2295 22次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent2295(Double harmonicVoltageContent2295) { + this.harmonicVoltageContent2295 = harmonicVoltageContent2295; + } + + /** + * 获取23次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_23_max - 23次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent23Max() { + return harmonicVoltageContent23Max; + } + + /** + * 设置23次谐波电压含有率最大值 + * + * @param harmonicVoltageContent23Max 23次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent23Max(Double harmonicVoltageContent23Max) { + this.harmonicVoltageContent23Max = harmonicVoltageContent23Max; + } + + /** + * 获取23次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_23_min - 23次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent23Min() { + return harmonicVoltageContent23Min; + } + + /** + * 设置23次谐波电压含有率最小值 + * + * @param harmonicVoltageContent23Min 23次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent23Min(Double harmonicVoltageContent23Min) { + this.harmonicVoltageContent23Min = harmonicVoltageContent23Min; + } + + /** + * 获取23次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_23_avg - 23次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent23Avg() { + return harmonicVoltageContent23Avg; + } + + /** + * 设置23次谐波电压含有率平均值 + * + * @param harmonicVoltageContent23Avg 23次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent23Avg(Double harmonicVoltageContent23Avg) { + this.harmonicVoltageContent23Avg = harmonicVoltageContent23Avg; + } + + /** + * 获取23次谐波电压含有率95值 + * + * @return harmonic_voltage_content_23_95 - 23次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent2395() { + return harmonicVoltageContent2395; + } + + /** + * 设置23次谐波电压含有率95值 + * + * @param harmonicVoltageContent2395 23次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent2395(Double harmonicVoltageContent2395) { + this.harmonicVoltageContent2395 = harmonicVoltageContent2395; + } + + /** + * 获取24次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_24_max - 24次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent24Max() { + return harmonicVoltageContent24Max; + } + + /** + * 设置24次谐波电压含有率最大值 + * + * @param harmonicVoltageContent24Max 24次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent24Max(Double harmonicVoltageContent24Max) { + this.harmonicVoltageContent24Max = harmonicVoltageContent24Max; + } + + /** + * 获取24次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_24_min - 24次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent24Min() { + return harmonicVoltageContent24Min; + } + + /** + * 设置24次谐波电压含有率最小值 + * + * @param harmonicVoltageContent24Min 24次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent24Min(Double harmonicVoltageContent24Min) { + this.harmonicVoltageContent24Min = harmonicVoltageContent24Min; + } + + /** + * 获取24次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_24_avg - 24次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent24Avg() { + return harmonicVoltageContent24Avg; + } + + /** + * 设置24次谐波电压含有率平均值 + * + * @param harmonicVoltageContent24Avg 24次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent24Avg(Double harmonicVoltageContent24Avg) { + this.harmonicVoltageContent24Avg = harmonicVoltageContent24Avg; + } + + /** + * 获取24次谐波电压含有率95值 + * + * @return harmonic_voltage_content_24_95 - 24次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent2495() { + return harmonicVoltageContent2495; + } + + /** + * 设置24次谐波电压含有率95值 + * + * @param harmonicVoltageContent2495 24次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent2495(Double harmonicVoltageContent2495) { + this.harmonicVoltageContent2495 = harmonicVoltageContent2495; + } + + /** + * 获取25次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_25_max - 25次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent25Max() { + return harmonicVoltageContent25Max; + } + + /** + * 设置25次谐波电压含有率最大值 + * + * @param harmonicVoltageContent25Max 25次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent25Max(Double harmonicVoltageContent25Max) { + this.harmonicVoltageContent25Max = harmonicVoltageContent25Max; + } + + /** + * 获取25次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_25_min - 25次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent25Min() { + return harmonicVoltageContent25Min; + } + + /** + * 设置25次谐波电压含有率最小值 + * + * @param harmonicVoltageContent25Min 25次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent25Min(Double harmonicVoltageContent25Min) { + this.harmonicVoltageContent25Min = harmonicVoltageContent25Min; + } + + /** + * 获取25次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_25_avg - 25次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent25Avg() { + return harmonicVoltageContent25Avg; + } + + /** + * 设置25次谐波电压含有率平均值 + * + * @param harmonicVoltageContent25Avg 25次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent25Avg(Double harmonicVoltageContent25Avg) { + this.harmonicVoltageContent25Avg = harmonicVoltageContent25Avg; + } + + /** + * 获取25次谐波电压含有率95值 + * + * @return harmonic_voltage_content_25_95 - 25次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent2595() { + return harmonicVoltageContent2595; + } + + /** + * 设置25次谐波电压含有率95值 + * + * @param harmonicVoltageContent2595 25次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent2595(Double harmonicVoltageContent2595) { + this.harmonicVoltageContent2595 = harmonicVoltageContent2595; + } + + /** + * 获取26次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_26_max - 26次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent26Max() { + return harmonicVoltageContent26Max; + } + + /** + * 设置26次谐波电压含有率最大值 + * + * @param harmonicVoltageContent26Max 26次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent26Max(Double harmonicVoltageContent26Max) { + this.harmonicVoltageContent26Max = harmonicVoltageContent26Max; + } + + /** + * 获取26次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_26_min - 26次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent26Min() { + return harmonicVoltageContent26Min; + } + + /** + * 设置26次谐波电压含有率最小值 + * + * @param harmonicVoltageContent26Min 26次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent26Min(Double harmonicVoltageContent26Min) { + this.harmonicVoltageContent26Min = harmonicVoltageContent26Min; + } + + /** + * 获取26次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_26_avg - 26次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent26Avg() { + return harmonicVoltageContent26Avg; + } + + /** + * 设置26次谐波电压含有率平均值 + * + * @param harmonicVoltageContent26Avg 26次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent26Avg(Double harmonicVoltageContent26Avg) { + this.harmonicVoltageContent26Avg = harmonicVoltageContent26Avg; + } + + /** + * 获取26次谐波电压含有率95值 + * + * @return harmonic_voltage_content_26_95 - 26次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent2695() { + return harmonicVoltageContent2695; + } + + /** + * 设置26次谐波电压含有率95值 + * + * @param harmonicVoltageContent2695 26次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent2695(Double harmonicVoltageContent2695) { + this.harmonicVoltageContent2695 = harmonicVoltageContent2695; + } + + /** + * 获取27次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_27_max - 27次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent27Max() { + return harmonicVoltageContent27Max; + } + + /** + * 设置27次谐波电压含有率最大值 + * + * @param harmonicVoltageContent27Max 27次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent27Max(Double harmonicVoltageContent27Max) { + this.harmonicVoltageContent27Max = harmonicVoltageContent27Max; + } + + /** + * 获取27次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_27_min - 27次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent27Min() { + return harmonicVoltageContent27Min; + } + + /** + * 设置27次谐波电压含有率最小值 + * + * @param harmonicVoltageContent27Min 27次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent27Min(Double harmonicVoltageContent27Min) { + this.harmonicVoltageContent27Min = harmonicVoltageContent27Min; + } + + /** + * 获取27次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_27_avg - 27次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent27Avg() { + return harmonicVoltageContent27Avg; + } + + /** + * 设置27次谐波电压含有率平均值 + * + * @param harmonicVoltageContent27Avg 27次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent27Avg(Double harmonicVoltageContent27Avg) { + this.harmonicVoltageContent27Avg = harmonicVoltageContent27Avg; + } + + /** + * 获取27次谐波电压含有率95值 + * + * @return harmonic_voltage_content_27_95 - 27次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent2795() { + return harmonicVoltageContent2795; + } + + /** + * 设置27次谐波电压含有率95值 + * + * @param harmonicVoltageContent2795 27次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent2795(Double harmonicVoltageContent2795) { + this.harmonicVoltageContent2795 = harmonicVoltageContent2795; + } + + /** + * 获取28次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_28_max - 28次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent28Max() { + return harmonicVoltageContent28Max; + } + + /** + * 设置28次谐波电压含有率最大值 + * + * @param harmonicVoltageContent28Max 28次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent28Max(Double harmonicVoltageContent28Max) { + this.harmonicVoltageContent28Max = harmonicVoltageContent28Max; + } + + /** + * 获取28次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_28_min - 28次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent28Min() { + return harmonicVoltageContent28Min; + } + + /** + * 设置28次谐波电压含有率最小值 + * + * @param harmonicVoltageContent28Min 28次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent28Min(Double harmonicVoltageContent28Min) { + this.harmonicVoltageContent28Min = harmonicVoltageContent28Min; + } + + /** + * 获取28次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_28_avg - 28次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent28Avg() { + return harmonicVoltageContent28Avg; + } + + /** + * 设置28次谐波电压含有率平均值 + * + * @param harmonicVoltageContent28Avg 28次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent28Avg(Double harmonicVoltageContent28Avg) { + this.harmonicVoltageContent28Avg = harmonicVoltageContent28Avg; + } + + /** + * 获取28次谐波电压含有率95值 + * + * @return harmonic_voltage_content_28_95 - 28次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent2895() { + return harmonicVoltageContent2895; + } + + /** + * 设置28次谐波电压含有率95值 + * + * @param harmonicVoltageContent2895 28次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent2895(Double harmonicVoltageContent2895) { + this.harmonicVoltageContent2895 = harmonicVoltageContent2895; + } + + /** + * 获取29次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_29_max - 29次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent29Max() { + return harmonicVoltageContent29Max; + } + + /** + * 设置29次谐波电压含有率最大值 + * + * @param harmonicVoltageContent29Max 29次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent29Max(Double harmonicVoltageContent29Max) { + this.harmonicVoltageContent29Max = harmonicVoltageContent29Max; + } + + /** + * 获取29次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_29_min - 29次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent29Min() { + return harmonicVoltageContent29Min; + } + + /** + * 设置29次谐波电压含有率最小值 + * + * @param harmonicVoltageContent29Min 29次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent29Min(Double harmonicVoltageContent29Min) { + this.harmonicVoltageContent29Min = harmonicVoltageContent29Min; + } + + /** + * 获取29次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_29_avg - 29次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent29Avg() { + return harmonicVoltageContent29Avg; + } + + /** + * 设置29次谐波电压含有率平均值 + * + * @param harmonicVoltageContent29Avg 29次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent29Avg(Double harmonicVoltageContent29Avg) { + this.harmonicVoltageContent29Avg = harmonicVoltageContent29Avg; + } + + /** + * 获取29次谐波电压含有率95值 + * + * @return harmonic_voltage_content_29_95 - 29次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent2995() { + return harmonicVoltageContent2995; + } + + /** + * 设置29次谐波电压含有率95值 + * + * @param harmonicVoltageContent2995 29次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent2995(Double harmonicVoltageContent2995) { + this.harmonicVoltageContent2995 = harmonicVoltageContent2995; + } + + /** + * 获取30次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_30_max - 30次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent30Max() { + return harmonicVoltageContent30Max; + } + + /** + * 设置30次谐波电压含有率最大值 + * + * @param harmonicVoltageContent30Max 30次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent30Max(Double harmonicVoltageContent30Max) { + this.harmonicVoltageContent30Max = harmonicVoltageContent30Max; + } + + /** + * 获取30次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_30_min - 30次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent30Min() { + return harmonicVoltageContent30Min; + } + + /** + * 设置30次谐波电压含有率最小值 + * + * @param harmonicVoltageContent30Min 30次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent30Min(Double harmonicVoltageContent30Min) { + this.harmonicVoltageContent30Min = harmonicVoltageContent30Min; + } + + /** + * 获取30次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_30_avg - 30次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent30Avg() { + return harmonicVoltageContent30Avg; + } + + /** + * 设置30次谐波电压含有率平均值 + * + * @param harmonicVoltageContent30Avg 30次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent30Avg(Double harmonicVoltageContent30Avg) { + this.harmonicVoltageContent30Avg = harmonicVoltageContent30Avg; + } + + /** + * 获取30次谐波电压含有率95值 + * + * @return harmonic_voltage_content_30_95 - 30次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent3095() { + return harmonicVoltageContent3095; + } + + /** + * 设置30次谐波电压含有率95值 + * + * @param harmonicVoltageContent3095 30次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent3095(Double harmonicVoltageContent3095) { + this.harmonicVoltageContent3095 = harmonicVoltageContent3095; + } + + /** + * 获取31次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_31_max - 31次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent31Max() { + return harmonicVoltageContent31Max; + } + + /** + * 设置31次谐波电压含有率最大值 + * + * @param harmonicVoltageContent31Max 31次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent31Max(Double harmonicVoltageContent31Max) { + this.harmonicVoltageContent31Max = harmonicVoltageContent31Max; + } + + /** + * 获取31次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_31_min - 31次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent31Min() { + return harmonicVoltageContent31Min; + } + + /** + * 设置31次谐波电压含有率最小值 + * + * @param harmonicVoltageContent31Min 31次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent31Min(Double harmonicVoltageContent31Min) { + this.harmonicVoltageContent31Min = harmonicVoltageContent31Min; + } + + /** + * 获取31次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_31_avg - 31次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent31Avg() { + return harmonicVoltageContent31Avg; + } + + /** + * 设置31次谐波电压含有率平均值 + * + * @param harmonicVoltageContent31Avg 31次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent31Avg(Double harmonicVoltageContent31Avg) { + this.harmonicVoltageContent31Avg = harmonicVoltageContent31Avg; + } + + /** + * 获取31次谐波电压含有率95值 + * + * @return harmonic_voltage_content_31_95 - 31次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent3195() { + return harmonicVoltageContent3195; + } + + /** + * 设置31次谐波电压含有率95值 + * + * @param harmonicVoltageContent3195 31次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent3195(Double harmonicVoltageContent3195) { + this.harmonicVoltageContent3195 = harmonicVoltageContent3195; + } + + /** + * 获取32次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_32_max - 32次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent32Max() { + return harmonicVoltageContent32Max; + } + + /** + * 设置32次谐波电压含有率最大值 + * + * @param harmonicVoltageContent32Max 32次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent32Max(Double harmonicVoltageContent32Max) { + this.harmonicVoltageContent32Max = harmonicVoltageContent32Max; + } + + /** + * 获取32次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_32_min - 32次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent32Min() { + return harmonicVoltageContent32Min; + } + + /** + * 设置32次谐波电压含有率最小值 + * + * @param harmonicVoltageContent32Min 32次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent32Min(Double harmonicVoltageContent32Min) { + this.harmonicVoltageContent32Min = harmonicVoltageContent32Min; + } + + /** + * 获取32次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_32_avg - 32次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent32Avg() { + return harmonicVoltageContent32Avg; + } + + /** + * 设置32次谐波电压含有率平均值 + * + * @param harmonicVoltageContent32Avg 32次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent32Avg(Double harmonicVoltageContent32Avg) { + this.harmonicVoltageContent32Avg = harmonicVoltageContent32Avg; + } + + /** + * 获取32次谐波电压含有率95值 + * + * @return harmonic_voltage_content_32_95 - 32次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent3295() { + return harmonicVoltageContent3295; + } + + /** + * 设置32次谐波电压含有率95值 + * + * @param harmonicVoltageContent3295 32次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent3295(Double harmonicVoltageContent3295) { + this.harmonicVoltageContent3295 = harmonicVoltageContent3295; + } + + /** + * 获取33次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_33_max - 33次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent33Max() { + return harmonicVoltageContent33Max; + } + + /** + * 设置33次谐波电压含有率最大值 + * + * @param harmonicVoltageContent33Max 33次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent33Max(Double harmonicVoltageContent33Max) { + this.harmonicVoltageContent33Max = harmonicVoltageContent33Max; + } + + /** + * 获取33次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_33_min - 33次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent33Min() { + return harmonicVoltageContent33Min; + } + + /** + * 设置33次谐波电压含有率最小值 + * + * @param harmonicVoltageContent33Min 33次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent33Min(Double harmonicVoltageContent33Min) { + this.harmonicVoltageContent33Min = harmonicVoltageContent33Min; + } + + /** + * 获取33次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_33_avg - 33次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent33Avg() { + return harmonicVoltageContent33Avg; + } + + /** + * 设置33次谐波电压含有率平均值 + * + * @param harmonicVoltageContent33Avg 33次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent33Avg(Double harmonicVoltageContent33Avg) { + this.harmonicVoltageContent33Avg = harmonicVoltageContent33Avg; + } + + /** + * 获取33次谐波电压含有率95值 + * + * @return harmonic_voltage_content_33_95 - 33次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent3395() { + return harmonicVoltageContent3395; + } + + /** + * 设置33次谐波电压含有率95值 + * + * @param harmonicVoltageContent3395 33次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent3395(Double harmonicVoltageContent3395) { + this.harmonicVoltageContent3395 = harmonicVoltageContent3395; + } + + /** + * 获取34次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_34_max - 34次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent34Max() { + return harmonicVoltageContent34Max; + } + + /** + * 设置34次谐波电压含有率最大值 + * + * @param harmonicVoltageContent34Max 34次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent34Max(Double harmonicVoltageContent34Max) { + this.harmonicVoltageContent34Max = harmonicVoltageContent34Max; + } + + /** + * 获取34次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_34_min - 34次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent34Min() { + return harmonicVoltageContent34Min; + } + + /** + * 设置34次谐波电压含有率最小值 + * + * @param harmonicVoltageContent34Min 34次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent34Min(Double harmonicVoltageContent34Min) { + this.harmonicVoltageContent34Min = harmonicVoltageContent34Min; + } + + /** + * 获取34次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_34_avg - 34次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent34Avg() { + return harmonicVoltageContent34Avg; + } + + /** + * 设置34次谐波电压含有率平均值 + * + * @param harmonicVoltageContent34Avg 34次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent34Avg(Double harmonicVoltageContent34Avg) { + this.harmonicVoltageContent34Avg = harmonicVoltageContent34Avg; + } + + /** + * 获取34次谐波电压含有率95值 + * + * @return harmonic_voltage_content_34_95 - 34次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent3495() { + return harmonicVoltageContent3495; + } + + /** + * 设置34次谐波电压含有率95值 + * + * @param harmonicVoltageContent3495 34次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent3495(Double harmonicVoltageContent3495) { + this.harmonicVoltageContent3495 = harmonicVoltageContent3495; + } + + /** + * 获取35次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_35_max - 35次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent35Max() { + return harmonicVoltageContent35Max; + } + + /** + * 设置35次谐波电压含有率最大值 + * + * @param harmonicVoltageContent35Max 35次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent35Max(Double harmonicVoltageContent35Max) { + this.harmonicVoltageContent35Max = harmonicVoltageContent35Max; + } + + /** + * 获取35次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_35_min - 35次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent35Min() { + return harmonicVoltageContent35Min; + } + + /** + * 设置35次谐波电压含有率最小值 + * + * @param harmonicVoltageContent35Min 35次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent35Min(Double harmonicVoltageContent35Min) { + this.harmonicVoltageContent35Min = harmonicVoltageContent35Min; + } + + /** + * 获取35次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_35_avg - 35次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent35Avg() { + return harmonicVoltageContent35Avg; + } + + /** + * 设置35次谐波电压含有率平均值 + * + * @param harmonicVoltageContent35Avg 35次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent35Avg(Double harmonicVoltageContent35Avg) { + this.harmonicVoltageContent35Avg = harmonicVoltageContent35Avg; + } + + /** + * 获取35次谐波电压含有率95值 + * + * @return harmonic_voltage_content_35_95 - 35次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent3595() { + return harmonicVoltageContent3595; + } + + /** + * 设置35次谐波电压含有率95值 + * + * @param harmonicVoltageContent3595 35次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent3595(Double harmonicVoltageContent3595) { + this.harmonicVoltageContent3595 = harmonicVoltageContent3595; + } + + /** + * 获取36次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_36_max - 36次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent36Max() { + return harmonicVoltageContent36Max; + } + + /** + * 设置36次谐波电压含有率最大值 + * + * @param harmonicVoltageContent36Max 36次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent36Max(Double harmonicVoltageContent36Max) { + this.harmonicVoltageContent36Max = harmonicVoltageContent36Max; + } + + /** + * 获取36次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_36_min - 36次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent36Min() { + return harmonicVoltageContent36Min; + } + + /** + * 设置36次谐波电压含有率最小值 + * + * @param harmonicVoltageContent36Min 36次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent36Min(Double harmonicVoltageContent36Min) { + this.harmonicVoltageContent36Min = harmonicVoltageContent36Min; + } + + /** + * 获取36次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_36_avg - 36次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent36Avg() { + return harmonicVoltageContent36Avg; + } + + /** + * 设置36次谐波电压含有率平均值 + * + * @param harmonicVoltageContent36Avg 36次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent36Avg(Double harmonicVoltageContent36Avg) { + this.harmonicVoltageContent36Avg = harmonicVoltageContent36Avg; + } + + /** + * 获取36次谐波电压含有率95值 + * + * @return harmonic_voltage_content_36_95 - 36次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent3695() { + return harmonicVoltageContent3695; + } + + /** + * 设置36次谐波电压含有率95值 + * + * @param harmonicVoltageContent3695 36次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent3695(Double harmonicVoltageContent3695) { + this.harmonicVoltageContent3695 = harmonicVoltageContent3695; + } + + /** + * 获取37次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_37_max - 37次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent37Max() { + return harmonicVoltageContent37Max; + } + + /** + * 设置37次谐波电压含有率最大值 + * + * @param harmonicVoltageContent37Max 37次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent37Max(Double harmonicVoltageContent37Max) { + this.harmonicVoltageContent37Max = harmonicVoltageContent37Max; + } + + /** + * 获取37次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_37_min - 37次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent37Min() { + return harmonicVoltageContent37Min; + } + + /** + * 设置37次谐波电压含有率最小值 + * + * @param harmonicVoltageContent37Min 37次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent37Min(Double harmonicVoltageContent37Min) { + this.harmonicVoltageContent37Min = harmonicVoltageContent37Min; + } + + /** + * 获取37次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_37_avg - 37次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent37Avg() { + return harmonicVoltageContent37Avg; + } + + /** + * 设置37次谐波电压含有率平均值 + * + * @param harmonicVoltageContent37Avg 37次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent37Avg(Double harmonicVoltageContent37Avg) { + this.harmonicVoltageContent37Avg = harmonicVoltageContent37Avg; + } + + /** + * 获取37次谐波电压含有率95值 + * + * @return harmonic_voltage_content_37_95 - 37次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent3795() { + return harmonicVoltageContent3795; + } + + /** + * 设置37次谐波电压含有率95值 + * + * @param harmonicVoltageContent3795 37次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent3795(Double harmonicVoltageContent3795) { + this.harmonicVoltageContent3795 = harmonicVoltageContent3795; + } + + /** + * 获取38次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_38_max - 38次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent38Max() { + return harmonicVoltageContent38Max; + } + + /** + * 设置38次谐波电压含有率最大值 + * + * @param harmonicVoltageContent38Max 38次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent38Max(Double harmonicVoltageContent38Max) { + this.harmonicVoltageContent38Max = harmonicVoltageContent38Max; + } + + /** + * 获取38次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_38_min - 38次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent38Min() { + return harmonicVoltageContent38Min; + } + + /** + * 设置38次谐波电压含有率最小值 + * + * @param harmonicVoltageContent38Min 38次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent38Min(Double harmonicVoltageContent38Min) { + this.harmonicVoltageContent38Min = harmonicVoltageContent38Min; + } + + /** + * 获取38次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_38_avg - 38次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent38Avg() { + return harmonicVoltageContent38Avg; + } + + /** + * 设置38次谐波电压含有率平均值 + * + * @param harmonicVoltageContent38Avg 38次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent38Avg(Double harmonicVoltageContent38Avg) { + this.harmonicVoltageContent38Avg = harmonicVoltageContent38Avg; + } + + /** + * 获取38次谐波电压含有率95值 + * + * @return harmonic_voltage_content_38_95 - 38次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent3895() { + return harmonicVoltageContent3895; + } + + /** + * 设置38次谐波电压含有率95值 + * + * @param harmonicVoltageContent3895 38次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent3895(Double harmonicVoltageContent3895) { + this.harmonicVoltageContent3895 = harmonicVoltageContent3895; + } + + /** + * 获取39次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_39_max - 39次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent39Max() { + return harmonicVoltageContent39Max; + } + + /** + * 设置39次谐波电压含有率最大值 + * + * @param harmonicVoltageContent39Max 39次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent39Max(Double harmonicVoltageContent39Max) { + this.harmonicVoltageContent39Max = harmonicVoltageContent39Max; + } + + /** + * 获取39次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_39_min - 39次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent39Min() { + return harmonicVoltageContent39Min; + } + + /** + * 设置39次谐波电压含有率最小值 + * + * @param harmonicVoltageContent39Min 39次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent39Min(Double harmonicVoltageContent39Min) { + this.harmonicVoltageContent39Min = harmonicVoltageContent39Min; + } + + /** + * 获取39次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_39_avg - 39次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent39Avg() { + return harmonicVoltageContent39Avg; + } + + /** + * 设置39次谐波电压含有率平均值 + * + * @param harmonicVoltageContent39Avg 39次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent39Avg(Double harmonicVoltageContent39Avg) { + this.harmonicVoltageContent39Avg = harmonicVoltageContent39Avg; + } + + /** + * 获取39次谐波电压含有率95值 + * + * @return harmonic_voltage_content_39_95 - 39次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent3995() { + return harmonicVoltageContent3995; + } + + /** + * 设置39次谐波电压含有率95值 + * + * @param harmonicVoltageContent3995 39次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent3995(Double harmonicVoltageContent3995) { + this.harmonicVoltageContent3995 = harmonicVoltageContent3995; + } + + /** + * 获取40次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_40_max - 40次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent40Max() { + return harmonicVoltageContent40Max; + } + + /** + * 设置40次谐波电压含有率最大值 + * + * @param harmonicVoltageContent40Max 40次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent40Max(Double harmonicVoltageContent40Max) { + this.harmonicVoltageContent40Max = harmonicVoltageContent40Max; + } + + /** + * 获取40次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_40_min - 40次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent40Min() { + return harmonicVoltageContent40Min; + } + + /** + * 设置40次谐波电压含有率最小值 + * + * @param harmonicVoltageContent40Min 40次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent40Min(Double harmonicVoltageContent40Min) { + this.harmonicVoltageContent40Min = harmonicVoltageContent40Min; + } + + /** + * 获取40次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_40_avg - 40次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent40Avg() { + return harmonicVoltageContent40Avg; + } + + /** + * 设置40次谐波电压含有率平均值 + * + * @param harmonicVoltageContent40Avg 40次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent40Avg(Double harmonicVoltageContent40Avg) { + this.harmonicVoltageContent40Avg = harmonicVoltageContent40Avg; + } + + /** + * 获取40次谐波电压含有率95值 + * + * @return harmonic_voltage_content_40_95 - 40次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent4095() { + return harmonicVoltageContent4095; + } + + /** + * 设置40次谐波电压含有率95值 + * + * @param harmonicVoltageContent4095 40次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent4095(Double harmonicVoltageContent4095) { + this.harmonicVoltageContent4095 = harmonicVoltageContent4095; + } + + /** + * 获取41次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_41_max - 41次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent41Max() { + return harmonicVoltageContent41Max; + } + + /** + * 设置41次谐波电压含有率最大值 + * + * @param harmonicVoltageContent41Max 41次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent41Max(Double harmonicVoltageContent41Max) { + this.harmonicVoltageContent41Max = harmonicVoltageContent41Max; + } + + /** + * 获取41次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_41_min - 41次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent41Min() { + return harmonicVoltageContent41Min; + } + + /** + * 设置41次谐波电压含有率最小值 + * + * @param harmonicVoltageContent41Min 41次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent41Min(Double harmonicVoltageContent41Min) { + this.harmonicVoltageContent41Min = harmonicVoltageContent41Min; + } + + /** + * 获取41次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_41_avg - 41次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent41Avg() { + return harmonicVoltageContent41Avg; + } + + /** + * 设置41次谐波电压含有率平均值 + * + * @param harmonicVoltageContent41Avg 41次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent41Avg(Double harmonicVoltageContent41Avg) { + this.harmonicVoltageContent41Avg = harmonicVoltageContent41Avg; + } + + /** + * 获取41次谐波电压含有率95值 + * + * @return harmonic_voltage_content_41_95 - 41次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent4195() { + return harmonicVoltageContent4195; + } + + /** + * 设置41次谐波电压含有率95值 + * + * @param harmonicVoltageContent4195 41次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent4195(Double harmonicVoltageContent4195) { + this.harmonicVoltageContent4195 = harmonicVoltageContent4195; + } + + /** + * 获取42次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_42_max - 42次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent42Max() { + return harmonicVoltageContent42Max; + } + + /** + * 设置42次谐波电压含有率最大值 + * + * @param harmonicVoltageContent42Max 42次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent42Max(Double harmonicVoltageContent42Max) { + this.harmonicVoltageContent42Max = harmonicVoltageContent42Max; + } + + /** + * 获取42次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_42_min - 42次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent42Min() { + return harmonicVoltageContent42Min; + } + + /** + * 设置42次谐波电压含有率最小值 + * + * @param harmonicVoltageContent42Min 42次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent42Min(Double harmonicVoltageContent42Min) { + this.harmonicVoltageContent42Min = harmonicVoltageContent42Min; + } + + /** + * 获取42次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_42_avg - 42次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent42Avg() { + return harmonicVoltageContent42Avg; + } + + /** + * 设置42次谐波电压含有率平均值 + * + * @param harmonicVoltageContent42Avg 42次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent42Avg(Double harmonicVoltageContent42Avg) { + this.harmonicVoltageContent42Avg = harmonicVoltageContent42Avg; + } + + /** + * 获取42次谐波电压含有率95值 + * + * @return harmonic_voltage_content_42_95 - 42次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent4295() { + return harmonicVoltageContent4295; + } + + /** + * 设置42次谐波电压含有率95值 + * + * @param harmonicVoltageContent4295 42次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent4295(Double harmonicVoltageContent4295) { + this.harmonicVoltageContent4295 = harmonicVoltageContent4295; + } + + /** + * 获取43次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_43_max - 43次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent43Max() { + return harmonicVoltageContent43Max; + } + + /** + * 设置43次谐波电压含有率最大值 + * + * @param harmonicVoltageContent43Max 43次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent43Max(Double harmonicVoltageContent43Max) { + this.harmonicVoltageContent43Max = harmonicVoltageContent43Max; + } + + /** + * 获取43次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_43_min - 43次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent43Min() { + return harmonicVoltageContent43Min; + } + + /** + * 设置43次谐波电压含有率最小值 + * + * @param harmonicVoltageContent43Min 43次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent43Min(Double harmonicVoltageContent43Min) { + this.harmonicVoltageContent43Min = harmonicVoltageContent43Min; + } + + /** + * 获取43次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_43_avg - 43次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent43Avg() { + return harmonicVoltageContent43Avg; + } + + /** + * 设置43次谐波电压含有率平均值 + * + * @param harmonicVoltageContent43Avg 43次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent43Avg(Double harmonicVoltageContent43Avg) { + this.harmonicVoltageContent43Avg = harmonicVoltageContent43Avg; + } + + /** + * 获取43次谐波电压含有率95值 + * + * @return harmonic_voltage_content_43_95 - 43次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent4395() { + return harmonicVoltageContent4395; + } + + /** + * 设置43次谐波电压含有率95值 + * + * @param harmonicVoltageContent4395 43次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent4395(Double harmonicVoltageContent4395) { + this.harmonicVoltageContent4395 = harmonicVoltageContent4395; + } + + /** + * 获取44次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_44_max - 44次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent44Max() { + return harmonicVoltageContent44Max; + } + + /** + * 设置44次谐波电压含有率最大值 + * + * @param harmonicVoltageContent44Max 44次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent44Max(Double harmonicVoltageContent44Max) { + this.harmonicVoltageContent44Max = harmonicVoltageContent44Max; + } + + /** + * 获取44次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_44_min - 44次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent44Min() { + return harmonicVoltageContent44Min; + } + + /** + * 设置44次谐波电压含有率最小值 + * + * @param harmonicVoltageContent44Min 44次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent44Min(Double harmonicVoltageContent44Min) { + this.harmonicVoltageContent44Min = harmonicVoltageContent44Min; + } + + /** + * 获取44次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_44_avg - 44次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent44Avg() { + return harmonicVoltageContent44Avg; + } + + /** + * 设置44次谐波电压含有率平均值 + * + * @param harmonicVoltageContent44Avg 44次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent44Avg(Double harmonicVoltageContent44Avg) { + this.harmonicVoltageContent44Avg = harmonicVoltageContent44Avg; + } + + /** + * 获取44次谐波电压含有率95值 + * + * @return harmonic_voltage_content_44_95 - 44次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent4495() { + return harmonicVoltageContent4495; + } + + /** + * 设置44次谐波电压含有率95值 + * + * @param harmonicVoltageContent4495 44次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent4495(Double harmonicVoltageContent4495) { + this.harmonicVoltageContent4495 = harmonicVoltageContent4495; + } + + /** + * 获取45次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_45_max - 45次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent45Max() { + return harmonicVoltageContent45Max; + } + + /** + * 设置45次谐波电压含有率最大值 + * + * @param harmonicVoltageContent45Max 45次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent45Max(Double harmonicVoltageContent45Max) { + this.harmonicVoltageContent45Max = harmonicVoltageContent45Max; + } + + /** + * 获取45次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_45_min - 45次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent45Min() { + return harmonicVoltageContent45Min; + } + + /** + * 设置45次谐波电压含有率最小值 + * + * @param harmonicVoltageContent45Min 45次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent45Min(Double harmonicVoltageContent45Min) { + this.harmonicVoltageContent45Min = harmonicVoltageContent45Min; + } + + /** + * 获取45次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_45_avg - 45次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent45Avg() { + return harmonicVoltageContent45Avg; + } + + /** + * 设置45次谐波电压含有率平均值 + * + * @param harmonicVoltageContent45Avg 45次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent45Avg(Double harmonicVoltageContent45Avg) { + this.harmonicVoltageContent45Avg = harmonicVoltageContent45Avg; + } + + /** + * 获取45次谐波电压含有率95值 + * + * @return harmonic_voltage_content_45_95 - 45次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent4595() { + return harmonicVoltageContent4595; + } + + /** + * 设置45次谐波电压含有率95值 + * + * @param harmonicVoltageContent4595 45次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent4595(Double harmonicVoltageContent4595) { + this.harmonicVoltageContent4595 = harmonicVoltageContent4595; + } + + /** + * 获取46次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_46_max - 46次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent46Max() { + return harmonicVoltageContent46Max; + } + + /** + * 设置46次谐波电压含有率最大值 + * + * @param harmonicVoltageContent46Max 46次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent46Max(Double harmonicVoltageContent46Max) { + this.harmonicVoltageContent46Max = harmonicVoltageContent46Max; + } + + /** + * 获取46次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_46_min - 46次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent46Min() { + return harmonicVoltageContent46Min; + } + + /** + * 设置46次谐波电压含有率最小值 + * + * @param harmonicVoltageContent46Min 46次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent46Min(Double harmonicVoltageContent46Min) { + this.harmonicVoltageContent46Min = harmonicVoltageContent46Min; + } + + /** + * 获取46次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_46_avg - 46次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent46Avg() { + return harmonicVoltageContent46Avg; + } + + /** + * 设置46次谐波电压含有率平均值 + * + * @param harmonicVoltageContent46Avg 46次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent46Avg(Double harmonicVoltageContent46Avg) { + this.harmonicVoltageContent46Avg = harmonicVoltageContent46Avg; + } + + /** + * 获取46次谐波电压含有率95值 + * + * @return harmonic_voltage_content_46_95 - 46次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent4695() { + return harmonicVoltageContent4695; + } + + /** + * 设置46次谐波电压含有率95值 + * + * @param harmonicVoltageContent4695 46次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent4695(Double harmonicVoltageContent4695) { + this.harmonicVoltageContent4695 = harmonicVoltageContent4695; + } + + /** + * 获取47次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_47_max - 47次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent47Max() { + return harmonicVoltageContent47Max; + } + + /** + * 设置47次谐波电压含有率最大值 + * + * @param harmonicVoltageContent47Max 47次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent47Max(Double harmonicVoltageContent47Max) { + this.harmonicVoltageContent47Max = harmonicVoltageContent47Max; + } + + /** + * 获取47次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_47_min - 47次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent47Min() { + return harmonicVoltageContent47Min; + } + + /** + * 设置47次谐波电压含有率最小值 + * + * @param harmonicVoltageContent47Min 47次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent47Min(Double harmonicVoltageContent47Min) { + this.harmonicVoltageContent47Min = harmonicVoltageContent47Min; + } + + /** + * 获取47次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_47_avg - 47次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent47Avg() { + return harmonicVoltageContent47Avg; + } + + /** + * 设置47次谐波电压含有率平均值 + * + * @param harmonicVoltageContent47Avg 47次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent47Avg(Double harmonicVoltageContent47Avg) { + this.harmonicVoltageContent47Avg = harmonicVoltageContent47Avg; + } + + /** + * 获取47次谐波电压含有率95值 + * + * @return harmonic_voltage_content_47_95 - 47次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent4795() { + return harmonicVoltageContent4795; + } + + /** + * 设置47次谐波电压含有率95值 + * + * @param harmonicVoltageContent4795 47次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent4795(Double harmonicVoltageContent4795) { + this.harmonicVoltageContent4795 = harmonicVoltageContent4795; + } + + /** + * 获取48次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_48_max - 48次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent48Max() { + return harmonicVoltageContent48Max; + } + + /** + * 设置48次谐波电压含有率最大值 + * + * @param harmonicVoltageContent48Max 48次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent48Max(Double harmonicVoltageContent48Max) { + this.harmonicVoltageContent48Max = harmonicVoltageContent48Max; + } + + /** + * 获取48次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_48_min - 48次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent48Min() { + return harmonicVoltageContent48Min; + } + + /** + * 设置48次谐波电压含有率最小值 + * + * @param harmonicVoltageContent48Min 48次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent48Min(Double harmonicVoltageContent48Min) { + this.harmonicVoltageContent48Min = harmonicVoltageContent48Min; + } + + /** + * 获取48次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_48_avg - 48次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent48Avg() { + return harmonicVoltageContent48Avg; + } + + /** + * 设置48次谐波电压含有率平均值 + * + * @param harmonicVoltageContent48Avg 48次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent48Avg(Double harmonicVoltageContent48Avg) { + this.harmonicVoltageContent48Avg = harmonicVoltageContent48Avg; + } + + /** + * 获取48次谐波电压含有率95值 + * + * @return harmonic_voltage_content_48_95 - 48次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent4895() { + return harmonicVoltageContent4895; + } + + /** + * 设置48次谐波电压含有率95值 + * + * @param harmonicVoltageContent4895 48次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent4895(Double harmonicVoltageContent4895) { + this.harmonicVoltageContent4895 = harmonicVoltageContent4895; + } + + /** + * 获取49次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_49_max - 49次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent49Max() { + return harmonicVoltageContent49Max; + } + + /** + * 设置49次谐波电压含有率最大值 + * + * @param harmonicVoltageContent49Max 49次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent49Max(Double harmonicVoltageContent49Max) { + this.harmonicVoltageContent49Max = harmonicVoltageContent49Max; + } + + /** + * 获取49次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_49_min - 49次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent49Min() { + return harmonicVoltageContent49Min; + } + + /** + * 设置49次谐波电压含有率最小值 + * + * @param harmonicVoltageContent49Min 49次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent49Min(Double harmonicVoltageContent49Min) { + this.harmonicVoltageContent49Min = harmonicVoltageContent49Min; + } + + /** + * 获取49次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_49_avg - 49次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent49Avg() { + return harmonicVoltageContent49Avg; + } + + /** + * 设置49次谐波电压含有率平均值 + * + * @param harmonicVoltageContent49Avg 49次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent49Avg(Double harmonicVoltageContent49Avg) { + this.harmonicVoltageContent49Avg = harmonicVoltageContent49Avg; + } + + /** + * 获取49次谐波电压含有率95值 + * + * @return harmonic_voltage_content_49_95 - 49次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent4995() { + return harmonicVoltageContent4995; + } + + /** + * 设置49次谐波电压含有率95值 + * + * @param harmonicVoltageContent4995 49次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent4995(Double harmonicVoltageContent4995) { + this.harmonicVoltageContent4995 = harmonicVoltageContent4995; + } + + /** + * 获取50次谐波电压含有率最大值 + * + * @return harmonic_voltage_content_50_max - 50次谐波电压含有率最大值 + */ + public Double getHarmonicVoltageContent50Max() { + return harmonicVoltageContent50Max; + } + + /** + * 设置50次谐波电压含有率最大值 + * + * @param harmonicVoltageContent50Max 50次谐波电压含有率最大值 + */ + public void setHarmonicVoltageContent50Max(Double harmonicVoltageContent50Max) { + this.harmonicVoltageContent50Max = harmonicVoltageContent50Max; + } + + /** + * 获取50次谐波电压含有率最小值 + * + * @return harmonic_voltage_content_50_min - 50次谐波电压含有率最小值 + */ + public Double getHarmonicVoltageContent50Min() { + return harmonicVoltageContent50Min; + } + + /** + * 设置50次谐波电压含有率最小值 + * + * @param harmonicVoltageContent50Min 50次谐波电压含有率最小值 + */ + public void setHarmonicVoltageContent50Min(Double harmonicVoltageContent50Min) { + this.harmonicVoltageContent50Min = harmonicVoltageContent50Min; + } + + /** + * 获取50次谐波电压含有率平均值 + * + * @return harmonic_voltage_content_50_avg - 50次谐波电压含有率平均值 + */ + public Double getHarmonicVoltageContent50Avg() { + return harmonicVoltageContent50Avg; + } + + /** + * 设置50次谐波电压含有率平均值 + * + * @param harmonicVoltageContent50Avg 50次谐波电压含有率平均值 + */ + public void setHarmonicVoltageContent50Avg(Double harmonicVoltageContent50Avg) { + this.harmonicVoltageContent50Avg = harmonicVoltageContent50Avg; + } + + /** + * 获取50次谐波电压含有率95值 + * + * @return harmonic_voltage_content_50_95 - 50次谐波电压含有率95值 + */ + public Double getHarmonicVoltageContent5095() { + return harmonicVoltageContent5095; + } + + /** + * 设置50次谐波电压含有率95值 + * + * @param harmonicVoltageContent5095 50次谐波电压含有率95值 + */ + public void setHarmonicVoltageContent5095(Double harmonicVoltageContent5095) { + this.harmonicVoltageContent5095 = harmonicVoltageContent5095; + } +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpInharmonicIMagReportDPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpInharmonicIMagReportDPO.java new file mode 100644 index 000000000..c75358bbb --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpInharmonicIMagReportDPO.java @@ -0,0 +1,1444 @@ +package com.njcn.prepare.harmonic.pojo.po.line; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import com.github.jeffreyning.mybatisplus.anno.MppMultiId; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.Date; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/27 13:52【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@ApiModel(value = "com-njcn-prepare-harmonic-pojo-po-line-RMpInharmonicIMagReportDPO") +@Data +@TableName(value = "r_mp_inharmonic_i_mag_report_d") +public class RMpInharmonicIMagReportDPO { + /** + * 监测点ID + */ + @MppMultiId(value = "measurement_point_id") + @ApiModelProperty(value = "监测点ID") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @MppMultiId(value = "data_date") + @ApiModelProperty(value = "生成数据的时间,每日统计一次") + private Date dataDate; + + /** + * 相别:"A" "B" "C" "ABC" "T" 配网部分相别的数据采用T标志存储 + */ + @MppMultiId(value = "phase") + @ApiModelProperty(value = "相别:'A' 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储") + private String phase; + + /** + * 0.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_1_max") + @ApiModelProperty(value = "0.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective1Max; + + /** + * 0.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_1_min") + @ApiModelProperty(value = "0.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective1Min; + + /** + * 0.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_1_avg") + @ApiModelProperty(value = "0.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective1Avg; + + /** + * 0.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_1_cp95") + @ApiModelProperty(value = "0.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective1Cp95; + + /** + * 1.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_2_max") + @ApiModelProperty(value = "1.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective2Max; + + /** + * 1.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_2_min") + @ApiModelProperty(value = "1.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective2Min; + + /** + * 1.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_2_avg") + @ApiModelProperty(value = "1.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective2Avg; + + /** + * 1.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_2_cp95") + @ApiModelProperty(value = "1.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective2Cp95; + + /** + * 2.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_3_max") + @ApiModelProperty(value = "2.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective3Max; + + /** + * 2.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_3_min") + @ApiModelProperty(value = "2.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective3Min; + + /** + * 2.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_3_avg") + @ApiModelProperty(value = "2.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective3Avg; + + /** + * 2.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_3_cp95") + @ApiModelProperty(value = "2.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective3Cp95; + + /** + * 3.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_4_max") + @ApiModelProperty(value = "3.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective4Max; + + /** + * 3.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_4_min") + @ApiModelProperty(value = "3.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective4Min; + + /** + * 3.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_4_avg") + @ApiModelProperty(value = "3.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective4Avg; + + /** + * 3.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_4_cp95") + @ApiModelProperty(value = "3.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective4Cp95; + + /** + * 4.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_5_max") + @ApiModelProperty(value = "4.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective5Max; + + /** + * 4.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_5_min") + @ApiModelProperty(value = "4.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective5Min; + + /** + * 4.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_5_avg") + @ApiModelProperty(value = "4.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective5Avg; + + /** + * 4.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_5_cp95") + @ApiModelProperty(value = "4.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective5Cp95; + + /** + * 5.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_6_max") + @ApiModelProperty(value = "5.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective6Max; + + /** + * 5.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_6_min") + @ApiModelProperty(value = "5.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective6Min; + + /** + * 5.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_6_avg") + @ApiModelProperty(value = "5.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective6Avg; + + /** + * 5.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_6_cp95") + @ApiModelProperty(value = "5.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective6Cp95; + + /** + * 6.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_7_max") + @ApiModelProperty(value = "6.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective7Max; + + /** + * 6.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_7_min") + @ApiModelProperty(value = "6.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective7Min; + + /** + * 6.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_7_avg") + @ApiModelProperty(value = "6.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective7Avg; + + /** + * 6.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_7_cp95") + @ApiModelProperty(value = "6.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective7Cp95; + + /** + * 7.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_8_max") + @ApiModelProperty(value = "7.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective8Max; + + /** + * 7.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_8_min") + @ApiModelProperty(value = "7.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective8Min; + + /** + * 7.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_8_avg") + @ApiModelProperty(value = "7.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective8Avg; + + /** + * 7.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_8_cp95") + @ApiModelProperty(value = "7.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective8Cp95; + + /** + * 8.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_9_max") + @ApiModelProperty(value = "8.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective9Max; + + /** + * 8.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_9_min") + @ApiModelProperty(value = "8.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective9Min; + + /** + * 8.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_9_avg") + @ApiModelProperty(value = "8.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective9Avg; + + /** + * 8.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_9_cp95") + @ApiModelProperty(value = "8.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective9Cp95; + + /** + * 9.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_10_max") + @ApiModelProperty(value = "9.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective10Max; + + /** + * 9.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_10_min") + @ApiModelProperty(value = "9.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective10Min; + + /** + * 9.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_10_avg") + @ApiModelProperty(value = "9.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective10Avg; + + /** + * 9.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_10_cp95") + @ApiModelProperty(value = "9.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective10Cp95; + + /** + * 10.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_11_max") + @ApiModelProperty(value = "10.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective11Max; + + /** + * 10.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_11_min") + @ApiModelProperty(value = "10.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective11Min; + + /** + * 10.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_11_avg") + @ApiModelProperty(value = "10.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective11Avg; + + /** + * 10.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_11_cp95") + @ApiModelProperty(value = "10.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective11Cp95; + + /** + * 11.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_12_max") + @ApiModelProperty(value = "11.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective12Max; + + /** + * 11.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_12_min") + @ApiModelProperty(value = "11.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective12Min; + + /** + * 11.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_12_avg") + @ApiModelProperty(value = "11.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective12Avg; + + /** + * 11.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_12_cp95") + @ApiModelProperty(value = "11.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective12Cp95; + + /** + * 12.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_13_max") + @ApiModelProperty(value = "12.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective13Max; + + /** + * 12.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_13_min") + @ApiModelProperty(value = "12.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective13Min; + + /** + * 12.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_13_avg") + @ApiModelProperty(value = "12.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective13Avg; + + /** + * 12.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_13_cp95") + @ApiModelProperty(value = "12.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective13Cp95; + + /** + * 13.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_14_max") + @ApiModelProperty(value = "13.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective14Max; + + /** + * 13.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_14_min") + @ApiModelProperty(value = "13.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective14Min; + + /** + * 13.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_14_avg") + @ApiModelProperty(value = "13.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective14Avg; + + /** + * 13.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_14_cp95") + @ApiModelProperty(value = "13.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective14Cp95; + + /** + * 14.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_15_max") + @ApiModelProperty(value = "14.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective15Max; + + /** + * 14.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_15_min") + @ApiModelProperty(value = "14.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective15Min; + + /** + * 14.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_15_avg") + @ApiModelProperty(value = "14.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective15Avg; + + /** + * 14.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_15_cp95") + @ApiModelProperty(value = "14.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective15Cp95; + + /** + * 15.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_16_max") + @ApiModelProperty(value = "15.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective16Max; + + /** + * 15.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_16_min") + @ApiModelProperty(value = "15.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective16Min; + + /** + * 15.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_16_avg") + @ApiModelProperty(value = "15.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective16Avg; + + /** + * 15.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_16_cp95") + @ApiModelProperty(value = "15.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective16Cp95; + + /** + * 16.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_17_max") + @ApiModelProperty(value = "16.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective17Max; + + /** + * 16.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_17_min") + @ApiModelProperty(value = "16.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective17Min; + + /** + * 16.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_17_avg") + @ApiModelProperty(value = "16.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective17Avg; + + /** + * 16.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_17_cp95") + @ApiModelProperty(value = "16.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective17Cp95; + + /** + * 17.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_18_max") + @ApiModelProperty(value = "17.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective18Max; + + /** + * 17.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_18_min") + @ApiModelProperty(value = "17.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective18Min; + + /** + * 17.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_18_avg") + @ApiModelProperty(value = "17.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective18Avg; + + /** + * 17.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_18_cp95") + @ApiModelProperty(value = "17.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective18Cp95; + + /** + * 18.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_19_max") + @ApiModelProperty(value = "18.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective19Max; + + /** + * 18.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_19_min") + @ApiModelProperty(value = "18.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective19Min; + + /** + * 18.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_19_avg") + @ApiModelProperty(value = "18.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective19Avg; + + /** + * 18.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_19_cp95") + @ApiModelProperty(value = "18.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective19Cp95; + + /** + * 19.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_20_max") + @ApiModelProperty(value = "19.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective20Max; + + /** + * 19.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_20_min") + @ApiModelProperty(value = "19.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective20Min; + + /** + * 19.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_20_avg") + @ApiModelProperty(value = "19.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective20Avg; + + /** + * 19.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_20_cp95") + @ApiModelProperty(value = "19.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective20Cp95; + + /** + * 20.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_21_max") + @ApiModelProperty(value = "20.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective21Max; + + /** + * 20.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_21_min") + @ApiModelProperty(value = "20.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective21Min; + + /** + * 20.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_21_avg") + @ApiModelProperty(value = "20.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective21Avg; + + /** + * 20.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_21_cp95") + @ApiModelProperty(value = "20.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective21Cp95; + + /** + * 21.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_22_max") + @ApiModelProperty(value = "21.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective22Max; + + /** + * 21.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_22_min") + @ApiModelProperty(value = "21.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective22Min; + + /** + * 21.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_22_avg") + @ApiModelProperty(value = "21.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective22Avg; + + /** + * 21.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_22_cp95") + @ApiModelProperty(value = "21.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective22Cp95; + + /** + * 22.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_23_max") + @ApiModelProperty(value = "22.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective23Max; + + /** + * 22.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_23_min") + @ApiModelProperty(value = "22.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective23Min; + + /** + * 22.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_23_avg") + @ApiModelProperty(value = "22.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective23Avg; + + /** + * 22.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_23_cp95") + @ApiModelProperty(value = "22.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective23Cp95; + + /** + * 23.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_24_max") + @ApiModelProperty(value = "23.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective24Max; + + /** + * 23.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_24_min") + @ApiModelProperty(value = "23.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective24Min; + + /** + * 23.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_24_avg") + @ApiModelProperty(value = "23.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective24Avg; + + /** + * 23.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_24_cp95") + @ApiModelProperty(value = "23.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective24Cp95; + + /** + * 24.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_25_max") + @ApiModelProperty(value = "24.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective25Max; + + /** + * 24.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_25_min") + @ApiModelProperty(value = "24.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective25Min; + + /** + * 24.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_25_avg") + @ApiModelProperty(value = "24.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective25Avg; + + /** + * 24.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_25_cp95") + @ApiModelProperty(value = "24.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective25Cp95; + + /** + * 25.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_26_max") + @ApiModelProperty(value = "25.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective26Max; + + /** + * 25.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_26_min") + @ApiModelProperty(value = "25.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective26Min; + + /** + * 25.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_26_avg") + @ApiModelProperty(value = "25.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective26Avg; + + /** + * 25.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_26_cp95") + @ApiModelProperty(value = "25.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective26Cp95; + + /** + * 26.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_27_max") + @ApiModelProperty(value = "26.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective27Max; + + /** + * 26.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_27_min") + @ApiModelProperty(value = "26.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective27Min; + + /** + * 26.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_27_avg") + @ApiModelProperty(value = "26.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective27Avg; + + /** + * 26.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_27_cp95") + @ApiModelProperty(value = "26.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective27Cp95; + + /** + * 27.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_28_max") + @ApiModelProperty(value = "27.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective28Max; + + /** + * 27.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_28_min") + @ApiModelProperty(value = "27.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective28Min; + + /** + * 27.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_28_avg") + @ApiModelProperty(value = "27.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective28Avg; + + /** + * 27.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_28_cp95") + @ApiModelProperty(value = "27.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective28Cp95; + + /** + * 28.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_29_max") + @ApiModelProperty(value = "28.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective29Max; + + /** + * 28.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_29_min") + @ApiModelProperty(value = "28.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective29Min; + + /** + * 28.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_29_avg") + @ApiModelProperty(value = "28.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective29Avg; + + /** + * 28.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_29_cp95") + @ApiModelProperty(value = "28.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective29Cp95; + + /** + * 29.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_30_max") + @ApiModelProperty(value = "29.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective30Max; + + /** + * 29.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_30_min") + @ApiModelProperty(value = "29.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective30Min; + + /** + * 29.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_30_avg") + @ApiModelProperty(value = "29.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective30Avg; + + /** + * 29.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_30_cp95") + @ApiModelProperty(value = "29.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective30Cp95; + + /** + * 30.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_31_max") + @ApiModelProperty(value = "30.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective31Max; + + /** + * 30.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_31_min") + @ApiModelProperty(value = "30.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective31Min; + + /** + * 30.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_31_avg") + @ApiModelProperty(value = "30.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective31Avg; + + /** + * 30.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_31_cp95") + @ApiModelProperty(value = "30.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective31Cp95; + + /** + * 31.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_32_max") + @ApiModelProperty(value = "31.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective32Max; + + /** + * 31.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_32_min") + @ApiModelProperty(value = "31.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective32Min; + + /** + * 31.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_32_avg") + @ApiModelProperty(value = "31.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective32Avg; + + /** + * 31.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_32_cp95") + @ApiModelProperty(value = "31.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective32Cp95; + + /** + * 32.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_33_max") + @ApiModelProperty(value = "32.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective33Max; + + /** + * 32.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_33_min") + @ApiModelProperty(value = "32.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective33Min; + + /** + * 32.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_33_avg") + @ApiModelProperty(value = "32.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective33Avg; + + /** + * 32.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_33_cp95") + @ApiModelProperty(value = "32.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective33Cp95; + + /** + * 33.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_34_max") + @ApiModelProperty(value = "33.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective34Max; + + /** + * 33.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_34_min") + @ApiModelProperty(value = "33.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective34Min; + + /** + * 33.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_34_avg") + @ApiModelProperty(value = "33.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective34Avg; + + /** + * 33.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_34_cp95") + @ApiModelProperty(value = "33.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective34Cp95; + + /** + * 34.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_35_max") + @ApiModelProperty(value = "34.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective35Max; + + /** + * 34.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_35_min") + @ApiModelProperty(value = "34.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective35Min; + + /** + * 34.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_35_avg") + @ApiModelProperty(value = "34.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective35Avg; + + /** + * 34.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_35_cp95") + @ApiModelProperty(value = "34.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective35Cp95; + + /** + * 35.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_36_max") + @ApiModelProperty(value = "35.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective36Max; + + /** + * 35.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_36_min") + @ApiModelProperty(value = "35.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective36Min; + + /** + * 35.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_36_avg") + @ApiModelProperty(value = "35.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective36Avg; + + /** + * 35.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_36_cp95") + @ApiModelProperty(value = "35.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective36Cp95; + + /** + * 36.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_37_max") + @ApiModelProperty(value = "36.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective37Max; + + /** + * 36.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_37_min") + @ApiModelProperty(value = "36.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective37Min; + + /** + * 36.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_37_avg") + @ApiModelProperty(value = "36.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective37Avg; + + /** + * 36.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_37_cp95") + @ApiModelProperty(value = "36.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective37Cp95; + + /** + * 37.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_38_max") + @ApiModelProperty(value = "37.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective38Max; + + /** + * 37.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_38_min") + @ApiModelProperty(value = "37.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective38Min; + + /** + * 37.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_38_avg") + @ApiModelProperty(value = "37.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective38Avg; + + /** + * 37.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_38_cp95") + @ApiModelProperty(value = "37.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective38Cp95; + + /** + * 38.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_39_max") + @ApiModelProperty(value = "38.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective39Max; + + /** + * 38.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_39_min") + @ApiModelProperty(value = "38.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective39Min; + + /** + * 38.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_39_avg") + @ApiModelProperty(value = "38.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective39Avg; + + /** + * 38.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_39_cp95") + @ApiModelProperty(value = "38.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective39Cp95; + + /** + * 39.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_40_max") + @ApiModelProperty(value = "39.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective40Max; + + /** + * 39.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_40_min") + @ApiModelProperty(value = "39.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective40Min; + + /** + * 39.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_40_avg") + @ApiModelProperty(value = "39.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective40Avg; + + /** + * 39.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_40_cp95") + @ApiModelProperty(value = "39.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective40Cp95; + + /** + * 40.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_41_max") + @ApiModelProperty(value = "40.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective41Max; + + /** + * 40.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_41_min") + @ApiModelProperty(value = "40.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective41Min; + + /** + * 40.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_41_avg") + @ApiModelProperty(value = "40.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective41Avg; + + /** + * 40.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_41_cp95") + @ApiModelProperty(value = "40.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective41Cp95; + + /** + * 41.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_42_max") + @ApiModelProperty(value = "41.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective42Max; + + /** + * 41.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_42_min") + @ApiModelProperty(value = "41.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective42Min; + + /** + * 41.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_42_avg") + @ApiModelProperty(value = "41.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective42Avg; + + /** + * 41.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_42_cp95") + @ApiModelProperty(value = "41.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective42Cp95; + + /** + * 42.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_43_max") + @ApiModelProperty(value = "42.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective43Max; + + /** + * 42.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_43_min") + @ApiModelProperty(value = "42.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective43Min; + + /** + * 42.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_43_avg") + @ApiModelProperty(value = "42.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective43Avg; + + /** + * 42.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_43_cp95") + @ApiModelProperty(value = "42.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective43Cp95; + + /** + * 43.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_44_max") + @ApiModelProperty(value = "43.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective44Max; + + /** + * 43.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_44_min") + @ApiModelProperty(value = "43.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective44Min; + + /** + * 43.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_44_avg") + @ApiModelProperty(value = "43.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective44Avg; + + /** + * 43.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_44_cp95") + @ApiModelProperty(value = "43.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective44Cp95; + + /** + * 44.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_45_max") + @ApiModelProperty(value = "44.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective45Max; + + /** + * 44.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_45_min") + @ApiModelProperty(value = "44.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective45Min; + + /** + * 44.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_45_avg") + @ApiModelProperty(value = "44.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective45Avg; + + /** + * 44.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_45_cp95") + @ApiModelProperty(value = "44.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective45Cp95; + + /** + * 45.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_46_max") + @ApiModelProperty(value = "45.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective46Max; + + /** + * 45.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_46_min") + @ApiModelProperty(value = "45.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective46Min; + + /** + * 45.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_46_avg") + @ApiModelProperty(value = "45.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective46Avg; + + /** + * 45.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_46_cp95") + @ApiModelProperty(value = "45.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective46Cp95; + + /** + * 46.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_47_max") + @ApiModelProperty(value = "46.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective47Max; + + /** + * 46.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_47_min") + @ApiModelProperty(value = "46.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective47Min; + + /** + * 46.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_47_avg") + @ApiModelProperty(value = "46.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective47Avg; + + /** + * 46.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_47_cp95") + @ApiModelProperty(value = "46.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective47Cp95; + + /** + * 47.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_48_max") + @ApiModelProperty(value = "47.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective48Max; + + /** + * 47.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_48_min") + @ApiModelProperty(value = "47.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective48Min; + + /** + * 47.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_48_avg") + @ApiModelProperty(value = "47.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective48Avg; + + /** + * 47.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_48_cp95") + @ApiModelProperty(value = "47.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective48Cp95; + + /** + * 48.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_49_max") + @ApiModelProperty(value = "48.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective49Max; + + /** + * 48.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_49_min") + @ApiModelProperty(value = "48.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective49Min; + + /** + * 48.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_49_avg") + @ApiModelProperty(value = "48.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective49Avg; + + /** + * 48.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_49_cp95") + @ApiModelProperty(value = "48.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective49Cp95; + + /** + * 49.5次间谐波电流有效值最大值 + */ + @TableField(value = "simple_harmonic_current_effective_50_max") + @ApiModelProperty(value = "49.5次间谐波电流有效值最大值") + private Double simpleHarmonicCurrentEffective50Max; + + /** + * 49.5次间谐波电流有效值最小值 + */ + @TableField(value = "simple_harmonic_current_effective_50_min") + @ApiModelProperty(value = "49.5次间谐波电流有效值最小值") + private Double simpleHarmonicCurrentEffective50Min; + + /** + * 49.5次间谐波电流有效值平均值 + */ + @TableField(value = "simple_harmonic_current_effective_50_avg") + @ApiModelProperty(value = "49.5次间谐波电流有效值平均值") + private Double simpleHarmonicCurrentEffective50Avg; + + /** + * 49.5次间谐波电流有效值95值 + */ + @TableField(value = "simple_harmonic_current_effective_50_cp95") + @ApiModelProperty(value = "49.5次间谐波电流有效值95值") + private Double simpleHarmonicCurrentEffective50Cp95; +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpInharmonicIRateReportDPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpInharmonicIRateReportDPO.java new file mode 100644 index 000000000..8db505cda --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpInharmonicIRateReportDPO.java @@ -0,0 +1,1420 @@ +package com.njcn.prepare.harmonic.pojo.po.line; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import com.github.jeffreyning.mybatisplus.anno.MppMultiId; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.Date; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 19:36【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +/** + * 稳态监测点指标日报-日表(主网表) /各次间谐波电流含有率 + */ +@ApiModel(value="com-njcn-prepare-harmonic-pojo-po-line-RMpInharmonicIRateReportDPO") +@Data +@TableName(value = "r_mp_inharmonic_i_rate_report_d") +public class RMpInharmonicIRateReportDPO { + /** + * 监测点ID + */ + @MppMultiId(value = "measurement_point_id") + @ApiModelProperty(value="监测点ID") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @MppMultiId(value = "data_date") + @ApiModelProperty(value="生成数据的时间,每日统计一次") + private Date dataDate; + + /** + * 相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储 + */ + @MppMultiId(value = "phase") + @ApiModelProperty(value="相别:‘A’ 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储") + private String phase; + + /** + * 2次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_2_max") + @ApiModelProperty(value="2次间谐波电流含有率-最大值") + private Double inharmI2Max; + + /** + * 2次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_2_min") + @ApiModelProperty(value="2次间谐波电流含有率-最小值") + private Double inharmI2Min; + + /** + * 2次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_2_avg") + @ApiModelProperty(value="2次间谐波电流含有率-平均值") + private Double inharmI2Avg; + + /** + * 2次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_2_cp95") + @ApiModelProperty(value="2次间谐波电流含有率-cp95值") + private Double inharmI2Cp95; + + /** + * 3次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_3_max") + @ApiModelProperty(value="3次间谐波电流含有率-最大值") + private Double inharmI3Max; + + /** + * 3次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_3_min") + @ApiModelProperty(value="3次间谐波电流含有率-最小值") + private Double inharmI3Min; + + /** + * 3次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_3_avg") + @ApiModelProperty(value="3次间谐波电流含有率-平均值") + private Double inharmI3Avg; + + /** + * 3次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_3_cp95") + @ApiModelProperty(value="3次间谐波电流含有率-cp95值") + private Double inharmI3Cp95; + + /** + * 4次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_4_max") + @ApiModelProperty(value="4次间谐波电流含有率-最大值") + private Double inharmI4Max; + + /** + * 4次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_4_min") + @ApiModelProperty(value="4次间谐波电流含有率-最小值") + private Double inharmI4Min; + + /** + * 4次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_4_avg") + @ApiModelProperty(value="4次间谐波电流含有率-平均值") + private Double inharmI4Avg; + + /** + * 4次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_4_cp95") + @ApiModelProperty(value="4次间谐波电流含有率-cp95值") + private Double inharmI4Cp95; + + /** + * 5次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_5_max") + @ApiModelProperty(value="5次间谐波电流含有率-最大值") + private Double inharmI5Max; + + /** + * 5次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_5_min") + @ApiModelProperty(value="5次间谐波电流含有率-最小值") + private Double inharmI5Min; + + /** + * 5次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_5_avg") + @ApiModelProperty(value="5次间谐波电流含有率-平均值") + private Double inharmI5Avg; + + /** + * 5次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_5_cp95") + @ApiModelProperty(value="5次间谐波电流含有率-cp95值") + private Double inharmI5Cp95; + + /** + * 6次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_6_max") + @ApiModelProperty(value="6次间谐波电流含有率-最大值") + private Double inharmI6Max; + + /** + * 6次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_6_min") + @ApiModelProperty(value="6次间谐波电流含有率-最小值") + private Double inharmI6Min; + + /** + * 6次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_6_avg") + @ApiModelProperty(value="6次间谐波电流含有率-平均值") + private Double inharmI6Avg; + + /** + * 6次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_6_cp95") + @ApiModelProperty(value="6次间谐波电流含有率-cp95值") + private Double inharmI6Cp95; + + /** + * 7次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_7_max") + @ApiModelProperty(value="7次间谐波电流含有率-最大值") + private Double inharmI7Max; + + /** + * 7次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_7_min") + @ApiModelProperty(value="7次间谐波电流含有率-最小值") + private Double inharmI7Min; + + /** + * 7次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_7_avg") + @ApiModelProperty(value="7次间谐波电流含有率-平均值") + private Double inharmI7Avg; + + /** + * 7次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_7_cp95") + @ApiModelProperty(value="7次间谐波电流含有率-cp95值") + private Double inharmI7Cp95; + + /** + * 8次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_8_max") + @ApiModelProperty(value="8次间谐波电流含有率-最大值") + private Double inharmI8Max; + + /** + * 8次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_8_min") + @ApiModelProperty(value="8次间谐波电流含有率-最小值") + private Double inharmI8Min; + + /** + * 8次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_8_avg") + @ApiModelProperty(value="8次间谐波电流含有率-平均值") + private Double inharmI8Avg; + + /** + * 8次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_8_cp95") + @ApiModelProperty(value="8次间谐波电流含有率-cp95值") + private Double inharmI8Cp95; + + /** + * 9次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_9_max") + @ApiModelProperty(value="9次间谐波电流含有率-最大值") + private Double inharmI9Max; + + /** + * 9次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_9_min") + @ApiModelProperty(value="9次间谐波电流含有率-最小值") + private Double inharmI9Min; + + /** + * 9次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_9_avg") + @ApiModelProperty(value="9次间谐波电流含有率-平均值") + private Double inharmI9Avg; + + /** + * 9次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_9_cp95") + @ApiModelProperty(value="9次间谐波电流含有率-cp95值") + private Double inharmI9Cp95; + + /** + * 10次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_10_max") + @ApiModelProperty(value="10次间谐波电流含有率-最大值") + private Double inharmI10Max; + + /** + * 10次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_10_min") + @ApiModelProperty(value="10次间谐波电流含有率-最小值") + private Double inharmI10Min; + + /** + * 10次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_10_avg") + @ApiModelProperty(value="10次间谐波电流含有率-平均值") + private Double inharmI10Avg; + + /** + * 10次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_10_cp95") + @ApiModelProperty(value="10次间谐波电流含有率-cp95值") + private Double inharmI10Cp95; + + /** + * 11次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_11_max") + @ApiModelProperty(value="11次间谐波电流含有率-最大值") + private Double inharmI11Max; + + /** + * 11次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_11_min") + @ApiModelProperty(value="11次间谐波电流含有率-最小值") + private Double inharmI11Min; + + /** + * 11次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_11_avg") + @ApiModelProperty(value="11次间谐波电流含有率-平均值") + private Double inharmI11Avg; + + /** + * 11次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_11_cp95") + @ApiModelProperty(value="11次间谐波电流含有率-cp95值") + private Double inharmI11Cp95; + + /** + * 12次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_12_max") + @ApiModelProperty(value="12次间谐波电流含有率-最大值") + private Double inharmI12Max; + + /** + * 12次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_12_min") + @ApiModelProperty(value="12次间谐波电流含有率-最小值") + private Double inharmI12Min; + + /** + * 12次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_12_avg") + @ApiModelProperty(value="12次间谐波电流含有率-平均值") + private Double inharmI12Avg; + + /** + * 12次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_12_cp95") + @ApiModelProperty(value="12次间谐波电流含有率-cp95值") + private Double inharmI12Cp95; + + /** + * 13次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_13_max") + @ApiModelProperty(value="13次间谐波电流含有率-最大值") + private Double inharmI13Max; + + /** + * 13次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_13_min") + @ApiModelProperty(value="13次间谐波电流含有率-最小值") + private Double inharmI13Min; + + /** + * 13次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_13_avg") + @ApiModelProperty(value="13次间谐波电流含有率-平均值") + private Double inharmI13Avg; + + /** + * 13次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_13_cp95") + @ApiModelProperty(value="13次间谐波电流含有率-cp95值") + private Double inharmI13Cp95; + + /** + * 14次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_14_max") + @ApiModelProperty(value="14次间谐波电流含有率-最大值") + private Double inharmI14Max; + + /** + * 14次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_14_min") + @ApiModelProperty(value="14次间谐波电流含有率-最小值") + private Double inharmI14Min; + + /** + * 14次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_14_avg") + @ApiModelProperty(value="14次间谐波电流含有率-平均值") + private Double inharmI14Avg; + + /** + * 14次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_14_cp95") + @ApiModelProperty(value="14次间谐波电流含有率-cp95值") + private Double inharmI14Cp95; + + /** + * 15次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_15_max") + @ApiModelProperty(value="15次间谐波电流含有率-最大值") + private Double inharmI15Max; + + /** + * 15次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_15_min") + @ApiModelProperty(value="15次间谐波电流含有率-最小值") + private Double inharmI15Min; + + /** + * 15次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_15_avg") + @ApiModelProperty(value="15次间谐波电流含有率-平均值") + private Double inharmI15Avg; + + /** + * 15次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_15_cp95") + @ApiModelProperty(value="15次间谐波电流含有率-cp95值") + private Double inharmI15Cp95; + + /** + * 16次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_16_max") + @ApiModelProperty(value="16次间谐波电流含有率-最大值") + private Double inharmI16Max; + + /** + * 16次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_16_min") + @ApiModelProperty(value="16次间谐波电流含有率-最小值") + private Double inharmI16Min; + + /** + * 16次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_16_avg") + @ApiModelProperty(value="16次间谐波电流含有率-平均值") + private Double inharmI16Avg; + + /** + * 16次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_16_cp95") + @ApiModelProperty(value="16次间谐波电流含有率-cp95值") + private Double inharmI16Cp95; + + /** + * 17次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_17_max") + @ApiModelProperty(value="17次间谐波电流含有率-最大值") + private Double inharmI17Max; + + /** + * 17次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_17_min") + @ApiModelProperty(value="17次间谐波电流含有率-最小值") + private Double inharmI17Min; + + /** + * 17次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_17_avg") + @ApiModelProperty(value="17次间谐波电流含有率-平均值") + private Double inharmI17Avg; + + /** + * 17次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_17_cp95") + @ApiModelProperty(value="17次间谐波电流含有率-cp95值") + private Double inharmI17Cp95; + + /** + * 18次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_18_max") + @ApiModelProperty(value="18次间谐波电流含有率-最大值") + private Double inharmI18Max; + + /** + * 18次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_18_min") + @ApiModelProperty(value="18次间谐波电流含有率-最小值") + private Double inharmI18Min; + + /** + * 18次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_18_avg") + @ApiModelProperty(value="18次间谐波电流含有率-平均值") + private Double inharmI18Avg; + + /** + * 18次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_18_cp95") + @ApiModelProperty(value="18次间谐波电流含有率-cp95值") + private Double inharmI18Cp95; + + /** + * 19次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_19_max") + @ApiModelProperty(value="19次间谐波电流含有率-最大值") + private Double inharmI19Max; + + /** + * 19次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_19_min") + @ApiModelProperty(value="19次间谐波电流含有率-最小值") + private Double inharmI19Min; + + /** + * 19次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_19_avg") + @ApiModelProperty(value="19次间谐波电流含有率-平均值") + private Double inharmI19Avg; + + /** + * 19次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_19_cp95") + @ApiModelProperty(value="19次间谐波电流含有率-cp95值") + private Double inharmI19Cp95; + + /** + * 20次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_20_max") + @ApiModelProperty(value="20次间谐波电流含有率-最大值") + private Double inharmI20Max; + + /** + * 20次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_20_min") + @ApiModelProperty(value="20次间谐波电流含有率-最小值") + private Double inharmI20Min; + + /** + * 20次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_20_avg") + @ApiModelProperty(value="20次间谐波电流含有率-平均值") + private Double inharmI20Avg; + + /** + * 20次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_20_cp95") + @ApiModelProperty(value="20次间谐波电流含有率-cp95值") + private Double inharmI20Cp95; + + /** + * 21次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_21_max") + @ApiModelProperty(value="21次间谐波电流含有率-最大值") + private Double inharmI21Max; + + /** + * 21次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_21_min") + @ApiModelProperty(value="21次间谐波电流含有率-最小值") + private Double inharmI21Min; + + /** + * 21次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_21_avg") + @ApiModelProperty(value="21次间谐波电流含有率-平均值") + private Double inharmI21Avg; + + /** + * 21次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_21_cp95") + @ApiModelProperty(value="21次间谐波电流含有率-cp95值") + private Double inharmI21Cp95; + + /** + * 22次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_22_max") + @ApiModelProperty(value="22次间谐波电流含有率-最大值") + private Double inharmI22Max; + + /** + * 22次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_22_min") + @ApiModelProperty(value="22次间谐波电流含有率-最小值") + private Double inharmI22Min; + + /** + * 22次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_22_avg") + @ApiModelProperty(value="22次间谐波电流含有率-平均值") + private Double inharmI22Avg; + + /** + * 22次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_22_cp95") + @ApiModelProperty(value="22次间谐波电流含有率-cp95值") + private Double inharmI22Cp95; + + /** + * 23次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_23_max") + @ApiModelProperty(value="23次间谐波电流含有率-最大值") + private Double inharmI23Max; + + /** + * 23次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_23_min") + @ApiModelProperty(value="23次间谐波电流含有率-最小值") + private Double inharmI23Min; + + /** + * 23次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_23_avg") + @ApiModelProperty(value="23次间谐波电流含有率-平均值") + private Double inharmI23Avg; + + /** + * 23次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_23_cp95") + @ApiModelProperty(value="23次间谐波电流含有率-cp95值") + private Double inharmI23Cp95; + + /** + * 24次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_24_max") + @ApiModelProperty(value="24次间谐波电流含有率-最大值") + private Double inharmI24Max; + + /** + * 24次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_24_min") + @ApiModelProperty(value="24次间谐波电流含有率-最小值") + private Double inharmI24Min; + + /** + * 24次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_24_avg") + @ApiModelProperty(value="24次间谐波电流含有率-平均值") + private Double inharmI24Avg; + + /** + * 24次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_24_cp95") + @ApiModelProperty(value="24次间谐波电流含有率-cp95值") + private Double inharmI24Cp95; + + /** + * 25次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_25_max") + @ApiModelProperty(value="25次间谐波电流含有率-最大值") + private Double inharmI25Max; + + /** + * 25次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_25_min") + @ApiModelProperty(value="25次间谐波电流含有率-最小值") + private Double inharmI25Min; + + /** + * 25次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_25_avg") + @ApiModelProperty(value="25次间谐波电流含有率-平均值") + private Double inharmI25Avg; + + /** + * 25次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_25_cp95") + @ApiModelProperty(value="25次间谐波电流含有率-cp95值") + private Double inharmI25Cp95; + + /** + * 26次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_26_max") + @ApiModelProperty(value="26次间谐波电流含有率-最大值") + private Double inharmI26Max; + + /** + * 26次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_26_min") + @ApiModelProperty(value="26次间谐波电流含有率-最小值") + private Double inharmI26Min; + + /** + * 26次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_26_avg") + @ApiModelProperty(value="26次间谐波电流含有率-平均值") + private Double inharmI26Avg; + + /** + * 26次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_26_cp95") + @ApiModelProperty(value="26次间谐波电流含有率-cp95值") + private Double inharmI26Cp95; + + /** + * 27次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_27_max") + @ApiModelProperty(value="27次间谐波电流含有率-最大值") + private Double inharmI27Max; + + /** + * 27次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_27_min") + @ApiModelProperty(value="27次间谐波电流含有率-最小值") + private Double inharmI27Min; + + /** + * 27次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_27_avg") + @ApiModelProperty(value="27次间谐波电流含有率-平均值") + private Double inharmI27Avg; + + /** + * 27次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_27_cp95") + @ApiModelProperty(value="27次间谐波电流含有率-cp95值") + private Double inharmI27Cp95; + + /** + * 28次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_28_max") + @ApiModelProperty(value="28次间谐波电流含有率-最大值") + private Double inharmI28Max; + + /** + * 28次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_28_min") + @ApiModelProperty(value="28次间谐波电流含有率-最小值") + private Double inharmI28Min; + + /** + * 28次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_28_avg") + @ApiModelProperty(value="28次间谐波电流含有率-平均值") + private Double inharmI28Avg; + + /** + * 28次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_28_cp95") + @ApiModelProperty(value="28次间谐波电流含有率-cp95值") + private Double inharmI28Cp95; + + /** + * 29次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_29_max") + @ApiModelProperty(value="29次间谐波电流含有率-最大值") + private Double inharmI29Max; + + /** + * 29次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_29_min") + @ApiModelProperty(value="29次间谐波电流含有率-最小值") + private Double inharmI29Min; + + /** + * 29次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_29_avg") + @ApiModelProperty(value="29次间谐波电流含有率-平均值") + private Double inharmI29Avg; + + /** + * 29次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_29_cp95") + @ApiModelProperty(value="29次间谐波电流含有率-cp95值") + private Double inharmI29Cp95; + + /** + * 30次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_30_max") + @ApiModelProperty(value="30次间谐波电流含有率-最大值") + private Double inharmI30Max; + + /** + * 30次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_30_min") + @ApiModelProperty(value="30次间谐波电流含有率-最小值") + private Double inharmI30Min; + + /** + * 30次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_30_avg") + @ApiModelProperty(value="30次间谐波电流含有率-平均值") + private Double inharmI30Avg; + + /** + * 30次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_30_cp95") + @ApiModelProperty(value="30次间谐波电流含有率-cp95值") + private Double inharmI30Cp95; + + /** + * 31次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_31_max") + @ApiModelProperty(value="31次间谐波电流含有率-最大值") + private Double inharmI31Max; + + /** + * 31次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_31_min") + @ApiModelProperty(value="31次间谐波电流含有率-最小值") + private Double inharmI31Min; + + /** + * 31次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_31_avg") + @ApiModelProperty(value="31次间谐波电流含有率-平均值") + private Double inharmI31Avg; + + /** + * 31次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_31_cp95") + @ApiModelProperty(value="31次间谐波电流含有率-cp95值") + private Double inharmI31Cp95; + + /** + * 32次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_32_max") + @ApiModelProperty(value="32次间谐波电流含有率-最大值") + private Double inharmI32Max; + + /** + * 32次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_32_min") + @ApiModelProperty(value="32次间谐波电流含有率-最小值") + private Double inharmI32Min; + + /** + * 32次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_32_avg") + @ApiModelProperty(value="32次间谐波电流含有率-平均值") + private Double inharmI32Avg; + + /** + * 32次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_32_cp95") + @ApiModelProperty(value="32次间谐波电流含有率-cp95值") + private Double inharmI32Cp95; + + /** + * 33次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_33_max") + @ApiModelProperty(value="33次间谐波电流含有率-最大值") + private Double inharmI33Max; + + /** + * 33次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_33_min") + @ApiModelProperty(value="33次间谐波电流含有率-最小值") + private Double inharmI33Min; + + /** + * 33次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_33_avg") + @ApiModelProperty(value="33次间谐波电流含有率-平均值") + private Double inharmI33Avg; + + /** + * 33次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_33_cp95") + @ApiModelProperty(value="33次间谐波电流含有率-cp95值") + private Double inharmI33Cp95; + + /** + * 34次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_34_max") + @ApiModelProperty(value="34次间谐波电流含有率-最大值") + private Double inharmI34Max; + + /** + * 34次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_34_min") + @ApiModelProperty(value="34次间谐波电流含有率-最小值") + private Double inharmI34Min; + + /** + * 34次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_34_avg") + @ApiModelProperty(value="34次间谐波电流含有率-平均值") + private Double inharmI34Avg; + + /** + * 34次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_34_cp95") + @ApiModelProperty(value="34次间谐波电流含有率-cp95值") + private Double inharmI34Cp95; + + /** + * 35次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_35_max") + @ApiModelProperty(value="35次间谐波电流含有率-最大值") + private Double inharmI35Max; + + /** + * 35次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_35_min") + @ApiModelProperty(value="35次间谐波电流含有率-最小值") + private Double inharmI35Min; + + /** + * 35次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_35_avg") + @ApiModelProperty(value="35次间谐波电流含有率-平均值") + private Double inharmI35Avg; + + /** + * 35次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_35_cp95") + @ApiModelProperty(value="35次间谐波电流含有率-cp95值") + private Double inharmI35Cp95; + + /** + * 36次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_36_max") + @ApiModelProperty(value="36次间谐波电流含有率-最大值") + private Double inharmI36Max; + + /** + * 36次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_36_min") + @ApiModelProperty(value="36次间谐波电流含有率-最小值") + private Double inharmI36Min; + + /** + * 36次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_36_avg") + @ApiModelProperty(value="36次间谐波电流含有率-平均值") + private Double inharmI36Avg; + + /** + * 36次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_36_cp95") + @ApiModelProperty(value="36次间谐波电流含有率-cp95值") + private Double inharmI36Cp95; + + /** + * 37次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_37_max") + @ApiModelProperty(value="37次间谐波电流含有率-最大值") + private Double inharmI37Max; + + /** + * 37次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_37_min") + @ApiModelProperty(value="37次间谐波电流含有率-最小值") + private Double inharmI37Min; + + /** + * 37次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_37_avg") + @ApiModelProperty(value="37次间谐波电流含有率-平均值") + private Double inharmI37Avg; + + /** + * 37次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_37_cp95") + @ApiModelProperty(value="37次间谐波电流含有率-cp95值") + private Double inharmI37Cp95; + + /** + * 38次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_38_max") + @ApiModelProperty(value="38次间谐波电流含有率-最大值") + private Double inharmI38Max; + + /** + * 38次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_38_min") + @ApiModelProperty(value="38次间谐波电流含有率-最小值") + private Double inharmI38Min; + + /** + * 38次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_38_avg") + @ApiModelProperty(value="38次间谐波电流含有率-平均值") + private Double inharmI38Avg; + + /** + * 38次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_38_cp95") + @ApiModelProperty(value="38次间谐波电流含有率-cp95值") + private Double inharmI38Cp95; + + /** + * 39次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_39_max") + @ApiModelProperty(value="39次间谐波电流含有率-最大值") + private Double inharmI39Max; + + /** + * 39次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_39_min") + @ApiModelProperty(value="39次间谐波电流含有率-最小值") + private Double inharmI39Min; + + /** + * 39次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_39_avg") + @ApiModelProperty(value="39次间谐波电流含有率-平均值") + private Double inharmI39Avg; + + /** + * 39次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_39_cp95") + @ApiModelProperty(value="39次间谐波电流含有率-cp95值") + private Double inharmI39Cp95; + + /** + * 40次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_40_max") + @ApiModelProperty(value="40次间谐波电流含有率-最大值") + private Double inharmI40Max; + + /** + * 40次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_40_min") + @ApiModelProperty(value="40次间谐波电流含有率-最小值") + private Double inharmI40Min; + + /** + * 40次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_40_avg") + @ApiModelProperty(value="40次间谐波电流含有率-平均值") + private Double inharmI40Avg; + + /** + * 40次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_40_cp95") + @ApiModelProperty(value="40次间谐波电流含有率-cp95值") + private Double inharmI40Cp95; + + /** + * 41次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_41_max") + @ApiModelProperty(value="41次间谐波电流含有率-最大值") + private Double inharmI41Max; + + /** + * 41次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_41_min") + @ApiModelProperty(value="41次间谐波电流含有率-最小值") + private Double inharmI41Min; + + /** + * 41次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_41_avg") + @ApiModelProperty(value="41次间谐波电流含有率-平均值") + private Double inharmI41Avg; + + /** + * 41次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_41_cp95") + @ApiModelProperty(value="41次间谐波电流含有率-cp95值") + private Double inharmI41Cp95; + + /** + * 42次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_42_max") + @ApiModelProperty(value="42次间谐波电流含有率-最大值") + private Double inharmI42Max; + + /** + * 42次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_42_min") + @ApiModelProperty(value="42次间谐波电流含有率-最小值") + private Double inharmI42Min; + + /** + * 42次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_42_avg") + @ApiModelProperty(value="42次间谐波电流含有率-平均值") + private Double inharmI42Avg; + + /** + * 42次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_42_cp95") + @ApiModelProperty(value="42次间谐波电流含有率-cp95值") + private Double inharmI42Cp95; + + /** + * 43次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_43_max") + @ApiModelProperty(value="43次间谐波电流含有率-最大值") + private Double inharmI43Max; + + /** + * 43次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_43_min") + @ApiModelProperty(value="43次间谐波电流含有率-最小值") + private Double inharmI43Min; + + /** + * 43次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_43_avg") + @ApiModelProperty(value="43次间谐波电流含有率-平均值") + private Double inharmI43Avg; + + /** + * 43次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_43_cp95") + @ApiModelProperty(value="43次间谐波电流含有率-cp95值") + private Double inharmI43Cp95; + + /** + * 44次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_44_max") + @ApiModelProperty(value="44次间谐波电流含有率-最大值") + private Double inharmI44Max; + + /** + * 44次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_44_min") + @ApiModelProperty(value="44次间谐波电流含有率-最小值") + private Double inharmI44Min; + + /** + * 44次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_44_avg") + @ApiModelProperty(value="44次间谐波电流含有率-平均值") + private Double inharmI44Avg; + + /** + * 44次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_44_cp95") + @ApiModelProperty(value="44次间谐波电流含有率-cp95值") + private Double inharmI44Cp95; + + /** + * 45次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_45_max") + @ApiModelProperty(value="45次间谐波电流含有率-最大值") + private Double inharmI45Max; + + /** + * 45次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_45_min") + @ApiModelProperty(value="45次间谐波电流含有率-最小值") + private Double inharmI45Min; + + /** + * 45次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_45_avg") + @ApiModelProperty(value="45次间谐波电流含有率-平均值") + private Double inharmI45Avg; + + /** + * 45次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_45_cp95") + @ApiModelProperty(value="45次间谐波电流含有率-cp95值") + private Double inharmI45Cp95; + + /** + * 46次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_46_max") + @ApiModelProperty(value="46次间谐波电流含有率-最大值") + private Double inharmI46Max; + + /** + * 46次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_46_min") + @ApiModelProperty(value="46次间谐波电流含有率-最小值") + private Double inharmI46Min; + + /** + * 46次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_46_avg") + @ApiModelProperty(value="46次间谐波电流含有率-平均值") + private Double inharmI46Avg; + + /** + * 46次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_46_cp95") + @ApiModelProperty(value="46次间谐波电流含有率-cp95值") + private Double inharmI46Cp95; + + /** + * 47次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_47_max") + @ApiModelProperty(value="47次间谐波电流含有率-最大值") + private Double inharmI47Max; + + /** + * 47次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_47_min") + @ApiModelProperty(value="47次间谐波电流含有率-最小值") + private Double inharmI47Min; + + /** + * 47次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_47_avg") + @ApiModelProperty(value="47次间谐波电流含有率-平均值") + private Double inharmI47Avg; + + /** + * 47次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_47_cp95") + @ApiModelProperty(value="47次间谐波电流含有率-cp95值") + private Double inharmI47Cp95; + + /** + * 48次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_48_max") + @ApiModelProperty(value="48次间谐波电流含有率-最大值") + private Double inharmI48Max; + + /** + * 48次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_48_min") + @ApiModelProperty(value="48次间谐波电流含有率-最小值") + private Double inharmI48Min; + + /** + * 48次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_48_avg") + @ApiModelProperty(value="48次间谐波电流含有率-平均值") + private Double inharmI48Avg; + + /** + * 48次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_48_cp95") + @ApiModelProperty(value="48次间谐波电流含有率-cp95值") + private Double inharmI48Cp95; + + /** + * 49次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_49_max") + @ApiModelProperty(value="49次间谐波电流含有率-最大值") + private Double inharmI49Max; + + /** + * 49次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_49_min") + @ApiModelProperty(value="49次间谐波电流含有率-最小值") + private Double inharmI49Min; + + /** + * 49次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_49_avg") + @ApiModelProperty(value="49次间谐波电流含有率-平均值") + private Double inharmI49Avg; + + /** + * 49次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_49_cp95") + @ApiModelProperty(value="49次间谐波电流含有率-cp95值") + private Double inharmI49Cp95; + + /** + * 50次间谐波电流含有率-最大值 + */ + @TableField(value = "inharm_i_50_max") + @ApiModelProperty(value="50次间谐波电流含有率-最大值") + private Double inharmI50Max; + + /** + * 50次间谐波电流含有率-最小值 + */ + @TableField(value = "inharm_i_50_min") + @ApiModelProperty(value="50次间谐波电流含有率-最小值") + private Double inharmI50Min; + + /** + * 50次间谐波电流含有率-平均值 + */ + @TableField(value = "inharm_i_50_avg") + @ApiModelProperty(value="50次间谐波电流含有率-平均值") + private Double inharmI50Avg; + + /** + * 50次间谐波电流含有率-cp95值 + */ + @TableField(value = "inharm_i_50_cp95") + @ApiModelProperty(value="50次间谐波电流含有率-cp95值") + private Double inharmI50Cp95; +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpInharmonicVRateReportDPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpInharmonicVRateReportDPO.java new file mode 100644 index 000000000..048376809 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpInharmonicVRateReportDPO.java @@ -0,0 +1,1444 @@ +package com.njcn.prepare.harmonic.pojo.po.line; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import com.github.jeffreyning.mybatisplus.anno.MppMultiId; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.Date; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/27 13:52【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@ApiModel(value = "com-njcn-prepare-harmonic-pojo-po-line-RMpInharmonicVRateReportDPO") +@Data +@TableName(value = "r_mp_inharmonic_v_rate_report_d") +public class RMpInharmonicVRateReportDPO { + /** + * 监测点ID + */ + @MppMultiId(value = "measurement_point_id") + @ApiModelProperty(value = "监测点ID") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @MppMultiId(value = "data_date") + @ApiModelProperty(value = "生成数据的时间,每日统计一次") + private Date dataDate; + + /** + * 相别:"A" "B" "C" "ABC" "T" 配网部分相别的数据采用T标志存储 + */ + @MppMultiId(value = "phase") + @ApiModelProperty(value = "相别:'A' 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储") + private String phase; + + /** + * 0.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content1_max") + @ApiModelProperty(value = "0.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent1Max; + + /** + * 0.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content1_min") + @ApiModelProperty(value = "0.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent1Min; + + /** + * 0.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content1_avg") + @ApiModelProperty(value = "0.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent1Avg; + + /** + * 0.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content1_cp95") + @ApiModelProperty(value = "0.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent1Cp95; + + /** + * 1.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content2_max") + @ApiModelProperty(value = "1.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent2Max; + + /** + * 1.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content2_min") + @ApiModelProperty(value = "1.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent2Min; + + /** + * 1.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content2_avg") + @ApiModelProperty(value = "1.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent2Avg; + + /** + * 1.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content2_cp95") + @ApiModelProperty(value = "1.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent2Cp95; + + /** + * 2.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content3_max") + @ApiModelProperty(value = "2.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent3Max; + + /** + * 2.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content3_min") + @ApiModelProperty(value = "2.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent3Min; + + /** + * 2.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content3_avg") + @ApiModelProperty(value = "2.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent3Avg; + + /** + * 2.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content3_cp95") + @ApiModelProperty(value = "2.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent3Cp95; + + /** + * 3.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content4_max") + @ApiModelProperty(value = "3.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent4Max; + + /** + * 3.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content4_min") + @ApiModelProperty(value = "3.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent4Min; + + /** + * 3.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content4_avg") + @ApiModelProperty(value = "3.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent4Avg; + + /** + * 3.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content4_cp95") + @ApiModelProperty(value = "3.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent4Cp95; + + /** + * 4.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content5_max") + @ApiModelProperty(value = "4.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent5Max; + + /** + * 4.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content5_min") + @ApiModelProperty(value = "4.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent5Min; + + /** + * 4.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content5_avg") + @ApiModelProperty(value = "4.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent5Avg; + + /** + * 4.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content5_cp95") + @ApiModelProperty(value = "4.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent5Cp95; + + /** + * 5.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content6_max") + @ApiModelProperty(value = "5.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent6Max; + + /** + * 5.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content6_min") + @ApiModelProperty(value = "5.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent6Min; + + /** + * 5.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content6_avg") + @ApiModelProperty(value = "5.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent6Avg; + + /** + * 5.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content6_cp95") + @ApiModelProperty(value = "5.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent6Cp95; + + /** + * 6.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content7_max") + @ApiModelProperty(value = "6.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent7Max; + + /** + * 6.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content7_min") + @ApiModelProperty(value = "6.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent7Min; + + /** + * 6.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content7_avg") + @ApiModelProperty(value = "6.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent7Avg; + + /** + * 6.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content7_cp95") + @ApiModelProperty(value = "6.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent7Cp95; + + /** + * 7.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content8_max") + @ApiModelProperty(value = "7.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent8Max; + + /** + * 7.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content8_min") + @ApiModelProperty(value = "7.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent8Min; + + /** + * 7.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content8_avg") + @ApiModelProperty(value = "7.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent8Avg; + + /** + * 7.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content8_cp95") + @ApiModelProperty(value = "7.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent8Cp95; + + /** + * 8.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content9_max") + @ApiModelProperty(value = "8.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent9Max; + + /** + * 8.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content9_min") + @ApiModelProperty(value = "8.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent9Min; + + /** + * 8.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content9_avg") + @ApiModelProperty(value = "8.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent9Avg; + + /** + * 8.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content9_cp95") + @ApiModelProperty(value = "8.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent9Cp95; + + /** + * 9.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content10_max") + @ApiModelProperty(value = "9.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent10Max; + + /** + * 9.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content10_min") + @ApiModelProperty(value = "9.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent10Min; + + /** + * 9.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content10_avg") + @ApiModelProperty(value = "9.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent10Avg; + + /** + * 9.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content10_cp95") + @ApiModelProperty(value = "9.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent10Cp95; + + /** + * 10.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content11_max") + @ApiModelProperty(value = "10.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent11Max; + + /** + * 10.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content11_min") + @ApiModelProperty(value = "10.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent11Min; + + /** + * 10.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content11_avg") + @ApiModelProperty(value = "10.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent11Avg; + + /** + * 10.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content11_cp95") + @ApiModelProperty(value = "10.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent11Cp95; + + /** + * 11.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content12_max") + @ApiModelProperty(value = "11.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent12Max; + + /** + * 11.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content12_min") + @ApiModelProperty(value = "11.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent12Min; + + /** + * 11.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content12_avg") + @ApiModelProperty(value = "11.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent12Avg; + + /** + * 11.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content12_cp95") + @ApiModelProperty(value = "11.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent12Cp95; + + /** + * 12.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content13_max") + @ApiModelProperty(value = "12.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent13Max; + + /** + * 12.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content13_min") + @ApiModelProperty(value = "12.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent13Min; + + /** + * 12.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content13_avg") + @ApiModelProperty(value = "12.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent13Avg; + + /** + * 12.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content13_cp95") + @ApiModelProperty(value = "12.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent13Cp95; + + /** + * 13.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content14_max") + @ApiModelProperty(value = "13.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent14Max; + + /** + * 13.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content14_min") + @ApiModelProperty(value = "13.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent14Min; + + /** + * 13.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content14_avg") + @ApiModelProperty(value = "13.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent14Avg; + + /** + * 13.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content14_cp95") + @ApiModelProperty(value = "13.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent14Cp95; + + /** + * 14.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content15_max") + @ApiModelProperty(value = "14.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent15Max; + + /** + * 14.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content15_min") + @ApiModelProperty(value = "14.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent15Min; + + /** + * 14.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content15_avg") + @ApiModelProperty(value = "14.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent15Avg; + + /** + * 14.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content15_cp95") + @ApiModelProperty(value = "14.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent15Cp95; + + /** + * 15.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content16_max") + @ApiModelProperty(value = "15.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent16Max; + + /** + * 15.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content16_min") + @ApiModelProperty(value = "15.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent16Min; + + /** + * 15.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content16_avg") + @ApiModelProperty(value = "15.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent16Avg; + + /** + * 15.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content16_cp95") + @ApiModelProperty(value = "15.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent16Cp95; + + /** + * 16.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content17_max") + @ApiModelProperty(value = "16.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent17Max; + + /** + * 16.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content17_min") + @ApiModelProperty(value = "16.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent17Min; + + /** + * 16.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content17_avg") + @ApiModelProperty(value = "16.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent17Avg; + + /** + * 16.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content17_cp95") + @ApiModelProperty(value = "16.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent17Cp95; + + /** + * 17.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content18_max") + @ApiModelProperty(value = "17.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent18Max; + + /** + * 17.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content18_min") + @ApiModelProperty(value = "17.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent18Min; + + /** + * 17.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content18_avg") + @ApiModelProperty(value = "17.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent18Avg; + + /** + * 17.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content18_cp95") + @ApiModelProperty(value = "17.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent18Cp95; + + /** + * 18.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content19_max") + @ApiModelProperty(value = "18.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent19Max; + + /** + * 18.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content19_min") + @ApiModelProperty(value = "18.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent19Min; + + /** + * 18.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content19_avg") + @ApiModelProperty(value = "18.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent19Avg; + + /** + * 18.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content19_cp95") + @ApiModelProperty(value = "18.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent19Cp95; + + /** + * 19.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content20_max") + @ApiModelProperty(value = "19.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent20Max; + + /** + * 19.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content20_min") + @ApiModelProperty(value = "19.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent20Min; + + /** + * 19.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content20_avg") + @ApiModelProperty(value = "19.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent20Avg; + + /** + * 19.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content20_cp95") + @ApiModelProperty(value = "19.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent20Cp95; + + /** + * 20.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content21_max") + @ApiModelProperty(value = "20.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent21Max; + + /** + * 20.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content21_min") + @ApiModelProperty(value = "20.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent21Min; + + /** + * 20.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content21_avg") + @ApiModelProperty(value = "20.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent21Avg; + + /** + * 20.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content21_cp95") + @ApiModelProperty(value = "20.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent21Cp95; + + /** + * 21.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content22_max") + @ApiModelProperty(value = "21.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent22Max; + + /** + * 21.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content22_min") + @ApiModelProperty(value = "21.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent22Min; + + /** + * 21.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content22_avg") + @ApiModelProperty(value = "21.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent22Avg; + + /** + * 21.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content22_cp95") + @ApiModelProperty(value = "21.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent22Cp95; + + /** + * 22.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content23_max") + @ApiModelProperty(value = "22.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent23Max; + + /** + * 22.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content23_min") + @ApiModelProperty(value = "22.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent23Min; + + /** + * 22.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content23_avg") + @ApiModelProperty(value = "22.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent23Avg; + + /** + * 22.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content23_cp95") + @ApiModelProperty(value = "22.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent23Cp95; + + /** + * 23.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content24_max") + @ApiModelProperty(value = "23.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent24Max; + + /** + * 23.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content24_min") + @ApiModelProperty(value = "23.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent24Min; + + /** + * 23.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content24_avg") + @ApiModelProperty(value = "23.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent24Avg; + + /** + * 23.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content24_cp95") + @ApiModelProperty(value = "23.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent24Cp95; + + /** + * 24.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content25_max") + @ApiModelProperty(value = "24.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent25Max; + + /** + * 24.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content25_min") + @ApiModelProperty(value = "24.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent25Min; + + /** + * 24.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content25_avg") + @ApiModelProperty(value = "24.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent25Avg; + + /** + * 24.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content25_cp95") + @ApiModelProperty(value = "24.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent25Cp95; + + /** + * 25.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content26_max") + @ApiModelProperty(value = "25.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent26Max; + + /** + * 25.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content26_min") + @ApiModelProperty(value = "25.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent26Min; + + /** + * 25.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content26_avg") + @ApiModelProperty(value = "25.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent26Avg; + + /** + * 25.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content26_cp95") + @ApiModelProperty(value = "25.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent26Cp95; + + /** + * 26.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content27_max") + @ApiModelProperty(value = "26.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent27Max; + + /** + * 26.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content27_min") + @ApiModelProperty(value = "26.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent27Min; + + /** + * 26.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content27_avg") + @ApiModelProperty(value = "26.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent27Avg; + + /** + * 26.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content27_cp95") + @ApiModelProperty(value = "26.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent27Cp95; + + /** + * 27.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content28_max") + @ApiModelProperty(value = "27.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent28Max; + + /** + * 27.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content28_min") + @ApiModelProperty(value = "27.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent28Min; + + /** + * 27.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content28_avg") + @ApiModelProperty(value = "27.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent28Avg; + + /** + * 27.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content28_cp95") + @ApiModelProperty(value = "27.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent28Cp95; + + /** + * 28.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content29_max") + @ApiModelProperty(value = "28.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent29Max; + + /** + * 28.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content29_min") + @ApiModelProperty(value = "28.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent29Min; + + /** + * 28.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content29_avg") + @ApiModelProperty(value = "28.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent29Avg; + + /** + * 28.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content29_cp95") + @ApiModelProperty(value = "28.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent29Cp95; + + /** + * 29.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content30_max") + @ApiModelProperty(value = "29.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent30Max; + + /** + * 29.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content30_min") + @ApiModelProperty(value = "29.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent30Min; + + /** + * 29.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content30_avg") + @ApiModelProperty(value = "29.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent30Avg; + + /** + * 29.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content30_cp95") + @ApiModelProperty(value = "29.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent30Cp95; + + /** + * 30.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content31_max") + @ApiModelProperty(value = "30.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent31Max; + + /** + * 30.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content31_min") + @ApiModelProperty(value = "30.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent31Min; + + /** + * 30.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content31_avg") + @ApiModelProperty(value = "30.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent31Avg; + + /** + * 30.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content31_cp95") + @ApiModelProperty(value = "30.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent31Cp95; + + /** + * 31.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content32_max") + @ApiModelProperty(value = "31.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent32Max; + + /** + * 31.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content32_min") + @ApiModelProperty(value = "31.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent32Min; + + /** + * 31.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content32_avg") + @ApiModelProperty(value = "31.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent32Avg; + + /** + * 31.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content32_cp95") + @ApiModelProperty(value = "31.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent32Cp95; + + /** + * 32.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content33_max") + @ApiModelProperty(value = "32.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent33Max; + + /** + * 32.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content33_min") + @ApiModelProperty(value = "32.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent33Min; + + /** + * 32.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content33_avg") + @ApiModelProperty(value = "32.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent33Avg; + + /** + * 32.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content33_cp95") + @ApiModelProperty(value = "32.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent33Cp95; + + /** + * 33.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content34_max") + @ApiModelProperty(value = "33.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent34Max; + + /** + * 33.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content34_min") + @ApiModelProperty(value = "33.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent34Min; + + /** + * 33.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content34_avg") + @ApiModelProperty(value = "33.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent34Avg; + + /** + * 33.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content34_cp95") + @ApiModelProperty(value = "33.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent34Cp95; + + /** + * 34.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content35_max") + @ApiModelProperty(value = "34.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent35Max; + + /** + * 34.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content35_min") + @ApiModelProperty(value = "34.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent35Min; + + /** + * 34.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content35_avg") + @ApiModelProperty(value = "34.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent35Avg; + + /** + * 34.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content35_cp95") + @ApiModelProperty(value = "34.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent35Cp95; + + /** + * 35.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content36_max") + @ApiModelProperty(value = "35.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent36Max; + + /** + * 35.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content36_min") + @ApiModelProperty(value = "35.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent36Min; + + /** + * 35.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content36_avg") + @ApiModelProperty(value = "35.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent36Avg; + + /** + * 35.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content36_cp95") + @ApiModelProperty(value = "35.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent36Cp95; + + /** + * 36.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content37_max") + @ApiModelProperty(value = "36.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent37Max; + + /** + * 36.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content37_min") + @ApiModelProperty(value = "36.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent37Min; + + /** + * 36.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content37_avg") + @ApiModelProperty(value = "36.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent37Avg; + + /** + * 36.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content37_cp95") + @ApiModelProperty(value = "36.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent37Cp95; + + /** + * 37.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content38_max") + @ApiModelProperty(value = "37.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent38Max; + + /** + * 37.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content38_min") + @ApiModelProperty(value = "37.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent38Min; + + /** + * 37.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content38_avg") + @ApiModelProperty(value = "37.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent38Avg; + + /** + * 37.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content38_cp95") + @ApiModelProperty(value = "37.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent38Cp95; + + /** + * 38.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content39_max") + @ApiModelProperty(value = "38.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent39Max; + + /** + * 38.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content39_min") + @ApiModelProperty(value = "38.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent39Min; + + /** + * 38.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content39_avg") + @ApiModelProperty(value = "38.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent39Avg; + + /** + * 38.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content39_cp95") + @ApiModelProperty(value = "38.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent39Cp95; + + /** + * 39.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content40_max") + @ApiModelProperty(value = "39.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent40Max; + + /** + * 39.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content40_min") + @ApiModelProperty(value = "39.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent40Min; + + /** + * 39.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content40_avg") + @ApiModelProperty(value = "39.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent40Avg; + + /** + * 39.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content40_cp95") + @ApiModelProperty(value = "39.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent40Cp95; + + /** + * 40.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content41_max") + @ApiModelProperty(value = "40.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent41Max; + + /** + * 40.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content41_min") + @ApiModelProperty(value = "40.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent41Min; + + /** + * 40.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content41_avg") + @ApiModelProperty(value = "40.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent41Avg; + + /** + * 40.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content41_cp95") + @ApiModelProperty(value = "40.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent41Cp95; + + /** + * 41.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content42_max") + @ApiModelProperty(value = "41.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent42Max; + + /** + * 41.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content42_min") + @ApiModelProperty(value = "41.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent42Min; + + /** + * 41.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content42_avg") + @ApiModelProperty(value = "41.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent42Avg; + + /** + * 41.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content42_cp95") + @ApiModelProperty(value = "41.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent42Cp95; + + /** + * 42.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content43_max") + @ApiModelProperty(value = "42.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent43Max; + + /** + * 42.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content43_min") + @ApiModelProperty(value = "42.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent43Min; + + /** + * 42.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content43_avg") + @ApiModelProperty(value = "42.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent43Avg; + + /** + * 42.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content43_cp95") + @ApiModelProperty(value = "42.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent43Cp95; + + /** + * 43.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content44_max") + @ApiModelProperty(value = "43.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent44Max; + + /** + * 43.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content44_min") + @ApiModelProperty(value = "43.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent44Min; + + /** + * 43.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content44_avg") + @ApiModelProperty(value = "43.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent44Avg; + + /** + * 43.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content44_cp95") + @ApiModelProperty(value = "43.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent44Cp95; + + /** + * 44.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content45_max") + @ApiModelProperty(value = "44.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent45Max; + + /** + * 44.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content45_min") + @ApiModelProperty(value = "44.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent45Min; + + /** + * 44.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content45_avg") + @ApiModelProperty(value = "44.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent45Avg; + + /** + * 44.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content45_cp95") + @ApiModelProperty(value = "44.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent45Cp95; + + /** + * 45.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content46_max") + @ApiModelProperty(value = "45.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent46Max; + + /** + * 45.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content46_min") + @ApiModelProperty(value = "45.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent46Min; + + /** + * 45.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content46_avg") + @ApiModelProperty(value = "45.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent46Avg; + + /** + * 45.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content46_cp95") + @ApiModelProperty(value = "45.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent46Cp95; + + /** + * 46.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content47_max") + @ApiModelProperty(value = "46.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent47Max; + + /** + * 46.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content47_min") + @ApiModelProperty(value = "46.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent47Min; + + /** + * 46.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content47_avg") + @ApiModelProperty(value = "46.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent47Avg; + + /** + * 46.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content47_cp95") + @ApiModelProperty(value = "46.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent47Cp95; + + /** + * 47.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content48_max") + @ApiModelProperty(value = "47.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent48Max; + + /** + * 47.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content48_min") + @ApiModelProperty(value = "47.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent48Min; + + /** + * 47.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content48_avg") + @ApiModelProperty(value = "47.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent48Avg; + + /** + * 47.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content48_cp95") + @ApiModelProperty(value = "47.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent48Cp95; + + /** + * 48.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content49_max") + @ApiModelProperty(value = "48.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent49Max; + + /** + * 48.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content49_min") + @ApiModelProperty(value = "48.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent49Min; + + /** + * 48.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content49_avg") + @ApiModelProperty(value = "48.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent49Avg; + + /** + * 48.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content49_cp95") + @ApiModelProperty(value = "48.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent49Cp95; + + /** + * 49.5次间谐波电压含有率最大值 + */ + @TableField(value = "centre_harmonic_voltage_content50_max") + @ApiModelProperty(value = "49.5次间谐波电压含有率最大值") + private Double centreHarmonicVoltageContent50Max; + + /** + * 49.5次间谐波电压含有率最小值 + */ + @TableField(value = "centre_harmonic_voltage_content50_min") + @ApiModelProperty(value = "49.5次间谐波电压含有率最小值") + private Double centreHarmonicVoltageContent50Min; + + /** + * 49.5次间谐波电压含有率平均值 + */ + @TableField(value = "centre_harmonic_voltage_content50_avg") + @ApiModelProperty(value = "49.5次间谐波电压含有率平均值") + private Double centreHarmonicVoltageContent50Avg; + + /** + * 49.5次间谐波电压含有率95值 + */ + @TableField(value = "centre_harmonic_voltage_content50_cp95") + @ApiModelProperty(value = "49.5次间谐波电压含有率95值") + private Double centreHarmonicVoltageContent50Cp95; +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpMeasurePhaseReportDPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpMeasurePhaseReportDPO.java new file mode 100644 index 000000000..db40a7c61 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpMeasurePhaseReportDPO.java @@ -0,0 +1,325 @@ +package com.njcn.prepare.harmonic.pojo.po.line; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import com.github.jeffreyning.mybatisplus.anno.MppMultiId; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.Date; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/28 10:53【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@ApiModel(value="com-njcn-prepare-harmonic-pojo-po-line-RMpMeasurePhaseReportDPO") +@Data +@TableName(value = "r_mp_measure_phase_report_d") +public class RMpMeasurePhaseReportDPO { + /** + * 监测点ID + */ + @MppMultiId(value = "measurement_point_id") + @ApiModelProperty(value="监测点ID") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @MppMultiId(value = "data_date") + @ApiModelProperty(value="生成数据的时间,每日统计一次") + private Date dataDate; + + /** + * 相别:‘A’ ‘B’ ‘C’ ‘ABC’ ‘T’ 配网部分相别的数据采用T标志存储 + */ + @MppMultiId(value = "phase") + @ApiModelProperty(value="相别:‘A’ ‘B’ ‘C’ ‘ABC’ ‘T’ 配网部分相别的数据采用T标志存储") + private String phase; + + /** + * 相电压有效值-最大值 + */ + @TableField(value = "phase_voltage_effective_max") + @ApiModelProperty(value="相电压有效值-最大值") + private Double phaseVoltageEffectiveMax; + + /** + * 相电压有效值-最小值 + */ + @TableField(value = "phase_voltage_effective_min") + @ApiModelProperty(value="相电压有效值-最小值") + private Double phaseVoltageEffectiveMin; + + /** + * 相电压有效值-平均值 + */ + @TableField(value = "phase_voltage_effective_avg") + @ApiModelProperty(value="相电压有效值-平均值") + private Double phaseVoltageEffectiveAvg; + + /** + * 相电压有效值-95值 + */ + @TableField(value = "phase_voltage_effective_95") + @ApiModelProperty(value="相电压有效值-95值") + private Double phaseVoltageEffective95; + + /** + * 线电压有效值-最大值 + */ + @TableField(value = "line_voltage_effective_max") + @ApiModelProperty(value="线电压有效值-最大值") + private Double lineVoltageEffectiveMax; + + /** + * 线电压有效值-最小值 + */ + @TableField(value = "line_voltage_effective_min") + @ApiModelProperty(value="线电压有效值-最小值") + private Double lineVoltageEffectiveMin; + + /** + * 线电压有效值-平均值 + */ + @TableField(value = "line_voltage_effective_avg") + @ApiModelProperty(value="线电压有效值-平均值") + private Double lineVoltageEffectiveAvg; + + /** + * 线电压有效值-95值 + */ + @TableField(value = "line_voltage_effective_95") + @ApiModelProperty(value="线电压有效值-95值") + private Double lineVoltageEffective95; + + /** + * 电压上偏差-最大值 + */ + @TableField(value = "v_de_up_max") + @ApiModelProperty(value="电压上偏差-最大值") + private Double vDeUpMax; + + /** + * 电压上偏差-最小值 + */ + @TableField(value = "v_de_up_min") + @ApiModelProperty(value="电压上偏差-最小值") + private Double vDeUpMin; + + /** + * 电压上偏差-平均值 + */ + @TableField(value = "v_de_up_avg") + @ApiModelProperty(value="电压上偏差-平均值") + private Double vDeUpAvg; + + /** + * 电压上偏差-95值 + */ + @TableField(value = "v_de_up_95") + @ApiModelProperty(value="电压上偏差-95值") + private Double vDeUp95; + + /** + * 电压下偏差-最大值 + */ + @TableField(value = "v_de_low_max") + @ApiModelProperty(value="电压下偏差-最大值") + private Double vDeLowMax; + + /** + * 电压下偏差-最小值 + */ + @TableField(value = "v_de_low_min") + @ApiModelProperty(value="电压下偏差-最小值") + private Double vDeLowMin; + + /** + * 电压下偏差-平均值 + */ + @TableField(value = "v_de_low_avg") + @ApiModelProperty(value="电压下偏差-平均值") + private Double vDeLowAvg; + + /** + * 电压下偏差-95值 + */ + @TableField(value = "v_de_low_95") + @ApiModelProperty(value="电压下偏差-95值") + private Double vDeLow95; + + /** + * 电流有效值-最大值 + */ + @TableField(value = "current_effective_max") + @ApiModelProperty(value="电流有效值-最大值") + private Double currentEffectiveMax; + + /** + * 电流有效值-最小值 + */ + @TableField(value = "current_effective_min") + @ApiModelProperty(value="电流有效值-最小值") + private Double currentEffectiveMin; + + /** + * 电流有效值-平均值 + */ + @TableField(value = "current_effective_avg") + @ApiModelProperty(value="电流有效值-平均值") + private Double currentEffectiveAvg; + + /** + * 电流有效值-95值 + */ + @TableField(value = "current_effective_95") + @ApiModelProperty(value="电流有效值-95值") + private Double currentEffective95; + + /** + * 单相有功功率-最大值 + */ + @TableField(value = "sp_active_power_max") + @ApiModelProperty(value="单相有功功率-最大值") + private Double spActivePowerMax; + + /** + * 单相有功功率-最小值 + */ + @TableField(value = "sp_active_power_min") + @ApiModelProperty(value="单相有功功率-最小值") + private Double spActivePowerMin; + + /** + * 单相有功功率-平均值 + */ + @TableField(value = "sp_active_power_avg") + @ApiModelProperty(value="单相有功功率-平均值") + private Double spActivePowerAvg; + + /** + * 单相有功功率-95值 + */ + @TableField(value = "sp_active_power_95") + @ApiModelProperty(value="单相有功功率-95值") + private Double spActivePower95; + + /** + * 单相无功功率-最大值 + */ + @TableField(value = "sp_reactive_power_max") + @ApiModelProperty(value="单相无功功率-最大值") + private Double spReactivePowerMax; + + /** + * 单相无功功率-最小值 + */ + @TableField(value = "sp_reactive_power_min") + @ApiModelProperty(value="单相无功功率-最小值") + private Double spReactivePowerMin; + + /** + * 单相无功功率-平均值 + */ + @TableField(value = "sp_reactive_power_avg") + @ApiModelProperty(value="单相无功功率-平均值") + private Double spReactivePowerAvg; + + /** + * 单相无功功率-95值 + */ + @TableField(value = "sp_reactive_power_95") + @ApiModelProperty(value="单相无功功率-95值") + private Double spReactivePower95; + + /** + * 单相视在功率-最大值 + */ + @TableField(value = "sp_apparent_power_max") + @ApiModelProperty(value="单相视在功率-最大值") + private Double spApparentPowerMax; + + /** + * 单相视在功率-最小值 + */ + @TableField(value = "sp_apparent_power_min") + @ApiModelProperty(value="单相视在功率-最小值") + private Double spApparentPowerMin; + + /** + * 单相视在功率-平均值 + */ + @TableField(value = "sp_apparent_power_avg") + @ApiModelProperty(value="单相视在功率-平均值") + private Double spApparentPowerAvg; + + /** + * 单相视在功率-95值 + */ + @TableField(value = "sp_apparent_power_95") + @ApiModelProperty(value="单相视在功率-95值") + private Double spApparentPower95; + + /** + * 单相功率因数-最大值 + */ + @TableField(value = "sp_power_factor_max") + @ApiModelProperty(value="单相功率因数-最大值") + private Double spPowerFactorMax; + + /** + * 单相功率因数-最小值 + */ + @TableField(value = "sp_power_factor_min") + @ApiModelProperty(value="单相功率因数-最小值") + private Double spPowerFactorMin; + + /** + * 单相功率因数-平均值 + */ + @TableField(value = "sp_power_factor_avg") + @ApiModelProperty(value="单相功率因数-平均值") + private Double spPowerFactorAvg; + + /** + * 单相功率因数-95值 + */ + @TableField(value = "sp_power_factor_95") + @ApiModelProperty(value="单相功率因数-95值") + private Double spPowerFactor95; + + /** + * 单相基波功率因数-最大值 + */ + @TableField(value = "sp_fundamental_power_factor_max") + @ApiModelProperty(value="单相基波功率因数-最大值") + private Double spFundamentalPowerFactorMax; + + /** + * 单相基波功率因数-最小值 + */ + @TableField(value = "sp_fundamental_power_factor_min") + @ApiModelProperty(value="单相基波功率因数-最小值") + private Double spFundamentalPowerFactorMin; + + /** + * 单相基波功率因数-平均值 + */ + @TableField(value = "sp_fundamental_power_factor_avg") + @ApiModelProperty(value="单相基波功率因数-平均值") + private Double spFundamentalPowerFactorAvg; + + /** + * 单相基波功率因数-95值 + */ + @TableField(value = "sp_fundamental_power_factor_95") + @ApiModelProperty(value="单相基波功率因数-95值") + private Double spFundamentalPowerFactor95; +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpMeasureReportDPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpMeasureReportDPO.java new file mode 100644 index 000000000..cabca7369 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpMeasureReportDPO.java @@ -0,0 +1,682 @@ +package com.njcn.prepare.harmonic.pojo.po.line; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import com.github.jeffreyning.mybatisplus.anno.MppMultiId; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.Date; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/28 10:54【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@ApiModel(value="com-njcn-prepare-harmonic-pojo-po-line-RMpMeasureReportDPO") +@Data +@TableName(value = "r_mp_measure_report_d") +public class RMpMeasureReportDPO { + /** + * 监测点ID + */ + @MppMultiId(value = "measurement_point_id") + @ApiModelProperty(value="监测点ID") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @MppMultiId(value = "data_date") + @ApiModelProperty(value="生成数据的时间,每日统计一次") + private Date dataDate; + + /** + * 频率-最大值 + */ + @TableField(value = "frequency_max") + @ApiModelProperty(value="频率-最大值") + private Double frequencyMax; + + /** + * 频率-最小值 + */ + @TableField(value = "frequency_min") + @ApiModelProperty(value="频率-最小值") + private Double frequencyMin; + + /** + * 频率-平均值 + */ + @TableField(value = "frequency_avg") + @ApiModelProperty(value="频率-平均值") + private Double frequencyAvg; + + /** + * 频率-95值 + */ + @TableField(value = "frequency_95") + @ApiModelProperty(value="频率-95值") + private Double frequency95; + + /** + * 频率偏差-最大值 + */ + @TableField(value = "frequency_deviation_max") + @ApiModelProperty(value="频率偏差-最大值") + private Double frequencyDeviationMax; + + /** + * 频率偏差-最小值 + */ + @TableField(value = "frequency_deviation_min") + @ApiModelProperty(value="频率偏差-最小值") + private Double frequencyDeviationMin; + + /** + * 频率偏差-平均值 + */ + @TableField(value = "frequency_deviation_avg") + @ApiModelProperty(value="频率偏差-平均值") + private Double frequencyDeviationAvg; + + /** + * 频率偏差-95值 + */ + @TableField(value = "frequency_deviation_95") + @ApiModelProperty(value="频率偏差-95值") + private Double frequencyDeviation95; + + /** + * 总有功功率-最大值 + */ + @TableField(value = "total_active_power_max") + @ApiModelProperty(value="总有功功率-最大值") + private Double totalActivePowerMax; + + /** + * 总有功功率-最小值 + */ + @TableField(value = "total_active_power_min") + @ApiModelProperty(value="总有功功率-最小值") + private Double totalActivePowerMin; + + /** + * 总有功功率-平均值 + */ + @TableField(value = "total_active_power_avg") + @ApiModelProperty(value="总有功功率-平均值") + private Double totalActivePowerAvg; + + /** + * 总有功功率-95值 + */ + @TableField(value = "total_active_power_95") + @ApiModelProperty(value="总有功功率-95值") + private Double totalActivePower95; + + /** + * 总无功功率-最大值 + */ + @TableField(value = "total_reactive_power_max") + @ApiModelProperty(value="总无功功率-最大值") + private Double totalReactivePowerMax; + + /** + * 总无功功率-最小值 + */ + @TableField(value = "total_reactive_power_min") + @ApiModelProperty(value="总无功功率-最小值") + private Double totalReactivePowerMin; + + /** + * 总无功功率-平均值 + */ + @TableField(value = "total_reactive_power_avg") + @ApiModelProperty(value="总无功功率-平均值") + private Double totalReactivePowerAvg; + + /** + * 总无功功率-95值 + */ + @TableField(value = "total_reactive_power_95") + @ApiModelProperty(value="总无功功率-95值") + private Double totalReactivePower95; + + /** + * 总视在功率-最大值 + */ + @TableField(value = "total_apparent_power_max") + @ApiModelProperty(value="总视在功率-最大值") + private Double totalApparentPowerMax; + + /** + * 总视在功率-最小值 + */ + @TableField(value = "total_apparent_power_min") + @ApiModelProperty(value="总视在功率-最小值") + private Double totalApparentPowerMin; + + /** + * 总视在功率-平均值 + */ + @TableField(value = "total_apparent_power_avg") + @ApiModelProperty(value="总视在功率-平均值") + private Double totalApparentPowerAvg; + + /** + * 总视在功率-95值 + */ + @TableField(value = "total_apparent_power_95") + @ApiModelProperty(value="总视在功率-95值") + private Double totalApparentPower95; + + /** + * 三相功率因数-最大值 + */ + @TableField(value = "tp_power_factor_max") + @ApiModelProperty(value="三相功率因数-最大值") + private Double tpPowerFactorMax; + + /** + * 三相功率因数-最小值 + */ + @TableField(value = "tp_power_factor_min") + @ApiModelProperty(value="三相功率因数-最小值") + private Double tpPowerFactorMin; + + /** + * 三相功率因数-平均值 + */ + @TableField(value = "tp_power_factor_avg") + @ApiModelProperty(value="三相功率因数-平均值") + private Double tpPowerFactorAvg; + + /** + * 三相功率因数-95值 + */ + @TableField(value = "tp_power_factor_95") + @ApiModelProperty(value="三相功率因数-95值") + private Double tpPowerFactor95; + + /** + * 基波功率因数-最大值 + */ + @TableField(value = "fundamental_power_factor_max") + @ApiModelProperty(value="基波功率因数-最大值") + private Double fundamentalPowerFactorMax; + + /** + * 基波功率因数-最小值 + */ + @TableField(value = "fundamental_power_factor_min") + @ApiModelProperty(value="基波功率因数-最小值") + private Double fundamentalPowerFactorMin; + + /** + * 基波功率因数-平均值 + */ + @TableField(value = "fundamental_power_factor_avg") + @ApiModelProperty(value="基波功率因数-平均值") + private Double fundamentalPowerFactorAvg; + + /** + * 基波功率因数-95值 + */ + @TableField(value = "fundamental_power_factor_95") + @ApiModelProperty(value="基波功率因数-95值") + private Double fundamentalPowerFactor95; + + /** + * 正序电压-最大值 + */ + @TableField(value = "positive_sequence_voltage_max") + @ApiModelProperty(value="正序电压-最大值") + private Double positiveSequenceVoltageMax; + + /** + * 正序电压-最小值 + */ + @TableField(value = "positive_sequence_voltage_min") + @ApiModelProperty(value="正序电压-最小值") + private Double positiveSequenceVoltageMin; + + /** + * 正序电压-平均值 + */ + @TableField(value = "positive_sequence_voltage_avg") + @ApiModelProperty(value="正序电压-平均值") + private Double positiveSequenceVoltageAvg; + + /** + * 正序电压-95值 + */ + @TableField(value = "positive_sequence_voltage_95") + @ApiModelProperty(value="正序电压-95值") + private Double positiveSequenceVoltage95; + + /** + * 负序电压-最大值 + */ + @TableField(value = "negative_sequence_voltage_max") + @ApiModelProperty(value="负序电压-最大值") + private Double negativeSequenceVoltageMax; + + /** + * 负序电压-最小值 + */ + @TableField(value = "negative_sequence_voltage_min") + @ApiModelProperty(value="负序电压-最小值") + private Double negativeSequenceVoltageMin; + + /** + * 负序电压-平均值 + */ + @TableField(value = "negative_sequence_voltage_avg") + @ApiModelProperty(value="负序电压-平均值") + private Double negativeSequenceVoltageAvg; + + /** + * 负序电压-95值 + */ + @TableField(value = "negative_sequence_voltage_95") + @ApiModelProperty(value="负序电压-95值") + private Double negativeSequenceVoltage95; + + /** + * 零序电压-最大值 + */ + @TableField(value = "zero_sequence_voltage_max") + @ApiModelProperty(value="零序电压-最大值") + private Double zeroSequenceVoltageMax; + + /** + * 零序电压-最小值 + */ + @TableField(value = "zero_sequence_voltage_min") + @ApiModelProperty(value="零序电压-最小值") + private Double zeroSequenceVoltageMin; + + /** + * 零序电压-平均值 + */ + @TableField(value = "zero_sequence_voltage_avg") + @ApiModelProperty(value="零序电压-平均值") + private Double zeroSequenceVoltageAvg; + + /** + * 零序电压-95值 + */ + @TableField(value = "zero_sequence_voltage_95") + @ApiModelProperty(value="零序电压-95值") + private Double zeroSequenceVoltage95; + + /** + * 负序电压不平衡度-最大值 + */ + @TableField(value = "negative_sequence_voltage_unbalance_max") + @ApiModelProperty(value="负序电压不平衡度-最大值") + private Double negativeSequenceVoltageUnbalanceMax; + + /** + * 负序电压不平衡度-最小值 + */ + @TableField(value = "negative_sequence_voltage_unbalance_min") + @ApiModelProperty(value="负序电压不平衡度-最小值") + private Double negativeSequenceVoltageUnbalanceMin; + + /** + * 负序电压不平衡度-平均值 + */ + @TableField(value = "negative_sequence_voltage_unbalance_avg") + @ApiModelProperty(value="负序电压不平衡度-平均值") + private Double negativeSequenceVoltageUnbalanceAvg; + + /** + * 负序电压不平衡度-95值 + */ + @TableField(value = "negative_sequence_voltage_unbalance_95") + @ApiModelProperty(value="负序电压不平衡度-95值") + private Double negativeSequenceVoltageUnbalance95; + + /** + * 零序电压不平衡度-最大值 + */ + @TableField(value = "zero_sequence_voltage_unbalance_max") + @ApiModelProperty(value="零序电压不平衡度-最大值") + private Double zeroSequenceVoltageUnbalanceMax; + + /** + * 零序电压不平衡度-最小值 + */ + @TableField(value = "zero_sequence_voltage_unbalance_min") + @ApiModelProperty(value="零序电压不平衡度-最小值") + private Double zeroSequenceVoltageUnbalanceMin; + + /** + * 零序电压不平衡度-平均值 + */ + @TableField(value = "zero_sequence_voltage_unbalance_avg") + @ApiModelProperty(value="零序电压不平衡度-平均值") + private Double zeroSequenceVoltageUnbalanceAvg; + + /** + * 零序电压不平衡度-95值 + */ + @TableField(value = "zero_sequence_voltage_unbalance_95") + @ApiModelProperty(value="零序电压不平衡度-95值") + private Double zeroSequenceVoltageUnbalance95; + + /** + * 正序电流-最大值 + */ + @TableField(value = "positive_sequence_current_max") + @ApiModelProperty(value="正序电流-最大值") + private Double positiveSequenceCurrentMax; + + /** + * 正序电流-最小值 + */ + @TableField(value = "positive_sequence_current_min") + @ApiModelProperty(value="正序电流-最小值") + private Double positiveSequenceCurrentMin; + + /** + * 正序电流-平均值 + */ + @TableField(value = "positive_sequence_current_avg") + @ApiModelProperty(value="正序电流-平均值") + private Double positiveSequenceCurrentAvg; + + /** + * 正序电流-95值 + */ + @TableField(value = "positive_sequence_current_95") + @ApiModelProperty(value="正序电流-95值") + private Double positiveSequenceCurrent95; + + /** + * 负序电流-最大值 + */ + @TableField(value = "negative_sequence_current_max") + @ApiModelProperty(value="负序电流-最大值") + private Double negativeSequenceCurrentMax; + + /** + * 负序电流-最小值 + */ + @TableField(value = "negative_sequence_current_min") + @ApiModelProperty(value="负序电流-最小值") + private Double negativeSequenceCurrentMin; + + /** + * 负序电流-平均值 + */ + @TableField(value = "negative_sequence_current_avg") + @ApiModelProperty(value="负序电流-平均值") + private Double negativeSequenceCurrentAvg; + + /** + * 负序电流-95值 + */ + @TableField(value = "negative_sequence_current_95") + @ApiModelProperty(value="负序电流-95值") + private Double negativeSequenceCurrent95; + + /** + * 零序电流-最大值 + */ + @TableField(value = "zero_sequence_current_max") + @ApiModelProperty(value="零序电流-最大值") + private Double zeroSequenceCurrentMax; + + /** + * 零序电流-最小值 + */ + @TableField(value = "zero_sequence_current_min") + @ApiModelProperty(value="零序电流-最小值") + private Double zeroSequenceCurrentMin; + + /** + * 零序电流-平均值 + */ + @TableField(value = "zero_sequence_current_avg") + @ApiModelProperty(value="零序电流-平均值") + private Double zeroSequenceCurrentAvg; + + /** + * 零序电流-95值 + */ + @TableField(value = "zero_sequence_current_95") + @ApiModelProperty(value="零序电流-95值") + private Double zeroSequenceCurrent95; + + /** + * 负序电流不平衡度-最大值 + */ + @TableField(value = "negative_sequence_current_unbalance_max") + @ApiModelProperty(value="负序电流不平衡度-最大值") + private Double negativeSequenceCurrentUnbalanceMax; + + /** + * 负序电流不平衡度-最小值 + */ + @TableField(value = "negative_sequence_current_unbalance_min") + @ApiModelProperty(value="负序电流不平衡度-最小值") + private Double negativeSequenceCurrentUnbalanceMin; + + /** + * 负序电流不平衡度-平均值 + */ + @TableField(value = "negative_sequence_current_unbalance_avg") + @ApiModelProperty(value="负序电流不平衡度-平均值") + private Double negativeSequenceCurrentUnbalanceAvg; + + /** + * 负序电流不平衡度-95值 + */ + @TableField(value = "negative_sequence_current_unbalance_95") + @ApiModelProperty(value="负序电流不平衡度-95值") + private Double negativeSequenceCurrentUnbalance95; + + /** + * 零序电流不平衡度-最大值 + */ + @TableField(value = "zero_sequence_current_imbalance_max") + @ApiModelProperty(value="零序电流不平衡度-最大值") + private Double zeroSequenceCurrentImbalanceMax; + + /** + * 零序电流不平衡度-最小值 + */ + @TableField(value = "zero_sequence_current_imbalance_min") + @ApiModelProperty(value="零序电流不平衡度-最小值") + private Double zeroSequenceCurrentImbalanceMin; + + /** + * 零序电流不平衡度-平均值 + */ + @TableField(value = "zero_sequence_current_imbalance_avg") + @ApiModelProperty(value="零序电流不平衡度-平均值") + private Double zeroSequenceCurrentImbalanceAvg; + + /** + * 零序电流不平衡度-95值 + */ + @TableField(value = "zero_sequence_current_imbalance_95") + @ApiModelProperty(value="零序电流不平衡度-95值") + private Double zeroSequenceCurrentImbalance95; + + /** + * 等效视在功率-最大值 + */ + @TableField(value = "equivalent_apparent_power_max") + @ApiModelProperty(value="等效视在功率-最大值") + private Double equivalentApparentPowerMax; + + /** + * 等效视在功率-最小值 + */ + @TableField(value = "equivalent_apparent_power_min") + @ApiModelProperty(value="等效视在功率-最小值") + private Double equivalentApparentPowerMin; + + /** + * 等效视在功率-平均值 + */ + @TableField(value = "equivalent_apparent_power_avg") + @ApiModelProperty(value="等效视在功率-平均值") + private Double equivalentApparentPowerAvg; + + /** + * 等效视在功率-95值 + */ + @TableField(value = "equivalent_apparent_power_95") + @ApiModelProperty(value="等效视在功率-95值") + private Double equivalentApparentPower95; + + /** + * 等效功率因数-最大值 + */ + @TableField(value = "equivalent_power_factor_max") + @ApiModelProperty(value="等效功率因数-最大值") + private Double equivalentPowerFactorMax; + + /** + * 等效功率因数-最小值 + */ + @TableField(value = "equivalent_power_factor_min") + @ApiModelProperty(value="等效功率因数-最小值") + private Double equivalentPowerFactorMin; + + /** + * 等效功率因数-平均值 + */ + @TableField(value = "equivalent_power_factor_avg") + @ApiModelProperty(value="等效功率因数-平均值") + private Double equivalentPowerFactorAvg; + + /** + * 等效功率因数-95值 + */ + @TableField(value = "equivalent_power_factor_95") + @ApiModelProperty(value="等效功率因数-95值") + private Double equivalentPowerFactor95; + + /** + * 基波正序视在功率-最大值 + */ + @TableField(value = "fundamental_wave_rateo_max") + @ApiModelProperty(value="基波正序视在功率-最大值") + private Double fundamentalWaveRateoMax; + + /** + * 基波正序视在功率-最小值 + */ + @TableField(value = "fundamental_wave_rateo_min") + @ApiModelProperty(value="基波正序视在功率-最小值") + private Double fundamentalWaveRateoMin; + + /** + * 基波正序视在功率-平均值 + */ + @TableField(value = "fundamental_wave_rateo_avg") + @ApiModelProperty(value="基波正序视在功率-平均值") + private Double fundamentalWaveRateoAvg; + + /** + * 基波正序视在功率-95值 + */ + @TableField(value = "fundamental_wave_rateo_95") + @ApiModelProperty(value="基波正序视在功率-95值") + private Double fundamentalWaveRateo95; + + /** + * 基波等效视在功率-最大值 + */ + @TableField(value = "fundamental_wave_apparent_max") + @ApiModelProperty(value="基波等效视在功率-最大值") + private Double fundamentalWaveApparentMax; + + /** + * 基波等效视在功率-最小值 + */ + @TableField(value = "fundamental_wave_apparent_min") + @ApiModelProperty(value="基波等效视在功率-最小值") + private Double fundamentalWaveApparentMin; + + /** + * 基波等效视在功率-平均值 + */ + @TableField(value = "fundamental_wave_apparent_avg") + @ApiModelProperty(value="基波等效视在功率-平均值") + private Double fundamentalWaveApparentAvg; + + /** + * 基波等效视在功率-95值 + */ + @TableField(value = "fundamental_wave_apparent_95") + @ApiModelProperty(value="基波等效视在功率-95值") + private Double fundamentalWaveApparent95; + + /** + * 非基波等效视在功率-最大值 + */ + @TableField(value = "nonfundamental_wave_rateo_max") + @ApiModelProperty(value="非基波等效视在功率-最大值") + private Double nonfundamentalWaveRateoMax; + + /** + * 非基波等效视在功率-最小值 + */ + @TableField(value = "nonfundamental_wave_rateo_min") + @ApiModelProperty(value="非基波等效视在功率-最小值") + private Double nonfundamentalWaveRateoMin; + + /** + * 非基波等效视在功率-平均值 + */ + @TableField(value = "nonfundamental_wave_rateo_avg") + @ApiModelProperty(value="非基波等效视在功率-平均值") + private Double nonfundamentalWaveRateoAvg; + + /** + * 非基波等效视在功率-95值 + */ + @TableField(value = "nonfundamental_wave_rateo_95") + @ApiModelProperty(value="非基波等效视在功率-95值") + private Double nonfundamentalWaveRateo95; + + /** + * 不平衡视在功率-最大值 + */ + @TableField(value = "unbalanced_apparent_power_max") + @ApiModelProperty(value="不平衡视在功率-最大值") + private Double unbalancedApparentPowerMax; + + /** + * 不平衡视在功率-最小值 + */ + @TableField(value = "unbalanced_apparent_power_min") + @ApiModelProperty(value="不平衡视在功率-最小值") + private Double unbalancedApparentPowerMin; + + /** + * 不平衡视在功率-平均值 + */ + @TableField(value = "unbalanced_apparent_power_avg") + @ApiModelProperty(value="不平衡视在功率-平均值") + private Double unbalancedApparentPowerAvg; + + /** + * 不平衡视在功率-95值 + */ + @TableField(value = "unbalanced_apparent_power_95") + @ApiModelProperty(value="不平衡视在功率-95值") + private Double unbalancedApparentPower95; +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpPltReportDPO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpPltReportDPO.java new file mode 100644 index 000000000..1ccb8d156 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/po/line/RMpPltReportDPO.java @@ -0,0 +1,73 @@ +package com.njcn.prepare.harmonic.pojo.po.line; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import com.github.jeffreyning.mybatisplus.anno.MppMultiId; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.Date; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 15:26【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@ApiModel(value="com-njcn-prepare-harmonic-pojo-po-line-RMpPltReportDPO") +@Data +@TableName(value = "r_mp_plt_report_d") +public class RMpPltReportDPO { + /** + * 监测点ID + */ + @MppMultiId(value = "measurement_point_id") + @ApiModelProperty(value="监测点ID") + private String measurementPointId; + + /** + * 生成数据的时间,每日统计一次 + */ + @MppMultiId(value = "data_date") + @ApiModelProperty(value="生成数据的时间,每日统计一次") + private Date dataDate; + + /** + * 相别:"A" "B" "C" "ABC" "T" 配网部分相别的数据采用T标志存储 + */ + @MppMultiId(value = "phase") + @ApiModelProperty(value="相别:'A' 'B' 'C' 'ABC' 'T' 配网部分相别的数据采用T标志存储") + private String phase; + + /** + * 长时间闪变值-最大值 + */ + @TableField(value = "long_time_flashing_max") + @ApiModelProperty(value="长时间闪变值-最大值") + private Double longTimeFlashingMax; + + /** + * 长时间闪变值-最小值 + */ + @TableField(value = "long_time_flashing_min") + @ApiModelProperty(value="长时间闪变值-最小值") + private Double longTimeFlashingMin; + + /** + * 长时间闪变值-平均值 + */ + @TableField(value = "long_time_flashing_avg") + @ApiModelProperty(value="长时间闪变值-平均值") + private Double longTimeFlashingAvg; + + /** + * 长时间闪变值-95值 + */ + @TableField(value = "long_time_flashing_95") + @ApiModelProperty(value="长时间闪变值-95值") + private Double longTimeFlashing95; +} \ No newline at end of file diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/vo/AbnormalVO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/vo/AbnormalVO.java new file mode 100644 index 000000000..b6c09587e --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/vo/AbnormalVO.java @@ -0,0 +1,19 @@ +package com.njcn.prepare.harmonic.pojo.vo; + +import lombok.Data; +import org.influxdb.annotation.Measurement; + +import java.io.Serializable; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月18日 11:18 + */ +@Data +public class AbnormalVO implements Serializable { + + private Float normValue; + + private String valueType; +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/vo/LineVO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/vo/LineVO.java new file mode 100644 index 000000000..9d352b94f --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/vo/LineVO.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.pojo.vo; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:16 + */ +public class LineVO { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/vo/ReportTemplateVO.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/vo/ReportTemplateVO.java new file mode 100644 index 000000000..7bc685cb3 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/pojo/vo/ReportTemplateVO.java @@ -0,0 +1,29 @@ +package com.njcn.prepare.harmonic.pojo.vo; + +import com.njcn.db.bo.BaseEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 自定义报表 + * @author qijian + * @since 2022-10-14 10:44:54 + */ +@Data +@EqualsAndHashCode(callSuper = true) +public class ReportTemplateVO extends BaseEntity { + private String id; + + private String name; + + private String content; + + private String deptId; + + private Integer activation; + + private Integer state; + + private String deptName; + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/area/AreaServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/area/AreaServiceImpl.java new file mode 100644 index 000000000..fd90fbe47 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/area/AreaServiceImpl.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.service.Impl.area; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:19 + */ +public class AreaServiceImpl { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/device/DeviceServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/device/DeviceServiceImpl.java new file mode 100644 index 000000000..f26538010 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/device/DeviceServiceImpl.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.service.Impl.device; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:19 + */ +public class DeviceServiceImpl { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/DayDataServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/DayDataServiceImpl.java new file mode 100644 index 000000000..f264a9fba --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/DayDataServiceImpl.java @@ -0,0 +1,3402 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import com.njcn.influxdb.config.InfluxDbConfig; +import com.njcn.influxdb.param.InfluxDBPublicParam; +import com.njcn.influxdb.utils.InfluxDbUtils; +import com.njcn.prepare.harmonic.constant.InfluxdbPOConverter; +import com.njcn.prepare.harmonic.pojo.po.*; +import com.njcn.prepare.harmonic.pojo.po.line.*; +import com.njcn.prepare.harmonic.service.*; +import com.njcn.prepare.harmonic.service.line.DayDataService; +import com.njcn.prepare.harmonic.service.line.RMpHarmonicPReportDPOService; +import com.njcn.prepare.harmonic.service.line.RMpHarmonicVRateReportDPOService; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.influxdb.InfluxDB; +import org.influxdb.dto.BatchPoints; +import org.influxdb.dto.Point; +import org.influxdb.dto.QueryResult; +import org.influxdb.impl.InfluxDBResultMapper; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.BeanWrapper; +import org.springframework.beans.BeanWrapperImpl; +import org.springframework.stereotype.Component; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.time.Instant; +import java.util.*; +import java.util.concurrent.TimeUnit; +import java.util.stream.Collectors; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/24 9:46【需求编号】 + * + * @author clam + * @version V1.0.0 + */ + +@Slf4j +@Component +@RequiredArgsConstructor +public class DayDataServiceImpl implements DayDataService { + + private final RMpHarmonicVRateReportDPOService rMpHarmonicVRateReportDPOService; + private final RMpHarmonicIMagReportDPOService rMpHarmonicIMagReportDPOService; + private final RMpFlickerReportDPOService rMpFlickerReportDPOService; + private final RMpPltReportDPOService rMpPltReportDPOService; + private final RMpHarmonicIRateReportDPOService rMpHarmonicIRateReportDPOService; + private final RMpInharmonicIRateReportDPOService rMpInharmonicIRateReportDPOService; + private final RMpInharmonicIMagReportDPOService rMpInharmonicIMagReportDPOService; + private final RMpInharmonicVRateReportDPOService rMpInharmonicVRateReportDPOService; + private final RMpHarmonicPReportDPOService rMpHarmonicPReportDPOService; + + + private final InfluxDbUtils influxDbUtils; + + /** + * @param indexLists + * @param startTime + * @param endTime + * @Description: 生成day表相关数据 + * @Param: [indexLists, startTime, endTime] + * @return: void + * @Author: clam + * @Date: 2022/10/24 + */ + @Override + @Transactional( + rollbackFor = {Exception.class} + ) + public void dayDataJobHandler(List indexLists, String startTime, String endTime) { + + + Instant instant = null; +// influxDbUtils.setDbName ("pqsbase"); + try { + instant = new SimpleDateFormat ("yyyy-MM-dd").parse (startTime).toInstant ( ); + } catch (ParseException e) { + e.printStackTrace ( ); + } + Long time= instant.toEpochMilli(); + + List dataVPOList = new ArrayList<> (); + List dataIPOList = new ArrayList<> (); + List dataFlickerPOList = new ArrayList<> (); + List dataFlucPOList = new ArrayList<> (); + List dataHarmPhasicIPOList = new ArrayList<> (); + List dataHarmPhasicVPOList = new ArrayList<> (); + List dataHarmPowerPPOList = new ArrayList<> (); + List dataHarmPowerQPOList = new ArrayList<> (); + List dataHarmPowerSPOList = new ArrayList<> (); + List dataHarmRateIPOList = new ArrayList<> (); + List dataHarmRateVPOList = new ArrayList<> (); + List dataInHarmIPOList = new ArrayList<> (); + List dataInHarmVPOList = new ArrayList<> (); + List dataInHarmRateIPOList = new ArrayList<> (); + List dataInHarmRateVPOList = new ArrayList<> (); + List dataPltPOList = new ArrayList<> (); + + List rMpHarmonicVRateReportDPOList = new ArrayList<> (); + List rMpHarmonicIMagReportDPOList = new ArrayList<> (); + List rMpFlickerReportDPOList = new ArrayList<> (); + List rMpPltReportDPOList = new ArrayList<> (); + List rMpHarmonicIRateReportDPOList = new ArrayList<> (); + List rMpInharmonicIRateReportDPOList = new ArrayList<> (); + List rMpInharmonicIMagReportDPOList = new ArrayList<> (); + List rMpInharmonicVRateReportDPOList = new ArrayList<> (); + List rMpHarmonicPReportDPOList = new ArrayList<> (); + List rMpMeasurePhaseReportDPOArrayList = new ArrayList<> (); + + + + + + + + + for (int i = 0; i dataV = getDataV(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataV)){ + dataVPOList.addAll (dataV); + } + /*生成dayI表*/ + List dataI = getDataI(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataI)){ + dataIPOList.addAll (dataI); + } + List dataFlickerPO = getDataFlicker(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataFlickerPO)){ + dataFlickerPOList.addAll (dataFlickerPO); + } + /*生成dayFluc表*/ + List dataFlucPO = getDataFluc(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataFlucPO)){ + dataFlucPOList.addAll (dataFlucPO); + } + + /*生成dayHarmphasicI表*/ + List dataHarmphasicIPO = getDataHarmphasicI(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataHarmphasicIPO)){ + dataHarmPhasicIPOList.addAll (dataHarmphasicIPO); + } + + /*生成dayHarmphasicV表*/ + List dataHarmphasicVPO = getDataHarmphasicV(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataHarmphasicVPO)){ + dataHarmPhasicVPOList.addAll (dataHarmphasicVPO); + } + + /*生成dayHarmPowerP表*/ + List dataHarmPowerPPO = getDataHarmPowerP(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataHarmPowerPPO)){ + dataHarmPowerPPOList.addAll (dataHarmPowerPPO); + } + /*生成dayHarmPowerQ表*/ + List dataHarmPowerQPO = getDataHarmPowerQ(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataHarmPowerQPO)){ + dataHarmPowerQPOList.addAll (dataHarmPowerQPO); + } + + /*生成dayHarmPowerS表*/ + List dataHarmPowers = getDataHarmPowerS(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataHarmPowers)){ + dataHarmPowerSPOList.addAll (dataHarmPowers); + } + + /*生成dayHarmRateI*/ + List dataHarmRateI = getDataHarmRateI(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataHarmRateI)){ + dataHarmRateIPOList.addAll (dataHarmRateI); + + } + + /*生成dayHarmRateV*/ + List dataHarmRateVPO = getDataHarmRateV(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataHarmRateVPO)){ + dataHarmRateVPOList.addAll (dataHarmRateVPO); + } + + /*生成dayInHarmI*/ + List dataInHarmIPO = getDataInHarmI(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataInHarmIPO)){ + dataInHarmIPOList.addAll (dataInHarmIPO); + } + + /*生成dayInHarmV*/ + List dataInHarmVPO = getDataInHarmV(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataInHarmVPO)){ + dataInHarmVPOList.addAll (dataInHarmVPO); + } + + /*生成dayInHarmRateI*/ + List dataInHarmRateIPO = getDataInHarmRateI(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataInHarmRateIPO)){ + dataInHarmRateIPOList.addAll (dataInHarmRateIPO); + } + + /*生成dayInHarmRateV*/ + List dataInHarmRateVPO = getDataInHarmRateV(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataInHarmRateVPO)){ + dataInHarmRateVPOList.addAll (dataInHarmRateVPO); + } + + /*生成dayPlt*/ + List dataPlt = getDataPlt(lineIndex,startTime,endTime); + if(!CollectionUtils.isEmpty (dataPlt)){ + dataPltPOList.addAll (dataPlt); + } + + /*mysql数据转化 */ + /*RMpHarmonicVRateReportDPO*/ +// if(!CollectionUtils.isEmpty (dataV)&&!CollectionUtils.isEmpty (dataHarmRateVPO)){ +// /*转成mysql对应po*/ +// /*dataVPO.getPhaseType ()="A"数据*/ +// RMpHarmonicVRateReportDPO rMpHarmonicVRateReportDPOA = packageRMpHarmonicVRateReportDPO (dataV, dataHarmRateVPO,"A"); +// Optional.ofNullable (rMpHarmonicVRateReportDPOA).ifPresent (temp ->rMpHarmonicVRateReportDPOList.add (temp)); +// /*dataVPO.getPhaseType ()="B"数据*/ +// RMpHarmonicVRateReportDPO rMpHarmonicVRateReportDPOB = packageRMpHarmonicVRateReportDPO (dataV, dataHarmRateVPO,"B"); +// Optional.ofNullable (rMpHarmonicVRateReportDPOB).ifPresent (temp ->rMpHarmonicVRateReportDPOList.add (temp)); +// +// /*dataVPO.getPhaseType ()="C"数据*/ +// RMpHarmonicVRateReportDPO rMpHarmonicVRateReportDPOC = packageRMpHarmonicVRateReportDPO (dataV, dataHarmRateVPO, "C"); +// Optional.ofNullable (rMpHarmonicVRateReportDPOC).ifPresent (temp ->rMpHarmonicVRateReportDPOList.add (temp)); +// +// /*dataVPO.getPhaseType ()="T"数据*/ +// RMpHarmonicVRateReportDPO rMpHarmonicVRateReportDPOT = packageRMpHarmonicVRateReportDPO (dataV, dataHarmRateVPO,"T"); +// Optional.ofNullable (rMpHarmonicVRateReportDPOT).ifPresent (temp ->rMpHarmonicVRateReportDPOList.add (temp)); +// +// +// } +// /*RMpHarmonicIMagReportDPO*/ +// if(!CollectionUtils.isEmpty (dataI)){ +// +// /*转成mysql对应po*/ +// /*dataI.getPhaseType ()="A"数据*/ +// RMpHarmonicIMagReportDPO a = packageRMpHarmonicIMagReportDPO (dataI, "A"); +// Optional.ofNullable (a).ifPresent (temp ->rMpHarmonicIMagReportDPOList.add (temp)); +// /*dataI.getPhaseType ()="B"数据*/ +// RMpHarmonicIMagReportDPO b = packageRMpHarmonicIMagReportDPO(dataI,"B"); +// Optional.ofNullable (b).ifPresent (temp ->rMpHarmonicIMagReportDPOList.add (temp)); +// /*dataI.getPhaseType ()="C"数据*/ +// RMpHarmonicIMagReportDPO c = packageRMpHarmonicIMagReportDPO(dataI,"C"); +// Optional.ofNullable (c).ifPresent (temp ->rMpHarmonicIMagReportDPOList.add (temp)); +// /*dataI.getPhaseType ()="T"数据*/ +// RMpHarmonicIMagReportDPO t = packageRMpHarmonicIMagReportDPO(dataI,"T"); +// Optional.ofNullable (t).ifPresent (temp ->rMpHarmonicIMagReportDPOList.add (temp)); +// +// +// } +// /*生成dayFlicker表*/ +// if(!CollectionUtils.isEmpty (dataFlickerPO)){ +// /*生成dayFlicker表*/ +// /*dataFlickerPO.getPhaseType ()="A"数据*/ +// RMpFlickerReportDPO a = packageRMpFlickerReportDPOPO (dataFlickerPO, "A"); +// Optional.ofNullable (a).ifPresent (temp ->rMpFlickerReportDPOList.add (temp)); +// +// /*dataFlickerPO.getPhaseType ()="B"数据*/ +// RMpFlickerReportDPO b = packageRMpFlickerReportDPOPO(dataFlickerPO,"B"); +// Optional.ofNullable (b).ifPresent (temp ->rMpFlickerReportDPOList.add (temp)); +// +// /*dataFlickerPO.getPhaseType ()="C"数据*/ +// RMpFlickerReportDPO c = packageRMpFlickerReportDPOPO(dataFlickerPO,"C"); +// Optional.ofNullable (c).ifPresent (temp ->rMpFlickerReportDPOList.add (temp)); +// +//// /*dataFlickerPO.getPhaseType ()="T"数据*/ +//// RMpFlickerReportDPO t = packageRMpFlickerReportDPOPO(dataFlickerPO,"T"); +// +// +// } +// if(!CollectionUtils.isEmpty (dataPlt)){ +// /*转成mysql对应po*/ +// /*DataPltPO.getPhaseType ()="A"数据*/ +// RMpPltReportDPO a = packageRMpPltReportDPO (dataPlt, "A"); +// Optional.ofNullable (a).ifPresent (temp ->rMpPltReportDPOList.add (temp)); +// /*DataPltPO.getPhaseType ()="B"数据*/ +// RMpPltReportDPO b = packageRMpPltReportDPO(dataPlt,"B"); +// Optional.ofNullable (b).ifPresent (temp ->rMpPltReportDPOList.add (temp)); +// /*DataPltPO.getPhaseType ()="C"数据*/ +// RMpPltReportDPO c = packageRMpPltReportDPO(dataPlt,"C"); +// Optional.ofNullable (c).ifPresent (temp ->rMpPltReportDPOList.add (temp)); +//// /*DataPltPO.getPhaseType ()="T"数据*/ +//// RMpPltReportDPO t = packageRMpPltReportDPO(dataPlt,"T"); +// } +// if(!CollectionUtils.isEmpty (dataHarmRateI)) { +// /*转成mysql对应po*/ +// /*DataHarmRateIPO.getPhaseType ()="A"数据*/ +// RMpHarmonicIRateReportDPO a = packageRMpHarmonicIRateReportDPO (dataHarmRateI, "A"); +// Optional.ofNullable (a).ifPresent (temp -> rMpHarmonicIRateReportDPOList.add (temp)); +// +// /*DataHarmRateIPO.getPhaseType ()="B"数据*/ +// RMpHarmonicIRateReportDPO b = packageRMpHarmonicIRateReportDPO (dataHarmRateI, "B"); +// Optional.ofNullable (b).ifPresent (temp -> rMpHarmonicIRateReportDPOList.add (temp)); +// +// /*DataHarmRateIPO.getPhaseType ()="C"数据*/ +// RMpHarmonicIRateReportDPO c = packageRMpHarmonicIRateReportDPO (dataHarmRateI, "C"); +// Optional.ofNullable (c).ifPresent (temp -> rMpHarmonicIRateReportDPOList.add (temp)); +// +// /*DataInHarmRateIPO.getPhaseType ()="T"数据*/ +// RMpHarmonicIRateReportDPO t = packageRMpHarmonicIRateReportDPO (dataHarmRateI, "T"); +// Optional.ofNullable (t).ifPresent (temp -> rMpHarmonicIRateReportDPOList.add (temp)); +// } +// +// if(!CollectionUtils.isEmpty (dataInHarmRateIPO)){ +// /*转成mysql对应po*/ +// /*DataInHarmRateIPO.getPhaseType ()="A"数据*/ +// RMpInharmonicIRateReportDPO a = packageRMpInharmonicIRateReportDPO(dataInHarmRateIPO, "A"); +// Optional.ofNullable (a).ifPresent (temp ->rMpInharmonicIRateReportDPOList.add (temp)); +// +// /*DataInHarmRateIPO.getPhaseType ()="B"数据*/ +// RMpInharmonicIRateReportDPO b = packageRMpInharmonicIRateReportDPO(dataInHarmRateIPO,"B"); +// Optional.ofNullable (b).ifPresent (temp ->rMpInharmonicIRateReportDPOList.add (temp)); +// +// /*DataInHarmRateIPO.getPhaseType ()="C"数据*/ +// RMpInharmonicIRateReportDPO c = packageRMpInharmonicIRateReportDPO(dataInHarmRateIPO,"C"); +// Optional.ofNullable (c).ifPresent (temp ->rMpInharmonicIRateReportDPOList.add (temp)); +// +// /*DataInHarmRateIPO.getPhaseType ()="T"数据*/ +// RMpInharmonicIRateReportDPO t = packageRMpInharmonicIRateReportDPO(dataInHarmRateIPO,"T"); +// Optional.ofNullable (t).ifPresent (temp ->rMpInharmonicIRateReportDPOList.add (temp)); +// +// +// } +// +// if(!CollectionUtils.isEmpty (dataInHarmIPO)){ +// /*转成mysql对应po*/ +// /*dataInHarmIPO.getPhaseType ()="A"数据*/ +// RMpInharmonicIMagReportDPO a = packageRMpInharmonicIMagReportDPO(dataInHarmIPO, "A"); +// Optional.ofNullable (a).ifPresent (temp ->rMpInharmonicIMagReportDPOList.add (temp)); +// /*dataInHarmIPO.getPhaseType ()="B"数据*/ +// RMpInharmonicIMagReportDPO b = packageRMpInharmonicIMagReportDPO(dataInHarmIPO,"B"); +// Optional.ofNullable (b).ifPresent (temp ->rMpInharmonicIMagReportDPOList.add (temp)); +// /*dataInHarmIPO.getPhaseType ()="C"数据*/ +// RMpInharmonicIMagReportDPO c = packageRMpInharmonicIMagReportDPO(dataInHarmIPO,"C"); +// Optional.ofNullable (c).ifPresent (temp ->rMpInharmonicIMagReportDPOList.add (temp)); +// /*dataInHarmIPO.getPhaseType ()="T"数据*/ +// RMpInharmonicIMagReportDPO t = packageRMpInharmonicIMagReportDPO(dataInHarmIPO,"T"); +// Optional.ofNullable (t).ifPresent (temp ->rMpInharmonicIMagReportDPOList.add (temp)); +// +// } +// if(!CollectionUtils.isEmpty (dataInHarmRateVPO)){ +// /*转成mysql对应po*/ +// /*dataInHarmRateVPO.getPhaseType ()="A"数据*/ +// RMpInharmonicVRateReportDPO a = packageRMpInharmonicVRateReportDPO(dataInHarmRateVPO, "A"); +// Optional.ofNullable (a).ifPresent (temp ->rMpInharmonicVRateReportDPOList.add (temp)); +// /*dataInHarmRateVPO.getPhaseType ()="B"数据*/ +// RMpInharmonicVRateReportDPO b = packageRMpInharmonicVRateReportDPO(dataInHarmRateVPO,"B"); +// Optional.ofNullable (b).ifPresent (temp ->rMpInharmonicVRateReportDPOList.add (temp)); +// /*dataInHarmRateVPO.getPhaseType ()="C"数据*/ +// RMpInharmonicVRateReportDPO c = packageRMpInharmonicVRateReportDPO(dataInHarmRateVPO,"C"); +// Optional.ofNullable (c).ifPresent (temp ->rMpInharmonicVRateReportDPOList.add (temp)); +// /*dataInHarmRateVPO.getPhaseType ()="T"数据*/ +// RMpInharmonicVRateReportDPO t = packageRMpInharmonicVRateReportDPO(dataInHarmRateVPO,"T"); +// Optional.ofNullable (t).ifPresent (temp ->rMpInharmonicVRateReportDPOList.add (temp)); +// +// } +// +// if(!CollectionUtils.isEmpty (dataHarmPowerPPO)&&!CollectionUtils.isEmpty (dataHarmPowerQPO)){ +// /*转成mysql对应po*/ +// /*dataInHarmRateVPO.getPhaseType ()="A"数据*/ +// RMpHarmonicPReportDPO a = packageRMpHarmonicPReportDPO(dataHarmPowerPPO,dataHarmPowerQPO, "A"); +// Optional.ofNullable (a).ifPresent (temp ->rMpHarmonicPReportDPOList.add (temp)); +// /*dataInHarmRateVPO.getPhaseType ()="B"数据*/ +// RMpHarmonicPReportDPO b = packageRMpHarmonicPReportDPO(dataHarmPowerPPO,dataHarmPowerQPO,"B"); +// Optional.ofNullable (b).ifPresent (temp ->rMpHarmonicPReportDPOList.add (temp)); +// /*dataInHarmRateVPO.getPhaseType ()="C"数据*/ +// RMpHarmonicPReportDPO c = packageRMpHarmonicPReportDPO(dataHarmPowerPPO,dataHarmPowerQPO,"C"); +// Optional.ofNullable (c).ifPresent (temp ->rMpHarmonicPReportDPOList.add (temp)); +// /*dataInHarmRateVPO.getPhaseType ()="T"数据*/ +// RMpHarmonicPReportDPO t = packageRMpHarmonicPReportDPO(dataHarmPowerPPO,dataHarmPowerQPO,"T"); +// Optional.ofNullable (t).ifPresent (temp ->rMpHarmonicPReportDPOList.add (temp)); +// +// } + +// +// if (!CollectionUtils.isEmpty (dataV) && +// !CollectionUtils.isEmpty (dataI) && +// !CollectionUtils.isEmpty (dataHarmPowerPPO) && +// !CollectionUtils.isEmpty (dataHarmPowers) && +// !CollectionUtils.isEmpty (dataHarmPowerQPO)) { +// /*转成mysql对应po*/ +// /*dataInHarmRateVPO.getPhaseType ()="A"数据*/ +// RMpMeasurePhaseReportDPO a = packageRMpMeasurePhaseReportDPO(dataV,dataI,dataHarmPowerPPO,dataHarmPowers,dataHarmPowerQPO,"A"); +// Optional.ofNullable (a).ifPresent (temp ->rMpMeasurePhaseReportDPOArrayList.add (temp)); +// /*dataInHarmRateVPO.getPhaseType ()="B"数据*/ +// RMpMeasurePhaseReportDPO b = packageRMpMeasurePhaseReportDPO(dataV,dataI,dataHarmPowerPPO,dataHarmPowers,dataHarmPowerQPO,"B"); +// Optional.ofNullable (b).ifPresent (temp ->rMpMeasurePhaseReportDPOArrayList.add (temp)); +// /*dataInHarmRateVPO.getPhaseType ()="C"数据*/ +// RMpMeasurePhaseReportDPO c = packageRMpMeasurePhaseReportDPO(dataV,dataI,dataHarmPowerPPO,dataHarmPowers,dataHarmPowerQPO,"C"); +// Optional.ofNullable (c).ifPresent (temp ->rMpMeasurePhaseReportDPOArrayList.add (temp)); +// /*dataInHarmRateVPO.getPhaseType ()="T"数据*/ +// RMpMeasurePhaseReportDPO t = packageRMpMeasurePhaseReportDPO(dataV,dataI,dataHarmPowerPPO,dataHarmPowers,dataHarmPowerQPO,"T"); +// Optional.ofNullable (t).ifPresent (temp ->rMpMeasurePhaseReportDPOArrayList.add (temp)); +// +// } + /* todo + * r_mp_measure_phase_report_d + * r_mp_measure_report_d + * */ + + + } + /*插入mysql*/ +// if (!CollectionUtils.isEmpty(rMpHarmonicVRateReportDPOList)){ +// rMpHarmonicVRateReportDPOService.saveOrUpdateBatchByMultiId (rMpHarmonicVRateReportDPOList, 50); +// } +// +// if (!CollectionUtils.isEmpty(rMpHarmonicIMagReportDPOList)){ +// rMpHarmonicIMagReportDPOService.saveOrUpdateBatchByMultiId (rMpHarmonicIMagReportDPOList, 50); +// } +// +// if (!CollectionUtils.isEmpty(rMpFlickerReportDPOList)){ +// rMpFlickerReportDPOService.saveOrUpdateBatchByMultiId (rMpFlickerReportDPOList, 50); +// } +// +// if (!CollectionUtils.isEmpty(rMpPltReportDPOList)){ +// rMpPltReportDPOService.saveOrUpdateBatchByMultiId (rMpPltReportDPOList, 50); +// } +// +// if (!CollectionUtils.isEmpty(rMpHarmonicIRateReportDPOList)){ +// rMpHarmonicIRateReportDPOService.saveOrUpdateBatchByMultiId (rMpHarmonicIRateReportDPOList, 50); +// } +// +// if (!CollectionUtils.isEmpty(rMpInharmonicIRateReportDPOList)){ +// rMpInharmonicIRateReportDPOService.saveOrUpdateBatchByMultiId (rMpInharmonicIRateReportDPOList, 50); +// } +// +// if (!CollectionUtils.isEmpty(rMpInharmonicIMagReportDPOList)){ +// rMpInharmonicIMagReportDPOService.saveOrUpdateBatchByMultiId (rMpInharmonicIMagReportDPOList, 50); +// } +// +// if (!CollectionUtils.isEmpty(rMpInharmonicVRateReportDPOList)){ +// rMpInharmonicVRateReportDPOService.saveOrUpdateBatchByMultiId (rMpInharmonicVRateReportDPOList, 50); +// } +// +// if (!CollectionUtils.isEmpty(rMpHarmonicPReportDPOList)){ +// rMpHarmonicPReportDPOService.saveOrUpdateBatchByMultiId (rMpHarmonicPReportDPOList, 50); +// } + + + + if (!CollectionUtils.isEmpty(dataVPOList)){ + insertDayV(dataVPOList,time); + } + + if (!CollectionUtils.isEmpty(dataIPOList)){ + insertDayI(dataIPOList,time); + } + if (!CollectionUtils.isEmpty(dataFlickerPOList)){ + insertDayFlicker(dataFlickerPOList,time); + } + if (!CollectionUtils.isEmpty(dataFlucPOList)){ + insertDayFluc(dataFlucPOList,time); + } + if (!CollectionUtils.isEmpty(dataHarmPhasicIPOList)){ + insertDayHarmphasicI(dataHarmPhasicIPOList,time); + } + if (!CollectionUtils.isEmpty(dataHarmPhasicVPOList)){ + insertDayHarmphasicV(dataHarmPhasicVPOList,time); + } + if (!CollectionUtils.isEmpty(dataHarmPowerPPOList)){ + insertDayHarmPowerP(dataHarmPowerPPOList,time); + } + if (!CollectionUtils.isEmpty(dataHarmPowerQPOList)){ + insertDayHarmPowerQ(dataHarmPowerQPOList,time); + } + if (!CollectionUtils.isEmpty(dataHarmPowerSPOList)){ + insertDayHarmPowerS(dataHarmPowerSPOList,time); + } + if (!CollectionUtils.isEmpty(dataHarmRateIPOList)){ + insertDayHarmRateI(dataHarmRateIPOList,time); + } + if (!CollectionUtils.isEmpty(dataHarmRateVPOList)){ + insertDayHarmRateV(dataHarmRateVPOList,time); + } + if (!CollectionUtils.isEmpty(dataInHarmIPOList)){ + insertDayInHarmI(dataInHarmIPOList,time); + } + if (!CollectionUtils.isEmpty(dataInHarmVPOList)){ + insertDayInHarmV(dataInHarmVPOList,time); + } + if (!CollectionUtils.isEmpty(dataInHarmRateIPOList)){ + insertDayInHarmRateI(dataInHarmRateIPOList,time); + } + if (!CollectionUtils.isEmpty(dataInHarmRateVPOList)){ + insertDayInHarmRateV(dataInHarmRateVPOList,time); + } + if (!CollectionUtils.isEmpty(dataPltPOList)){ + insertDayPlt(dataPltPOList,time); + } + + + } + + + + /** + * 功能描述:获取dataV数据 + * @author xy + * @param lineIndex 监测点集ID + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataV(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<> (); + //最小值 + StringBuilder stringBuilder1 = new StringBuilder(); + StringBuilder stringBuilder2 = new StringBuilder(); + stringBuilder1.append("min(freq) AS freq,min(freq_dev) AS freq_dev,min(rms) AS rms,min(rms_lvr) AS rms_lvr,min(v_neg) AS v_neg,min(v_pos) AS v_pos,min(v_thd) AS v_thd,min(v_unbalance) AS v_unbalance,min(v_zero) AS v_zero,min(vl_dev) AS vl_dev,min(vu_dev) AS vu_dev,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder1.append("min(v_").append(i).append(") AS v_").append(i); + } else { + stringBuilder1.append("min(v_").append(i).append(") AS v_").append(i).append(","); + } + } + stringBuilder2.append ("line_id='").append (lineIndex).append ("' and ").append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MIN' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql1 = "select "+stringBuilder1+" from "+ InfluxDBPublicParam.DATA_V+" where "+stringBuilder2; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataVPO.class); + //最大值 + StringBuilder stringBuilder3 = new StringBuilder(); + StringBuilder stringBuilder4 = new StringBuilder(); + stringBuilder3.append("max(freq) AS freq,max(freq_dev) AS freq_dev,max(rms) AS rms,max(rms_lvr) AS rms_lvr,max(v_neg) AS v_neg,max(v_pos) AS v_pos,max(v_thd) AS v_thd,max(v_unbalance) AS v_unbalance,max(v_zero) AS v_zero,max(vl_dev) AS vl_dev,max(vu_dev) AS vu_dev,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder3.append("max(v_").append(i).append(") AS v_").append(i); + } else { + stringBuilder3.append("max(v_").append(i).append(") AS v_").append(i).append(","); + } + } + stringBuilder4.append ("line_id='").append (lineIndex).append ("' and ").append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MAX' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql2 = "select "+stringBuilder3+" from "+ InfluxDBPublicParam.DATA_V+" where "+stringBuilder4; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataVPO.class); + //平均值 + StringBuilder stringBuilder5 = new StringBuilder(); + StringBuilder stringBuilder6 = new StringBuilder(); + stringBuilder5.append("mean(freq) AS freq,mean(freq_dev) AS freq_dev,mean(rms) AS rms,mean(rms_lvr) AS rms_lvr,mean(v_neg) AS v_neg,mean(v_pos) AS v_pos,mean(v_thd) AS v_thd,mean(v_unbalance) AS v_unbalance,mean(v_zero) AS v_zero,mean(vl_dev) AS vl_dev,mean(vu_dev) AS vu_dev,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder5.append("mean(v_").append(i).append(") AS v_").append(i); + } else { + stringBuilder5.append("mean(v_").append(i).append(") AS v_").append(i).append(","); + } + } + stringBuilder6.append ("line_id='").append (lineIndex).append ("' and ").append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql3 = "select "+stringBuilder5+" from "+ InfluxDBPublicParam.DATA_V+" where "+stringBuilder6; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3 = new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataVPO.class); + //CP95值 + StringBuilder stringBuilder7 = new StringBuilder(); + StringBuilder stringBuilder8 = new StringBuilder(); + stringBuilder7.append("percentile(freq,95) AS freq,percentile(freq_dev,95) AS freq_dev,percentile(rms,95) AS rms,percentile(rms_lvr,95) AS rms_lvr,percentile(v_neg,95) AS v_neg,percentile(v_pos,95) AS v_pos,percentile(v_thd,95) AS v_thd,percentile(v_unbalance,95) AS v_unbalance,percentile(v_zero,95) AS v_zero,percentile(vl_dev,95) AS vl_dev,percentile(vu_dev,95) AS vu_dev,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder7.append("percentile(v_").append(i).append(",95) AS v_").append(i); + } else { + stringBuilder7.append("percentile(v_").append(i).append(",95) AS v_").append(i).append(","); + } + } + stringBuilder8.append ("line_id='").append (lineIndex).append ("' and ").append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql4 = "select "+stringBuilder7+" from "+ InfluxDBPublicParam.DATA_V+" where "+stringBuilder8; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4 = new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataVPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + + /** + * 功能描述:获取dataI数据 + * @author xy + * @param lineIndex 监测点ID + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataI(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<>(); + //最小值 + StringBuilder stringBuilder1 = new StringBuilder(); + StringBuilder stringBuilder2 = new StringBuilder(); + stringBuilder1.append("min(rms) AS rms,min(i_neg) AS i_neg,min(i_pos) AS i_pos,min(i_thd) AS i_thd,min(i_unbalance) AS i_unbalance,min(i_zero) AS i_zero,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder1.append("min(i_").append(i).append(") AS i_").append(i); + } else { + stringBuilder1.append("min(i_").append(i).append(") AS i_").append(i).append(","); + } + } + stringBuilder2.append ("line_id='").append (lineIndex).append ("' and ").append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MIN' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql1 = "select "+stringBuilder1+" from "+ InfluxDBPublicParam.DATA_I+" where "+stringBuilder2; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataIPO.class); + //最大值 + StringBuilder stringBuilder3 = new StringBuilder(); + StringBuilder stringBuilder4 = new StringBuilder(); + stringBuilder3.append("max(rms) AS rms,max(i_neg) AS i_neg,max(i_pos) AS i_pos,max(i_thd) AS i_thd,max(i_unbalance) AS i_unbalance,max(i_zero) AS i_zero,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder3.append("max(i_").append(i).append(") AS i_").append(i); + } else { + stringBuilder3.append("max(i_").append(i).append(") AS i_").append(i).append(","); + } + } + stringBuilder4.append ("line_id='").append (lineIndex).append ("' and ").append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MAX' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql2 = "select "+stringBuilder3+" from "+ InfluxDBPublicParam.DATA_I+" where "+stringBuilder4; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataIPO.class); + //平均值 + StringBuilder stringBuilder5 = new StringBuilder(); + StringBuilder stringBuilder6 = new StringBuilder(); + stringBuilder5.append("mean(rms) AS rms,mean(i_neg) AS i_neg,mean(i_pos) AS i_pos,mean(i_thd) AS i_thd,mean(i_unbalance) AS i_unbalance,mean(i_zero) AS i_zero,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder5.append("mean(i_").append(i).append(") AS i_").append(i); + } else { + stringBuilder5.append("mean(i_").append(i).append(") AS i_").append(i).append(","); + } + } + stringBuilder6.append ("line_id='").append (lineIndex).append ("' and ").append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql3 = "select "+stringBuilder5+" from "+ InfluxDBPublicParam.DATA_I+" where "+stringBuilder6; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3 = new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataIPO.class); + //CP95值 + StringBuilder stringBuilder7 = new StringBuilder(); + StringBuilder stringBuilder8 = new StringBuilder(); + stringBuilder7.append("percentile(rms,95) AS rms,percentile(i_neg,95) AS i_neg,percentile(i_pos,95) AS i_pos,percentile(i_thd,95) AS i_thd,percentile(i_unbalance,95) AS i_unbalance,percentile(i_zero,95) AS i_zero,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder7.append("percentile(i_").append(i).append(",95) AS i_").append(i); + } else { + stringBuilder7.append("percentile(i_").append(i).append(",95) AS i_").append(i).append(","); + } + } + stringBuilder8.append ("line_id='").append (lineIndex).append ("' and ").append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql4 = "select "+stringBuilder7+" from "+ InfluxDBPublicParam.DATA_I+" where "+stringBuilder8; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4 = new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataIPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + /** + * 功能描述:获取dataFlicker数据 + * @author xy + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataFlicker(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<>(); + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and "); + //最小值 + String sql1 = "select min(fluc) AS fluc,min(plt) AS plt,min(pst) AS pst from "+ InfluxDBPublicParam.DATA_FLICKER+" where "+stringBuilder+" time >= '" + startTime + "' and time <= '" + endTime + "' group by line_id,phasic_type,quality_flag "+ InfluxDBPublicParam.TIME_ZONE; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataFlickerPO.class); + list1.forEach(item->{ + item.setValueType("MIN"); + }); + //最大值 + String sql2 = "select max(fluc) AS fluc,max(plt) AS plt,max(pst) AS pst from "+ InfluxDBPublicParam.DATA_FLICKER+" where "+stringBuilder+" time >= '" + startTime + "' and time <= '" + endTime + "' group by line_id,phasic_type,quality_flag "+ InfluxDBPublicParam.TIME_ZONE; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataFlickerPO.class); + list2.forEach(item->{ + item.setValueType("MAX"); + }); + //平均值 + String sql3 = "select mean(fluc) AS fluc,mean(plt) AS plt,mean(pst) AS pst from "+ InfluxDBPublicParam.DATA_FLICKER+" where "+stringBuilder+" time >= '" + startTime + "' and time <= '" + endTime + "' group by line_id,phasic_type,quality_flag "+ InfluxDBPublicParam.TIME_ZONE; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3= new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataFlickerPO.class); + list3.forEach(item->{ + item.setValueType("AVG"); + }); + //CP95值 + String sql4 = "select percentile(fluc,95) AS fluc,percentile(plt,95) AS plt,percentile(pst,95) AS pst from "+ InfluxDBPublicParam.DATA_FLICKER+" where "+stringBuilder+" time >= '" + startTime + "' and time <= '" + endTime + "' group by line_id,phasic_type,quality_flag "+ InfluxDBPublicParam.TIME_ZONE;; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4= new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataFlickerPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + /** + * 功能描述:获取dataFluc数据 + * @author xy + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataFluc(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<>(); + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and "); + //最小值 + String sql1 = "select min(fluc) AS fluc,min(fluccf) AS fluccf from "+ InfluxDBPublicParam.DATA_FLUC+" where "+stringBuilder+" time >= '" + startTime + "' and time <= '" + endTime + "' group by line_id,phasic_type,quality_flag "+ InfluxDBPublicParam.TIME_ZONE; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataFlucPO.class); + list1.forEach(item->{ + item.setValueType("MIN"); + }); + //最大值 + String sql2 = "select max(fluc) AS fluc,max(fluccf) AS fluccf from "+ InfluxDBPublicParam.DATA_FLUC+" where "+stringBuilder+" time >= '" + startTime + "' and time <= '" + endTime + "' group by line_id,phasic_type,quality_flag "+ InfluxDBPublicParam.TIME_ZONE; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataFlucPO.class); + list2.forEach(item->{ + item.setValueType("MAX"); + }); + //平均值 + String sql3 = "select mean(fluc) AS fluc,mean(fluccf) AS fluccf from "+ InfluxDBPublicParam.DATA_FLUC+" where "+stringBuilder+" time >= '" + startTime + "' and time <= '" + endTime + "' group by line_id,phasic_type,quality_flag "+ InfluxDBPublicParam.TIME_ZONE; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3= new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataFlucPO.class); + list3.forEach(item->{ + item.setValueType("AVG"); + }); + //CP95值 + String sql4 = "select percentile(fluc,95) AS fluc,percentile(fluccf,95) AS fluccf from "+ InfluxDBPublicParam.DATA_FLUC+" where "+stringBuilder+" time >= '" + startTime + "' and time <= '" + endTime + "' group by line_id,phasic_type,quality_flag "+ InfluxDBPublicParam.TIME_ZONE; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4= new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataFlucPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + /** + * 功能描述:获取data_harmphasic_i数据 + * @author xy + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataHarmphasicI(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<>(); + + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and "); + + //最小值 + StringBuilder stringBuilder1 = new StringBuilder(); + StringBuilder stringBuilder2 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder1.append("min(i_").append(i).append(") AS i_").append(i); + } else { + stringBuilder1.append("min(i_").append(i).append(") AS i_").append(i).append(","); + } + } + stringBuilder2.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MIN' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql1 = "select "+stringBuilder1+" from "+ InfluxDBPublicParam.DATA_HARM_PHASIC_I+" where "+stringBuilder+stringBuilder2; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataHarmPhasicIPO.class); + //最大值 + StringBuilder stringBuilder3 = new StringBuilder(); + StringBuilder stringBuilder4 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder3.append("max(i_").append(i).append(") AS i_").append(i); + } else { + stringBuilder3.append("max(i_").append(i).append(") AS i_").append(i).append(","); + } + } + stringBuilder4.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MAX' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql2 = "select "+stringBuilder3+" from "+ InfluxDBPublicParam.DATA_HARM_PHASIC_I+" where "+stringBuilder+stringBuilder4; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataHarmPhasicIPO.class); + //平均值 + StringBuilder stringBuilder5 = new StringBuilder(); + StringBuilder stringBuilder6 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder5.append("mean(i_").append(i).append(") AS i_").append(i); + } else { + stringBuilder5.append("mean(i_").append(i).append(") AS i_").append(i).append(","); + } + } + stringBuilder6.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql3 = "select "+stringBuilder5+" from "+ InfluxDBPublicParam.DATA_HARM_PHASIC_I+" where "+stringBuilder+stringBuilder6; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3 = new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataHarmPhasicIPO.class); + //CP95值 + StringBuilder stringBuilder7 = new StringBuilder(); + StringBuilder stringBuilder8 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder7.append("percentile(i_").append(i).append(",95) AS i_").append(i); + } else { + stringBuilder7.append("percentile(i_").append(i).append(",95) AS i_").append(i).append(","); + } + } + stringBuilder8.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql4 = "select "+stringBuilder7+" from "+ InfluxDBPublicParam.DATA_HARM_PHASIC_I+" where "+stringBuilder+stringBuilder8; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4 = new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataHarmPhasicIPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + + /** + * 功能描述:获取data_harmphasic_v数据 + * @author xy + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataHarmphasicV(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<>(); + + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and "); + //最小值 + StringBuilder stringBuilder1 = new StringBuilder(); + StringBuilder stringBuilder2 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder1.append("min(v_").append(i).append(") AS v_").append(i); + } else { + stringBuilder1.append("min(v_").append(i).append(") AS v_").append(i).append(","); + } + } + stringBuilder2.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MIN' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql1 = "select "+stringBuilder1+" from "+ InfluxDBPublicParam.DATA_HARM_PHASIC_V+" where "+stringBuilder+stringBuilder2; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataHarmPhasicVPO.class); + //最大值 + StringBuilder stringBuilder3 = new StringBuilder(); + StringBuilder stringBuilder4 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder3.append("max(v_").append(i).append(") AS v_").append(i); + } else { + stringBuilder3.append("max(v_").append(i).append(") AS v_").append(i).append(","); + } + } + stringBuilder4.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MAX' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql2 = "select "+stringBuilder3+" from "+ InfluxDBPublicParam.DATA_HARM_PHASIC_V+" where "+stringBuilder+stringBuilder4; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataHarmPhasicVPO.class); + //平均值 + StringBuilder stringBuilder5 = new StringBuilder(); + StringBuilder stringBuilder6 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder5.append("mean(v_").append(i).append(") AS v_").append(i); + } else { + stringBuilder5.append("mean(v_").append(i).append(") AS v_").append(i).append(","); + } + } + stringBuilder6.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql3 = "select "+stringBuilder5+" from "+ InfluxDBPublicParam.DATA_HARM_PHASIC_V+" where "+stringBuilder+stringBuilder6; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3 = new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataHarmPhasicVPO.class); + //CP95值 + StringBuilder stringBuilder7 = new StringBuilder(); + StringBuilder stringBuilder8 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder7.append("percentile(v_").append(i).append(",95) AS v_").append(i); + } else { + stringBuilder7.append("percentile(v_").append(i).append(",95) AS v_").append(i).append(","); + } + } + stringBuilder8.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql4 = "select "+stringBuilder7+" from "+ InfluxDBPublicParam.DATA_HARM_PHASIC_V+" where "+stringBuilder+stringBuilder8; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4 = new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataHarmPhasicVPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + + /** + * 功能描述:获取data_harmpower_p数据 + * @author xy + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataHarmPowerP(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<>(); + + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and "); + //最小值 + StringBuilder stringBuilder1 = new StringBuilder(); + StringBuilder stringBuilder2 = new StringBuilder(); + stringBuilder1.append("min(p) AS p,min(df) AS df,min(pf) AS pf,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder1.append("min(p_").append(i).append(") AS p_").append(i); + } else { + stringBuilder1.append("min(p_").append(i).append(") AS p_").append(i).append(","); + } + } + stringBuilder2.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MIN' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql1 = "select "+stringBuilder1+" from "+ InfluxDBPublicParam.DATA_HARM_POWER_P+" where "+stringBuilder+stringBuilder2; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataHarmPowerPPO.class); + //最大值 + StringBuilder stringBuilder3 = new StringBuilder(); + StringBuilder stringBuilder4 = new StringBuilder(); + stringBuilder3.append("max(p) AS p,max(df) AS df,max(pf) AS pf,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder3.append("max(p_").append(i).append(") AS p_").append(i); + } else { + stringBuilder3.append("max(p_").append(i).append(") AS p_").append(i).append(","); + } + } + stringBuilder4.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MAX' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql2 = "select "+stringBuilder3+" from "+ InfluxDBPublicParam.DATA_HARM_POWER_P+" where "+stringBuilder+stringBuilder4; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataHarmPowerPPO.class); + //平均值 + StringBuilder stringBuilder5 = new StringBuilder(); + StringBuilder stringBuilder6 = new StringBuilder(); + stringBuilder5.append("mean(p) AS p,mean(df) AS df,mean(pf) AS pf,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder5.append("mean(p_").append(i).append(") AS p_").append(i); + } else { + stringBuilder5.append("mean(p_").append(i).append(") AS p_").append(i).append(","); + } + } + stringBuilder6.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql3 = "select "+stringBuilder5+" from "+ InfluxDBPublicParam.DATA_HARM_POWER_P+" where "+stringBuilder+stringBuilder6; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3 = new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataHarmPowerPPO.class); + //CP95值 + StringBuilder stringBuilder7 = new StringBuilder(); + StringBuilder stringBuilder8 = new StringBuilder(); + stringBuilder7.append("percentile(p,95) AS p,percentile(df,95) AS df,percentile(pf,95) AS pf,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder7.append("percentile(p_").append(i).append(",95) AS p_").append(i); + } else { + stringBuilder7.append("percentile(p_").append(i).append(",95) AS p_").append(i).append(","); + } + } + stringBuilder8.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql4 = "select "+stringBuilder7+" from "+ InfluxDBPublicParam.DATA_HARM_POWER_P+" where "+stringBuilder+stringBuilder8; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4 = new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataHarmPowerPPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + /** + * 功能描述:获取data_harmpower_q数据 + * @author xy + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataHarmPowerQ(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<>(); + + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and "); + //最小值 + StringBuilder stringBuilder1 = new StringBuilder(); + StringBuilder stringBuilder2 = new StringBuilder(); + stringBuilder1.append("min(q) AS q,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder1.append("min(q_").append(i).append(") AS q_").append(i); + } else { + stringBuilder1.append("min(q_").append(i).append(") AS q_").append(i).append(","); + } + } + stringBuilder2.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MIN' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql1 = "select "+stringBuilder1+" from "+ InfluxDBPublicParam.DATA_HARM_POWER_Q+" where "+stringBuilder+stringBuilder2; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataHarmPowerQPO.class); + //最大值 + StringBuilder stringBuilder3 = new StringBuilder(); + StringBuilder stringBuilder4 = new StringBuilder(); + stringBuilder3.append("max(q) AS q,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder3.append("max(q_").append(i).append(") AS q_").append(i); + } else { + stringBuilder3.append("max(q_").append(i).append(") AS q_").append(i).append(","); + } + } + stringBuilder4.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MAX' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql2 = "select "+stringBuilder3+" from "+ InfluxDBPublicParam.DATA_HARM_POWER_Q+" where "+stringBuilder+stringBuilder4; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataHarmPowerQPO.class); + //平均值 + StringBuilder stringBuilder5 = new StringBuilder(); + StringBuilder stringBuilder6 = new StringBuilder(); + stringBuilder5.append("mean(q) AS q,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder5.append("mean(q_").append(i).append(") AS q_").append(i); + } else { + stringBuilder5.append("mean(q_").append(i).append(") AS q_").append(i).append(","); + } + } + stringBuilder6.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql3 = "select "+stringBuilder5+" from "+ InfluxDBPublicParam.DATA_HARM_POWER_Q+" where "+stringBuilder+stringBuilder6; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3 = new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataHarmPowerQPO.class); + //CP95值 + StringBuilder stringBuilder7 = new StringBuilder(); + StringBuilder stringBuilder8 = new StringBuilder(); + stringBuilder7.append("percentile(q,95) AS q,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder7.append("percentile(q_").append(i).append(",95) AS q_").append(i); + } else { + stringBuilder7.append("percentile(q_").append(i).append(",95) AS q_").append(i).append(","); + } + } + stringBuilder8.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql4 = "select "+stringBuilder7+" from "+ InfluxDBPublicParam.DATA_HARM_POWER_Q+" where "+stringBuilder+stringBuilder8; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4 = new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataHarmPowerQPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + /** + * 功能描述:获取data_harmpower_s数据 + * @author xy + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataHarmPowerS(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<>(); + + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and "); + //最小值 + StringBuilder stringBuilder1 = new StringBuilder(); + StringBuilder stringBuilder2 = new StringBuilder(); + stringBuilder1.append("min(s) AS s,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder1.append("min(s_").append(i).append(") AS s_").append(i); + } else { + stringBuilder1.append("min(s_").append(i).append(") AS s_").append(i).append(","); + } + } + stringBuilder2.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MIN' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql1 = "select "+stringBuilder1+" from "+ InfluxDBPublicParam.DATA_HARM_POWER_S+" where "+stringBuilder+stringBuilder2; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataHarmPowerSPO.class); + //最大值 + StringBuilder stringBuilder3 = new StringBuilder(); + StringBuilder stringBuilder4 = new StringBuilder(); + stringBuilder3.append("max(s) AS s,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder3.append("max(s_").append(i).append(") AS s_").append(i); + } else { + stringBuilder3.append("max(s_").append(i).append(") AS s_").append(i).append(","); + } + } + stringBuilder4.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MAX' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql2 = "select "+stringBuilder3+" from "+ InfluxDBPublicParam.DATA_HARM_POWER_S+" where "+stringBuilder+stringBuilder4; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataHarmPowerSPO.class); + //平均值 + StringBuilder stringBuilder5 = new StringBuilder(); + StringBuilder stringBuilder6 = new StringBuilder(); + stringBuilder5.append("mean(s) AS s,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder5.append("mean(s_").append(i).append(") AS s_").append(i); + } else { + stringBuilder5.append("mean(s_").append(i).append(") AS s_").append(i).append(","); + } + } + stringBuilder6.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql3 = "select "+stringBuilder5+" from "+ InfluxDBPublicParam.DATA_HARM_POWER_S+" where "+stringBuilder+stringBuilder6; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3 = new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataHarmPowerSPO.class); + //CP95值 + StringBuilder stringBuilder7 = new StringBuilder(); + StringBuilder stringBuilder8 = new StringBuilder(); + stringBuilder7.append("percentile(s,95) AS s,"); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder7.append("percentile(s_").append(i).append(",95) AS s_").append(i); + } else { + stringBuilder7.append("percentile(s_").append(i).append(",95) AS s_").append(i).append(","); + } + } + stringBuilder8.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql4 = "select "+stringBuilder7+" from "+ InfluxDBPublicParam.DATA_HARM_POWER_S+" where "+stringBuilder+stringBuilder8; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4 = new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataHarmPowerSPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + + /** + * 功能描述:获取data_harmrate_i数据 + * @author xy + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataHarmRateI(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<>(); + + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and "); + //最小值 + StringBuilder stringBuilder1 = new StringBuilder(); + StringBuilder stringBuilder2 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder1.append("min(i_").append(i).append(") AS i_").append(i); + } else { + stringBuilder1.append("min(i_").append(i).append(") AS i_").append(i).append(","); + } + } + stringBuilder2.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MIN' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql1 = "select "+stringBuilder1+" from "+ InfluxDBPublicParam.DATA_HARM_RATE_I+" where "+stringBuilder+stringBuilder2; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataHarmRateIPO.class); + //最大值 + StringBuilder stringBuilder3 = new StringBuilder(); + StringBuilder stringBuilder4 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder3.append("max(i_").append(i).append(") AS i_").append(i); + } else { + stringBuilder3.append("max(i_").append(i).append(") AS i_").append(i).append(","); + } + } + stringBuilder4.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MAX' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql2 = "select "+stringBuilder3+" from "+ InfluxDBPublicParam.DATA_HARM_RATE_I+" where "+stringBuilder+stringBuilder4; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataHarmRateIPO.class); + //平均值 + StringBuilder stringBuilder5 = new StringBuilder(); + StringBuilder stringBuilder6 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder5.append("mean(i_").append(i).append(") AS i_").append(i); + } else { + stringBuilder5.append("mean(i_").append(i).append(") AS i_").append(i).append(","); + } + } + stringBuilder6.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql3 = "select "+stringBuilder5+" from "+ InfluxDBPublicParam.DATA_HARM_RATE_I+" where "+stringBuilder+stringBuilder6; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3 = new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataHarmRateIPO.class); + //CP95值 + StringBuilder stringBuilder7 = new StringBuilder(); + StringBuilder stringBuilder8 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder7.append("percentile(i_").append(i).append(",95) AS i_").append(i); + } else { + stringBuilder7.append("percentile(i_").append(i).append(",95) AS i_").append(i).append(","); + } + } + stringBuilder8.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql4 = "select "+stringBuilder7+" from "+ InfluxDBPublicParam.DATA_HARM_RATE_I+" where "+stringBuilder+stringBuilder8; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4 = new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataHarmRateIPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + /** + * 功能描述:获取data_harmrate_v数据 + * @author xy + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataHarmRateV(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<>(); + + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and "); + //最小值 + StringBuilder stringBuilder1 = new StringBuilder(); + StringBuilder stringBuilder2 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder1.append("min(v_").append(i).append(") AS v_").append(i); + } else { + stringBuilder1.append("min(v_").append(i).append(") AS v_").append(i).append(","); + } + } + stringBuilder2.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MIN' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql1 = "select "+stringBuilder1+" from "+ InfluxDBPublicParam.DATA_HARM_RATE_V+" where "+stringBuilder+stringBuilder2; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataHarmRateVPO.class); + //最大值 + StringBuilder stringBuilder3 = new StringBuilder(); + StringBuilder stringBuilder4 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder3.append("max(v_").append(i).append(") AS v_").append(i); + } else { + stringBuilder3.append("max(v_").append(i).append(") AS v_").append(i).append(","); + } + } + stringBuilder4.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MAX' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql2 = "select "+stringBuilder3+" from "+ InfluxDBPublicParam.DATA_HARM_RATE_V+" where "+stringBuilder+stringBuilder4; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataHarmRateVPO.class); + //平均值 + StringBuilder stringBuilder5 = new StringBuilder(); + StringBuilder stringBuilder6 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder5.append("mean(v_").append(i).append(") AS v_").append(i); + } else { + stringBuilder5.append("mean(v_").append(i).append(") AS v_").append(i).append(","); + } + } + stringBuilder6.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql3 = "select "+stringBuilder5+" from "+ InfluxDBPublicParam.DATA_HARM_RATE_V+" where "+stringBuilder+stringBuilder6; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3 = new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataHarmRateVPO.class); + //CP95值 + StringBuilder stringBuilder7 = new StringBuilder(); + StringBuilder stringBuilder8 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder7.append("percentile(v_").append(i).append(",95) AS v_").append(i); + } else { + stringBuilder7.append("percentile(v_").append(i).append(",95) AS v_").append(i).append(","); + } + } + stringBuilder8.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql4 = "select "+stringBuilder7+" from "+ InfluxDBPublicParam.DATA_HARM_RATE_V+" where "+stringBuilder+stringBuilder8; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4 = new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataHarmRateVPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + /** + * 功能描述:获取data_inharm_i数据 + * @author xy + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataInHarmI(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<>(); + + + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and "); + //最小值 + StringBuilder stringBuilder1 = new StringBuilder(); + StringBuilder stringBuilder2 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder1.append("min(i_").append(i).append(") AS i_").append(i); + } else { + stringBuilder1.append("min(i_").append(i).append(") AS i_").append(i).append(","); + } + } + stringBuilder2.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MIN' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql1 = "select "+stringBuilder1+" from "+ InfluxDBPublicParam.DATA_IN_HARM_I+" where "+stringBuilder+stringBuilder2; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataInHarmIPO.class); + //最大值 + StringBuilder stringBuilder3 = new StringBuilder(); + StringBuilder stringBuilder4 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder3.append("max(i_").append(i).append(") AS i_").append(i); + } else { + stringBuilder3.append("max(i_").append(i).append(") AS i_").append(i).append(","); + } + } + stringBuilder4.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MAX' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql2 = "select "+stringBuilder3+" from "+ InfluxDBPublicParam.DATA_IN_HARM_I+" where "+stringBuilder+stringBuilder4; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataInHarmIPO.class); + //平均值 + StringBuilder stringBuilder5 = new StringBuilder(); + StringBuilder stringBuilder6 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder5.append("mean(i_").append(i).append(") AS i_").append(i); + } else { + stringBuilder5.append("mean(i_").append(i).append(") AS i_").append(i).append(","); + } + } + stringBuilder6.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql3 = "select "+stringBuilder5+" from "+ InfluxDBPublicParam.DATA_IN_HARM_I+" where "+stringBuilder+stringBuilder6; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3 = new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataInHarmIPO.class); + //CP95值 + StringBuilder stringBuilder7 = new StringBuilder(); + StringBuilder stringBuilder8 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder7.append("percentile(i_").append(i).append(",95) AS i_").append(i); + } else { + stringBuilder7.append("percentile(i_").append(i).append(",95) AS i_").append(i).append(","); + } + } + stringBuilder8.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql4 = "select "+stringBuilder7+" from "+ InfluxDBPublicParam.DATA_IN_HARM_I+" where "+stringBuilder+stringBuilder8; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4 = new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataInHarmIPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + + /** + * 功能描述:获取data_inharm_v数据 + * @author xy + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataInHarmV(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<>(); + + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and "); + //最小值 + StringBuilder stringBuilder1 = new StringBuilder(); + StringBuilder stringBuilder2 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder1.append("min(v_").append(i).append(") AS v_").append(i); + } else { + stringBuilder1.append("min(v_").append(i).append(") AS v_").append(i).append(","); + } + } + stringBuilder2.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MIN' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql1 = "select "+stringBuilder1+" from "+ InfluxDBPublicParam.DATA_IN_HARM_V+" where "+stringBuilder+stringBuilder2; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataInHarmVPO.class); + //最大值 + StringBuilder stringBuilder3 = new StringBuilder(); + StringBuilder stringBuilder4 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder3.append("max(v_").append(i).append(") AS v_").append(i); + } else { + stringBuilder3.append("max(v_").append(i).append(") AS v_").append(i).append(","); + } + } + stringBuilder4.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MAX' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql2 = "select "+stringBuilder3+" from "+ InfluxDBPublicParam.DATA_IN_HARM_V+" where "+stringBuilder+stringBuilder4; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataInHarmVPO.class); + //平均值 + StringBuilder stringBuilder5 = new StringBuilder(); + StringBuilder stringBuilder6 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder5.append("mean(v_").append(i).append(") AS v_").append(i); + } else { + stringBuilder5.append("mean(v_").append(i).append(") AS v_").append(i).append(","); + } + } + stringBuilder6.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql3 = "select "+stringBuilder5+" from "+ InfluxDBPublicParam.DATA_IN_HARM_V+" where "+stringBuilder+stringBuilder6; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3 = new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataInHarmVPO.class); + //CP95值 + StringBuilder stringBuilder7 = new StringBuilder(); + StringBuilder stringBuilder8 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder7.append("percentile(v_").append(i).append(",95) AS v_").append(i); + } else { + stringBuilder7.append("percentile(v_").append(i).append(",95) AS v_").append(i).append(","); + } + } + stringBuilder8.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql4 = "select "+stringBuilder7+" from "+ InfluxDBPublicParam.DATA_IN_HARM_V+" where "+stringBuilder+stringBuilder8; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4 = new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataInHarmVPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + /** + * 功能描述:获取data_inharmrate_i数据 + * @author xy + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataInHarmRateI(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<>(); + + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and "); + //最小值 + StringBuilder stringBuilder1 = new StringBuilder(); + StringBuilder stringBuilder2 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder1.append("min(i_").append(i).append(") AS i_").append(i); + } else { + stringBuilder1.append("min(i_").append(i).append(") AS i_").append(i).append(","); + } + } + stringBuilder2.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MIN' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql1 = "select "+stringBuilder1+" from "+ InfluxDBPublicParam.DATA_IN_HARM_I+" where "+stringBuilder+stringBuilder2; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataInHarmRateIPO.class); + //最大值 + StringBuilder stringBuilder3 = new StringBuilder(); + StringBuilder stringBuilder4 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder3.append("max(i_").append(i).append(") AS i_").append(i); + } else { + stringBuilder3.append("max(i_").append(i).append(") AS i_").append(i).append(","); + } + } + stringBuilder4.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MAX' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql2 = "select "+stringBuilder3+" from "+ InfluxDBPublicParam.DATA_IN_HARM_I+" where "+stringBuilder+stringBuilder4; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataInHarmRateIPO.class); + //平均值 + StringBuilder stringBuilder5 = new StringBuilder(); + StringBuilder stringBuilder6 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder5.append("mean(i_").append(i).append(") AS i_").append(i); + } else { + stringBuilder5.append("mean(i_").append(i).append(") AS i_").append(i).append(","); + } + } + stringBuilder6.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql3 = "select "+stringBuilder5+" from "+ InfluxDBPublicParam.DATA_IN_HARM_I+" where "+stringBuilder+stringBuilder6; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3 = new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataInHarmRateIPO.class); + //CP95值 + StringBuilder stringBuilder7 = new StringBuilder(); + StringBuilder stringBuilder8 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder7.append("percentile(i_").append(i).append(",95) AS i_").append(i); + } else { + stringBuilder7.append("percentile(i_").append(i).append(",95) AS i_").append(i).append(","); + } + } + stringBuilder8.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql4 = "select "+stringBuilder7+" from "+ InfluxDBPublicParam.DATA_IN_HARM_I+" where "+stringBuilder+stringBuilder8; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4 = new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataInHarmRateIPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + /** + * 功能描述:获取data_inharmrate_v数据 + * @author xy + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataInHarmRateV(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<>(); + + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and "); + //最小值 + StringBuilder stringBuilder1 = new StringBuilder(); + StringBuilder stringBuilder2 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder1.append("min(v_").append(i).append(") AS v_").append(i); + } else { + stringBuilder1.append("min(v_").append(i).append(") AS v_").append(i).append(","); + } + } + stringBuilder2.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MIN' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql1 = "select "+stringBuilder1+" from "+ InfluxDBPublicParam.DATA_IN_HARM_V+" where "+stringBuilder+stringBuilder2; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataInHarmRateVPO.class); + //最大值 + StringBuilder stringBuilder3 = new StringBuilder(); + StringBuilder stringBuilder4 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder3.append("max(v_").append(i).append(") AS v_").append(i); + } else { + stringBuilder3.append("max(v_").append(i).append(") AS v_").append(i).append(","); + } + } + stringBuilder4.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'MAX' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql2 = "select "+stringBuilder3+" from "+ InfluxDBPublicParam.DATA_IN_HARM_V+" where "+stringBuilder+stringBuilder4; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataInHarmRateVPO.class); + //平均值 + StringBuilder stringBuilder5 = new StringBuilder(); + StringBuilder stringBuilder6 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder5.append("mean(v_").append(i).append(") AS v_").append(i); + } else { + stringBuilder5.append("mean(v_").append(i).append(") AS v_").append(i).append(","); + } + } + stringBuilder6.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql3 = "select "+stringBuilder5+" from "+ InfluxDBPublicParam.DATA_IN_HARM_V+" where "+stringBuilder+stringBuilder6; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3 = new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataInHarmRateVPO.class); + //CP95值 + StringBuilder stringBuilder7 = new StringBuilder(); + StringBuilder stringBuilder8 = new StringBuilder(); + for (int i = 1; i <=50 ; i++) { + if (i==50){ + stringBuilder7.append("percentile(v_").append(i).append(",95) AS v_").append(i); + } else { + stringBuilder7.append("percentile(v_").append(i).append(",95) AS v_").append(i).append(","); + } + } + stringBuilder8.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME).append(" <= '").append(endTime).append("' and value_type = 'AVG' group by line_id,phasic_type,value_type,quality_flag ").append(InfluxDBPublicParam.TIME_ZONE); + String sql4 = "select "+stringBuilder7+" from "+ InfluxDBPublicParam.DATA_IN_HARM_V+" where "+stringBuilder+stringBuilder8; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4 = new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataInHarmRateVPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + /** + * 功能描述:获取data_plt数据 + * @author xy + * @param startTime 起始时间 + * @param endTime 结束时间 + * @date 2022/5/10 14:56 + * @return List + */ + public List getDataPlt(String lineIndex, String startTime, String endTime){ + List result = new ArrayList<>(); + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and "); + //最小值 + String sql1 = "select min(plt) AS plt from "+ InfluxDBPublicParam.DATA_PLT+" where "+stringBuilder+" time >= '" + startTime + "' and time <= '" + endTime + "' group by line_id,phasic_type,quality_flag "+ InfluxDBPublicParam.TIME_ZONE; + QueryResult sqlResult1 = influxDbUtils.query(sql1); + InfluxDBResultMapper resultMapper1 = new InfluxDBResultMapper(); + List list1 = resultMapper1.toPOJO(sqlResult1, DataPltPO.class); + list1.forEach(item->{ + item.setValueType("MIN"); + }); + //最大值 + String sql2 = "select max(plt) AS plt from "+ InfluxDBPublicParam.DATA_PLT+" where "+stringBuilder+" time >= '" + startTime + "' and time <= '" + endTime + "' group by line_id,phasic_type,quality_flag "+ InfluxDBPublicParam.TIME_ZONE; + QueryResult sqlResult2 = influxDbUtils.query(sql2); + InfluxDBResultMapper resultMapper2 = new InfluxDBResultMapper(); + List list2 = resultMapper2.toPOJO(sqlResult2, DataPltPO.class); + list2.forEach(item->{ + item.setValueType("MAX"); + }); + //平均值 + String sql3 = "select mean(plt) AS plt from "+ InfluxDBPublicParam.DATA_PLT+" where "+stringBuilder+" time >= '" + startTime + "' and time <= '" + endTime + "' group by line_id,phasic_type,quality_flag "+ InfluxDBPublicParam.TIME_ZONE; + QueryResult sqlResult3 = influxDbUtils.query(sql3); + InfluxDBResultMapper resultMapper3= new InfluxDBResultMapper(); + List list3 = resultMapper3.toPOJO(sqlResult3, DataPltPO.class); + list3.forEach(item->{ + item.setValueType("AVG"); + }); + //CP95值 + String sql4 = "select percentile(plt,95) AS plt from "+ InfluxDBPublicParam.DATA_PLT+" where "+stringBuilder+" time >= '" + startTime + "' and time <= '" + endTime + "' group by line_id,phasic_type,quality_flag "+ InfluxDBPublicParam.TIME_ZONE; + QueryResult sqlResult4 = influxDbUtils.query(sql4); + InfluxDBResultMapper resultMapper4= new InfluxDBResultMapper(); + List list4 = resultMapper4.toPOJO(sqlResult4, DataPltPO.class); + list4.forEach(item->{ + item.setValueType("CP95"); + }); + result.addAll(list1); + result.addAll(list2); + result.addAll(list3); + result.addAll(list4); + return result; + } + + /** + * 功能描述:插入dayV表数据 + * @author xy + * @param list dataV集合 + * @param time 时间戳 + * @date 2022/5/11 14:55 + */ + private void insertDayV(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap (); + Map fields = new HashMap(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("freq",item.getFreq()); + fields.put("freq_dev",item.getFreqDev()); + fields.put("rms",item.getRms()); + fields.put("rms_lvr",item.getRmsLvr()); + fields.put("v_neg",item.getVNeg()); + fields.put("v_pos",item.getVPos()); + fields.put("v_thd",item.getVThd()); + fields.put("v_unbalance",item.getVUnbalance()); + fields.put("v_zero",item.getVZero()); + fields.put("vl_dev",item.getVlDev()); + fields.put("vu_dev",item.getVuDev()); + fields.put("v_1",item.getV1()); + fields.put("v_2",item.getV2()); + fields.put("v_3",item.getV3()); + fields.put("v_4",item.getV4()); + fields.put("v_5",item.getV5()); + fields.put("v_6",item.getV6()); + fields.put("v_7",item.getV7()); + fields.put("v_8",item.getV8()); + fields.put("v_9",item.getV9()); + fields.put("v_10",item.getV10()); + fields.put("v_11",item.getV11()); + fields.put("v_12",item.getV12()); + fields.put("v_13",item.getV13()); + fields.put("v_14",item.getV14()); + fields.put("v_15",item.getV15()); + fields.put("v_16",item.getV16()); + fields.put("v_17",item.getV17()); + fields.put("v_18",item.getV18()); + fields.put("v_19",item.getV19()); + fields.put("v_20",item.getV20()); + fields.put("v_21",item.getV21()); + fields.put("v_22",item.getV22()); + fields.put("v_23",item.getV23()); + fields.put("v_24",item.getV24()); + fields.put("v_25",item.getV25()); + fields.put("v_26",item.getV26()); + fields.put("v_27",item.getV27()); + fields.put("v_28",item.getV28()); + fields.put("v_29",item.getV29()); + fields.put("v_30",item.getV30()); + fields.put("v_31",item.getV31()); + fields.put("v_32",item.getV32()); + fields.put("v_33",item.getV33()); + fields.put("v_34",item.getV34()); + fields.put("v_35",item.getV35()); + fields.put("v_36",item.getV36()); + fields.put("v_37",item.getV37()); + fields.put("v_38",item.getV38()); + fields.put("v_39",item.getV39()); + fields.put("v_40",item.getV40()); + fields.put("v_41",item.getV41()); + fields.put("v_42",item.getV42()); + fields.put("v_43",item.getV43()); + fields.put("v_44",item.getV44()); + fields.put("v_45",item.getV45()); + fields.put("v_46",item.getV46()); + fields.put("v_47",item.getV47()); + fields.put("v_48",item.getV48()); + fields.put("v_49",item.getV49()); + fields.put("v_50",item.getV50()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DAY_V, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + /** + * 功能描述:插入dayI表数据 + * @author xy + * @param list dataI集合 + * @param time 时间戳 + * @date 2022/5/11 14:55 + */ + private void insertDayI(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("rms",item.getRms()); + fields.put("i_neg",item.getINeg()); + fields.put("i_pos",item.getIPos()); + fields.put("i_thd",item.getIThd()); + fields.put("i_unbalance",item.getIUnbalance()); + fields.put("i_zero",item.getIZero()); + fields.put("i_1",item.getI1()); + fields.put("i_2",item.getI2()); + fields.put("i_3",item.getI3()); + fields.put("i_4",item.getI4()); + fields.put("i_5",item.getI5()); + fields.put("i_6",item.getI6()); + fields.put("i_7",item.getI7()); + fields.put("i_8",item.getI8()); + fields.put("i_9",item.getI9()); + fields.put("i_10",item.getI10()); + fields.put("i_11",item.getI11()); + fields.put("i_12",item.getI12()); + fields.put("i_13",item.getI13()); + fields.put("i_14",item.getI14()); + fields.put("i_15",item.getI15()); + fields.put("i_16",item.getI16()); + fields.put("i_17",item.getI17()); + fields.put("i_18",item.getI18()); + fields.put("i_19",item.getI19()); + fields.put("i_20",item.getI20()); + fields.put("i_21",item.getI21()); + fields.put("i_22",item.getI22()); + fields.put("i_23",item.getI23()); + fields.put("i_24",item.getI24()); + fields.put("i_25",item.getI25()); + fields.put("i_26",item.getI26()); + fields.put("i_27",item.getI27()); + fields.put("i_28",item.getI28()); + fields.put("i_29",item.getI29()); + fields.put("i_30",item.getI30()); + fields.put("i_31",item.getI31()); + fields.put("i_32",item.getI32()); + fields.put("i_33",item.getI33()); + fields.put("i_34",item.getI34()); + fields.put("i_35",item.getI35()); + fields.put("i_36",item.getI36()); + fields.put("i_37",item.getI37()); + fields.put("i_38",item.getI38()); + fields.put("i_39",item.getI39()); + fields.put("i_40",item.getI40()); + fields.put("i_41",item.getI41()); + fields.put("i_42",item.getI42()); + fields.put("i_43",item.getI43()); + fields.put("i_44",item.getI44()); + fields.put("i_45",item.getI45()); + fields.put("i_46",item.getI46()); + fields.put("i_47",item.getI47()); + fields.put("i_48",item.getI48()); + fields.put("i_49",item.getI49()); + fields.put("i_50",item.getI50()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DAY_I, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + /** + * 功能描述:插入dayFlicker表数据 + * @author xy + * @param list dataFlicker集合 + * @param time 时间戳 + * @date 2022/5/11 14:55 + */ + private void insertDayFlicker(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("fluc",item.getFluc()); + fields.put("plt",item.getPlt()); + fields.put("pst",item.getPst()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DAY_FLICKER, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + + /** + * 功能描述:插入dayFluc表数据 + * @author xy + * @param list dataFluc集合 + * @param time 时间戳 + * @date 2022/5/12 8:55 + */ + private void insertDayFluc(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("fluc",item.getFluc()); + fields.put("fluccf",item.getFluccf()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DAY_FLUC, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + /** + * 功能描述:插入day_harmphasic_i表数据 + * @author xy + * @param list data_harmphasic_i表数据 + * @param time 时间戳 + * @date 2022/5/12 8:55 + */ + private void insertDayHarmphasicI(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("i_1",item.getI1()); + fields.put("i_2",item.getI2()); + fields.put("i_3",item.getI3()); + fields.put("i_4",item.getI4()); + fields.put("i_5",item.getI5()); + fields.put("i_6",item.getI6()); + fields.put("i_7",item.getI7()); + fields.put("i_8",item.getI8()); + fields.put("i_9",item.getI9()); + fields.put("i_10",item.getI10()); + fields.put("i_11",item.getI11()); + fields.put("i_12",item.getI12()); + fields.put("i_13",item.getI13()); + fields.put("i_14",item.getI14()); + fields.put("i_15",item.getI15()); + fields.put("i_16",item.getI16()); + fields.put("i_17",item.getI17()); + fields.put("i_18",item.getI18()); + fields.put("i_19",item.getI19()); + fields.put("i_20",item.getI20()); + fields.put("i_21",item.getI21()); + fields.put("i_22",item.getI22()); + fields.put("i_23",item.getI23()); + fields.put("i_24",item.getI24()); + fields.put("i_25",item.getI25()); + fields.put("i_26",item.getI26()); + fields.put("i_27",item.getI27()); + fields.put("i_28",item.getI28()); + fields.put("i_29",item.getI29()); + fields.put("i_30",item.getI30()); + fields.put("i_31",item.getI31()); + fields.put("i_32",item.getI32()); + fields.put("i_33",item.getI33()); + fields.put("i_34",item.getI34()); + fields.put("i_35",item.getI35()); + fields.put("i_36",item.getI36()); + fields.put("i_37",item.getI37()); + fields.put("i_38",item.getI38()); + fields.put("i_39",item.getI39()); + fields.put("i_40",item.getI40()); + fields.put("i_41",item.getI41()); + fields.put("i_42",item.getI42()); + fields.put("i_43",item.getI43()); + fields.put("i_44",item.getI44()); + fields.put("i_45",item.getI45()); + fields.put("i_46",item.getI46()); + fields.put("i_47",item.getI47()); + fields.put("i_48",item.getI48()); + fields.put("i_49",item.getI49()); + fields.put("i_50",item.getI50()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DAY_HARM_PHASIC_I, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + /** + * 功能描述:插入day_harmphasic_V表数据 + * @author xy + * @param list data_harmphasic_V表数据 + * @param time 时间戳 + * @date 2022/5/12 8:55 + */ + private void insertDayHarmphasicV(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("v_1",item.getV1()); + fields.put("v_2",item.getV2()); + fields.put("v_3",item.getV3()); + fields.put("v_4",item.getV4()); + fields.put("v_5",item.getV5()); + fields.put("v_6",item.getV6()); + fields.put("v_7",item.getV7()); + fields.put("v_8",item.getV8()); + fields.put("v_9",item.getV9()); + fields.put("v_10",item.getV10()); + fields.put("v_11",item.getV11()); + fields.put("v_12",item.getV12()); + fields.put("v_13",item.getV13()); + fields.put("v_14",item.getV14()); + fields.put("v_15",item.getV15()); + fields.put("v_16",item.getV16()); + fields.put("v_17",item.getV17()); + fields.put("v_18",item.getV18()); + fields.put("v_19",item.getV19()); + fields.put("v_20",item.getV20()); + fields.put("v_21",item.getV21()); + fields.put("v_22",item.getV22()); + fields.put("v_23",item.getV23()); + fields.put("v_24",item.getV24()); + fields.put("v_25",item.getV25()); + fields.put("v_26",item.getV26()); + fields.put("v_27",item.getV27()); + fields.put("v_28",item.getV28()); + fields.put("v_29",item.getV29()); + fields.put("v_30",item.getV30()); + fields.put("v_31",item.getV31()); + fields.put("v_32",item.getV32()); + fields.put("v_33",item.getV33()); + fields.put("v_34",item.getV34()); + fields.put("v_35",item.getV35()); + fields.put("v_36",item.getV36()); + fields.put("v_37",item.getV37()); + fields.put("v_38",item.getV38()); + fields.put("v_39",item.getV39()); + fields.put("v_40",item.getV40()); + fields.put("v_41",item.getV41()); + fields.put("v_42",item.getV42()); + fields.put("v_43",item.getV43()); + fields.put("v_44",item.getV44()); + fields.put("v_45",item.getV45()); + fields.put("v_46",item.getV46()); + fields.put("v_47",item.getV47()); + fields.put("v_48",item.getV48()); + fields.put("v_49",item.getV49()); + fields.put("v_50",item.getV50()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DAY_HARM_PHASIC_V, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + + /** + * 功能描述:插入day_harmpower_p表数据 + * @author xy + * @param list data_harmpower_p表数据 + * @param time 时间戳 + * @date 2022/5/12 8:55 + */ + private void insertDayHarmPowerP(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("df",item.getDf()); + fields.put("pf",item.getPf()); + fields.put("p",item.getP()); + fields.put("p_1",item.getP1()); + fields.put("p_2",item.getP2()); + fields.put("p_3",item.getP3()); + fields.put("p_4",item.getP4()); + fields.put("p_5",item.getP5()); + fields.put("p_6",item.getP6()); + fields.put("p_7",item.getP7()); + fields.put("p_8",item.getP8()); + fields.put("p_9",item.getP9()); + fields.put("p_10",item.getP10()); + fields.put("p_11",item.getP11()); + fields.put("p_12",item.getP12()); + fields.put("p_13",item.getP13()); + fields.put("p_14",item.getP14()); + fields.put("p_15",item.getP15()); + fields.put("p_16",item.getP16()); + fields.put("p_17",item.getP17()); + fields.put("p_18",item.getP18()); + fields.put("p_19",item.getP19()); + fields.put("p_20",item.getP20()); + fields.put("p_21",item.getP21()); + fields.put("p_22",item.getP22()); + fields.put("p_23",item.getP23()); + fields.put("p_24",item.getP24()); + fields.put("p_25",item.getP25()); + fields.put("p_26",item.getP26()); + fields.put("p_27",item.getP27()); + fields.put("p_28",item.getP28()); + fields.put("p_29",item.getP29()); + fields.put("p_30",item.getP30()); + fields.put("p_31",item.getP31()); + fields.put("p_32",item.getP32()); + fields.put("p_33",item.getP33()); + fields.put("p_34",item.getP34()); + fields.put("p_35",item.getP35()); + fields.put("p_36",item.getP36()); + fields.put("p_37",item.getP37()); + fields.put("p_38",item.getP38()); + fields.put("p_39",item.getP39()); + fields.put("p_40",item.getP40()); + fields.put("p_41",item.getP41()); + fields.put("p_42",item.getP42()); + fields.put("p_43",item.getP43()); + fields.put("p_44",item.getP44()); + fields.put("p_45",item.getP45()); + fields.put("p_46",item.getP46()); + fields.put("p_47",item.getP47()); + fields.put("p_48",item.getP48()); + fields.put("p_49",item.getP49()); + fields.put("p_50",item.getP50()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DAY_HARM_POWER_P, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + /** + * 功能描述:插入day_harmpower_q表数据 + * @author xy + * @param list data_harmpower_q表数据 + * @param time 时间戳 + * @date 2022/5/12 8:55 + */ + private void insertDayHarmPowerQ(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("q",item.getQ()); + fields.put("q_1",item.getQ1()); + fields.put("q_2",item.getQ2()); + fields.put("q_3",item.getQ3()); + fields.put("q_4",item.getQ4()); + fields.put("q_5",item.getQ5()); + fields.put("q_6",item.getQ6()); + fields.put("q_7",item.getQ7()); + fields.put("q_8",item.getQ8()); + fields.put("q_9",item.getQ9()); + fields.put("q_10",item.getQ10()); + fields.put("q_11",item.getQ11()); + fields.put("q_12",item.getQ12()); + fields.put("q_13",item.getQ13()); + fields.put("q_14",item.getQ14()); + fields.put("q_15",item.getQ15()); + fields.put("q_16",item.getQ16()); + fields.put("q_17",item.getQ17()); + fields.put("q_18",item.getQ18()); + fields.put("q_19",item.getQ19()); + fields.put("q_20",item.getQ20()); + fields.put("q_21",item.getQ21()); + fields.put("q_22",item.getQ22()); + fields.put("q_23",item.getQ23()); + fields.put("q_24",item.getQ24()); + fields.put("q_25",item.getQ25()); + fields.put("q_26",item.getQ26()); + fields.put("q_27",item.getQ27()); + fields.put("q_28",item.getQ28()); + fields.put("q_29",item.getQ29()); + fields.put("q_30",item.getQ30()); + fields.put("q_31",item.getQ31()); + fields.put("q_32",item.getQ32()); + fields.put("q_33",item.getQ33()); + fields.put("q_34",item.getQ34()); + fields.put("q_35",item.getQ35()); + fields.put("q_36",item.getQ36()); + fields.put("q_37",item.getQ37()); + fields.put("q_38",item.getQ38()); + fields.put("q_39",item.getQ39()); + fields.put("q_40",item.getQ40()); + fields.put("q_41",item.getQ41()); + fields.put("q_42",item.getQ42()); + fields.put("q_43",item.getQ43()); + fields.put("q_44",item.getQ44()); + fields.put("q_45",item.getQ45()); + fields.put("q_46",item.getQ46()); + fields.put("q_47",item.getQ47()); + fields.put("q_48",item.getQ48()); + fields.put("q_49",item.getQ49()); + fields.put("q_50",item.getQ50()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DAY_HARM_POWER_Q, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + /** + * 功能描述:插入day_harmpower_q表数据 + * @author xy + * @param list data_harmpower_q表数据 + * @param time 时间戳 + * @date 2022/5/12 8:55 + */ + private void insertDayHarmPowerS(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("s",item.getS()); + fields.put("s_1",item.getS1()); + fields.put("s_2",item.getS2()); + fields.put("s_3",item.getS3()); + fields.put("s_4",item.getS4()); + fields.put("s_5",item.getS5()); + fields.put("s_6",item.getS6()); + fields.put("s_7",item.getS7()); + fields.put("s_8",item.getS8()); + fields.put("s_9",item.getS9()); + fields.put("s_10",item.getS10()); + fields.put("s_11",item.getS11()); + fields.put("s_12",item.getS12()); + fields.put("s_13",item.getS13()); + fields.put("s_14",item.getS14()); + fields.put("s_15",item.getS15()); + fields.put("s_16",item.getS16()); + fields.put("s_17",item.getS17()); + fields.put("s_18",item.getS18()); + fields.put("s_19",item.getS19()); + fields.put("s_20",item.getS20()); + fields.put("s_21",item.getS21()); + fields.put("s_22",item.getS22()); + fields.put("s_23",item.getS23()); + fields.put("s_24",item.getS24()); + fields.put("s_25",item.getS25()); + fields.put("s_26",item.getS26()); + fields.put("s_27",item.getS27()); + fields.put("s_28",item.getS28()); + fields.put("s_29",item.getS29()); + fields.put("s_30",item.getS30()); + fields.put("s_31",item.getS31()); + fields.put("s_32",item.getS32()); + fields.put("s_33",item.getS33()); + fields.put("s_34",item.getS34()); + fields.put("s_35",item.getS35()); + fields.put("s_36",item.getS36()); + fields.put("s_37",item.getS37()); + fields.put("s_38",item.getS38()); + fields.put("s_39",item.getS39()); + fields.put("s_40",item.getS40()); + fields.put("s_41",item.getS41()); + fields.put("s_42",item.getS42()); + fields.put("s_43",item.getS43()); + fields.put("s_44",item.getS44()); + fields.put("s_45",item.getS45()); + fields.put("s_46",item.getS46()); + fields.put("s_47",item.getS47()); + fields.put("s_48",item.getS48()); + fields.put("s_49",item.getS49()); + fields.put("s_50",item.getS50()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DAY_HARM_POWER_S, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + /** + * 功能描述:插入day_harmrate_i表数据 + * @author xy + * @param list data_harmrate_i表数据 + * @param time 时间戳 + * @date 2022/5/12 8:55 + */ + private void insertDayHarmRateI(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("i_1",item.getI1()); + fields.put("i_2",item.getI2()); + fields.put("i_3",item.getI3()); + fields.put("i_4",item.getI4()); + fields.put("i_5",item.getI5()); + fields.put("i_6",item.getI6()); + fields.put("i_7",item.getI7()); + fields.put("i_8",item.getI8()); + fields.put("i_9",item.getI9()); + fields.put("i_10",item.getI10()); + fields.put("i_11",item.getI11()); + fields.put("i_12",item.getI12()); + fields.put("i_13",item.getI13()); + fields.put("i_14",item.getI14()); + fields.put("i_15",item.getI15()); + fields.put("i_16",item.getI16()); + fields.put("i_17",item.getI17()); + fields.put("i_18",item.getI18()); + fields.put("i_19",item.getI19()); + fields.put("i_20",item.getI20()); + fields.put("i_21",item.getI21()); + fields.put("i_22",item.getI22()); + fields.put("i_23",item.getI23()); + fields.put("i_24",item.getI24()); + fields.put("i_25",item.getI25()); + fields.put("i_26",item.getI26()); + fields.put("i_27",item.getI27()); + fields.put("i_28",item.getI28()); + fields.put("i_29",item.getI29()); + fields.put("i_30",item.getI30()); + fields.put("i_31",item.getI31()); + fields.put("i_32",item.getI32()); + fields.put("i_33",item.getI33()); + fields.put("i_34",item.getI34()); + fields.put("i_35",item.getI35()); + fields.put("i_36",item.getI36()); + fields.put("i_37",item.getI37()); + fields.put("i_38",item.getI38()); + fields.put("i_39",item.getI39()); + fields.put("i_40",item.getI40()); + fields.put("i_41",item.getI41()); + fields.put("i_42",item.getI42()); + fields.put("i_43",item.getI43()); + fields.put("i_44",item.getI44()); + fields.put("i_45",item.getI45()); + fields.put("i_46",item.getI46()); + fields.put("i_47",item.getI47()); + fields.put("i_48",item.getI48()); + fields.put("i_49",item.getI49()); + fields.put("i_50",item.getI50()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DAY_HARM_RATE_I, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag (InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + /** + * 功能描述:插入day_harmrate_v表数据 + * @author xy + * @param list data_harmrate_v表数据 + * @param time 时间戳 + * @date 2022/5/12 8:55 + */ + private void insertDayHarmRateV(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("v_1",item.getV1()); + fields.put("v_2",item.getV2()); + fields.put("v_3",item.getV3()); + fields.put("v_4",item.getV4()); + fields.put("v_5",item.getV5()); + fields.put("v_6",item.getV6()); + fields.put("v_7",item.getV7()); + fields.put("v_8",item.getV8()); + fields.put("v_9",item.getV9()); + fields.put("v_10",item.getV10()); + fields.put("v_11",item.getV11()); + fields.put("v_12",item.getV12()); + fields.put("v_13",item.getV13()); + fields.put("v_14",item.getV14()); + fields.put("v_15",item.getV15()); + fields.put("v_16",item.getV16()); + fields.put("v_17",item.getV17()); + fields.put("v_18",item.getV18()); + fields.put("v_19",item.getV19()); + fields.put("v_20",item.getV20()); + fields.put("v_21",item.getV21()); + fields.put("v_22",item.getV22()); + fields.put("v_23",item.getV23()); + fields.put("v_24",item.getV24()); + fields.put("v_25",item.getV25()); + fields.put("v_26",item.getV26()); + fields.put("v_27",item.getV27()); + fields.put("v_28",item.getV28()); + fields.put("v_29",item.getV29()); + fields.put("v_30",item.getV30()); + fields.put("v_31",item.getV31()); + fields.put("v_32",item.getV32()); + fields.put("v_33",item.getV33()); + fields.put("v_34",item.getV34()); + fields.put("v_35",item.getV35()); + fields.put("v_36",item.getV36()); + fields.put("v_37",item.getV37()); + fields.put("v_38",item.getV38()); + fields.put("v_39",item.getV39()); + fields.put("v_40",item.getV40()); + fields.put("v_41",item.getV41()); + fields.put("v_42",item.getV42()); + fields.put("v_43",item.getV43()); + fields.put("v_44",item.getV44()); + fields.put("v_45",item.getV45()); + fields.put("v_46",item.getV46()); + fields.put("v_47",item.getV47()); + fields.put("v_48",item.getV48()); + fields.put("v_49",item.getV49()); + fields.put("v_50",item.getV50()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DAY_HARM_RATE_V, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + /** + * 功能描述:插入day_inharm_i表数据 + * @author xy + * @param list data_inharm_i表数据 + * @param time 时间戳 + * @date 2022/5/12 8:55 + */ + private void insertDayInHarmI(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("i_1",item.getI1()); + fields.put("i_2",item.getI2()); + fields.put("i_3",item.getI3()); + fields.put("i_4",item.getI4()); + fields.put("i_5",item.getI5()); + fields.put("i_6",item.getI6()); + fields.put("i_7",item.getI7()); + fields.put("i_8",item.getI8()); + fields.put("i_9",item.getI9()); + fields.put("i_10",item.getI10()); + fields.put("i_11",item.getI11()); + fields.put("i_12",item.getI12()); + fields.put("i_13",item.getI13()); + fields.put("i_14",item.getI14()); + fields.put("i_15",item.getI15()); + fields.put("i_16",item.getI16()); + fields.put("i_17",item.getI17()); + fields.put("i_18",item.getI18()); + fields.put("i_19",item.getI19()); + fields.put("i_20",item.getI20()); + fields.put("i_21",item.getI21()); + fields.put("i_22",item.getI22()); + fields.put("i_23",item.getI23()); + fields.put("i_24",item.getI24()); + fields.put("i_25",item.getI25()); + fields.put("i_26",item.getI26()); + fields.put("i_27",item.getI27()); + fields.put("i_28",item.getI28()); + fields.put("i_29",item.getI29()); + fields.put("i_30",item.getI30()); + fields.put("i_31",item.getI31()); + fields.put("i_32",item.getI32()); + fields.put("i_33",item.getI33()); + fields.put("i_34",item.getI34()); + fields.put("i_35",item.getI35()); + fields.put("i_36",item.getI36()); + fields.put("i_37",item.getI37()); + fields.put("i_38",item.getI38()); + fields.put("i_39",item.getI39()); + fields.put("i_40",item.getI40()); + fields.put("i_41",item.getI41()); + fields.put("i_42",item.getI42()); + fields.put("i_43",item.getI43()); + fields.put("i_44",item.getI44()); + fields.put("i_45",item.getI45()); + fields.put("i_46",item.getI46()); + fields.put("i_47",item.getI47()); + fields.put("i_48",item.getI48()); + fields.put("i_49",item.getI49()); + fields.put("i_50",item.getI50()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DAY_IN_HARM_I, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + /** + * 功能描述:插入day_inharm_v表数据 + * @author xy + * @param list data_inharm_v表数据 + * @param time 时间戳 + * @date 2022/5/12 8:55 + */ + private void insertDayInHarmV(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("v_1",item.getV1()); + fields.put("v_2",item.getV2()); + fields.put("v_3",item.getV3()); + fields.put("v_4",item.getV4()); + fields.put("v_5",item.getV5()); + fields.put("v_6",item.getV6()); + fields.put("v_7",item.getV7()); + fields.put("v_8",item.getV8()); + fields.put("v_9",item.getV9()); + fields.put("v_10",item.getV10()); + fields.put("v_11",item.getV11()); + fields.put("v_12",item.getV12()); + fields.put("v_13",item.getV13()); + fields.put("v_14",item.getV14()); + fields.put("v_15",item.getV15()); + fields.put("v_16",item.getV16()); + fields.put("v_17",item.getV17()); + fields.put("v_18",item.getV18()); + fields.put("v_19",item.getV19()); + fields.put("v_20",item.getV20()); + fields.put("v_21",item.getV21()); + fields.put("v_22",item.getV22()); + fields.put("v_23",item.getV23()); + fields.put("v_24",item.getV24()); + fields.put("v_25",item.getV25()); + fields.put("v_26",item.getV26()); + fields.put("v_27",item.getV27()); + fields.put("v_28",item.getV28()); + fields.put("v_29",item.getV29()); + fields.put("v_30",item.getV30()); + fields.put("v_31",item.getV31()); + fields.put("v_32",item.getV32()); + fields.put("v_33",item.getV33()); + fields.put("v_34",item.getV34()); + fields.put("v_35",item.getV35()); + fields.put("v_36",item.getV36()); + fields.put("v_37",item.getV37()); + fields.put("v_38",item.getV38()); + fields.put("v_39",item.getV39()); + fields.put("v_40",item.getV40()); + fields.put("v_41",item.getV41()); + fields.put("v_42",item.getV42()); + fields.put("v_43",item.getV43()); + fields.put("v_44",item.getV44()); + fields.put("v_45",item.getV45()); + fields.put("v_46",item.getV46()); + fields.put("v_47",item.getV47()); + fields.put("v_48",item.getV48()); + fields.put("v_49",item.getV49()); + fields.put("v_50",item.getV50()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DAY_IN_HARM_V, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + /** + * 功能描述:插入day_inharmrate_i表数据 + * @author xy + * @param list data_inharmrate_i表数据 + * @param time 时间戳 + * @date 2022/5/12 8:55 + */ + private void insertDayInHarmRateI(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("i_1",item.getI1()); + fields.put("i_2",item.getI2()); + fields.put("i_3",item.getI3()); + fields.put("i_4",item.getI4()); + fields.put("i_5",item.getI5()); + fields.put("i_6",item.getI6()); + fields.put("i_7",item.getI7()); + fields.put("i_8",item.getI8()); + fields.put("i_9",item.getI9()); + fields.put("i_10",item.getI10()); + fields.put("i_11",item.getI11()); + fields.put("i_12",item.getI12()); + fields.put("i_13",item.getI13()); + fields.put("i_14",item.getI14()); + fields.put("i_15",item.getI15()); + fields.put("i_16",item.getI16()); + fields.put("i_17",item.getI17()); + fields.put("i_18",item.getI18()); + fields.put("i_19",item.getI19()); + fields.put("i_20",item.getI20()); + fields.put("i_21",item.getI21()); + fields.put("i_22",item.getI22()); + fields.put("i_23",item.getI23()); + fields.put("i_24",item.getI24()); + fields.put("i_25",item.getI25()); + fields.put("i_26",item.getI26()); + fields.put("i_27",item.getI27()); + fields.put("i_28",item.getI28()); + fields.put("i_29",item.getI29()); + fields.put("i_30",item.getI30()); + fields.put("i_31",item.getI31()); + fields.put("i_32",item.getI32()); + fields.put("i_33",item.getI33()); + fields.put("i_34",item.getI34()); + fields.put("i_35",item.getI35()); + fields.put("i_36",item.getI36()); + fields.put("i_37",item.getI37()); + fields.put("i_38",item.getI38()); + fields.put("i_39",item.getI39()); + fields.put("i_40",item.getI40()); + fields.put("i_41",item.getI41()); + fields.put("i_42",item.getI42()); + fields.put("i_43",item.getI43()); + fields.put("i_44",item.getI44()); + fields.put("i_45",item.getI45()); + fields.put("i_46",item.getI46()); + fields.put("i_47",item.getI47()); + fields.put("i_48",item.getI48()); + fields.put("i_49",item.getI49()); + fields.put("i_50",item.getI50()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DAY_IN_HARM_I, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + /** + * 功能描述:插入day_inharmrate_v表数据 + * @author xy + * @param list data_inharmrate_v表数据 + * @param time 时间戳 + * @date 2022/5/12 8:55 + */ + private void insertDayInHarmRateV(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("v_1",item.getV1()); + fields.put("v_2",item.getV2()); + fields.put("v_3",item.getV3()); + fields.put("v_4",item.getV4()); + fields.put("v_5",item.getV5()); + fields.put("v_6",item.getV6()); + fields.put("v_7",item.getV7()); + fields.put("v_8",item.getV8()); + fields.put("v_9",item.getV9()); + fields.put("v_10",item.getV10()); + fields.put("v_11",item.getV11()); + fields.put("v_12",item.getV12()); + fields.put("v_13",item.getV13()); + fields.put("v_14",item.getV14()); + fields.put("v_15",item.getV15()); + fields.put("v_16",item.getV16()); + fields.put("v_17",item.getV17()); + fields.put("v_18",item.getV18()); + fields.put("v_19",item.getV19()); + fields.put("v_20",item.getV20()); + fields.put("v_21",item.getV21()); + fields.put("v_22",item.getV22()); + fields.put("v_23",item.getV23()); + fields.put("v_24",item.getV24()); + fields.put("v_25",item.getV25()); + fields.put("v_26",item.getV26()); + fields.put("v_27",item.getV27()); + fields.put("v_28",item.getV28()); + fields.put("v_29",item.getV29()); + fields.put("v_30",item.getV30()); + fields.put("v_31",item.getV31()); + fields.put("v_32",item.getV32()); + fields.put("v_33",item.getV33()); + fields.put("v_34",item.getV34()); + fields.put("v_35",item.getV35()); + fields.put("v_36",item.getV36()); + fields.put("v_37",item.getV37()); + fields.put("v_38",item.getV38()); + fields.put("v_39",item.getV39()); + fields.put("v_40",item.getV40()); + fields.put("v_41",item.getV41()); + fields.put("v_42",item.getV42()); + fields.put("v_43",item.getV43()); + fields.put("v_44",item.getV44()); + fields.put("v_45",item.getV45()); + fields.put("v_46",item.getV46()); + fields.put("v_47",item.getV47()); + fields.put("v_48",item.getV48()); + fields.put("v_49",item.getV49()); + fields.put("v_50",item.getV50()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DATA_IN_HARM_V, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + + /** + * 功能描述:插入day_plt表数据 + * @author xy + * @param list data_plt集合 + * @param time 时间戳 + * @date 2022/5/12 8:55 + */ + private void insertDayPlt(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhaseType()); + tags.put("quality_flag",item.getQualityFlag()); + tags.put("value_type",item.getValueType()); + fields.put("plt",item.getPlt()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.DAY_PLT, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhaseType()).tag(InfluxDBPublicParam.QUALITY_FLAG,item.getQualityFlag()).tag(InfluxDBPublicParam.VALUE_TYPE,item.getValueType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + /** + * @Description: 组装 RMpHarmonicVRateReportDPO + * @Param: [dataV, dataHarmRateVPO,PhaseType] dataV:16条datav数据 + * @return: com.njcn.prepare.harmonic.pojo.po.line.RMpHarmonicVRateReportDPO + * @Author: clam + * @Date: 2022/10/25 + */ + private RMpHarmonicVRateReportDPO packageRMpHarmonicVRateReportDPO(List dataV,List dataHarmRateVPOList,String PhaseType){ + + RMpHarmonicVRateReportDPO result = null; + + List a = dataV.stream ( ). + filter (dataVPO -> Objects.equals (dataVPO.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + List b = dataHarmRateVPOList.stream ( ). + filter (temp -> Objects.equals (temp.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + RMpHarmonicVRateReportDPO rMpHarmonicVRateReportDPO = new RMpHarmonicVRateReportDPO(); + if(!CollectionUtils.isEmpty (a)&&!CollectionUtils.isEmpty (b)){ + result = new RMpHarmonicVRateReportDPO(); + result.setPhase (PhaseType); + result.setMeasurementPointId (dataV.get (0).getLineId ()); + result.setDataDate (Date.from (dataV.get (0).getTime ())); + + for (int i = 0; i dataI, String PhaseType){ + + RMpHarmonicIMagReportDPO result = null; + + List a = dataI.stream ( ). + filter (dataIPO -> Objects.equals (dataIPO.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + RMpHarmonicIMagReportDPO rMpHarmonicIMagReportDPO = new RMpHarmonicIMagReportDPO(); + + if(!CollectionUtils.isEmpty (a)){ + result = new RMpHarmonicIMagReportDPO(); + result.setPhase (PhaseType); + result.setMeasurementPointId (dataI.get (0).getLineId ()); + result.setDataDate (Date.from (dataI.get (0).getTime ())); + } + for (int j = 0; j < a.size (); j++) { + DataIPO dataIPO = a.get (j); + if(Objects.equals (dataIPO.getValueType (), "MIN")){ + rMpHarmonicIMagReportDPO = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.dataIPOTORMpHarmonicIMagReportDPOMin (dataIPO); + BeanUtils.copyProperties (rMpHarmonicIMagReportDPO, result,getNullPropertyNames(rMpHarmonicIMagReportDPO)); + } + if(Objects.equals (dataIPO.getValueType (), "MAX")){ + rMpHarmonicIMagReportDPO = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.dataIPOTORMpHarmonicIMagReportDPOMax (dataIPO); + BeanUtils.copyProperties (rMpHarmonicIMagReportDPO, result,getNullPropertyNames(rMpHarmonicIMagReportDPO)); + } + if(Objects.equals (dataIPO.getValueType (), "AVG")){ + rMpHarmonicIMagReportDPO = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.dataIPOTORMpHarmonicIMagReportDPOAvg (dataIPO); + BeanUtils.copyProperties (rMpHarmonicIMagReportDPO, result,getNullPropertyNames(rMpHarmonicIMagReportDPO)); + } + if(Objects.equals (dataIPO.getValueType (), "CP95")){ + rMpHarmonicIMagReportDPO = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.dataIPOTORMpHarmonicIMagReportDPO95 (dataIPO); + BeanUtils.copyProperties (rMpHarmonicIMagReportDPO, result,getNullPropertyNames(rMpHarmonicIMagReportDPO)); + } + } + + + return result ; + } + /** + * @Description: packageRMpFlickerReportDPOPO + * @Param: [dataFlickerPO, PhaseType] + * @return: com.njcn.prepare.harmonic.pojo.po.line.RMpFlickerReportDPO + * @Author: clam + * @Date: 2022/10/26 + */ + private RMpFlickerReportDPO packageRMpFlickerReportDPOPO(List dataFlickerPO, String PhaseType) { + + RMpFlickerReportDPO result = null; + + List a = dataFlickerPO.stream ( ). + filter (dataFlicker -> Objects.equals (dataFlicker.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + RMpFlickerReportDPO covertBean = new RMpFlickerReportDPO(); + + if(!CollectionUtils.isEmpty (a)){ + result = new RMpFlickerReportDPO(); + result.setPhase (PhaseType); + result.setMeasurementPointId (dataFlickerPO.get (0).getLineId ()); + result.setDataDate (Date.from (dataFlickerPO.get (0).getTime ())); + } + + for (int j = 0; j < a.size (); j++) { + DataFlickerPO temp = a.get (j); + if(Objects.equals (temp.getValueType (), "MIN")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.rMpFlickerReportDPOConverterMin (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "MAX")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.rMpFlickerReportDPOConverterMax (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "AVG")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.rMpFlickerReportDPOConverterAvg (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "CP95")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.rMpFlickerReportDPOConverter95 (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + } + + + return result ; + } + /** + * @Description: packageRMpPltReportDPO + * @Param: [dataFlickerPO, PhaseType] + * @return: com.njcn.prepare.harmonic.pojo.po.line.RMpFlickerReportDPO + * @Author: clam + * @Date: 2022/10/26 + */ + private RMpPltReportDPO packageRMpPltReportDPO(List dataPlt, String PhaseType) { + + RMpPltReportDPO result = null; + + List a = dataPlt.stream ( ). + filter (temp -> Objects.equals (temp.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + RMpPltReportDPO covertBean = new RMpPltReportDPO(); + + if(!CollectionUtils.isEmpty (a)){ + result = new RMpPltReportDPO(); + result.setPhase (PhaseType); + result.setMeasurementPointId (dataPlt.get (0).getLineId ()); + result.setDataDate (Date.from (dataPlt.get (0).getTime ())); + } + + for (int j = 0; j < a.size (); j++) { + DataPltPO temp = a.get (j); + if(Objects.equals (temp.getValueType (), "MIN")){ + result.setLongTimeFlashingMin (temp.getPlt ()); + } + if(Objects.equals (temp.getValueType (), "MAX")){ + result.setLongTimeFlashingMax (temp.getPlt ()); + + } + if(Objects.equals (temp.getValueType (), "AVG")){ + result.setLongTimeFlashingAvg (temp.getPlt ()); + + } + if(Objects.equals (temp.getValueType (), "CP95")){ + result.setLongTimeFlashing95 (temp.getPlt ()); + + } + } + + + return result ; + } + /** + * @Description: packageRMpHarmonicIRateReportDPO + * @Param: [dataInHarmRateIPO, PhaseType] + * @return: com.njcn.prepare.harmonic.pojo.po.line.RMpHarmonicIRateReportDPO + * @Author: clam + * @Date: 2022/10/26 + */ + private RMpHarmonicIRateReportDPO packageRMpHarmonicIRateReportDPO(List dataHarmRateIPOList, String PhaseType) { + + RMpHarmonicIRateReportDPO result =null; + + List a = dataHarmRateIPOList.stream ( ). + filter (temp -> Objects.equals (temp.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + RMpHarmonicIRateReportDPO covertBean = new RMpHarmonicIRateReportDPO(); + + if(!CollectionUtils.isEmpty (a)){ + result = new RMpHarmonicIRateReportDPO(); + result.setPhase (PhaseType); + result.setMeasurementPointId (dataHarmRateIPOList.get (0).getLineId ()); + result.setDataDate (Date.from (dataHarmRateIPOList.get (0).getTime ())); + } + + for (int j = 0; j < a.size (); j++) { + DataHarmRateIPO temp = a.get (j); + if(Objects.equals (temp.getValueType (), "MIN")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpHarmonicIRateReportDPOConverterMin (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "MAX")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpHarmonicIRateReportDPOConverterMax (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "AVG")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpHarmonicIRateReportDPOConverterAvg (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "CP95")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpHarmonicIRateReportDPOConverter95 (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + } + + + return result ; + } + /** + * @Description: packageRMpInharmonicIRateReportDPO + * @Param: [dataInHarmRateIPO, PhaseType] + * @return: com.njcn.prepare.harmonic.pojo.po.line.RMpInharmonicIRateReportDPO + * @Author: clam + * @Date: 2022/10/26 + */ + private RMpInharmonicIRateReportDPO packageRMpInharmonicIRateReportDPO(List dataInHarmRateIPO, String PhaseType) { + RMpInharmonicIRateReportDPO result = null; + + List a = dataInHarmRateIPO.stream ( ). + filter (temp -> Objects.equals (temp.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + RMpInharmonicIRateReportDPO covertBean = new RMpInharmonicIRateReportDPO(); + + if(!CollectionUtils.isEmpty (a)){ + result = new RMpInharmonicIRateReportDPO(); + result.setPhase (PhaseType); + result.setMeasurementPointId (dataInHarmRateIPO.get (0).getLineId ()); + result.setDataDate (Date.from (dataInHarmRateIPO.get (0).getTime ())); + } + + for (int j = 0; j < a.size (); j++) { + DataInHarmRateIPO temp = a.get (j); + if(Objects.equals (temp.getValueType (), "MIN")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpInharmonicIRateReportDPOConverterMin (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "MAX")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpInharmonicIRateReportDPOConverterMax (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "AVG")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpInharmonicIRateReportDPOConverterAvg (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "CP95")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpInharmonicIRateReportDPOConverter95 (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + } + + + return result ; + + } + /** + * @Description: packageRMpInharmonicIMagReportDPO + * @Param: [dataInHarmIPO, PhaseType] + * @return: com.njcn.prepare.harmonic.pojo.po.line.RMpInharmonicIMagReportDPO + * @Author: clam + * @Date: 2022/10/27 + */ + private RMpInharmonicIMagReportDPO packageRMpInharmonicIMagReportDPO(List dataInHarmIPO, String PhaseType) { + + RMpInharmonicIMagReportDPO result = null; + + List a = dataInHarmIPO.stream ( ). + filter (temp -> Objects.equals (temp.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + RMpInharmonicIMagReportDPO covertBean = new RMpInharmonicIMagReportDPO(); + + if(!CollectionUtils.isEmpty (a)){ + result = new RMpInharmonicIMagReportDPO(); + result.setPhase (PhaseType); + result.setMeasurementPointId (dataInHarmIPO.get (0).getLineId ()); + result.setDataDate (Date.from (dataInHarmIPO.get (0).getTime ())); + } + + for (int j = 0; j < a.size (); j++) { + DataInHarmIPO temp = a.get (j); + if(Objects.equals (temp.getValueType (), "MIN")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpInharmonicIMagReportDPOConverterMin (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "MAX")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpInharmonicIMagReportDPOConverterMax (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "AVG")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpInharmonicIMagReportDPOConverterAvg (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "CP95")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpInharmonicIMagReportDPOConverter95 (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + } + + + return result ; + + } + + /** + * @Description: packageRMpInharmonicVRateReportDPO + * @Param: [dataInHarmRateVPO, PhaseType] + * @return: com.njcn.prepare.harmonic.pojo.po.line.RMpInharmonicVRateReportDPO + * @Author: clam + * @Date: 2022/10/27 + */ + private RMpInharmonicVRateReportDPO packageRMpInharmonicVRateReportDPO(List dataInHarmRateVPO, String PhaseType) { + + RMpInharmonicVRateReportDPO result = null ; + + List a = dataInHarmRateVPO.stream ( ). + filter (temp -> Objects.equals (temp.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + RMpInharmonicVRateReportDPO covertBean = new RMpInharmonicVRateReportDPO(); + + if(!CollectionUtils.isEmpty (a)){ + result = new RMpInharmonicVRateReportDPO(); + result.setPhase (PhaseType); + result.setMeasurementPointId (dataInHarmRateVPO.get (0).getLineId ()); + result.setDataDate (Date.from (dataInHarmRateVPO.get (0).getTime ())); + } + + for (int j = 0; j < a.size (); j++) { + DataInHarmRateVPO temp = a.get (j); + if(Objects.equals (temp.getValueType (), "MIN")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpInharmonicVRateReportDPOConverterMin (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "MAX")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpInharmonicVRateReportDPOConverterMax (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "AVG")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpInharmonicVRateReportDPOConverterAvg (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "CP95")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpInharmonicVRateReportDPOConverter95 (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + } + + + return result ; + + } + /** + * @Description: packageRMpHarmonicPReportDPO + * @Param: [dataHarmPowerPPO, dataHarmPowerQPO, PhaseType] + * @return: com.njcn.prepare.harmonic.pojo.po.line.RMpHarmonicPReportDPO + * @Author: clam + * @Date: 2022/10/28 + */ + private RMpHarmonicPReportDPO packageRMpHarmonicPReportDPO(List dataHarmPowerPPO, List dataHarmPowerQPO, String PhaseType) { + + RMpHarmonicPReportDPO result = null ; + + List a = dataHarmPowerPPO.stream ( ). + filter (temp -> Objects.equals (temp.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + + List b = dataHarmPowerQPO.stream ( ). + filter (temp -> Objects.equals (temp.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + RMpInharmonicVRateReportDPO covertBean = new RMpInharmonicVRateReportDPO(); + + if(!CollectionUtils.isEmpty (a)&&!CollectionUtils.isEmpty (b)){ + result = new RMpHarmonicPReportDPO(); + result.setPhase (PhaseType); + result.setMeasurementPointId (dataHarmPowerPPO.get (0).getLineId ()); + result.setDataDate (Date.from (dataHarmPowerPPO.get (0).getTime ())); + } + + for (int j = 0; j < b.size (); j++) { + DataHarmPowerQPO temp = b.get (j); + if(Objects.equals (temp.getValueType (), "MIN")){ + result.setFundamentalRateofworkMin (temp.getQ1 ()); + } + if(Objects.equals (temp.getValueType (), "MAX")){ + result.setFundamentalRateofworkMax (temp.getQ1 ()); + + } + if(Objects.equals (temp.getValueType (), "AVG")){ + result.setFundamentalRateofworkAvg (temp.getQ1 ()); + + } + if(Objects.equals (temp.getValueType (), "CP95")){ + result.setFundamentalRateofwork95 (temp.getQ1 ()); + + } + } + + + for (int j = 0; j < a.size (); j++) { + DataHarmPowerPPO temp = a.get (j); + if(Objects.equals (temp.getValueType (), "MIN")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpHarmonicPReportDPOConverterMin (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "MAX")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpHarmonicPReportDPOConverterMax (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "AVG")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpHarmonicPReportDPOConverterAvg (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + if(Objects.equals (temp.getValueType (), "CP95")){ + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpHarmonicPReportDPOConverter95 (temp); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + } + } + + + return result ; + } + + + + private RMpMeasurePhaseReportDPO packageRMpMeasurePhaseReportDPO(List dataV, List dataI, List dataHarmPowerPPO, List dataHarmPowers, List dataHarmPowerQPO, String PhaseType) { + RMpMeasurePhaseReportDPO result = null ; + + List a = dataV.stream ( ). + filter (temp -> Objects.equals (temp.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + + List b = dataI.stream ( ). + filter (temp -> Objects.equals (temp.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + + List c = dataHarmPowerPPO.stream ( ). + filter (temp -> Objects.equals (temp.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + + List d = dataHarmPowers.stream ( ). + filter (temp -> Objects.equals (temp.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + + List e = dataHarmPowerQPO.stream ( ). + filter (temp -> Objects.equals (temp.getPhaseType ( ), PhaseType)). + collect (Collectors.toList ( )); + RMpMeasurePhaseReportDPO covertBean = new RMpMeasurePhaseReportDPO(); + + if(!CollectionUtils.isEmpty (a)&&!CollectionUtils.isEmpty (b)){ + result = new RMpMeasurePhaseReportDPO(); + result.setPhase (PhaseType); + result.setMeasurementPointId (dataHarmPowerPPO.get (0).getLineId ()); + result.setDataDate (Date.from (dataHarmPowerPPO.get (0).getTime ())); + } + //todo 非空判断 + /*max*/ + DataVPO max = a.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "Max")). + collect (Collectors.toList ( )).get (0); + DataIPO max1 = b.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "Max")). + collect (Collectors.toList ( )).get (0); + DataHarmPowerPPO max2 = c.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "Max")). + collect (Collectors.toList ( )).get (0); + DataHarmPowerSPO max3 = d.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "Max")). + collect (Collectors.toList ( )).get (0); + DataHarmPowerQPO max4 = e.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "Max")). + collect (Collectors.toList ( )).get (0); + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpMeasurePhaseReportDPOConverterMax (max,max1,max2,max3,max4); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + + /*min*/ + DataVPO min = a.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "Min")). + collect (Collectors.toList ( )).get (0); + DataIPO min1 = b.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "Min")). + collect (Collectors.toList ( )).get (0); + DataHarmPowerPPO min2 = c.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "Min")). + collect (Collectors.toList ( )).get (0); + DataHarmPowerSPO min3 = d.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "Min")). + collect (Collectors.toList ( )).get (0); + DataHarmPowerQPO min4 = e.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "Min")). + collect (Collectors.toList ( )).get (0); + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpMeasurePhaseReportDPOConverterMin (min,min1,min2,min3,min4); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + + /*avg*/ + DataVPO avg = a.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "Avg")). + collect (Collectors.toList ( )).get (0); + DataIPO avg1 = b.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "Avg")). + collect (Collectors.toList ( )).get (0); + DataHarmPowerPPO avg2 = c.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "Avg")). + collect (Collectors.toList ( )).get (0); + DataHarmPowerSPO avg3 = d.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "Avg")). + collect (Collectors.toList ( )).get (0); + DataHarmPowerQPO avg4 = e.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "Avg")). + collect (Collectors.toList ( )).get (0); + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpMeasurePhaseReportDPOConverterAVg (avg,avg1,avg2,avg3,avg4); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + + /*cp95*/ + DataVPO cp95 = a.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "CP95")). + collect (Collectors.toList ( )).get (0); + DataIPO cp951 = b.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "CP95")). + collect (Collectors.toList ( )).get (0); + DataHarmPowerPPO cp952 = c.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "CP95")). + collect (Collectors.toList ( )).get (0); + DataHarmPowerSPO cp953 = d.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "CP95")). + collect (Collectors.toList ( )).get (0); + DataHarmPowerQPO cp954 = e.stream ( ).filter (temp -> Objects.equals (temp.getValueType ( ), "CP95")). + collect (Collectors.toList ( )).get (0); + covertBean = InfluxdbPOConverter.INFLUXDB_PO_CONVERTER.RMpMeasurePhaseReportDPOConverterCp95 (cp95,cp951,cp952,cp953,cp954); + BeanUtils.copyProperties (covertBean, result,getNullPropertyNames(covertBean)); + + return result; + + } + + + + /** + * 获取所有字段为null的属性名 + * @param source + * @return + */ + public String[] getNullPropertyNames (Object source) { + final BeanWrapper src = new BeanWrapperImpl (source); + java.beans.PropertyDescriptor[] pds = src.getPropertyDescriptors ( ); + + Set emptyNames = new HashSet ( ); + for (java.beans.PropertyDescriptor pd : pds) { + Object srcValue = src.getPropertyValue (pd.getName ( )); + if (srcValue == null) emptyNames.add (pd.getName ( )); + } + String[] result = new String[emptyNames.size ( )]; + return emptyNames.toArray (result); + + } + + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/IntegrityServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/IntegrityServiceImpl.java new file mode 100644 index 000000000..a05f2949f --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/IntegrityServiceImpl.java @@ -0,0 +1,86 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.date.DateUtil; +import com.njcn.device.pq.api.LineFeignClient; +import com.njcn.device.pq.pojo.po.LineDetail; +import com.njcn.device.pq.pojo.po.Overlimit; +import com.njcn.influxdb.utils.InfluxDbUtils; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import com.njcn.prepare.harmonic.pojo.po.DataVPO; +import com.njcn.prepare.harmonic.service.line.IntegrityService; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.influxdb.InfluxDB; +import org.influxdb.dto.BatchPoints; +import org.influxdb.dto.Point; +import org.influxdb.dto.QueryResult; +import org.influxdb.impl.InfluxDBResultMapper; +import org.springframework.stereotype.Service; + +import java.util.*; +import java.util.concurrent.TimeUnit; +import java.util.stream.Collectors; + +import static com.njcn.influxdb.param.InfluxDBPublicParam.DAY_MINUTE; + +/** + * 数据完整性统计 + * + * @author xiaoyao + * @version 1.0.0 + * @createTime 2022/10/24 20:07 + */ + +@Slf4j +@Service +@AllArgsConstructor +public class IntegrityServiceImpl implements IntegrityService { + + private final InfluxDbUtils influxDbUtils; + + private final LineFeignClient lineFeignClient; + + @Override + public String computeDataIntegrity(LineParam lineParam) { + List lineDetailList; + if (CollUtil.isEmpty(lineParam.getLineIds())){ + List overLimitList = getAllLinesLimitData(); + List lineList = overLimitList.stream().map(Overlimit::getId).collect(Collectors.toList()); + lineDetailList = lineFeignClient.getLineDetail(lineList).getData(); + }else { + lineDetailList = lineFeignClient.getLineDetail(lineParam.getLineIds()).getData(); + } + if (CollUtil.isEmpty(lineDetailList)){ + return "未查询到监测点详情!"; + } + Date dateOut = DateUtil.parse(lineParam.getDataDate()); + List records = new ArrayList<>(); + for (LineDetail lineDetail :lineDetailList){ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",lineDetail.getId()); + fields.put("due",DAY_MINUTE/lineDetail.getTimeInterval()); + int dataCount = getDataCount(lineDetail.getId(),lineParam.getDataDate()); + fields.put("real",dataCount); + Point point = influxDbUtils.pointBuilder("pqs_integrity", dateOut.getTime(), TimeUnit.MILLISECONDS,tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName()).tag("line_id", lineDetail.getId()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + } + //InfluxDb入表pqs_integrity + influxDbUtils.batchInsert(influxDbUtils.getDbName(),"", InfluxDB.ConsistencyLevel.ALL, records); + return "成功!"; + } + + private int getDataCount(String lineId,String date){ + QueryResult sqlResult = influxDbUtils.query("SELECT * FROM data_v WHERE time >= '" + date + " 00:00:00' and time <= '" + date + " 23:59:59' and line_id = '" + lineId + "' and phasic_type = 'T' tz('Asia/Shanghai')"); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); + List list = resultMapper.toPOJO(sqlResult, DataVPO.class); + return list.size(); + } + + private List getAllLinesLimitData() { + return lineFeignClient.getAllLineOverLimit("harmonic-boot","").getData(); + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/LimitRateService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/LimitRateService.java new file mode 100644 index 000000000..33a05123c --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/LimitRateService.java @@ -0,0 +1,1307 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import com.github.jeffreyning.mybatisplus.service.MppServiceImpl; +import com.njcn.common.utils.NjcnBeanUtil; +import com.njcn.device.pq.api.LineFeignClient; +import com.njcn.device.pq.pojo.po.Overlimit; +import com.njcn.harmonic.pojo.po.LimitRate; +import com.njcn.harmonic.pojo.po.LimitRatePO; +import com.njcn.influxdb.param.InfluxDBPublicParam; +import com.njcn.influxdb.utils.InfluxDbUtils; +import com.njcn.prepare.harmonic.mapper.line.LimitRatePOMapper; +import com.njcn.prepare.harmonic.pojo.po.*; +import lombok.AllArgsConstructor; +import lombok.SneakyThrows; +import lombok.extern.slf4j.Slf4j; +import org.influxdb.InfluxDB; +import org.influxdb.dto.BatchPoints; +import org.influxdb.dto.Point; +import org.influxdb.dto.QueryResult; +import org.influxdb.impl.InfluxDBResultMapper; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Component; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; + +import java.text.SimpleDateFormat; +import java.time.Instant; +import java.util.*; +import java.util.concurrent.TimeUnit; +import java.util.stream.Collectors; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/18 10:00【需求编号】 + * + * @author clam + * @version V1.0.0 + */ + +@Slf4j +@Component +@AllArgsConstructor +public class LimitRateService extends MppServiceImpl { + + + private final InfluxDbUtils influxDbUtils; + + private final LineFeignClient lineFeignClient; + + + private final LimitRatePOMapper limitRatePOMapper; + + + + /** + * @Description: 处理 limitrate批处理逻辑 + * @Param: [lineList:监测点index集合, startTime统计开始时间, endTime统计结束时间] + * @return: void + * @Author: clam + * @Date: 2022/10/18 + */ + @Transactional( + rollbackFor = {Exception.class} + ) + @SneakyThrows + public List limitRateJobHandler(List lineList, String startTime, String endTime) { + List limitRates = new ArrayList<> (); + List limitRateList = new ArrayList<> (); + + Instant instant = new SimpleDateFormat ("yyyy-MM-dd").parse (startTime).toInstant ( ); + Long time= instant.toEpochMilli(); + + for (int i = 0; i map1 = getAllTime(lineIndex,startTime,endTime); + List map2 = getFlickerAllTime(lineIndex,startTime,endTime); + List map3 = getDataHarmRateV(lineIndex,startTime,endTime); + List map4 = getDataI(lineIndex,startTime,endTime); + List map5 = getDataInHarmV(lineIndex,startTime,endTime); + List map6 = getDataV(lineIndex,startTime,endTime); + List map7 = getDataVUnbalance(lineIndex,startTime,endTime); + List map8 = getDataINeg(lineIndex,startTime,endTime); + List map9 = getDataVFreq(lineIndex,startTime,endTime); + List map10 = getDataVDev(lineIndex,startTime,endTime); + List map11 = getDataPlt(lineIndex,startTime,endTime); + + List result = getData(overlimit,map1,map2,map3,map4,map5,map6,map7,map8,map9,map10,map11); + limitRateList.addAll (result); + List collect = result.stream ( ).map (t -> { + LimitRatePO limitRatePO = new LimitRatePO ( ); + NjcnBeanUtil.copyPropertiesIgnoreCase (t,limitRatePO); + + limitRatePO.setTime (instant); + + return limitRatePO; + }).collect (Collectors.toList ( )); + limitRates.addAll (collect); + } + if (!CollectionUtils.isEmpty(limitRateList)){ + /*插入influxdb*/ + insert(limitRateList,time); + /*插入mysql*/ + this.saveOrUpdateBatchByMultiId (limitRates,50); + } + + return limitRates; + + } + + + + /** + * 功能描述:获取influxDB -> data_v -> 总计算次数(用data_v中phasic_type=A,quality_flag=0来参与统计) + * + * @param lineIndex 监测点index + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return + * @date 2022/5/23 10:51 + */ + public List getAllTime(String lineIndex, String startTime, String endTime) { + StringBuilder stringBuilder = new StringBuilder ( ); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and ").append (InfluxDBPublicParam.TIME + " >= '").append (startTime). + append ("' and ").append (InfluxDBPublicParam.TIME). + append (" <= '").append (endTime). + append ("' and phasic_type = 'A' and value_type = 'AVG' and quality_flag = '0' "). + append (InfluxDBPublicParam.TIME_ZONE); + String sql = "SELECT count(freq) AS all_time FROM " + InfluxDBPublicParam.DATA_V + " where " + stringBuilder; + QueryResult sqlResult = influxDbUtils.query (sql); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper ( ); + List list = resultMapper.toPOJO (sqlResult, DataVPO.class); + + return list; + } + + + /** + * @Description: getFlickerAllTime + * @Param: [lineIndex, startTime, endTime] + * @return: java.util.Map> + * @Author: clam + * @Date: 2022/10/18 + */ + public List getFlickerAllTime(String lineIndex, String startTime, String endTime) { + StringBuilder stringBuilder = new StringBuilder ( ); + + stringBuilder.append ("line_id='").append (lineIndex).append ("' and ").append (InfluxDBPublicParam.TIME + " >= '"). + append (startTime).append ("' and ").append (InfluxDBPublicParam.TIME). + append (" <= '").append (endTime). + append ("' and phasic_type = 'A' and quality_flag = '0' "). + append (InfluxDBPublicParam.TIME_ZONE); + String sql = "SELECT count(plt) AS flicker_all_time FROM " + InfluxDBPublicParam.DATA_PLT + " where " + stringBuilder; + QueryResult sqlResult = influxDbUtils.query (sql); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper ( ); + List list = resultMapper.toPOJO (sqlResult, DataPltPO.class); + + return list; + } + + /** + * 功能描述:获取influxDB -> data_harmrate_v -> 2-25次谐波电压含有率 -> 日95%概率值 + * + * @param lineIndex 监测点index + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return + * @date 2022/5/23 10:51 + */ + public List getDataHarmRateV(String lineIndex, String startTime, String endTime) { + StringBuilder stringBuilder = new StringBuilder ( ); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and ").append (InfluxDBPublicParam.TIME + " >= '").append (startTime).append ("' and "). + append (InfluxDBPublicParam.TIME).append (" <= '"). + append (endTime). + append ("' and (phasic_type = 'A' or phasic_type = 'B' or phasic_type = 'C') and value_type = 'CP95' and quality_flag = '0' "). + append (InfluxDBPublicParam.TIME_ZONE); + String sql = "SELECT * FROM " + InfluxDBPublicParam.DATA_HARM_RATE_V + " WHERE " + stringBuilder; + QueryResult sqlResult = influxDbUtils.query (sql); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper ( ); + List list = resultMapper.toPOJO (sqlResult, DataHarmRateVPO.class); + + return list; + } + + /** + * 功能描述:获取influxDB -> data_i -> 2-25次谐波电流 -> 日95%概率值 + * + * @param lineIndex 监测点Index + * @param startTime 开始时间 + * @param endTime 结束时间 + * @Date: 2022/10/18 + */ + public List getDataI(String lineIndex, String startTime, String endTime) { + StringBuilder stringBuilder = new StringBuilder ( ); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and ").append (InfluxDBPublicParam.TIME + " >= '").append (startTime). + append ("' and ").append (InfluxDBPublicParam.TIME).append (" <= '"). + append (endTime). + append ("' and (phasic_type = 'A' or phasic_type = 'B' or phasic_type = 'C') and value_type = 'CP95' and quality_flag = '0' "). + append (InfluxDBPublicParam.TIME_ZONE); + String sql = "SELECT * FROM " + InfluxDBPublicParam.DATA_I + " WHERE " + stringBuilder; + QueryResult sqlResult = influxDbUtils.query (sql); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper ( ); + List list = resultMapper.toPOJO (sqlResult, DataIPO.class); + + return list; + } + + /** + * 功能描述:获取influxDB -> data_inharm_v -> 0.5-15.5次间谐波电压含有率 -> 日95%概率值 + * + * @param lineIndex 监测点index + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return + * @date 2022/5/23 10:51 + */ + public List getDataInHarmV(String lineIndex, String startTime, String endTime) { + StringBuilder stringBuilder = new StringBuilder ( ); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and ").append (InfluxDBPublicParam.TIME + " >= '").append (startTime). + append ("' and ").append (InfluxDBPublicParam.TIME).append (" <= '").append (endTime). + append ("' and (phasic_type = 'A' or phasic_type = 'B' or phasic_type = 'C') and value_type = 'CP95' and quality_flag = '0' "). + append (InfluxDBPublicParam.TIME_ZONE); + String sql = "SELECT * FROM " + InfluxDBPublicParam.DATA_IN_HARM_V + " WHERE " + stringBuilder; + QueryResult sqlResult = influxDbUtils.query (sql); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper ( ); + List list = resultMapper.toPOJO (sqlResult, DataInHarmVPO.class); + + return list; + } + + /** + * 功能描述:获取influxDB -> data_v -> 电压总谐波畸变率 -> 日95%概率值 + * + * @param lineIndex 监测点Index + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return + * @date 2022/5/23 10:51 + */ + public List getDataV(String lineIndex, String startTime, String endTime) { + StringBuilder stringBuilder = new StringBuilder ( ); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and ").append (InfluxDBPublicParam.TIME + " >= '").append (startTime). + append ("' and ").append (InfluxDBPublicParam.TIME).append (" <= '").append (endTime). + append ("' and (phasic_type = 'A' or phasic_type = 'B' or phasic_type = 'C') and value_type = 'CP95' and quality_flag = '0' "). + append (InfluxDBPublicParam.TIME_ZONE); + String sql = "SELECT * FROM " + InfluxDBPublicParam.DATA_V + " WHERE " + stringBuilder; + QueryResult sqlResult = influxDbUtils.query (sql); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper ( ); + List list = resultMapper.toPOJO (sqlResult, DataVPO.class); + + return list; + } + + /** + * 功能描述:获取influxDB -> data_v -> 负序电压不平衡度 -> 最大值 && 日95%概率值 + * + * @param lineIndex 监测点lineIndex + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return + * @date 2022/5/23 10:51 + */ + public List getDataVUnbalance(String lineIndex, String startTime, String endTime) { + + StringBuilder stringBuilder = new StringBuilder ( ); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and ").append (InfluxDBPublicParam.TIME + " >= '").append (startTime). + append ("' and ").append (InfluxDBPublicParam.TIME).append (" <= '").append (endTime). + append ("' and phasic_type = 'T' and (value_type = 'CP95' or value_type = 'MAX') and quality_flag = '0' "). + append (InfluxDBPublicParam.TIME_ZONE); + String sql = "SELECT * FROM " + InfluxDBPublicParam.DATA_V + " WHERE " + stringBuilder; + QueryResult sqlResult = influxDbUtils.query (sql); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper ( ); + List list = resultMapper.toPOJO (sqlResult, DataVPO.class); + + return list; + } + + /** + * 功能描述:获取influxDB -> data_i -> 负序电流 -> 最大值 && 日95%概率值 + * + * @param lineIndex 监测点lineIndex + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return + * @date 2022/5/23 10:51 + */ + public List getDataINeg(String lineIndex, String startTime, String endTime) { + Map> map = new HashMap<> ( ); + StringBuilder stringBuilder = new StringBuilder ( ); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and ").append (InfluxDBPublicParam.TIME + " >= '"). + append (startTime).append ("' and ").append (InfluxDBPublicParam.TIME).append (" <= '").append (endTime). + append ("' and phasic_type = 'T' and (value_type = 'CP95' or value_type = 'MAX') and quality_flag = '0' "). + append (InfluxDBPublicParam.TIME_ZONE); + String sql = "SELECT * FROM " + InfluxDBPublicParam.DATA_I + " WHERE " + stringBuilder; + QueryResult sqlResult = influxDbUtils.query (sql); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper ( ); + List list = resultMapper.toPOJO (sqlResult, DataIPO.class); + + return list; + } + + /** + * 功能描述:获取influxDB -> data_v -> 频率偏差 -> 最大值 && 最小值 + * + * @param lineIndex 监测点lineIndex + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return + * @date 2022/5/23 10:51 + */ + public List getDataVFreq(String lineIndex, String startTime, String endTime) { + StringBuilder stringBuilder = new StringBuilder ( ); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and ").append (InfluxDBPublicParam.TIME + " >= '").append (startTime).append ("' and "). + append (InfluxDBPublicParam.TIME).append (" <= '"). + append (endTime). + append ("' and phasic_type = 'T' and (value_type = 'MIN' or value_type = 'MAX') and quality_flag = '0' "). + append (InfluxDBPublicParam.TIME_ZONE); + String sql = "SELECT * FROM " + InfluxDBPublicParam.DATA_V + " WHERE " + stringBuilder; + QueryResult sqlResult = influxDbUtils.query (sql); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper ( ); + List list = resultMapper.toPOJO (sqlResult, DataVPO.class); + + return list; + } + + /** + * 功能描述:获取influxDB -> data_v -> 电压偏差 -> 最大值 && 最小值 + * + * @param lineIndex 监测点lineIndex + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return + * @date 2022/5/23 10:51 + */ + public List getDataVDev(String lineIndex, String startTime, String endTime) { + StringBuilder stringBuilder = new StringBuilder ( ); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and ").append (InfluxDBPublicParam.TIME + " >= '"). + append (startTime).append ("' and ").append (InfluxDBPublicParam.TIME).append (" <= '").append (endTime). + append ("' and (phasic_type = 'A' or phasic_type = 'B' or phasic_type = 'C') and (value_type = 'MIN' or value_type = 'MAX') and quality_flag = '0' "). + append (InfluxDBPublicParam.TIME_ZONE); + String sql = "SELECT * FROM " + InfluxDBPublicParam.DATA_V + " WHERE " + stringBuilder; + QueryResult sqlResult = influxDbUtils.query (sql); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper ( ); + List list = resultMapper.toPOJO (sqlResult, DataVPO.class); + + return list; + } + + /** + * 功能描述:获取influxDB -> data_plt -> 长时间闪变 -> 最大值 + * + * @param lineIndex 监测点lineIndex + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return + * @date 2022/5/23 10:51 + */ + public List getDataPlt(String lineIndex, String startTime, String endTime) { + StringBuilder stringBuilder = new StringBuilder ( ); + stringBuilder.append ("line_id='").append (lineIndex).append ("' and ").append (InfluxDBPublicParam.TIME + " >= '").append (startTime). + append ("' and ").append (InfluxDBPublicParam.TIME).append (" <= '").append (endTime). + append ("' and (phasic_type = 'A' or phasic_type = 'B' or phasic_type = 'C') and quality_flag = '0' "). + append (InfluxDBPublicParam.TIME_ZONE); + String sql = "SELECT * FROM " + InfluxDBPublicParam.DATA_PLT + " WHERE " + stringBuilder; + QueryResult sqlResult = influxDbUtils.query (sql); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper ( ); + List list = resultMapper.toPOJO (sqlResult, DataPltPO.class); + + return list; + } + + /** + * @Description: getData + * @Param: [overlimit, allTimeList, flickerAllTimeList, dataHarmRateVPOList, dataIPOList, dataInHarmVPOList, dataVPOList, dataVPOUnbalanceList, dataIPONegList, dataVPOFreqList, dataVPODevList, dataPltPOList] + * @return: java.util.List + * @Author: clam + * @Date: 2022/10/18 + */ + private List getData(Overlimit overlimit, List allTimeList, + List flickerAllTimeList, List dataHarmRateVPOList, + List dataIPOList, List dataInHarmVPOList, + List dataVPOList, List dataVPOUnbalanceList, List dataIPONegList, + List dataVPOFreqList, List dataVPODevList, List dataPltPOList) { + List result = new ArrayList<> ( ); + + Map> harmRateVByPhaseType = new HashMap<> ( ); + Map> dataIByPhaseType = new HashMap<> ( ); + Map> dataInHarmVPhaseType = new HashMap<> ( ); + Map> dataVPhaseType = new HashMap<> ( ); + Map> dataVDevPhaseType = new HashMap<> ( ); + Map> dataPltPhaseType = new HashMap<> ( ); + Map> harmRateVByTime = new HashMap<> ( ); + Map> dataIByTime = new HashMap<> ( ); + Map> dataInHarmVByTime = new HashMap<> ( ); + Map> dataVByTime = new HashMap<> ( ); + Map> dataVUnbalanceByTime = new HashMap<> ( ); + Map> dataINegByTime = new HashMap<> ( ); + Map> dataVFreqByTime = new HashMap<> ( ); + Map> dataVDevByTime = new HashMap<> ( ); + Map> dataPltByTime = new HashMap<> ( ); + Integer allTime = 0; + Integer flickerAllTime = 0; + if (!CollectionUtils.isEmpty (allTimeList)) { + allTime = allTimeList.get (0).getAllTime ( ); + } + if (!CollectionUtils.isEmpty (flickerAllTimeList)) { + flickerAllTime = flickerAllTimeList.get (0).getFlickerAllTime (); } + + + + if (!CollectionUtils.isEmpty (dataHarmRateVPOList)) { + harmRateVByPhaseType = dataHarmRateVPOList.stream ( ).collect (Collectors.groupingBy (DataHarmRateVPO::getPhaseType)); + harmRateVByTime = dataHarmRateVPOList.stream ( ).collect (Collectors.groupingBy (DataHarmRateVPO::getTime)); + } + if (!CollectionUtils.isEmpty (dataIPOList)) { + dataIByPhaseType = dataIPOList.stream ( ).collect (Collectors.groupingBy (DataIPO::getPhaseType)); + dataIByTime = dataIPOList.stream ( ).collect (Collectors.groupingBy (DataIPO::getTime)); + } + if (!CollectionUtils.isEmpty (dataInHarmVPOList)) { + dataInHarmVPhaseType = dataInHarmVPOList.stream ( ).collect (Collectors.groupingBy (DataInHarmVPO::getPhaseType)); + dataInHarmVByTime = dataInHarmVPOList.stream ( ).collect (Collectors.groupingBy (DataInHarmVPO::getTime)); + } + if (!CollectionUtils.isEmpty (dataVPOList)) { + dataVPhaseType = dataVPOList.stream ( ).collect (Collectors.groupingBy (DataVPO::getPhaseType)); + dataVByTime = dataVPOList.stream ( ).collect (Collectors.groupingBy (DataVPO::getTime)); + } + if (!CollectionUtils.isEmpty (dataVPOUnbalanceList)) { + dataVUnbalanceByTime = dataVPOUnbalanceList.stream ( ).collect (Collectors.groupingBy (DataVPO::getTime)); + } + if (!CollectionUtils.isEmpty (dataIPONegList)) { + dataINegByTime = dataIPONegList.stream ( ).collect (Collectors.groupingBy (DataIPO::getTime)); + } + if (!CollectionUtils.isEmpty (dataVPOFreqList)) { + dataVFreqByTime = dataVPOFreqList.stream ( ).collect (Collectors.groupingBy (DataVPO::getTime)); + } + if (!CollectionUtils.isEmpty (dataVPODevList)) { + dataVDevPhaseType = dataVPODevList.stream ( ).collect (Collectors.groupingBy (DataVPO::getPhaseType)); + dataVDevByTime = dataVPODevList.stream ( ).collect (Collectors.groupingBy (DataVPO::getTime)); + } + if (!CollectionUtils.isEmpty (dataPltPOList)) { + dataPltPhaseType = dataPltPOList.stream ( ).collect (Collectors.groupingBy (DataPltPO::getPhaseType)); + dataPltByTime = dataPltPOList.stream ( ).collect (Collectors.groupingBy (DataPltPO::getTime)); + } + LimitRate a = limitRateData (overlimit, allTime, flickerAllTime, "A", overlimit.getId (), harmRateVByPhaseType.get ("A"), dataIByPhaseType.get ("A"), dataInHarmVPhaseType.get ("A"), dataVPhaseType.get ("A"), dataVDevPhaseType.get ("A"), dataPltPhaseType.get ("A")); + LimitRate b = limitRateData (overlimit, allTime, flickerAllTime, "B", overlimit.getId (), harmRateVByPhaseType.get ("B"), dataIByPhaseType.get ("B"), dataInHarmVPhaseType.get ("B"), dataVPhaseType.get ("B"), dataVDevPhaseType.get ("B"), dataPltPhaseType.get ("B")); + LimitRate c = limitRateData (overlimit, allTime, flickerAllTime, "C", overlimit.getId (), harmRateVByPhaseType.get ("C"), dataIByPhaseType.get ("C"), dataInHarmVPhaseType.get ("C"), dataVPhaseType.get ("C"), dataVDevPhaseType.get ("C"), dataPltPhaseType.get ("C")); + LimitRate t = limitRateDataT (overlimit, allTime, flickerAllTime, overlimit.getId (), harmRateVByTime, dataIByTime, dataInHarmVByTime, dataVByTime, dataVUnbalanceByTime, dataINegByTime, dataVFreqByTime, dataVDevByTime, dataPltByTime); + result.add (a); + result.add (b); + result.add (c); + result.add (t); + + return result; + } + + + /** + * @Description: limitRateData + * @Param: [overlimit, allTime, flickerAllTime, phasicType, lineId, dataHarmRateVPOList, dataIPOList, dataInHarmVPOList, dataVPOList, dataVUnbalanceList, dataINegList] + * @return: com.njcn.harmonic.pojo.po.LimitRate + * @Author: clam + * @Date: 2022/10/18 + */ + public LimitRate limitRateData(Overlimit overlimit, Integer allTime, Integer + flickerAllTime, String phasicType, String lineId, + List dataHarmRateVPOList, + List dataIPOList, List dataInHarmVPOList, + List dataVPOList, List dataVPODevList, List dataPltPOList) { + LimitRate limitRate = new LimitRate ( ); + int v2 = 0, v3 = 0, v4 = 0, v5 = 0, v6 = 0, v7 = 0, v8 = 0, v9 = 0, v10 = 0, v11 = 0, v12 = 0, v13 = 0, v14 = 0, v15 = 0, v16 = 0, v17 = 0, v18 = 0, v19 = 0, v20 = 0, v21 = 0, v22 = 0, v23 = 0, v24 = 0, v25 = 0; + int i2 = 0, i3 = 0, i4 = 0, i5 = 0, i6 = 0, i7 = 0, i8 = 0, i9 = 0, i10 = 0, i11 = 0, i12 = 0, i13 = 0, i14 = 0, i15 = 0, i16 = 0, i17 = 0, i18 = 0, i19 = 0, i20 = 0, i21 = 0, i22 = 0, i23 = 0, i24 = 0, i25 = 0; + int uHarm1 = 0, uHarm2 = 0, uHarm3 = 0, uHarm4 = 0, uHarm5 = 0, uHarm6 = 0, uHarm7 = 0, uHarm8 = 0, uHarm9 = 0, uHarm10 = 0, uHarm11 = 0, uHarm12 = 0, uHarm13 = 0, uHarm14 = 0, uHarm15 = 0, uHarm16 = 0; + int thd = 0, uDev = 0, flicker = 0; + //2-25次谐波电压含有率 + + if (!CollectionUtils.isEmpty (dataHarmRateVPOList)) { + for (DataHarmRateVPO item : dataHarmRateVPOList) { + if (item.getV2 ( ) > overlimit.getUharm2 ( )) { + v2++; + } + if (item.getV3 ( ) > overlimit.getUharm3 ( )) { + v3++; + } + if (item.getV4 ( ) > overlimit.getUharm4 ( )) { + v4++; + } + if (item.getV5 ( ) > overlimit.getUharm5 ( )) { + v5++; + } + if (item.getV6 ( ) > overlimit.getUharm6 ( )) { + v6++; + } + if (item.getV7 ( ) > overlimit.getUharm7 ( )) { + v7++; + } + if (item.getV8 ( ) > overlimit.getUharm8 ( )) { + v8++; + } + if (item.getV9 ( ) > overlimit.getUharm9 ( )) { + v9++; + } + if (item.getV10 ( ) > overlimit.getUharm10 ( )) { + v10++; + } + if (item.getV11 ( ) > overlimit.getUharm11 ( )) { + v11++; + } + if (item.getV12 ( ) > overlimit.getUharm12 ( )) { + v12++; + } + if (item.getV13 ( ) > overlimit.getUharm13 ( )) { + v13++; + } + if (item.getV14 ( ) > overlimit.getUharm14 ( )) { + v14++; + } + if (item.getV15 ( ) > overlimit.getUharm15 ( )) { + v15++; + } + if (item.getV16 ( ) > overlimit.getUharm16 ( )) { + v16++; + } + if (item.getV17 ( ) > overlimit.getUharm17 ( )) { + v17++; + } + if (item.getV18 ( ) > overlimit.getUharm18 ( )) { + v18++; + } + if (item.getV19 ( ) > overlimit.getUharm19 ( )) { + v19++; + } + if (item.getV20 ( ) > overlimit.getUharm20 ( )) { + v20++; + } + if (item.getV21 ( ) > overlimit.getUharm21 ( )) { + v21++; + } + if (item.getV22 ( ) > overlimit.getUharm22 ( )) { + v22++; + } + if (item.getV23 ( ) > overlimit.getUharm23 ( )) { + v23++; + } + if (item.getV24 ( ) > overlimit.getUharm24 ( )) { + v24++; + } + if (item.getV25 ( ) > overlimit.getUharm25 ( )) { + v25++; + } + } + } + //2-25次谐波电流 + if (!CollectionUtils.isEmpty (dataIPOList)) { + for (DataIPO item : dataIPOList) { + if (item.getI2 ( ) > overlimit.getIharm2 ( )) { + i2++; + } + if (item.getI3 ( ) > overlimit.getIharm3 ( )) { + i3++; + } + if (item.getI4 ( ) > overlimit.getIharm4 ( )) { + i4++; + } + if (item.getI5 ( ) > overlimit.getIharm5 ( )) { + i5++; + } + if (item.getI6 ( ) > overlimit.getIharm6 ( )) { + i6++; + } + if (item.getI7 ( ) > overlimit.getIharm7 ( )) { + i7++; + } + if (item.getI8 ( ) > overlimit.getIharm8 ( )) { + i8++; + } + if (item.getI9 ( ) > overlimit.getIharm9 ( )) { + i9++; + } + if (item.getI10 ( ) > overlimit.getIharm10 ( )) { + i10++; + } + if (item.getI11 ( ) > overlimit.getIharm11 ( )) { + i11++; + } + if (item.getI12 ( ) > overlimit.getIharm12 ( )) { + i12++; + } + if (item.getI13 ( ) > overlimit.getIharm13 ( )) { + i13++; + } + if (item.getI14 ( ) > overlimit.getIharm14 ( )) { + i14++; + } + if (item.getI15 ( ) > overlimit.getIharm15 ( )) { + i15++; + } + if (item.getI16 ( ) > overlimit.getIharm16 ( )) { + i16++; + } + if (item.getI17 ( ) > overlimit.getIharm17 ( )) { + i17++; + } + if (item.getI18 ( ) > overlimit.getIharm18 ( )) { + i18++; + } + if (item.getI19 ( ) > overlimit.getIharm19 ( )) { + i19++; + } + if (item.getI20 ( ) > overlimit.getIharm20 ( )) { + i20++; + } + if (item.getI21 ( ) > overlimit.getIharm21 ( )) { + i21++; + } + if (item.getI22 ( ) > overlimit.getIharm22 ( )) { + i22++; + } + if (item.getI23 ( ) > overlimit.getIharm23 ( )) { + i23++; + } + if (item.getI24 ( ) > overlimit.getIharm24 ( )) { + i24++; + } + if (item.getI25 ( ) > overlimit.getIharm25 ( )) { + i25++; + } + } + } + //0.5-15.5次间谐波电压含有率 + if (!CollectionUtils.isEmpty (dataInHarmVPOList)) { + for (DataInHarmVPO item : dataInHarmVPOList) { + if (item.getV1 ( ) > overlimit.getInuharm1 ( )) { + uHarm1++; + } + if (item.getV2 ( ) > overlimit.getInuharm2 ( )) { + uHarm2++; + } + if (item.getV3 ( ) > overlimit.getInuharm3 ( )) { + uHarm3++; + } + if (item.getV4 ( ) > overlimit.getInuharm4 ( )) { + uHarm4++; + } + if (item.getV5 ( ) > overlimit.getInuharm5 ( )) { + uHarm5++; + } + if (item.getV6 ( ) > overlimit.getInuharm6 ( )) { + uHarm6++; + } + if (item.getV7 ( ) > overlimit.getInuharm7 ( )) { + uHarm7++; + } + if (item.getV8 ( ) > overlimit.getInuharm8 ( )) { + uHarm8++; + } + if (item.getV9 ( ) > overlimit.getInuharm9 ( )) { + uHarm9++; + } + if (item.getV10 ( ) > overlimit.getInuharm10 ( )) { + uHarm10++; + } + if (item.getV11 ( ) > overlimit.getInuharm11 ( )) { + uHarm11++; + } + if (item.getV12 ( ) > overlimit.getInuharm12 ( )) { + uHarm12++; + } + if (item.getV13 ( ) > overlimit.getInuharm13 ( )) { + uHarm13++; + } + if (item.getV14 ( ) > overlimit.getInuharm14 ( )) { + uHarm14++; + } + if (item.getV15 ( ) > overlimit.getInuharm15 ( )) { + uHarm15++; + } + if (item.getV16 ( ) > overlimit.getInuharm16 ( )) { + uHarm16++; + } + } + } + //电压总谐波畸变率 + if (!CollectionUtils.isEmpty (dataVPOList)) { + for (DataVPO item : dataVPOList) { + if (item.getVThd ( ) > overlimit.getUaberrance ( )) { + thd++; + } + } + } + //电压上偏差、电压下偏差 + if (!CollectionUtils.isEmpty (dataVPODevList)) { + Map> devMap = dataVPODevList.stream ( ).collect (Collectors.groupingBy (DataVPO::getValueType)); + List maxList = devMap.get ("MAX"); + for (DataVPO item : maxList) { + if (item.getVuDev ( ) > overlimit.getVoltageDev ( )) { + uDev++; + } + } + List minList = devMap.get ("MIN"); + for (DataVPO item : minList) { + if (item.getVlDev ( ) < overlimit.getUvoltageDev ( )) { + uDev++; + } + } + } + //长时间闪变 + if (!CollectionUtils.isEmpty (dataPltPOList)) { + for (DataPltPO item : dataPltPOList) { + if (item.getPlt ( ) > overlimit.getFlicker ( )) { + flicker++; + } + } + } + limitRate.setLineId (lineId); + limitRate.setPhasicType (phasicType); + limitRate.setAllTime (allTime); + limitRate.setFlickerAllTime (flickerAllTime); + limitRate.setUAberranceOverTime (0); + limitRate.setINegOverTime (0); + limitRate.setFreqDevOverTime (0); + limitRate.setUHarm2OverTime (v2); + limitRate.setUHarm3OverTime (v3); + limitRate.setUHarm4OverTime (v4); + limitRate.setUHarm5OverTime (v5); + limitRate.setUHarm6OverTime (v6); + limitRate.setUHarm7OverTime (v7); + limitRate.setUHarm8OverTime (v8); + limitRate.setUHarm9OverTime (v9); + limitRate.setUHarm10OverTime (v10); + limitRate.setUHarm11OverTime (v11); + limitRate.setUHarm12OverTime (v12); + limitRate.setUHarm13OverTime (v13); + limitRate.setUHarm14OverTime (v14); + limitRate.setUHarm15OverTime (v15); + limitRate.setUHarm16OverTime (v16); + limitRate.setUHarm17OverTime (v17); + limitRate.setUHarm18OverTime (v18); + limitRate.setUHarm19OverTime (v19); + limitRate.setUHarm20OverTime (v20); + limitRate.setUHarm21OverTime (v21); + limitRate.setUHarm22OverTime (v22); + limitRate.setUHarm23OverTime (v23); + limitRate.setUHarm24OverTime (v24); + limitRate.setUHarm25OverTime (v25); + limitRate.setIHarm2OverTime (i2); + limitRate.setIHarm3OverTime (i3); + limitRate.setIHarm4OverTime (i4); + limitRate.setIHarm5OverTime (i5); + limitRate.setIHarm6OverTime (i6); + limitRate.setIHarm7OverTime (i7); + limitRate.setIHarm8OverTime (i8); + limitRate.setIHarm9OverTime (i9); + limitRate.setIHarm10OverTime (i10); + limitRate.setIHarm11OverTime (i11); + limitRate.setIHarm12OverTime (i12); + limitRate.setIHarm13OverTime (i13); + limitRate.setIHarm14OverTime (i14); + limitRate.setIHarm15OverTime (i15); + limitRate.setIHarm16OverTime (i16); + limitRate.setIHarm17OverTime (i17); + limitRate.setIHarm18OverTime (i18); + limitRate.setIHarm19OverTime (i19); + limitRate.setIHarm20OverTime (i20); + limitRate.setIHarm21OverTime (i21); + limitRate.setIHarm22OverTime (i22); + limitRate.setIHarm23OverTime (i23); + limitRate.setIHarm24OverTime (i24); + limitRate.setIHarm25OverTime (i25); + limitRate.setInuHarm1OverTime (uHarm1); + limitRate.setInuHarm2OverTime (uHarm2); + limitRate.setInuHarm3OverTime (uHarm3); + limitRate.setInuHarm4OverTime (uHarm4); + limitRate.setInuHarm5OverTime (uHarm5); + limitRate.setInuHarm6OverTime (uHarm6); + limitRate.setInuHarm7OverTime (uHarm7); + limitRate.setInuHarm8OverTime (uHarm8); + limitRate.setInuHarm9OverTime (uHarm9); + limitRate.setInuHarm10OverTime (uHarm10); + limitRate.setInuHarm11OverTime (uHarm11); + limitRate.setInuHarm12OverTime (uHarm12); + limitRate.setInuHarm13OverTime (uHarm13); + limitRate.setInuHarm14OverTime (uHarm14); + limitRate.setInuHarm15OverTime (uHarm15); + limitRate.setInuHarm16OverTime (uHarm16); + limitRate.setUBalanceOverTime (thd); + limitRate.setVoltageDevOverTime (uDev); + limitRate.setFlickerOverTime (flicker); + return limitRate; + } + + + public LimitRate limitRateDataT(Overlimit overlimit, Integer allTime, Integer flickerAllTime, String lineId, Map> map1, Map> map2, Map> map3, Map> map4, Map> map5, Map> map6, Map> map7, Map> map8, Map> map9){ + LimitRate limitRate = new LimitRate(); + int v2 = 0,v3 = 0,v4 = 0,v5 = 0,v6 = 0,v7 = 0,v8 = 0,v9 = 0,v10 = 0,v11 = 0,v12 = 0,v13 = 0,v14 = 0,v15 = 0,v16 = 0,v17 = 0,v18 = 0,v19 = 0,v20 = 0,v21 = 0,v22 = 0,v23 = 0,v24 = 0,v25 = 0; + int i2 = 0,i3 = 0,i4 = 0,i5 = 0,i6 = 0,i7 = 0,i8 = 0,i9 = 0,i10 = 0,i11 = 0,i12 = 0,i13 = 0,i14 = 0,i15 = 0,i16 = 0,i17 = 0,i18 = 0,i19 = 0,i20 = 0,i21 = 0,i22 = 0,i23 = 0,i24 = 0,i25 = 0; + int uHarm1 = 0,uHarm2 = 0,uHarm3 = 0,uHarm4 = 0,uHarm5 = 0,uHarm6 = 0,uHarm7 = 0,uHarm8 = 0,uHarm9 = 0,uHarm10 = 0,uHarm11 = 0,uHarm12 = 0,uHarm13 = 0,uHarm14 = 0,uHarm15 = 0,uHarm16 = 0; + int thd = 0,uDev = 0,flicker = 0,freqDev = 0,uAberrance = 0,iNeg = 0; + //2-25次谐波电压含有率 + for (Instant time:map1.keySet()) { + List list = map1.get(time); + List l2 = list.stream().filter(s->s.getV2()>overlimit.getUharm2()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l2)){ + v2++; + } + List l3 = list.stream().filter(s->s.getV3()>overlimit.getUharm3()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l3)){ + v3++; + } + List l4 = list.stream().filter(s->s.getV4()>overlimit.getUharm4()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l4)){ + v4++; + } + List l5 = list.stream().filter(s->s.getV5()>overlimit.getUharm5()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l5)){ + v5++; + } + List l6 = list.stream().filter(s->s.getV6()>overlimit.getUharm6()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l6)){ + v6++; + } + List l7 = list.stream().filter(s->s.getV7()>overlimit.getUharm7()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l7)){ + v7++; + } + List l8 = list.stream().filter(s->s.getV8()>overlimit.getUharm8()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l8)){ + v8++; + } + List l9 = list.stream().filter(s->s.getV9()>overlimit.getUharm9()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l9)){ + v9++; + } + List l10 = list.stream().filter(s->s.getV10()>overlimit.getUharm10()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l10)){ + v10++; + } + List l11 = list.stream().filter(s->s.getV11()>overlimit.getUharm11()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l11)){ + v11++; + } + List l12 = list.stream().filter(s->s.getV12()>overlimit.getUharm12()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l12)){ + v12++; + } + List l13 = list.stream().filter(s->s.getV13()>overlimit.getUharm13()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l13)){ + v13++; + } + List l14 = list.stream().filter(s->s.getV14()>overlimit.getUharm14()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l14)){ + v14++; + } + List l15 = list.stream().filter(s->s.getV15()>overlimit.getUharm15()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l15)){ + v15++; + } + List l16 = list.stream().filter(s->s.getV16()>overlimit.getUharm16()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l16)){ + v16++; + } + List l17 = list.stream().filter(s->s.getV17()>overlimit.getUharm17()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l17)){ + v17++; + } + List l18 = list.stream().filter(s->s.getV18()>overlimit.getUharm18()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l18)){ + v18++; + } + List l19 = list.stream().filter(s->s.getV19()>overlimit.getUharm19()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l19)){ + v19++; + } + List l20 = list.stream().filter(s->s.getV20()>overlimit.getUharm20()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l20)){ + v20++; + } + List l21 = list.stream().filter(s->s.getV21()>overlimit.getUharm21()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l21)){ + v21++; + } + List l22 = list.stream().filter(s->s.getV22()>overlimit.getUharm22()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l22)){ + v22++; + } + List l23 = list.stream().filter(s->s.getV23()>overlimit.getUharm23()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l23)){ + v23++; + } + List l24 = list.stream().filter(s->s.getV24()>overlimit.getUharm24()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l24)){ + v24++; + } + List l25 = list.stream().filter(s->s.getV25()>overlimit.getUharm25()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l25)){ + v25++; + } + } + //2-25次谐波电流 + for (Instant time:map2.keySet()) { + List list = map2.get(time); + List l2 = list.stream().filter(s->s.getI2()>overlimit.getIharm2()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l2)){ + i2++; + } + List l3 = list.stream().filter(s->s.getI3()>overlimit.getIharm3()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l3)){ + i3++; + } + List l4 = list.stream().filter(s->s.getI4()>overlimit.getIharm4()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l4)){ + i4++; + } + List l5 = list.stream().filter(s->s.getI5()>overlimit.getIharm5()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l5)){ + i5++; + } + List l6 = list.stream().filter(s->s.getI6()>overlimit.getIharm6()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l6)){ + i6++; + } + List l7 = list.stream().filter(s->s.getI7()>overlimit.getIharm7()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l7)){ + i7++; + } + List l8 = list.stream().filter(s->s.getI8()>overlimit.getIharm8()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l8)){ + i8++; + } + List l9 = list.stream().filter(s->s.getI9()>overlimit.getIharm9()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l9)){ + i9++; + } + List l10 = list.stream().filter(s->s.getI10()>overlimit.getIharm10()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l10)){ + i10++; + } + List l11 = list.stream().filter(s->s.getI11()>overlimit.getIharm11()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l11)){ + i11++; + } + List l12 = list.stream().filter(s->s.getI12()>overlimit.getIharm12()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l12)){ + i12++; + } + List l13 = list.stream().filter(s->s.getI13()>overlimit.getIharm13()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l13)){ + i13++; + } + List l14 = list.stream().filter(s->s.getI14()>overlimit.getIharm14()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l14)){ + i14++; + } + List l15 = list.stream().filter(s->s.getI15()>overlimit.getIharm15()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l15)){ + i15++; + } + List l16 = list.stream().filter(s->s.getI16()>overlimit.getIharm16()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l16)){ + i16++; + } + List l17 = list.stream().filter(s->s.getI17()>overlimit.getIharm17()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l17)){ + i17++; + } + List l18 = list.stream().filter(s->s.getI18()>overlimit.getIharm18()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l18)){ + i18++; + } + List l19 = list.stream().filter(s->s.getI19()>overlimit.getIharm19()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l19)){ + i19++; + } + List l20 = list.stream().filter(s->s.getI20()>overlimit.getIharm20()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l20)){ + i20++; + } + List l21 = list.stream().filter(s->s.getI21()>overlimit.getIharm21()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l21)){ + i21++; + } + List l22 = list.stream().filter(s->s.getI22()>overlimit.getIharm22()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l22)){ + i22++; + } + List l23 = list.stream().filter(s->s.getI23()>overlimit.getIharm23()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l23)){ + i23++; + } + List l24 = list.stream().filter(s->s.getI24()>overlimit.getIharm24()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l24)){ + i24++; + } + List l25 = list.stream().filter(s->s.getI25()>overlimit.getIharm25()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l25)){ + i25++; + } + } + //0.5-15.5次间谐波电压含有率 + for (Instant time:map3.keySet()) { + List list3 = map3.get(time); + List l2 = list3.stream().filter(s->s.getV1()>overlimit.getInuharm1()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l2)){ + uHarm1++; + } + List l3 = list3.stream().filter(s->s.getV2()>overlimit.getInuharm2()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l3)){ + uHarm2++; + } + List l4 = list3.stream().filter(s->s.getV3()>overlimit.getInuharm3()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l4)){ + uHarm3++; + } + List l5 = list3.stream().filter(s->s.getV4()>overlimit.getInuharm4()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l5)){ + uHarm4++; + } + List l6 = list3.stream().filter(s->s.getV5()>overlimit.getInuharm5()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l6)){ + uHarm5++; + } + List l7 = list3.stream().filter(s->s.getV6()>overlimit.getInuharm6()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l7)){ + uHarm6++; + } + List l8 = list3.stream().filter(s->s.getV7()>overlimit.getInuharm7()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l8)){ + uHarm7++; + } + List l9 = list3.stream().filter(s->s.getV8()>overlimit.getInuharm8()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l9)){ + uHarm8++; + } + List l10 = list3.stream().filter(s->s.getV9()>overlimit.getInuharm9()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l10)){ + uHarm9++; + } + List l11 = list3.stream().filter(s->s.getV10()>overlimit.getInuharm10()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l11)){ + uHarm10++; + } + List l12 = list3.stream().filter(s->s.getV11()>overlimit.getInuharm11()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l12)){ + uHarm11++; + } + List l13 = list3.stream().filter(s->s.getV12()>overlimit.getInuharm12()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l13)){ + uHarm12++; + } + List l14 = list3.stream().filter(s->s.getV13()>overlimit.getInuharm13()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l14)){ + uHarm13++; + } + List l15 = list3.stream().filter(s->s.getV14()>overlimit.getInuharm14()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l15)){ + uHarm14++; + } + List l16 = list3.stream().filter(s->s.getV15()>overlimit.getInuharm15()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l16)){ + uHarm15++; + } + List l17 = list3.stream().filter(s->s.getV16()>overlimit.getInuharm16()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l17)){ + uHarm16++; + } + } + //电压总谐波畸变率 + for (Instant time:map4.keySet()) { + List list = map4.get(time); + List l = list.stream().filter(s->s.getVThd()>overlimit.getUaberrance()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l)){ + thd++; + } + } + //三相电压不平衡度 + for (Instant time:map5.keySet()) { + List list = map5.get(time); + List l = list.stream().filter(s->s.getVUnbalance()>overlimit.getUbalance()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l)){ + uAberrance++; + } + } + //负序电流 + for (Instant time:map6.keySet()) { + List list = map6.get(time); + List l = list.stream().filter(s->s.getINeg()>overlimit.getINeg()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l)){ + iNeg++; + } + } + //频率偏差 + for (Instant time:map7.keySet()) { + List list = map7.get(time); + List l = list.stream().filter(s->s.getFreqDev()>overlimit.getFreqDev()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l)){ + freqDev++; + } + } + //电压上偏差、电压下偏差 + for (Instant time:map8.keySet()) { + List list = map8.get(time); + Map> devMap = list.stream().collect(Collectors.groupingBy(DataVPO::getValueType)); + List maxList = devMap.get("MAX"); + List minList = devMap.get("MIN"); + List l1 = maxList.stream().filter(s->s.getVuDev()>overlimit.getVoltageDev()).collect(Collectors.toList()); + List l2 = minList.stream().filter(s->s.getVlDev()>overlimit.getUvoltageDev()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l1) || !CollectionUtils.isEmpty(l2)){ + uDev++; + } + } + //长时间闪变 + for (Instant time:map9.keySet()) { + List list = map9.get(time); + List l = list.stream().filter(s->s.getPlt()>overlimit.getFlicker()).collect(Collectors.toList()); + if (!CollectionUtils.isEmpty(l)){ + flicker++; + } + } + limitRate.setLineId(lineId); + limitRate.setPhasicType("T"); + limitRate.setAllTime(allTime); + limitRate.setFlickerAllTime(flickerAllTime); + limitRate.setUAberranceOverTime(uAberrance); + limitRate.setINegOverTime(iNeg); + limitRate.setFreqDevOverTime(freqDev); + limitRate.setUHarm2OverTime(v2); + limitRate.setUHarm3OverTime(v3); + limitRate.setUHarm4OverTime(v4); + limitRate.setUHarm5OverTime(v5); + limitRate.setUHarm6OverTime(v6); + limitRate.setUHarm7OverTime(v7); + limitRate.setUHarm8OverTime(v8); + limitRate.setUHarm9OverTime(v9); + limitRate.setUHarm10OverTime(v10); + limitRate.setUHarm11OverTime(v11); + limitRate.setUHarm12OverTime(v12); + limitRate.setUHarm13OverTime(v13); + limitRate.setUHarm14OverTime(v14); + limitRate.setUHarm15OverTime(v15); + limitRate.setUHarm16OverTime(v16); + limitRate.setUHarm17OverTime(v17); + limitRate.setUHarm18OverTime(v18); + limitRate.setUHarm19OverTime(v19); + limitRate.setUHarm20OverTime(v20); + limitRate.setUHarm21OverTime(v21); + limitRate.setUHarm22OverTime(v22); + limitRate.setUHarm23OverTime(v23); + limitRate.setUHarm24OverTime(v24); + limitRate.setUHarm25OverTime(v25); + limitRate.setIHarm2OverTime(i2); + limitRate.setIHarm3OverTime(i3); + limitRate.setIHarm4OverTime(i4); + limitRate.setIHarm5OverTime(i5); + limitRate.setIHarm6OverTime(i6); + limitRate.setIHarm7OverTime(i7); + limitRate.setIHarm8OverTime(i8); + limitRate.setIHarm9OverTime(i9); + limitRate.setIHarm10OverTime(i10); + limitRate.setIHarm11OverTime(i11); + limitRate.setIHarm12OverTime(i12); + limitRate.setIHarm13OverTime(i13); + limitRate.setIHarm14OverTime(i14); + limitRate.setIHarm15OverTime(i15); + limitRate.setIHarm16OverTime(i16); + limitRate.setIHarm17OverTime(i17); + limitRate.setIHarm18OverTime(i18); + limitRate.setIHarm19OverTime(i19); + limitRate.setIHarm20OverTime(i20); + limitRate.setIHarm21OverTime(i21); + limitRate.setIHarm22OverTime(i22); + limitRate.setIHarm23OverTime(i23); + limitRate.setIHarm24OverTime(i24); + limitRate.setIHarm25OverTime(i25); + limitRate.setInuHarm1OverTime(uHarm1); + limitRate.setInuHarm2OverTime(uHarm2); + limitRate.setInuHarm3OverTime(uHarm3); + limitRate.setInuHarm4OverTime(uHarm4); + limitRate.setInuHarm5OverTime(uHarm5); + limitRate.setInuHarm6OverTime(uHarm6); + limitRate.setInuHarm7OverTime(uHarm7); + limitRate.setInuHarm8OverTime(uHarm8); + limitRate.setInuHarm9OverTime(uHarm9); + limitRate.setInuHarm10OverTime(uHarm10); + limitRate.setInuHarm11OverTime(uHarm11); + limitRate.setInuHarm12OverTime(uHarm12); + limitRate.setInuHarm13OverTime(uHarm13); + limitRate.setInuHarm14OverTime(uHarm14); + limitRate.setInuHarm15OverTime(uHarm15); + limitRate.setInuHarm16OverTime(uHarm16); + limitRate.setUBalanceOverTime(thd); + limitRate.setVoltageDevOverTime(uDev); + limitRate.setFlickerOverTime(flicker); + return limitRate; + } + + + /** + * @Description: 插入influxdb + * @Param: [list, time] + * @return: void + * @Author: clam + * @Date: 2022/10/21 + */ + private void insert(List list, long time){ + List records = new ArrayList<>(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + tags.put("phasic_type",item.getPhasicType()); + fields.put("all_time",item.getAllTime()); + fields.put("flicker_all_time",item.getFlickerAllTime()); + fields.put("flicker_overtime",item.getFlickerOverTime()); + fields.put("freq_dev_overtime",item.getFreqDevOverTime()); + fields.put("ubalance_overtime",item.getUBalanceOverTime()); + fields.put("uaberrance_overtime",item.getUAberranceOverTime()); + fields.put("i_neg_overtime",item.getINegOverTime()); + fields.put("voltage_dev_overtime",item.getVoltageDevOverTime()); + fields.put("uharm_2_overtime",item.getUHarm2OverTime()); + fields.put("uharm_3_overtime",item.getUHarm3OverTime()); + fields.put("uharm_4_overtime",item.getUHarm4OverTime()); + fields.put("uharm_5_overtime",item.getUHarm5OverTime()); + fields.put("uharm_6_overtime",item.getUHarm6OverTime()); + fields.put("uharm_7_overtime",item.getUHarm7OverTime()); + fields.put("uharm_8_overtime",item.getUHarm8OverTime()); + fields.put("uharm_9_overtime",item.getUHarm9OverTime()); + fields.put("uharm_10_overtime",item.getUHarm10OverTime()); + fields.put("uharm_11_overtime",item.getUHarm11OverTime()); + fields.put("uharm_12_overtime",item.getUHarm12OverTime()); + fields.put("uharm_13_overtime",item.getUHarm13OverTime()); + fields.put("uharm_14_overtime",item.getUHarm14OverTime()); + fields.put("uharm_15_overtime",item.getUHarm15OverTime()); + fields.put("uharm_16_overtime",item.getUHarm16OverTime()); + fields.put("uharm_17_overtime",item.getUHarm17OverTime()); + fields.put("uharm_18_overtime",item.getUHarm18OverTime()); + fields.put("uharm_19_overtime",item.getUHarm19OverTime()); + fields.put("uharm_20_overtime",item.getUHarm20OverTime()); + fields.put("uharm_21_overtime",item.getUHarm21OverTime()); + fields.put("uharm_22_overtime",item.getUHarm22OverTime()); + fields.put("uharm_23_overtime",item.getUHarm23OverTime()); + fields.put("uharm_24_overtime",item.getUHarm24OverTime()); + fields.put("uharm_25_overtime",item.getUHarm25OverTime()); + fields.put("iharm_2_overtime",item.getIHarm2OverTime()); + fields.put("iharm_3_overtime",item.getIHarm3OverTime()); + fields.put("iharm_4_overtime",item.getIHarm4OverTime()); + fields.put("iharm_5_overtime",item.getIHarm5OverTime()); + fields.put("iharm_6_overtime",item.getIHarm6OverTime()); + fields.put("iharm_7_overtime",item.getIHarm7OverTime()); + fields.put("iharm_8_overtime",item.getIHarm8OverTime()); + fields.put("iharm_9_overtime",item.getIHarm9OverTime()); + fields.put("iharm_10_overtime",item.getIHarm10OverTime()); + fields.put("iharm_11_overtime",item.getIHarm11OverTime()); + fields.put("iharm_12_overtime",item.getIHarm12OverTime()); + fields.put("iharm_13_overtime",item.getIHarm13OverTime()); + fields.put("iharm_14_overtime",item.getIHarm14OverTime()); + fields.put("iharm_15_overtime",item.getIHarm15OverTime()); + fields.put("iharm_16_overtime",item.getIHarm16OverTime()); + fields.put("iharm_17_overtime",item.getIHarm17OverTime()); + fields.put("iharm_18_overtime",item.getIHarm18OverTime()); + fields.put("iharm_19_overtime",item.getIHarm19OverTime()); + fields.put("iharm_20_overtime",item.getIHarm20OverTime()); + fields.put("iharm_21_overtime",item.getIHarm21OverTime()); + fields.put("iharm_22_overtime",item.getIHarm22OverTime()); + fields.put("iharm_23_overtime",item.getIHarm23OverTime()); + fields.put("iharm_24_overtime",item.getIHarm24OverTime()); + fields.put("iharm_25_overtime",item.getIHarm25OverTime()); + fields.put("inuharm_1_overtime",item.getInuHarm1OverTime()); + fields.put("inuharm_2_overtime",item.getInuHarm2OverTime()); + fields.put("inuharm_3_overtime",item.getInuHarm3OverTime()); + fields.put("inuharm_4_overtime",item.getInuHarm4OverTime()); + fields.put("inuharm_5_overtime",item.getInuHarm5OverTime()); + fields.put("inuharm_6_overtime",item.getInuHarm6OverTime()); + fields.put("inuharm_7_overtime",item.getInuHarm7OverTime()); + fields.put("inuharm_8_overtime",item.getInuHarm8OverTime()); + fields.put("inuharm_9_overtime",item.getInuHarm9OverTime()); + fields.put("inuharm_10_overtime",item.getInuHarm10OverTime()); + fields.put("inuharm_11_overtime",item.getInuHarm11OverTime()); + fields.put("inuharm_12_overtime",item.getInuHarm12OverTime()); + fields.put("inuharm_13_overtime",item.getInuHarm13OverTime()); + fields.put("inuharm_14_overtime",item.getInuHarm14OverTime()); + fields.put("inuharm_15_overtime",item.getInuHarm15OverTime()); + fields.put("inuharm_16_overtime",item.getInuHarm16OverTime()); + Point point = influxDbUtils.pointBuilder(InfluxDBPublicParam.LIMIT_RATE, time, TimeUnit.MILLISECONDS, tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName ()).tag(InfluxDBPublicParam.LINE_ID, item.getLineId()).tag(InfluxDBPublicParam.PHASIC_TYPE,item.getPhasicType()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName (),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + public static void main(String[] args) { + LimitRate limitRate = new LimitRate(); + limitRate.setAllTime (0); + limitRate.setFlickerAllTime (0); + LimitRatePO limitRatePO = new LimitRatePO (); + BeanUtils.copyProperties (limitRate, limitRatePO); + System.out.println ("limitRatePO:"+ limitRatePO.getAllTime ()); + } + + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/LimitTargetServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/LimitTargetServiceImpl.java new file mode 100644 index 000000000..9584c6d7a --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/LimitTargetServiceImpl.java @@ -0,0 +1,163 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.StrUtil; +import com.njcn.harmonic.pojo.po.LimitRate; +import com.njcn.influxdb.utils.InfluxDbUtils; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import com.njcn.prepare.harmonic.service.line.LimitTargetService; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.influxdb.InfluxDB; +import org.influxdb.dto.BatchPoints; +import org.influxdb.dto.Point; +import org.influxdb.dto.QueryResult; +import org.influxdb.impl.InfluxDBResultMapper; +import org.springframework.stereotype.Service; + +import java.util.*; +import java.util.concurrent.TimeUnit; + +/** + * 生成limit_target表 + * + * @author xiaoyao + * @version 1.0.0 + * @createTime 2022/10/26 13:41 + */ +@Slf4j +@Service +@AllArgsConstructor +public class LimitTargetServiceImpl implements LimitTargetService { + + private final InfluxDbUtils influxDbUtils; + + @Override + public void getLimitTargetData(LineParam lineParam) { + List records; + Date dateOut = DateUtil.parse(lineParam.getDataDate()); + if (CollUtil.isEmpty(lineParam.getLineIds())){ + List limitRateData = getLimitRateData(null,lineParam.getDataDate()); + records = processOutData(limitRateData,dateOut); + }else { + List limitRateData = new ArrayList<>(); + for (String lineId : lineParam.getLineIds()){ + List limitRateOut = getLimitRateData(lineId,lineParam.getDataDate()); + limitRateData.addAll(limitRateOut); + } + records = processOutData(limitRateData,dateOut); + } + influxDbUtils.batchInsert(influxDbUtils.getDbName(),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + private List getLimitRateData(String lineId,String date){ + StringBuilder sql = new StringBuilder(); + sql.append("SELECT * FROM limit_rate WHERE time >= '").append(date).append(" 00:00:00' and time <= '") + .append(date).append(" 23:59:59' ").append(" and phasic_type = 'T'"); + if (StrUtil.isNotBlank(lineId)) { + sql.append(" and line_id = '").append(lineId).append("'"); + } + sql.append(" tz('Asia/Shanghai')"); + QueryResult sqlResult = influxDbUtils.query(sql.toString()); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); + return resultMapper.toPOJO(sqlResult, LimitRate.class); + } + + private List processOutData(List limitRateData,Date dateOut){ + List records = new ArrayList<>(); + for (LimitRate limitRate : limitRateData){ + Map tags = processTagDate(limitRate); + Map fields = processFieldsDate(limitRate); + Point point = influxDbUtils.pointBuilder("limit_target", dateOut.getTime(), TimeUnit.MILLISECONDS,tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName()).tag("line_id", limitRate.getLineId()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + } + return records; + } + + private Map processTagDate(LimitRate limitRate){ + Map tags = new HashMap<>(); + tags.put("line_id",limitRate.getLineId()); + tags.put("phasic_type",limitRate.getPhasicType()); + return tags; + } + + private Map processFieldsDate(LimitRate limitRate){ + Map fields = new HashMap<>(); + fields.put("alltime",limitRate.getAllTime()); + fields.put("flicker_alltime",limitRate.getFlickerAllTime()); + fields.put("freq_dev_overtime",(limitRate.getFreqDevOverTime()>1)?1:0); + fields.put("voltage_dev_overtime",(limitRate.getVoltageDevOverTime()>1)?1:0); + fields.put("ubalance_overtime",(limitRate.getUBalanceOverTime()>1)?1:0); + fields.put("flicker_overtime",(limitRate.getFlickerOverTime()>1)?1:0); + fields.put("uaberrance_overtime",(limitRate.getUAberranceOverTime()>1)?1:0); + fields.put("i_neg_overtime",(limitRate.getINegOverTime()>1)?1:0); + fields.put("uharm_2_overtime",(limitRate.getUHarm2OverTime()>1)?1:0); + fields.put("uharm_3_overtime",(limitRate.getUHarm3OverTime()>1)?1:0); + fields.put("uharm_4_overtime",(limitRate.getUHarm4OverTime()>1)?1:0); + fields.put("uharm_5_overtime",(limitRate.getUHarm5OverTime()>1)?1:0); + fields.put("uharm_6_overtime",(limitRate.getUHarm6OverTime()>1)?1:0); + fields.put("uharm_7_overtime",(limitRate.getUHarm7OverTime()>1)?1:0); + fields.put("uharm_8_overtime",(limitRate.getUHarm8OverTime()>1)?1:0); + fields.put("uharm_9_overtime",(limitRate.getUHarm9OverTime()>1)?1:0); + fields.put("uharm_10_overtime",(limitRate.getUHarm10OverTime()>1)?1:0); + fields.put("uharm_11_overtime",(limitRate.getUHarm11OverTime()>1)?1:0); + fields.put("uharm_12_overtime",(limitRate.getUHarm12OverTime()>1)?1:0); + fields.put("uharm_13_overtime",(limitRate.getUHarm13OverTime()>1)?1:0); + fields.put("uharm_14_overtime",(limitRate.getUHarm14OverTime()>1)?1:0); + fields.put("uharm_15_overtime",(limitRate.getUHarm15OverTime()>1)?1:0); + fields.put("uharm_16_overtime",(limitRate.getUHarm16OverTime()>1)?1:0); + fields.put("uharm_17_overtime",(limitRate.getUHarm17OverTime()>1)?1:0); + fields.put("uharm_18_overtime",(limitRate.getUHarm18OverTime()>1)?1:0); + fields.put("uharm_19_overtime",(limitRate.getUHarm19OverTime()>1)?1:0); + fields.put("uharm_20_overtime",(limitRate.getUHarm20OverTime()>1)?1:0); + fields.put("uharm_21_overtime",(limitRate.getUHarm21OverTime()>1)?1:0); + fields.put("uharm_22_overtime",(limitRate.getUHarm22OverTime()>1)?1:0); + fields.put("uharm_23_overtime",(limitRate.getUHarm23OverTime()>1)?1:0); + fields.put("uharm_24_overtime",(limitRate.getUHarm24OverTime()>1)?1:0); + fields.put("uharm_25_overtime",(limitRate.getUHarm25OverTime()>1)?1:0); + fields.put("iharm_2_overtime",(limitRate.getIHarm2OverTime()>1)?1:0); + fields.put("iharm_3_overtime",(limitRate.getIHarm3OverTime()>1)?1:0); + fields.put("iharm_4_overtime",(limitRate.getIHarm4OverTime()>1)?1:0); + fields.put("iharm_5_overtime",(limitRate.getIHarm5OverTime()>1)?1:0); + fields.put("iharm_6_overtime",(limitRate.getIHarm6OverTime()>1)?1:0); + fields.put("iharm_7_overtime",(limitRate.getIHarm7OverTime()>1)?1:0); + fields.put("iharm_8_overtime",(limitRate.getIHarm8OverTime()>1)?1:0); + fields.put("iharm_9_overtime",(limitRate.getIHarm9OverTime()>1)?1:0); + fields.put("iharm_10_overtime",(limitRate.getIHarm10OverTime()>1)?1:0); + fields.put("iharm_11_overtime",(limitRate.getIHarm11OverTime()>1)?1:0); + fields.put("iharm_12_overtime",(limitRate.getIHarm12OverTime()>1)?1:0); + fields.put("iharm_13_overtime",(limitRate.getIHarm13OverTime()>1)?1:0); + fields.put("iharm_14_overtime",(limitRate.getIHarm14OverTime()>1)?1:0); + fields.put("iharm_15_overtime",(limitRate.getIHarm15OverTime()>1)?1:0); + fields.put("iharm_16_overtime",(limitRate.getIHarm16OverTime()>1)?1:0); + fields.put("iharm_17_overtime",(limitRate.getIHarm17OverTime()>1)?1:0); + fields.put("iharm_18_overtime",(limitRate.getIHarm18OverTime()>1)?1:0); + fields.put("iharm_19_overtime",(limitRate.getIHarm19OverTime()>1)?1:0); + fields.put("iharm_20_overtime",(limitRate.getIHarm20OverTime()>1)?1:0); + fields.put("iharm_21_overtime",(limitRate.getIHarm21OverTime()>1)?1:0); + fields.put("iharm_22_overtime",(limitRate.getIHarm22OverTime()>1)?1:0); + fields.put("iharm_23_overtime",(limitRate.getIHarm23OverTime()>1)?1:0); + fields.put("iharm_24_overtime",(limitRate.getIHarm24OverTime()>1)?1:0); + fields.put("iharm_25_overtime",(limitRate.getIHarm25OverTime()>1)?1:0); + fields.put("inuharm_1_overtime",(limitRate.getInuHarm1OverTime()>1)?1:0); + fields.put("inuharm_2_overtime",(limitRate.getInuHarm2OverTime()>1)?1:0); + fields.put("inuharm_3_overtime",(limitRate.getInuHarm3OverTime()>1)?1:0); + fields.put("inuharm_4_overtime",(limitRate.getInuHarm4OverTime()>1)?1:0); + fields.put("inuharm_5_overtime",(limitRate.getInuHarm5OverTime()>1)?1:0); + fields.put("inuharm_6_overtime",(limitRate.getInuHarm6OverTime()>1)?1:0); + fields.put("inuharm_7_overtime",(limitRate.getInuHarm7OverTime()>1)?1:0); + fields.put("inuharm_8_overtime",(limitRate.getInuHarm8OverTime()>1)?1:0); + fields.put("inuharm_9_overtime",(limitRate.getInuHarm9OverTime()>1)?1:0); + fields.put("inuharm_10_overtime",(limitRate.getInuHarm10OverTime()>1)?1:0); + fields.put("inuharm_11_overtime",(limitRate.getInuHarm11OverTime()>1)?1:0); + fields.put("inuharm_12_overtime",(limitRate.getInuHarm12OverTime()>1)?1:0); + fields.put("inuharm_13_overtime",(limitRate.getInuHarm13OverTime()>1)?1:0); + fields.put("inuharm_14_overtime",(limitRate.getInuHarm14OverTime()>1)?1:0); + fields.put("inuharm_15_overtime",(limitRate.getInuHarm15OverTime()>1)?1:0); + fields.put("inuharm_16_overtime",(limitRate.getInuHarm16OverTime()>1)?1:0); + return fields; + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/NormalLimitServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/NormalLimitServiceImpl.java new file mode 100644 index 000000000..582842f6c --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/NormalLimitServiceImpl.java @@ -0,0 +1,755 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import cn.hutool.core.date.DateTime; +import cn.hutool.core.date.DateUtil; +import com.njcn.common.pojo.dto.SimpleDTO; +import com.njcn.common.pojo.enums.common.ServerEnum; +import com.njcn.device.pq.api.GeneralDeviceInfoClient; +import com.njcn.device.pq.api.LineFeignClient; +import com.njcn.device.pq.pojo.dto.GeneralDeviceDTO; +import com.njcn.device.pq.pojo.param.DeviceInfoParam; +import com.njcn.device.pq.pojo.po.Overlimit; +import com.njcn.influxdb.param.InfluxDBPublicParam; +import com.njcn.influxdb.utils.InfluxDbUtils; +import com.njcn.prepare.harmonic.mapper.line.AbnormalMapper; +import com.njcn.prepare.harmonic.pojo.po.AbnormalPO; +import com.njcn.prepare.harmonic.pojo.vo.AbnormalVO; +import com.njcn.prepare.harmonic.service.line.NormalLimitService; +import com.njcn.web.utils.RequestUtil; +import lombok.AllArgsConstructor; +import org.influxdb.dto.QueryResult; +import org.springframework.stereotype.Service; +import org.springframework.util.CollectionUtils; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 19:59 + */ + +@Service +@AllArgsConstructor +public class NormalLimitServiceImpl implements NormalLimitService { + + private final GeneralDeviceInfoClient generalDeviceInfoClient; + + private final LineFeignClient lineFeignClient; + + private final InfluxDbUtils influxDbUtils; + + private final AbnormalMapper abnormalMapper; + + @Override + public String getNormLimitData() { + + List lineIds = new ArrayList<>(); + DeviceInfoParam deviceInfoParam = new DeviceInfoParam(); + deviceInfoParam.setDeptIndex(RequestUtil.getDeptIndex()); + deviceInfoParam.setPowerFlag(2); + deviceInfoParam.setMonitorFlag(2); + deviceInfoParam.setServerName(ServerEnum.HARMONIC.getName()); + SimpleDTO simpleDTO = new SimpleDTO(); + simpleDTO.setName("电网拓扑"); + simpleDTO.setSort(0); + simpleDTO.setCode("Power_Network"); + deviceInfoParam.setStatisticalType(simpleDTO); + //处理监测点 + List deviceDataList = generalDeviceInfoClient.getPracticalAllDeviceInfo(deviceInfoParam).getData(); + for (GeneralDeviceDTO generalDeviceDTO : deviceDataList) { + lineIds.addAll(generalDeviceDTO.getLineIndexes()); + } + if (!lineIds.isEmpty()) { + for (String lineIndex : lineIds) { + //获取当前监测点的限值详情 + Overlimit overlimit = lineFeignClient.getOverLimitData(lineIndex).getData(); + for (int i = 1; i < 5; i++) { + for (int j = 1; j < 5; j++) { + //电压上偏差 + List voDev = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 1); + //电压下偏差 + List uoDev = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 2); + //三相电压不平衡度 + List uba = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 3); + //电压总畸变率 + List uab = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 4); + //负序电流 + List ing = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 5); + //频率 + List freq = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 6); + //2-25次谐波含有率 + //谐波电压含有率 + List uharm2 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 7); + List uharm3 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 8); + List uharm4 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 9); + List uharm5 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 10); + List uharm6 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 11); + List uharm7 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 12); + List uharm8 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 13); + List uharm9 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 14); + List uharm10 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 15); + List uharm11 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 16); + List uharm12 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 17); + List uharm13 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 18); + List uharm14 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 19); + List uharm15 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 20); + List uharm16 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 21); + List uharm17 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 22); + List uharm18 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 23); + List uharm19 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 24); + List uharm20 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 25); + List uharm21 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 26); + List uharm22 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 27); + List uharm23 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 28); + List uharm24 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 29); + List uharm25 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 30); + + + //2-25次谐波电流幅值 + List iharm2 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 31); + List iharm3 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 32); + List iharm4 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 33); + List iharm5 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 34); + List iharm6 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 35); + List iharm7 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 36); + List iharm8 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 37); + List iharm9 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 38); + List iharm10 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 39); + List iharm11 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 40); + List iharm12 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 41); + List iharm13 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 42); + List iharm14 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 43); + List iharm15 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 44); + List iharm16 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 45); + List iharm17 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 46); + List iharm18 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 47); + List iharm19 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 48); + List iharm20 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 49); + List iharm21 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 50); + List iharm22 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 51); + List iharm23 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 52); + List iharm24 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 53); + List iharm25 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 54); + + + //0.5-15.5次间谐波电压含有率 + List inharm = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 55); + List inharm1 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 56); + List inharm2 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 57); + List inharm3 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 58); + List inharm4 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 59); + List inharm5 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 60); + List inharm6 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 61); + List inharm7 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 62); + List inharm8 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 63); + List inharm9 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 64); + List inharm10 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 65); + List inharm11 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 66); + List inharm12 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 67); + List inharm13 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 68); + List inharm14 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 69); + List inharm15 = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 70); + //长时闪变 + List flicker = getConntion(i, j, DateUtil.beginOfDay(DateUtil.yesterday()), DateUtil.endOfDay(DateUtil.yesterday()), lineIndex, 71); + //只需要判断一个指标即可 + if (!voDev.isEmpty()) { + AbnormalPO abnormalPO = new AbnormalPO(); + abnormalPO.setTimeId(DateUtil.beginOfDay(DateUtil.parse("2022-05-10"))); + abnormalPO.setId(lineIndex); + if (i == 1) { + abnormalPO.setPhasicType("A"); + } else if (i == 2) { + abnormalPO.setPhasicType("B"); + } else if (i == 3) { + abnormalPO.setPhasicType("C"); + } else { + abnormalPO.setPhasicType("T"); + } + if (j == 1) { + abnormalPO.setFreqDev(freq.get(j).getNormValue()); + abnormalPO.setValueType("AVG"); + abnormalPO.setVoltageDev(voDev.get(j).getNormValue()); + abnormalPO.setUvoltageDev(uoDev.get(j).getNormValue()); + abnormalPO.setFlickerAllTime(flicker.get(j).getNormValue()); + abnormalPO.setUAberrance(uab.get(j).getNormValue()); + abnormalPO.setUBalance(uba.get(j).getNormValue()); + abnormalPO.setINeg(ing.get(j).getNormValue()); + abnormalPO.setUHarm2(uharm2.get(j).getNormValue()); + abnormalPO.setUHarm3(uharm3.get(j).getNormValue()); + abnormalPO.setUHarm4(uharm4.get(j).getNormValue()); + abnormalPO.setUHarm5(uharm5.get(j).getNormValue()); + abnormalPO.setUHarm6(uharm6.get(j).getNormValue()); + abnormalPO.setUHarm7(uharm7.get(j).getNormValue()); + abnormalPO.setUHarm8(uharm8.get(j).getNormValue()); + abnormalPO.setUHarm9(uharm9.get(j).getNormValue()); + abnormalPO.setUHarm10(uharm10.get(j).getNormValue()); + abnormalPO.setUHarm11(uharm11.get(j).getNormValue()); + abnormalPO.setUHarm12(uharm12.get(j).getNormValue()); + abnormalPO.setUHarm13(uharm13.get(j).getNormValue()); + abnormalPO.setUHarm14(uharm14.get(j).getNormValue()); + abnormalPO.setUHarm15(uharm15.get(j).getNormValue()); + abnormalPO.setUHarm16(uharm16.get(j).getNormValue()); + abnormalPO.setUHarm17(uharm17.get(j).getNormValue()); + abnormalPO.setUHarm18(uharm18.get(j).getNormValue()); + abnormalPO.setUHarm19(uharm19.get(j).getNormValue()); + abnormalPO.setUHarm20(uharm20.get(j).getNormValue()); + abnormalPO.setUHarm21(uharm21.get(j).getNormValue()); + abnormalPO.setUHarm22(uharm22.get(j).getNormValue()); + abnormalPO.setUHarm23(uharm23.get(j).getNormValue()); + abnormalPO.setUHarm24(uharm24.get(j).getNormValue()); + abnormalPO.setUHarm25(uharm25.get(j).getNormValue()); + abnormalPO.setIHarm2(iharm2.get(j).getNormValue()); + abnormalPO.setIHarm3(iharm3.get(j).getNormValue()); + abnormalPO.setIHarm4(iharm4.get(j).getNormValue()); + abnormalPO.setIHarm5(iharm5.get(j).getNormValue()); + abnormalPO.setIHarm6(iharm6.get(j).getNormValue()); + abnormalPO.setIHarm7(iharm7.get(j).getNormValue()); + abnormalPO.setIHarm8(iharm8.get(j).getNormValue()); + abnormalPO.setIHarm9(iharm9.get(j).getNormValue()); + abnormalPO.setIHarm10(iharm10.get(j).getNormValue()); + abnormalPO.setIHarm11(iharm11.get(j).getNormValue()); + abnormalPO.setIHarm12(iharm12.get(j).getNormValue()); + abnormalPO.setIHarm13(iharm13.get(j).getNormValue()); + abnormalPO.setIHarm14(iharm14.get(j).getNormValue()); + abnormalPO.setIHarm15(iharm15.get(j).getNormValue()); + abnormalPO.setIHarm16(iharm16.get(j).getNormValue()); + abnormalPO.setIHarm17(iharm17.get(j).getNormValue()); + abnormalPO.setIHarm18(iharm18.get(j).getNormValue()); + abnormalPO.setIHarm19(iharm19.get(j).getNormValue()); + abnormalPO.setIHarm20(iharm20.get(j).getNormValue()); + abnormalPO.setIHarm21(iharm21.get(j).getNormValue()); + abnormalPO.setIHarm22(iharm22.get(j).getNormValue()); + abnormalPO.setIHarm23(iharm23.get(j).getNormValue()); + abnormalPO.setIHarm24(iharm24.get(j).getNormValue()); + abnormalPO.setIHarm25(iharm25.get(j).getNormValue()); + abnormalPO.setInuHarm1(inharm.get(j).getNormValue()); + abnormalPO.setInuHarm2(inharm1.get(j).getNormValue()); + abnormalPO.setInuHarm3(inharm2.get(j).getNormValue()); + abnormalPO.setInuHarm4(inharm3.get(j).getNormValue()); + abnormalPO.setInuHarm5(inharm4.get(j).getNormValue()); + abnormalPO.setInuHarm6(inharm5.get(j).getNormValue()); + abnormalPO.setInuHarm7(inharm6.get(j).getNormValue()); + abnormalPO.setInuHarm8(inharm7.get(j).getNormValue()); + abnormalPO.setInuHarm9(inharm8.get(j).getNormValue()); + abnormalPO.setInuHarm10(inharm9.get(j).getNormValue()); + abnormalPO.setInuHarm11(inharm10.get(j).getNormValue()); + abnormalPO.setInuHarm12(inharm11.get(j).getNormValue()); + abnormalPO.setInuHarm13(inharm12.get(j).getNormValue()); + abnormalPO.setInuHarm14(inharm13.get(j).getNormValue()); + abnormalPO.setInuHarm15(inharm14.get(j).getNormValue()); + abnormalPO.setInuHarm16(inharm15.get(j).getNormValue()); + } else if (j == 2) { + abnormalPO.setFreqDev(freq.get(j).getNormValue() > 50 + overlimit.getFreqDev() ? freq.get(j).getNormValue() : -3.14159f); + abnormalPO.setValueType("MAX"); + abnormalPO.setVoltageDev(voDev.get(j).getNormValue() > overlimit.getVoltageDev() ? voDev.get(j).getNormValue() : -3.14159f); + abnormalPO.setUvoltageDev(uoDev.get(j).getNormValue() > Math.abs(overlimit.getUvoltageDev()) ? uoDev.get(j).getNormValue() : -3.14159f); + abnormalPO.setFlickerAllTime(flicker.get(j).getNormValue() > overlimit.getFlicker() ? flicker.get(j).getNormValue() : -3.14159f); + abnormalPO.setUAberrance(uab.get(j).getNormValue() > overlimit.getUaberrance() ? uab.get(j).getNormValue() : -3.14159f); + abnormalPO.setUBalance(uba.get(j).getNormValue() > overlimit.getUbalance() ? uba.get(j).getNormValue() : -3.14159f); + abnormalPO.setINeg(ing.get(j).getNormValue() > overlimit.getINeg() ? ing.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm2(uharm2.get(j).getNormValue() > overlimit.getUharm2() ? uharm2.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm3(uharm3.get(j).getNormValue() > overlimit.getUharm3() ? uharm3.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm4(uharm4.get(j).getNormValue() > overlimit.getUharm4() ? uharm4.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm5(uharm5.get(j).getNormValue() > overlimit.getUharm5() ? uharm5.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm6(uharm6.get(j).getNormValue() > overlimit.getUharm6() ? uharm6.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm7(uharm7.get(j).getNormValue() > overlimit.getUharm7() ? uharm7.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm8(uharm8.get(j).getNormValue() > overlimit.getUharm8() ? uharm8.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm9(uharm9.get(j).getNormValue() > overlimit.getUharm9() ? uharm9.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm10(uharm10.get(j).getNormValue() > overlimit.getUharm10() ? uharm10.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm11(uharm11.get(j).getNormValue() > overlimit.getUharm11() ? uharm11.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm12(uharm12.get(j).getNormValue() > overlimit.getUharm12() ? uharm12.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm13(uharm13.get(j).getNormValue() > overlimit.getUharm13() ? uharm13.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm14(uharm14.get(j).getNormValue() > overlimit.getUharm14() ? uharm14.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm15(uharm15.get(j).getNormValue() > overlimit.getUharm15() ? uharm15.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm16(uharm16.get(j).getNormValue() > overlimit.getUharm16() ? uharm16.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm17(uharm17.get(j).getNormValue() > overlimit.getUharm17() ? uharm17.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm18(uharm18.get(j).getNormValue() > overlimit.getUharm18() ? uharm18.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm19(uharm19.get(j).getNormValue() > overlimit.getUharm19() ? uharm19.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm20(uharm20.get(j).getNormValue() > overlimit.getUharm20() ? uharm20.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm21(uharm21.get(j).getNormValue() > overlimit.getUharm21() ? uharm21.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm22(uharm22.get(j).getNormValue() > overlimit.getUharm22() ? uharm22.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm23(uharm23.get(j).getNormValue() > overlimit.getUharm23() ? uharm23.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm24(uharm24.get(j).getNormValue() > overlimit.getUharm24() ? uharm24.get(j).getNormValue() : -3.14159f); + abnormalPO.setUHarm25(uharm25.get(j).getNormValue() > overlimit.getUharm25() ? uharm25.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm2(iharm2.get(j).getNormValue() > overlimit.getIharm2() ? iharm2.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm3(iharm3.get(j).getNormValue() > overlimit.getIharm3() ? iharm3.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm4(iharm4.get(j).getNormValue() > overlimit.getIharm4() ? iharm4.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm5(iharm5.get(j).getNormValue() > overlimit.getIharm5() ? iharm5.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm6(iharm6.get(j).getNormValue() > overlimit.getIharm6() ? iharm6.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm7(iharm7.get(j).getNormValue() > overlimit.getIharm7() ? iharm7.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm8(iharm8.get(j).getNormValue() > overlimit.getIharm8() ? iharm8.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm9(iharm9.get(j).getNormValue() > overlimit.getIharm9() ? iharm9.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm10(iharm10.get(j).getNormValue() > overlimit.getIharm10() ? iharm10.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm11(iharm11.get(j).getNormValue() > overlimit.getIharm11() ? iharm11.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm12(iharm12.get(j).getNormValue() > overlimit.getIharm12() ? iharm12.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm13(iharm13.get(j).getNormValue() > overlimit.getIharm13() ? iharm13.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm14(iharm14.get(j).getNormValue() > overlimit.getIharm14() ? iharm14.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm15(iharm15.get(j).getNormValue() > overlimit.getIharm15() ? iharm15.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm16(iharm16.get(j).getNormValue() > overlimit.getIharm16() ? iharm16.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm17(iharm17.get(j).getNormValue() > overlimit.getIharm17() ? iharm17.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm18(iharm18.get(j).getNormValue() > overlimit.getIharm18() ? iharm18.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm19(iharm19.get(j).getNormValue() > overlimit.getIharm19() ? iharm19.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm20(iharm20.get(j).getNormValue() > overlimit.getIharm20() ? iharm20.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm21(iharm21.get(j).getNormValue() > overlimit.getIharm21() ? iharm21.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm22(iharm22.get(j).getNormValue() > overlimit.getIharm22() ? iharm22.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm23(iharm23.get(j).getNormValue() > overlimit.getIharm23() ? iharm23.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm24(iharm24.get(j).getNormValue() > overlimit.getIharm24() ? iharm24.get(j).getNormValue() : -3.14159f); + abnormalPO.setIHarm25(iharm25.get(j).getNormValue() > overlimit.getIharm25() ? iharm25.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm1(inharm.get(j).getNormValue() > overlimit.getInuharm1() ? inharm.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm2(inharm1.get(j).getNormValue() > overlimit.getInuharm2() ? inharm1.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm3(inharm2.get(j).getNormValue() > overlimit.getInuharm3() ? inharm2.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm4(inharm3.get(j).getNormValue() > overlimit.getInuharm4() ? inharm3.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm5(inharm4.get(j).getNormValue() > overlimit.getInuharm5() ? inharm4.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm6(inharm5.get(j).getNormValue() > overlimit.getInuharm6() ? inharm5.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm7(inharm6.get(j).getNormValue() > overlimit.getInuharm7() ? inharm6.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm8(inharm7.get(j).getNormValue() > overlimit.getInuharm8() ? inharm7.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm9(inharm8.get(j).getNormValue() > overlimit.getInuharm9() ? inharm8.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm10(inharm9.get(j).getNormValue() > overlimit.getInuharm10() ? inharm9.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm11(inharm10.get(j).getNormValue() > overlimit.getInuharm11() ? inharm10.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm12(inharm11.get(j).getNormValue() > overlimit.getInuharm12() ? inharm11.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm13(inharm12.get(j).getNormValue() > overlimit.getInuharm13() ? inharm12.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm14(inharm13.get(j).getNormValue() > overlimit.getInuharm14() ? inharm13.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm15(inharm14.get(j).getNormValue() > overlimit.getInuharm15() ? inharm14.get(j).getNormValue() : -3.14159f); + abnormalPO.setInuHarm16(inharm15.get(j).getNormValue() > overlimit.getInuharm16() ? inharm15.get(j).getNormValue() : -3.14159f); + } else if (j == 3) { + abnormalPO.setFreqDev(freq.get(j).getNormValue()); + abnormalPO.setValueType("MIN"); + abnormalPO.setVoltageDev(voDev.get(j).getNormValue()); + abnormalPO.setUvoltageDev(uoDev.get(j).getNormValue()); + abnormalPO.setFlickerAllTime(flicker.get(j).getNormValue()); + abnormalPO.setUAberrance(uab.get(j).getNormValue()); + abnormalPO.setUBalance(uba.get(j).getNormValue()); + abnormalPO.setINeg(ing.get(j).getNormValue()); + abnormalPO.setUHarm2(uharm2.get(j).getNormValue()); + abnormalPO.setUHarm3(uharm3.get(j).getNormValue()); + abnormalPO.setUHarm4(uharm4.get(j).getNormValue()); + abnormalPO.setUHarm5(uharm5.get(j).getNormValue()); + abnormalPO.setUHarm6(uharm6.get(j).getNormValue()); + abnormalPO.setUHarm7(uharm7.get(j).getNormValue()); + abnormalPO.setUHarm8(uharm8.get(j).getNormValue()); + abnormalPO.setUHarm9(uharm9.get(j).getNormValue()); + abnormalPO.setUHarm10(uharm10.get(j).getNormValue()); + abnormalPO.setUHarm11(uharm11.get(j).getNormValue()); + abnormalPO.setUHarm12(uharm12.get(j).getNormValue()); + abnormalPO.setUHarm13(uharm13.get(j).getNormValue()); + abnormalPO.setUHarm14(uharm14.get(j).getNormValue()); + abnormalPO.setUHarm15(uharm15.get(j).getNormValue()); + abnormalPO.setUHarm16(uharm16.get(j).getNormValue()); + abnormalPO.setUHarm17(uharm17.get(j).getNormValue()); + abnormalPO.setUHarm18(uharm18.get(j).getNormValue()); + abnormalPO.setUHarm19(uharm19.get(j).getNormValue()); + abnormalPO.setUHarm20(uharm20.get(j).getNormValue()); + abnormalPO.setUHarm21(uharm21.get(j).getNormValue()); + abnormalPO.setUHarm22(uharm22.get(j).getNormValue()); + abnormalPO.setUHarm23(uharm23.get(j).getNormValue()); + abnormalPO.setUHarm24(uharm24.get(j).getNormValue()); + abnormalPO.setUHarm25(uharm25.get(j).getNormValue()); + abnormalPO.setIHarm2(iharm2.get(j).getNormValue()); + abnormalPO.setIHarm3(iharm3.get(j).getNormValue()); + abnormalPO.setIHarm4(iharm4.get(j).getNormValue()); + abnormalPO.setIHarm5(iharm5.get(j).getNormValue()); + abnormalPO.setIHarm6(iharm6.get(j).getNormValue()); + abnormalPO.setIHarm7(iharm7.get(j).getNormValue()); + abnormalPO.setIHarm8(iharm8.get(j).getNormValue()); + abnormalPO.setIHarm9(iharm9.get(j).getNormValue()); + abnormalPO.setIHarm10(iharm10.get(j).getNormValue()); + abnormalPO.setIHarm11(iharm11.get(j).getNormValue()); + abnormalPO.setIHarm12(iharm12.get(j).getNormValue()); + abnormalPO.setIHarm13(iharm13.get(j).getNormValue()); + abnormalPO.setIHarm14(iharm14.get(j).getNormValue()); + abnormalPO.setIHarm15(iharm15.get(j).getNormValue()); + abnormalPO.setIHarm16(iharm16.get(j).getNormValue()); + abnormalPO.setIHarm17(iharm17.get(j).getNormValue()); + abnormalPO.setIHarm18(iharm18.get(j).getNormValue()); + abnormalPO.setIHarm19(iharm19.get(j).getNormValue()); + abnormalPO.setIHarm20(iharm20.get(j).getNormValue()); + abnormalPO.setIHarm21(iharm21.get(j).getNormValue()); + abnormalPO.setIHarm22(iharm22.get(j).getNormValue()); + abnormalPO.setIHarm23(iharm23.get(j).getNormValue()); + abnormalPO.setIHarm24(iharm24.get(j).getNormValue()); + abnormalPO.setIHarm25(iharm25.get(j).getNormValue()); + abnormalPO.setInuHarm1(inharm.get(j).getNormValue()); + abnormalPO.setInuHarm2(inharm1.get(j).getNormValue()); + abnormalPO.setInuHarm3(inharm2.get(j).getNormValue()); + abnormalPO.setInuHarm4(inharm3.get(j).getNormValue()); + abnormalPO.setInuHarm5(inharm4.get(j).getNormValue()); + abnormalPO.setInuHarm6(inharm5.get(j).getNormValue()); + abnormalPO.setInuHarm7(inharm6.get(j).getNormValue()); + abnormalPO.setInuHarm8(inharm7.get(j).getNormValue()); + abnormalPO.setInuHarm9(inharm8.get(j).getNormValue()); + abnormalPO.setInuHarm10(inharm9.get(j).getNormValue()); + abnormalPO.setInuHarm11(inharm10.get(j).getNormValue()); + abnormalPO.setInuHarm12(inharm11.get(j).getNormValue()); + abnormalPO.setInuHarm13(inharm12.get(j).getNormValue()); + abnormalPO.setInuHarm14(inharm13.get(j).getNormValue()); + abnormalPO.setInuHarm15(inharm14.get(j).getNormValue()); + abnormalPO.setInuHarm16(inharm15.get(j).getNormValue()); + } else { + abnormalPO.setFreqDev(freq.get(j).getNormValue()); + abnormalPO.setValueType("CP95"); + abnormalPO.setVoltageDev(voDev.get(j).getNormValue()); + abnormalPO.setUvoltageDev(uoDev.get(j).getNormValue()); + abnormalPO.setFlickerAllTime(flicker.get(j).getNormValue()); + abnormalPO.setUAberrance(uab.get(j).getNormValue()); + abnormalPO.setUBalance(uba.get(j).getNormValue()); + abnormalPO.setINeg(ing.get(j).getNormValue()); + abnormalPO.setUHarm2(uharm2.get(j).getNormValue()); + abnormalPO.setUHarm3(uharm3.get(j).getNormValue()); + abnormalPO.setUHarm4(uharm4.get(j).getNormValue()); + abnormalPO.setUHarm5(uharm5.get(j).getNormValue()); + abnormalPO.setUHarm6(uharm6.get(j).getNormValue()); + abnormalPO.setUHarm7(uharm7.get(j).getNormValue()); + abnormalPO.setUHarm8(uharm8.get(j).getNormValue()); + abnormalPO.setUHarm9(uharm9.get(j).getNormValue()); + abnormalPO.setUHarm10(uharm10.get(j).getNormValue()); + abnormalPO.setUHarm11(uharm11.get(j).getNormValue()); + abnormalPO.setUHarm12(uharm12.get(j).getNormValue()); + abnormalPO.setUHarm13(uharm13.get(j).getNormValue()); + abnormalPO.setUHarm14(uharm14.get(j).getNormValue()); + abnormalPO.setUHarm15(uharm15.get(j).getNormValue()); + abnormalPO.setUHarm16(uharm16.get(j).getNormValue()); + abnormalPO.setUHarm17(uharm17.get(j).getNormValue()); + abnormalPO.setUHarm18(uharm18.get(j).getNormValue()); + abnormalPO.setUHarm19(uharm19.get(j).getNormValue()); + abnormalPO.setUHarm20(uharm20.get(j).getNormValue()); + abnormalPO.setUHarm21(uharm21.get(j).getNormValue()); + abnormalPO.setUHarm22(uharm22.get(j).getNormValue()); + abnormalPO.setUHarm23(uharm23.get(j).getNormValue()); + abnormalPO.setUHarm24(uharm24.get(j).getNormValue()); + abnormalPO.setUHarm25(uharm25.get(j).getNormValue()); + abnormalPO.setIHarm2(iharm2.get(j).getNormValue()); + abnormalPO.setIHarm3(iharm3.get(j).getNormValue()); + abnormalPO.setIHarm4(iharm4.get(j).getNormValue()); + abnormalPO.setIHarm5(iharm5.get(j).getNormValue()); + abnormalPO.setIHarm6(iharm6.get(j).getNormValue()); + abnormalPO.setIHarm7(iharm7.get(j).getNormValue()); + abnormalPO.setIHarm8(iharm8.get(j).getNormValue()); + abnormalPO.setIHarm9(iharm9.get(j).getNormValue()); + abnormalPO.setIHarm10(iharm10.get(j).getNormValue()); + abnormalPO.setIHarm11(iharm11.get(j).getNormValue()); + abnormalPO.setIHarm12(iharm12.get(j).getNormValue()); + abnormalPO.setIHarm13(iharm13.get(j).getNormValue()); + abnormalPO.setIHarm14(iharm14.get(j).getNormValue()); + abnormalPO.setIHarm15(iharm15.get(j).getNormValue()); + abnormalPO.setIHarm16(iharm16.get(j).getNormValue()); + abnormalPO.setIHarm17(iharm17.get(j).getNormValue()); + abnormalPO.setIHarm18(iharm18.get(j).getNormValue()); + abnormalPO.setIHarm19(iharm19.get(j).getNormValue()); + abnormalPO.setIHarm20(iharm20.get(j).getNormValue()); + abnormalPO.setIHarm21(iharm21.get(j).getNormValue()); + abnormalPO.setIHarm22(iharm22.get(j).getNormValue()); + abnormalPO.setIHarm23(iharm23.get(j).getNormValue()); + abnormalPO.setIHarm24(iharm24.get(j).getNormValue()); + abnormalPO.setIHarm25(iharm25.get(j).getNormValue()); + abnormalPO.setInuHarm1(inharm.get(j).getNormValue()); + abnormalPO.setInuHarm2(inharm1.get(j).getNormValue()); + abnormalPO.setInuHarm3(inharm2.get(j).getNormValue()); + abnormalPO.setInuHarm4(inharm3.get(j).getNormValue()); + abnormalPO.setInuHarm5(inharm4.get(j).getNormValue()); + abnormalPO.setInuHarm6(inharm5.get(j).getNormValue()); + abnormalPO.setInuHarm7(inharm6.get(j).getNormValue()); + abnormalPO.setInuHarm8(inharm7.get(j).getNormValue()); + abnormalPO.setInuHarm9(inharm8.get(j).getNormValue()); + abnormalPO.setInuHarm10(inharm9.get(j).getNormValue()); + abnormalPO.setInuHarm11(inharm10.get(j).getNormValue()); + abnormalPO.setInuHarm12(inharm11.get(j).getNormValue()); + abnormalPO.setInuHarm13(inharm12.get(j).getNormValue()); + abnormalPO.setInuHarm14(inharm13.get(j).getNormValue()); + abnormalPO.setInuHarm15(inharm14.get(j).getNormValue()); + abnormalPO.setInuHarm16(inharm15.get(j).getNormValue()); + } + abnormalMapper.insert(abnormalPO); + return "预处理成功!"; + }else { + return "预处理失败!"; + } + } + } + } + } else { + return "预处理失败,未获取到监测点"; + } + return "预处理成功!"; + } + + public List getConntion(int i, int j, DateTime startTime, DateTime endTime, String lineIndex, int conntion) { + List abnormalVOList = new ArrayList<>(); + String sql = ""; + String phasic = ""; + String valueType = ""; + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.append(InfluxDBPublicParam.TIME + " >= '").append(startTime).append("' and ").append(InfluxDBPublicParam.TIME + " <= '").append(endTime).append("'"); + stringBuilder.append(" and ").append(InfluxDBPublicParam.LINE_ID + "='").append(lineIndex).append("'"); + switch (i) { + case 1: + phasic = "A"; + break; + case 2: + phasic = "B"; + break; + case 3: + phasic = "C"; + break; + case 4: + phasic = "T"; + break; + } + switch (j) { + case 1: + valueType = "AVG"; + break; + case 2: + valueType = "MAX"; + break; + case 3: + valueType = "MIN"; + break; + case 4: + valueType = "CP95"; + break; + } + stringBuilder.append(" and value_type ='").append(valueType).append("'"); + stringBuilder.append(" and ").append("phasic_type ='").append(phasic).append("'").append("order by time asc ").append(InfluxDBPublicParam.TIME_ZONE); + switch (conntion) { + case 1: + sql = "SELECT vl_dev as normValue,value_type as valueType FROM day_v WHERE " + stringBuilder.toString(); + break; + case 2: + sql = "SELECT vu_dev as normValue,value_type as valueType FROM day_v WHERE " + stringBuilder.toString(); + break; + case 3: + sql = "SELECT v_unbalance as normValue,value_type as valueType FROM day_v WHERE " + stringBuilder.toString(); + break; + case 4: + sql = "SELECT v_thd as normValue,value_type as valueType FROM day_v WHERE " + stringBuilder.toString(); + break; + case 5: + sql = "SELECT i_neg as normValue,value_type as valueType FROM day_v WHERE " + stringBuilder.toString(); + break; + case 6: + sql = "SELECT freq as normValue,value_type as valueType FROM day_v WHERE " + stringBuilder.toString(); + break; + case 7: + sql = "SELECT v_2 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 8: + sql = "SELECT v_3 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 9: + sql = "SELECT v_4 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 10: + sql = "SELECT v_5 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 11: + sql = "SELECT v_6 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 12: + sql = "SELECT v_7 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 13: + sql = "SELECT v_8 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 14: + sql = "SELECT v_9 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 15: + sql = "SELECT v_10 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 16: + sql = "SELECT v_11 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 17: + sql = "SELECT v_12 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 18: + sql = "SELECT v_13 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 19: + sql = "SELECT v_14 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 20: + sql = "SELECT v_15 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 21: + sql = "SELECT v_16 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 22: + sql = "SELECT v_17 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 23: + sql = "SELECT v_18 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 24: + sql = "SELECT v_19 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 25: + sql = "SELECT v_20 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 26: + sql = "SELECT v_21 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 27: + sql = "SELECT v_22 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 28: + sql = "SELECT v_23 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 29: + sql = "SELECT v_24 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 30: + sql = "SELECT v_25 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 31: + sql = "SELECT i_2 as normValue,value_type as valueType FROM day_harmrate_v WHERE " + stringBuilder.toString(); + break; + case 32: + sql = "SELECT i_3 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 33: + sql = "SELECT i_4 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 34: + sql = "SELECT i_5 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 35: + sql = "SELECT i_6 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 36: + sql = "SELECT i_7 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 37: + sql = "SELECT i_8 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 38: + sql = "SELECT i_9 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 39: + sql = "SELECT i_10 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 40: + sql = "SELECT i_11 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 41: + sql = "SELECT i_12 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 42: + sql = "SELECT i_13 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 43: + sql = "SELECT i_14 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 44: + sql = "SELECT i_15 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 45: + sql = "SELECT i_16 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 46: + sql = "SELECT i_17 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 47: + sql = "SELECT i_18 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 48: + sql = "SELECT i_19 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 49: + sql = "SELECT i_20 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 50: + sql = "SELECT i_21 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 51: + sql = "SELECT i_22 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 52: + sql = "SELECT i_23 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 53: + sql = "SELECT i_24 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 54: + sql = "SELECT i_25 as normValue,value_type as valueType FROM day_i WHERE " + stringBuilder.toString(); + break; + case 55: + sql = "SELECT v_1 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 56: + sql = "SELECT v_2 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 57: + sql = "SELECT v_3 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 58: + sql = "SELECT v_4 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 59: + sql = "SELECT v_5 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 60: + sql = "SELECT v_6 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 61: + sql = "SELECT v_7 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 62: + sql = "SELECT v_8 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 63: + sql = "SELECT v_9 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 64: + sql = "SELECT v_10 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 65: + sql = "SELECT v_11 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 66: + sql = "SELECT v_12 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 67: + sql = "SELECT v_13 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 68: + sql = "SELECT v_14 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 69: + sql = "SELECT v_15 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 70: + sql = "SELECT v_16 as normValue,value_type as valueType FROM day_inharmrate_v WHERE " + stringBuilder.toString(); + break; + case 71: + sql = "SELECT plt as normValue,value_type as valueType FROM day_plt WHERE " + stringBuilder.toString(); + break; + + + } + //进行查询数据 + QueryResult result = influxDbUtils.query(sql); + List list = result.getResults().get(0).getSeries(); + if (!CollectionUtils.isEmpty(list)) { + list.forEach(po -> { + List> valueList = po.getValues(); + if (!CollectionUtils.isEmpty(valueList)) { + for (List value : valueList) { + AbnormalVO abnormalVO = new AbnormalVO(); + //谐波畸变率 保留两位小数 + Double distortion = value.get(1) == null ? null : BigDecimal.valueOf(Double.parseDouble(value.get(1).toString())).setScale(4, BigDecimal.ROUND_HALF_UP).doubleValue(); + abnormalVO.setValueType(value.get(2).toString()); + abnormalVO.setNormValue(distortion.floatValue()); + abnormalVOList.add(abnormalVO); + } + } + }); + return abnormalVOList; + } else { + return abnormalVOList; + } + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/OnlineRateServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/OnlineRateServiceImpl.java new file mode 100644 index 000000000..6c8be660e --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/OnlineRateServiceImpl.java @@ -0,0 +1,162 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.date.DateUnit; +import cn.hutool.core.date.DateUtil; +import com.njcn.device.pq.api.LineFeignClient; +import com.njcn.energy.pojo.constant.ModelState; +import com.njcn.influxdb.utils.InfluxDbUtils; +import com.njcn.prepare.harmonic.pojo.dto.OnLineRateDTO; +import com.njcn.prepare.harmonic.pojo.param.LineParam; + +import com.njcn.prepare.harmonic.pojo.po.PqsCommunicatePO; +import com.njcn.prepare.harmonic.service.line.OnlineRateService; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.influxdb.InfluxDB; +import org.influxdb.dto.BatchPoints; +import org.influxdb.dto.Point; +import org.influxdb.dto.QueryResult; +import org.influxdb.impl.InfluxDBResultMapper; +import org.springframework.stereotype.Service; + +import java.math.BigDecimal; +import java.math.RoundingMode; +import java.util.*; +import java.util.concurrent.TimeUnit; + +import static com.njcn.influxdb.param.InfluxDBPublicParam.DAY_MINUTE; + +/** + * 生成在线率数据 + * + * @author xiaoyao + * @version 1.0.0 + * @createTime 2022/10/27 9:23 + */ +@Slf4j +@Service +@AllArgsConstructor +public class OnlineRateServiceImpl implements OnlineRateService { + + private final InfluxDbUtils influxDbUtils; + + private final LineFeignClient lineFeignClient; + + @Override + public void getOnlineRateData(LineParam lineParam) { + List lineIdList = lineParam.getLineIds(); + if (CollUtil.isEmpty(lineParam.getLineIds())){ + lineIdList = lineFeignClient.getDeviceList().getData(); + } + List outCommunicateData = new ArrayList<>(); + for (String lineId : lineIdList){ + List communicateData = getCommunicateData(lineId); + outCommunicateData.addAll(communicateData); + } + List records = new ArrayList<>(); + Date dateOut = DateUtil.parse(lineParam.getDataDate()); + for (PqsCommunicatePO pqsCommunicate : outCommunicateData){ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + Date newDate = Date.from(pqsCommunicate.getTime()); + OnLineRateDTO onLineRate = onLineMinute(newDate,dateOut,pqsCommunicate.getType(),pqsCommunicate.getLineId(),lineParam.getDataDate()); + tags.put("dev_id",pqsCommunicate.getLineId()); + fields.put("online_min",onLineRate.getOnLineMinute()); + fields.put("offline_min",onLineRate.getOffLineMinute()); + fields.put("online_rate",onLineRate.getRate()); + Point point = influxDbUtils.pointBuilder("pqs_onlinerate", dateOut.getTime(), TimeUnit.MILLISECONDS,tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName()).tag("dev_id", pqsCommunicate.getLineId()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + } + influxDbUtils.batchInsert(influxDbUtils.getDbName(),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + /** + * 获取pqs_communicate数据 + */ + private List getCommunicateData(String lineId){ + QueryResult sqlResult = influxDbUtils.query("SELECT * FROM pqs_communicate where line_id = '" + lineId +"' order by time desc limit 1 tz('Asia/Shanghai')"); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); + return resultMapper.toPOJO(sqlResult, PqsCommunicatePO.class); + } + + /** + * 获取范围时间内的pqs_communicate数据 + */ + private List getCommunicateData(String lineId, String date){ + QueryResult sqlResult = influxDbUtils.query("SELECT * FROM pqs_communicate where time >= '" + date + " 00:00:00' and time <= '" + date + " 23:59:59' and line_id = '" + lineId +"' order by time asc tz('Asia/Shanghai')"); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); + return resultMapper.toPOJO(sqlResult, PqsCommunicatePO.class); + } + + /** + * new的时间和当前统计时间 不是/是 同一天 + */ + private OnLineRateDTO onLineMinute(Date newDate, Date date, Integer type,String lineId,String dateStr){ + OnLineRateDTO onLineRate = new OnLineRateDTO(); + Integer minute = 0; + /*new的时间和当前统计时间是同一天*/ + if (DateUtil.isSameDay(newDate,date)){ + minute = processData(newDate, date, type, lineId, dateStr); + }else { + /*new的时间和当前统计时间不是同一天*/ + Date nowDate = new Date(); + /*数据补招的情况下*/ + if (DateUtil.between(date,nowDate,DateUnit.DAY) > DateUtil.between(newDate,nowDate,DateUnit.DAY)){ + minute = processData(newDate, date, type, lineId, dateStr); + }else { + if (ModelState.online.equals(type)){ + minute = DAY_MINUTE; + } + } + } + onLineRate.setOnLineMinute(minute); + onLineRate.setOffLineMinute(DAY_MINUTE - minute); + BigDecimal onLine = BigDecimal.valueOf(onLineRate.getOnLineMinute()); + BigDecimal offLine = BigDecimal.valueOf(onLineRate.getOffLineMinute()); + double rate = onLine.divide(onLine.add(offLine),4, RoundingMode.HALF_UP).doubleValue(); + onLineRate.setRate(rate*100); + return onLineRate; + } + + private Integer processData(Date newDate, Date date, Integer type,String lineId,String dateStr){ + int minute = 0; + List communicateData = getCommunicateData(lineId,dateStr); + /*当前统计时间内存在多条数据*/ + if (communicateData.size() > 1){ + Date lastTime = null; + long onlineTime = 0; + long offlineTime = 0; + for (int i=0; i pollutionList; + //Line_id集合不存在以及时间类型为日的情况下执行influxdb计算 + if (CollUtil.isEmpty(lineParam.getLineIds()) && Integer.valueOf(BizParamConstant.STAT_BIZ_DAY).equals(lineParam.getType())){ + List overLimitList = getAllLinesLimitData(); + List lineList = overLimitList.stream().map(Overlimit::getId).collect(Collectors.toList()); + //指标数据获取 + List harmonicVoltageList = getHarmonicVoltage(overLimitList,lineParam.getDataDate()); + List harmonicCurrentList = getHarmonicCurrent(overLimitList,lineParam.getDataDate()); + List frequencyDeviationList = getFrequencyDeviation(overLimitList,lineParam.getDataDate()); + List voltageDeviationList = getVoltageDeviation(overLimitList,lineParam.getDataDate()); + List threePhaseVoltageList = getThreePhaseVoltageUnbalance(overLimitList,lineParam.getDataDate()); + List negativeSequenceList = getNegativeSequenceCurrent(overLimitList,lineParam.getDataDate()); + List interharmonicVoltageList = getInterharmonicVoltage(overLimitList,lineParam.getDataDate()); + List voltageFlickerList = getVoltageFlicker(overLimitList,lineParam.getDataDate()); + LogUtil.njcnDebug(log, "监测点污染指标数据查询耗时:{}", timer.intervalRestart()); + + List lineIdList = new ArrayList<>(); + lineList.forEach(item->{ + PollutionDTO pollutionDTO = new PollutionDTO(); + pollutionDTO.setLineId(item); + lineIdList.add(pollutionDTO); + }); + pollutionList = processPollutionList(lineIdList,harmonicVoltageList,harmonicCurrentList,frequencyDeviationList,voltageDeviationList,threePhaseVoltageList,negativeSequenceList,interharmonicVoltageList,voltageFlickerList); + + Date dateOut = new Date(); + //入表data_polluction + if (StrUtil.isNotBlank(lineParam.getDataDate())){ + dateOut = DateUtil.parse(lineParam.getDataDate()); + } + insertPolluction(pollutionList,dateOut.getTime()); + LogUtil.njcnDebug(log, "监测点污染指标数据data_polluction插入耗时:{}", timer.intervalRestart()); + }else { + //获取data_polluction数据 + pollutionList = getDataPolluction(lineParam); + } + //MySql入表污区图表等 + LocalDateTime local = LocalDateTimeUtil.now(); + if (StrUtil.isNotBlank(lineParam.getDataDate())){ + local = LocalDateTimeUtil.parse(lineParam.getDataDate() + "T00:00:00"); + } + if (Integer.valueOf(BizParamConstant.STAT_BIZ_DAY).equals(lineParam.getType())){ + insertLinePollution(pollutionList,local); + } + insertPolluctionMySql(pollutionList, local, lineParam.getType()); + LogUtil.njcnDebug(log, "监测点污染指标数据完成耗时:{}", timer.intervalRestart()); + } + + /** + * MySql入表 + */ + private void insertPolluctionMySql(List pollutionList, LocalDateTime local, Integer type){ + HttpResult>> substationOut = lineFeignClient.getLineBySubstationRelation(1); + HttpResult>> unitOut = deptLineFeignClient.getLineByDeptRelation(1); + Map> substationMap = substationOut.getData(); + Map> unitMap = unitOut.getData(); + List polluctionList = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.POLLUTION_STATIS.getCode()).getData(); + + insertSubstation(polluctionList,substationMap,pollutionList,local,type); + insertUnit(polluctionList,unitMap,pollutionList,local,type); + } + + private List getDataPolluction(LineParam lineParam){ + List lineList; + if (CollUtil.isEmpty(lineParam.getLineIds())){ + List overLimitList = getAllLinesLimitData(); + lineList = overLimitList.stream().map(Overlimit::getId).collect(Collectors.toList()); + }else { + lineList = new ArrayList<>(lineParam.getLineIds()); + } + List pollutionDTOList = new ArrayList<>(); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); + for (String lineId : lineList){ + String sql="SELECT * FROM data_polluction where line_id = '" + lineId +"' "+processDate(lineParam.getDataDate(),lineParam.getType()); + QueryResult dataPolluctionResult = influxDbUtils.query(sql); + List threePhaseList = resultMapper.toPOJO(dataPolluctionResult, DataPolluctionPO.class); + for (DataPolluctionPO dataPolluction : threePhaseList){ + PollutionDTO pollutionDTO = new PollutionDTO(); + pollutionDTO.setLineId(dataPolluction.getLineId()); + pollutionDTO.setFreqDev(dataPolluction.getFreqDev()); + pollutionDTO.setVDev(dataPolluction.getVDev()); + pollutionDTO.setVUnbalance(dataPolluction.getVUnbalance()); + pollutionDTO.setVAll(dataPolluction.getVAll()); + pollutionDTO.setPlt(dataPolluction.getPlt()); + pollutionDTO.setIAll(dataPolluction.getIAll()); + pollutionDTO.setINeg(dataPolluction.getINeg()); + pollutionDTO.setVInharm(dataPolluction.getVInharm()); + pollutionDTOList.add(pollutionDTO); + } + } + return pollutionDTOList; + } + + /*MySql入表 r_mp_pollution_d*/ + private void insertLinePollution(List pollutionList, LocalDateTime local){ + for (PollutionDTO pollution : pollutionList){ + RMpPollutionD rMpPollution = new RMpPollutionD(); + rMpPollution.setLineId(pollution.getLineId()); + rMpPollution.setFreqDev(pollution.getFreqDev().floatValue()); + rMpPollution.setvDev(pollution.getVDev().floatValue()); + rMpPollution.setvUnbalance(pollution.getVUnbalance().floatValue()); + rMpPollution.setvAll(pollution.getVAll().floatValue()); + rMpPollution.setPlt(pollution.getPlt().floatValue()); + rMpPollution.setiAll(pollution.getIAll().floatValue()); + rMpPollution.setiNeg(pollution.getINeg().floatValue()); + rMpPollution.setvInharm(pollution.getVInharm().floatValue()); + rMpPollution.setDataDate(local); + rMpPollutionDMapper.insertPollution(rMpPollution); + } + } + + /*MySql入表 r_stat_pollution_substation*/ + private void insertSubstation(List polluctionList,Map> substationMap,List pollutionList,LocalDateTime local, Integer type){ + for (String key : substationMap.keySet()){ + List processList = new ArrayList<>(); + List substationList = substationMap.get(key); + for(String lineid : substationList){ + for (PollutionDTO pollution : pollutionList){ + if (lineid.equals(pollution.getLineId())){ + processList.add(pollution); + } + } + } + Map inMap = new HashMap<>(); + inMap.put("orgId",key); + inMap.put("dataDate",local); + for (DictData dictData : polluctionList){ + inMap = processData(dictData,processList,inMap); + if (Integer.valueOf(BizParamConstant.STAT_BIZ_DAY).equals(type)){ + rStatPollutionOrgDMapper.insertPollution(inMap); + }else if (Integer.valueOf(BizParamConstant.STAT_BIZ_MONTH).equals(type)){ + rStatPollutionOrgMMapper.insertPollution(inMap); + }else if (Integer.valueOf(BizParamConstant.STAT_BIZ_QUARTER).equals(type)){ + rStatPollutionOrgQMapper.insertPollution(inMap); + }else if (Integer.valueOf(BizParamConstant.STAT_BIZ_YEAR).equals(type)){ + rStatPollutionOrgYMapper.insertPollution(inMap); + } + } + } + } + + /*MySql入表 r_stat_pollution_org*/ + private void insertUnit(List polluctionList,Map> unitMap,List pollutionList,LocalDateTime local, Integer type){ + for (String key : unitMap.keySet()){ + List processList = new ArrayList<>(); + List unitList = unitMap.get(key); + for(String lineid : unitList){ + for (PollutionDTO pollution : pollutionList){ + if (lineid.equals(pollution.getLineId())){ + processList.add(pollution); + } + } + } + Map inMap = new HashMap<>(); + inMap.put("substationId",key); + inMap.put("dataDate",local); + for (DictData dictData : polluctionList){ + inMap = processData(dictData,processList,inMap); + if (Integer.valueOf(BizParamConstant.STAT_BIZ_DAY).equals(type)){ + rStatPollutionSubstationDMapper.insertPollution(inMap); + }else if (Integer.valueOf(BizParamConstant.STAT_BIZ_MONTH).equals(type)){ + rStatPollutionSubstationMMapper.insertPollution(inMap); + }else if (Integer.valueOf(BizParamConstant.STAT_BIZ_QUARTER).equals(type)){ + rStatPollutionSubstationQMapper.insertPollution(inMap); + }else if (Integer.valueOf(BizParamConstant.STAT_BIZ_YEAR).equals(type)){ + rStatPollutionSubstationYMapper.insertPollution(inMap); + } + } + } + } + + private Map processData(DictData dictData,List processList,Map map){ + if ("Freq_Dev".equals(dictData.getCode())){ + map.put("pollutionType",dictData.getId()); + map.put("value",processList.stream().max(Comparator.comparing(PollutionDTO::getFreqDev)).get().getFreqDev()); + } + if ("V_Dev".equals(dictData.getCode())){ + map.put("pollutionType",dictData.getId()); + map.put("value",processList.stream().max(Comparator.comparing(PollutionDTO::getVDev)).get().getVDev()); + } + if ("V_Unbalance".equals(dictData.getCode())){ + map.put("pollutionType",dictData.getId()); + map.put("value",processList.stream().max(Comparator.comparing(PollutionDTO::getVUnbalance)).get().getVUnbalance()); + } + if ("V_All".equals(dictData.getCode())){ + map.put("pollutionType",dictData.getId()); + map.put("value",processList.stream().max(Comparator.comparing(PollutionDTO::getVAll)).get().getVAll()); + } + if ("Plt".equals(dictData.getCode())){ + map.put("pollutionType",dictData.getId()); + map.put("value",processList.stream().max(Comparator.comparing(PollutionDTO::getPlt)).get().getPlt()); + } + if ("I_All".equals(dictData.getCode())){ + map.put("pollutionType",dictData.getId()); + map.put("value",processList.stream().max(Comparator.comparing(PollutionDTO::getIAll)).get().getIAll()); + } + if ("I_Neg".equals(dictData.getCode())){ + map.put("pollutionType",dictData.getId()); + map.put("value",processList.stream().max(Comparator.comparing(PollutionDTO::getINeg)).get().getINeg()); + } + if ("V_Inharm".equals(dictData.getCode())){ + map.put("pollutionType",dictData.getId()); + map.put("value",processList.stream().max(Comparator.comparing(PollutionDTO::getVInharm)).get().getVInharm()); + } + return map; + } + + /** + * 谐波电压:取监测点最新的A、B、C三相数据,再取电压总谐波畸变率、各次谐波电压含有率(2~25次)中的最大值,作为结果 + */ + private List getHarmonicVoltage(List overLimitList,String dataDate){ + List list = new ArrayList<>(); + Map> threePhase = getThreePhaseData(overLimitList,dataDate); + Map> distortionRate = getDistortionRateData(overLimitList,dataDate); + for (String key : threePhase.keySet()) { + list.add(threePhase.get(key).get()); + } + for (String key : distortionRate.keySet()) { + list.add(distortionRate.get(key).get()); + } + Comparator comparator = Comparator.comparing(PublicDTO::getData); + Map> outMap = list.stream().collect(Collectors.groupingBy(PublicDTO::getId,Collectors.reducing(BinaryOperator.maxBy(comparator)))); + return process(outMap); + } + + private Map> getThreePhaseData(List overLimitList,String dataDate){ + String sql = "SELECT * FROM day_v where value_type = 'CP95' and (phasic_type = 'A' or phasic_type = 'B' or phasic_type = 'C') " + processDate(dataDate,Integer.valueOf(BizParamConstant.STAT_BIZ_DAY)) +" group by line_id order by time desc limit 3 tz('Asia/Shanghai')"; + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); + List data; + PublicDTO publicDTO; + List lineData = new ArrayList<>(); + QueryResult threePhaseSqlResult = influxDbUtils.query(sql); + List threePhaseList = resultMapper.toPOJO(threePhaseSqlResult, DayVPO.class); + for (DayVPO item1 : threePhaseList) { + for (Overlimit item2 : overLimitList) { + if (Objects.equals(item1.getLineId(),item2.getId())){ + double vUnbalance = item1.getVUnbalance()/item2.getUaberrance(); + data = Stream.of(vUnbalance).collect(Collectors.toList()); + double result = data.stream().max(Comparator.comparing(Double::doubleValue)).get(); + publicDTO = new PublicDTO(); + publicDTO.setId(item1.getLineId()); + publicDTO.setData(result); + lineData.add(publicDTO); + } + } + } + Comparator comparator = Comparator.comparing(PublicDTO::getData); + return lineData.stream().collect(Collectors.groupingBy(PublicDTO::getId,Collectors.reducing(BinaryOperator.maxBy(comparator)))); + } + + private Map> getDistortionRateData(List overLimitList,String dataDate){ + String sql = "SELECT * FROM day_harmrate_v where value_type = 'CP95' and (phasic_type = 'A' or phasic_type = 'B' or phasic_type = 'C') "+ processDate(dataDate,Integer.valueOf(BizParamConstant.STAT_BIZ_DAY)) +"group by line_id order by time desc limit 3 tz('Asia/Shanghai')"; + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); + List data; + PublicDTO publicDTO; + List lineData = new ArrayList<>(); + QueryResult distortionRateSqlResult = influxDbUtils.query(sql); + List distortionRateList = resultMapper.toPOJO(distortionRateSqlResult, DayHarmrateVPO.class); + for (DayHarmrateVPO dayHarmrateV : distortionRateList) { + for (Overlimit overlimit : overLimitList) { + if (Objects.equals(dayHarmrateV.getLineId(),overlimit.getId())){ + double v2 = dayHarmrateV.getV2()/overlimit.getUharm2(); + double v3 = dayHarmrateV.getV3()/overlimit.getUharm3(); + double v4 = dayHarmrateV.getV4()/overlimit.getUharm4(); + double v5 = dayHarmrateV.getV5()/overlimit.getUharm5(); + double v6 = dayHarmrateV.getV6()/overlimit.getUharm6(); + double v7 = dayHarmrateV.getV7()/overlimit.getUharm7(); + double v8 = dayHarmrateV.getV8()/overlimit.getUharm8(); + double v9 = dayHarmrateV.getV9()/overlimit.getUharm9(); + double v10 = dayHarmrateV.getV10()/overlimit.getUharm10(); + double v11 = dayHarmrateV.getV11()/overlimit.getUharm11(); + double v12 = dayHarmrateV.getV12()/overlimit.getUharm12(); + double v13 = dayHarmrateV.getV13()/overlimit.getUharm13(); + double v14 = dayHarmrateV.getV14()/overlimit.getUharm14(); + double v15 = dayHarmrateV.getV15()/overlimit.getUharm15(); + double v16 = dayHarmrateV.getV16()/overlimit.getUharm16(); + double v17 = dayHarmrateV.getV17()/overlimit.getUharm17(); + double v18 = dayHarmrateV.getV18()/overlimit.getUharm18(); + double v19 = dayHarmrateV.getV19()/overlimit.getUharm19(); + double v20 = dayHarmrateV.getV20()/overlimit.getUharm20(); + double v21 = dayHarmrateV.getV21()/overlimit.getUharm21(); + double v22 = dayHarmrateV.getV22()/overlimit.getUharm22(); + double v23 = dayHarmrateV.getV23()/overlimit.getUharm23(); + double v24 = dayHarmrateV.getV24()/overlimit.getUharm24(); + double v25 = dayHarmrateV.getV25()/overlimit.getUharm25(); + data = Stream.of(v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25).collect(Collectors.toList()); + double result = data.stream().max(Comparator.comparing(Double::doubleValue)).get(); + publicDTO = new PublicDTO(); + publicDTO.setId(dayHarmrateV.getLineId()); + publicDTO.setData(result); + lineData.add(publicDTO); + } + } + } + Comparator comparator = Comparator.comparing(PublicDTO::getData); + return lineData.stream().collect(Collectors.groupingBy(PublicDTO::getId,Collectors.reducing(BinaryOperator.maxBy(comparator)))); + } + + /** + * 谐波电流:各次谐波电流(2~25次),取各监测点最新的A、B、C三相数据。 + */ + private List getHarmonicCurrent(List overLimitList,String dataDate){ + String sql = "SELECT * FROM day_i where value_type = 'CP95' and (phasic_type = 'A' or phasic_type = 'B' or phasic_type = 'C')"+ processDate(dataDate,Integer.valueOf(BizParamConstant.STAT_BIZ_DAY)) +" group by line_id order by time desc limit 3 tz('Asia/Shanghai')"; + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); + List data; + PublicDTO publicDTO; + List lineData = new ArrayList<>(); + QueryResult sqlResult = influxDbUtils.query(sql); + List list = resultMapper.toPOJO(sqlResult, DayIPO.class); + for (DayIPO dayI : list) { + for (Overlimit overlimit : overLimitList) { + if (Objects.equals(dayI.getLineId(),overlimit.getId())){ + double v2 = dayI.getI2()/overlimit.getIharm2(); + double v3 = dayI.getI3()/overlimit.getIharm3(); + double v4 = dayI.getI4()/overlimit.getIharm4(); + double v5 = dayI.getI5()/overlimit.getIharm5(); + double v6 = dayI.getI6()/overlimit.getIharm6(); + double v7 = dayI.getI7()/overlimit.getIharm7(); + double v8 = dayI.getI8()/overlimit.getIharm8(); + double v9 = dayI.getI9()/overlimit.getIharm9(); + double v10 = dayI.getI10()/overlimit.getIharm10(); + double v11 = dayI.getI11()/overlimit.getIharm11(); + double v12 = dayI.getI12()/overlimit.getIharm12(); + double v13 = dayI.getI13()/overlimit.getIharm13(); + double v14 = dayI.getI14()/overlimit.getIharm14(); + double v15 = dayI.getI15()/overlimit.getIharm15(); + double v16 = dayI.getI16()/overlimit.getIharm16(); + double v17 = dayI.getI17()/overlimit.getIharm17(); + double v18 = dayI.getI18()/overlimit.getIharm18(); + double v19 = dayI.getI19()/overlimit.getIharm19(); + double v20 = dayI.getI20()/overlimit.getIharm20(); + double v21 = dayI.getI21()/overlimit.getIharm21(); + double v22 = dayI.getI22()/overlimit.getIharm22(); + double v23 = dayI.getI23()/overlimit.getIharm23(); + double v24 = dayI.getI24()/overlimit.getIharm24(); + double v25 = dayI.getI25()/overlimit.getIharm25(); + data = Stream.of(v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25).collect(Collectors.toList()); + double result = data.stream().max(Comparator.comparing(Double::doubleValue)).get(); + publicDTO = new PublicDTO(); + publicDTO.setId(dayI.getLineId()); + publicDTO.setData(result); + lineData.add(publicDTO); + } + } + } + Comparator comparator = Comparator.comparing(PublicDTO::getData); + Map> outMap = lineData.stream().collect(Collectors.groupingBy(PublicDTO::getId,Collectors.reducing(BinaryOperator.maxBy(comparator)))); + return process(outMap); + } + + /** + * 频率偏差:各监测点最新的T相数据,取频率上下偏差的绝对值中的最大值。 + */ + private List getFrequencyDeviation(List overLimitList,String dataDate){ + String sql = "SELECT line_id,abs(freq_dev) AS freq_dev FROM day_v where phasic_type = 'T' and (value_type = 'MIN' or value_type = 'MAX') "+ processDate(dataDate,Integer.valueOf(BizParamConstant.STAT_BIZ_DAY)) +"group by line_id order by time desc limit 2 tz('Asia/Shanghai')"; + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); + List data; + PublicDTO publicDTO; + List lineData = new ArrayList<>(); + QueryResult sqlResult = influxDbUtils.query(sql); + List list = resultMapper.toPOJO(sqlResult, DayVPO.class); + for (DayVPO dayV : list) { + for (Overlimit overlimit : overLimitList) { + if (Objects.equals(dayV.getLineId(),overlimit.getId())){ + double freqDev = dayV.getFreqDev()/overlimit.getFreqDev(); + data = Stream.of(freqDev).collect(Collectors.toList()); + double result = data.stream().max(Comparator.comparing(Double::doubleValue)).get(); + publicDTO = new PublicDTO(); + publicDTO.setId(dayV.getLineId()); + publicDTO.setData(result); + lineData.add(publicDTO); + } + } + } + Comparator comparator = Comparator.comparing(PublicDTO::getData); + Map> outMap = lineData.stream().collect(Collectors.groupingBy(PublicDTO::getId,Collectors.reducing(BinaryOperator.maxBy(comparator)))); + return process(outMap); + } + + /** + * 电压偏差:各监测点最新的A、B、C三相数据,取电压上下偏差的绝对值中的最大值。 + */ + private List getVoltageDeviation(List overLimitList,String dataDate){ + String sql = "SELECT line_id,vu_dev,vl_dev,value_type FROM day_v where (phasic_type = 'A' or phasic_type = 'B' or phasic_type = 'C') and (value_type = 'MIN' or value_type = 'MAX') "+ processDate(dataDate,Integer.valueOf(BizParamConstant.STAT_BIZ_DAY)) +" group by line_id order by time desc limit 6 tz('Asia/Shanghai')"; + QueryResult sqlResult = influxDbUtils.query(sql); + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); + List data; + PublicDTO publicDTO; + List lineData = new ArrayList<>(); + List list = resultMapper.toPOJO(sqlResult, DayVPO.class); + for (DayVPO dayV : list) { + for (Overlimit overlimit : overLimitList) { + if (Objects.equals(dayV.getLineId(),overlimit.getId())){ + double vlDev = Math.abs(dayV.getVlDev()/overlimit.getUvoltageDev()); + double vuDev = Math.abs(dayV.getVuDev()/overlimit.getVoltageDev()); + data = Stream.of(vuDev,vlDev).collect(Collectors.toList()); + double result = data.stream().max(Comparator.comparing(Double::doubleValue)).get(); + publicDTO = new PublicDTO(); + publicDTO.setId(dayV.getLineId()); + publicDTO.setData(result); + lineData.add(publicDTO); + } + } + } + Comparator comparator = Comparator.comparing(PublicDTO::getData); + Map> outMap = lineData.stream().collect(Collectors.groupingBy(PublicDTO::getId,Collectors.reducing(BinaryOperator.maxBy(comparator)))); + return process(outMap); + } + + /** + * 三相电压不平衡度:各监测点最新的T相数据。 + */ + private List getThreePhaseVoltageUnbalance(List overLimitList,String dataDate){ + String sql = "SELECT line_id,v_unbalance,value_type FROM day_v where phasic_type = 'T' and (value_type = 'CP95' or value_type = 'MAX') "+ processDate(dataDate,Integer.valueOf(BizParamConstant.STAT_BIZ_DAY)) +" group by line_id order by time desc limit 2 tz('Asia/Shanghai')"; + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); + List data; + PublicDTO publicDTO; + List lineData = new ArrayList<>(); + QueryResult sqlResult = influxDbUtils.query(sql); + List list = resultMapper.toPOJO(sqlResult, DayVPO.class); + for (DayVPO dayV : list) { + for (Overlimit overlimit : overLimitList) { + if (Objects.equals(dayV.getLineId(),overlimit.getId())){ + double vUnbalance = Math.abs(dayV.getVUnbalance()/overlimit.getUbalance()); + data = Stream.of(vUnbalance).collect(Collectors.toList()); + double result = data.stream().max(Comparator.comparing(Double::doubleValue)).get(); + publicDTO = new PublicDTO(); + publicDTO.setId(dayV.getLineId()); + publicDTO.setData(result); + lineData.add(publicDTO); + } + } + } + Comparator comparator = Comparator.comparing(PublicDTO::getData); + Map> outMap = lineData.stream().collect(Collectors.groupingBy(PublicDTO::getId,Collectors.reducing(BinaryOperator.maxBy(comparator)))); + return process(outMap); + } + + /** + * 负序电流:各监测点最新的T相数据。 + */ + private List getNegativeSequenceCurrent(List overLimitList,String dataDate){ + String sql = "SELECT line_id,i_neg,value_type FROM day_i where phasic_type = 'T' and (value_type = 'CP95' or value_type = 'MAX') "+ processDate(dataDate,Integer.valueOf(BizParamConstant.STAT_BIZ_DAY)) +" group by line_id order by time desc limit 2 tz('Asia/Shanghai')"; + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); + List data; + PublicDTO publicDTO; + List lineData = new ArrayList<>(); + QueryResult sqlResult = influxDbUtils.query(sql); + List list = resultMapper.toPOJO(sqlResult, DayIPO.class); + for (DayIPO dayI : list) { + for (Overlimit overlimit : overLimitList) { + if (Objects.equals(dayI.getLineId(),overlimit.getId()) && overlimit.getINeg() != 0){ + BigDecimal dayiNeg = BigDecimal.valueOf(dayI.getINeg()); + BigDecimal overNeg = BigDecimal.valueOf(overlimit.getINeg()); + double outNeg = dayiNeg.divide(overNeg,9,RoundingMode.HALF_UP).doubleValue(); + double iNeg = Math.abs(outNeg); + data = Stream.of(iNeg).collect(Collectors.toList()); + double result = data.stream().max(Comparator.comparing(Double::doubleValue)).get(); + publicDTO = new PublicDTO(); + publicDTO.setId(dayI.getLineId()); + publicDTO.setData(result); + lineData.add(publicDTO); + } + } + } + Comparator comparator = Comparator.comparing(PublicDTO::getData); + Map> outMap = lineData.stream().collect(Collectors.groupingBy(PublicDTO::getId,Collectors.reducing(BinaryOperator.maxBy(comparator)))); + return process(outMap); + } + + /** + * 间谐波电压含有率:各监测点最新的A、B、C三相数据。 + */ + private List getInterharmonicVoltage(List overLimitList,String dataDate){ + String sql = "SELECT * FROM day_inharm_v where (phasic_type = 'A' or phasic_type = 'B' or phasic_type = 'C') and value_type = 'CP95' "+ processDate(dataDate,Integer.valueOf(BizParamConstant.STAT_BIZ_DAY)) +" group by line_id order by time desc limit 3 tz('Asia/Shanghai')"; + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); + List data; + PublicDTO publicDTO; + List lineData = new ArrayList<>(); + QueryResult sqlResult = influxDbUtils.query(sql); + List list = resultMapper.toPOJO(sqlResult, DayInharmVPO.class); + for (DayInharmVPO dayInharmV : list) { + for (Overlimit overlimit : overLimitList) { + if (Objects.equals(dayInharmV.getLineId(),overlimit.getId())){ + double v1 = Math.abs(dayInharmV.getV1()/overlimit.getInuharm1()); + double v2 = Math.abs(dayInharmV.getV2()/overlimit.getInuharm2()); + double v3 = Math.abs(dayInharmV.getV3()/overlimit.getInuharm3()); + double v4 = Math.abs(dayInharmV.getV4()/overlimit.getInuharm4()); + double v5 = Math.abs(dayInharmV.getV5()/overlimit.getInuharm5()); + double v6 = Math.abs(dayInharmV.getV6()/overlimit.getInuharm6()); + double v7 = Math.abs(dayInharmV.getV7()/overlimit.getInuharm7()); + double v8 = Math.abs(dayInharmV.getV8()/overlimit.getInuharm8()); + double v9 = Math.abs(dayInharmV.getV9()/overlimit.getInuharm9()); + double v10 = Math.abs(dayInharmV.getV10()/overlimit.getInuharm10()); + double v11 = Math.abs(dayInharmV.getV11()/overlimit.getInuharm11()); + double v12 = Math.abs(dayInharmV.getV12()/overlimit.getInuharm12()); + double v13 = Math.abs(dayInharmV.getV13()/overlimit.getInuharm13()); + double v14 = Math.abs(dayInharmV.getV14()/overlimit.getInuharm14()); + double v15 = Math.abs(dayInharmV.getV15()/overlimit.getInuharm15()); + double v16 = Math.abs(dayInharmV.getV16()/overlimit.getInuharm16()); + data = Stream.of(v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16).collect(Collectors.toList()); + double result = data.stream().max(Comparator.comparing(Double::doubleValue)).get(); + publicDTO = new PublicDTO(); + publicDTO.setId(dayInharmV.getLineId()); + publicDTO.setData(result); + lineData.add(publicDTO); + } + } + } + Comparator comparator = Comparator.comparing(PublicDTO::getData); + Map> outMap = lineData.stream().collect(Collectors.groupingBy(PublicDTO::getId,Collectors.reducing(BinaryOperator.maxBy(comparator)))); + return process(outMap); + } + + /** + * 长时电压闪变:各监测点最新的A、B、C三相数据。 + */ + private List getVoltageFlicker(List overLimitList,String dataDate){ + String sql = "SELECT * FROM day_plt where (phasic_type = 'A' or phasic_type = 'B' or phasic_type = 'C') and value_type = 'CP95' "+ processDate(dataDate,Integer.valueOf(BizParamConstant.STAT_BIZ_DAY)) +" group by line_id order by time desc limit 3 tz('Asia/Shanghai')"; + InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); + List data; + PublicDTO publicDTO; + List lineData = new ArrayList<>(); + QueryResult sqlResult = influxDbUtils.query(sql); + List list = resultMapper.toPOJO(sqlResult, DayPltPO.class); + for (DayPltPO dayPlt : list) { + for (Overlimit overlimit : overLimitList) { + if (Objects.equals(dayPlt.getLineId(),overlimit.getId())){ + double plt = Math.abs(dayPlt.getPlt()/overlimit.getFlicker()); + data = Stream.of(plt).collect(Collectors.toList()); + double result = data.stream().max(Comparator.comparing(Double::doubleValue)).get(); + publicDTO = new PublicDTO(); + publicDTO.setId(dayPlt.getLineId()); + publicDTO.setData(result); + lineData.add(publicDTO); + } + } + } + Comparator comparator = Comparator.comparing(PublicDTO::getData); + Map> outMap = lineData.stream().collect(Collectors.groupingBy(PublicDTO::getId,Collectors.reducing(BinaryOperator.maxBy(comparator)))); + return process(outMap); + } + + /** + * 监测点污染指标数据入表 data_polluction + */ + private void insertPolluction(List list, long time){ + List records = new ArrayList(); + list.forEach(item->{ + Map tags = new HashMap<>(); + Map fields = new HashMap<>(); + tags.put("line_id",item.getLineId()); + fields.put("freq_dev",item.getFreqDev()); + fields.put("v_dev",item.getVDev()); + fields.put("v_unbalance",item.getVUnbalance()); + fields.put("i_neg",item.getINeg()); + fields.put("v_all",item.getVAll()); + fields.put("i_all",item.getIAll()); + fields.put("v_inharm",item.getVInharm()); + fields.put("plt",item.getPlt()); + Point point = influxDbUtils.pointBuilder("data_polluction", time, TimeUnit.MILLISECONDS,tags, fields); + BatchPoints batchPoints = BatchPoints.database(influxDbUtils.getDbName()).tag("line_id", item.getLineId()).retentionPolicy("").consistency(InfluxDB.ConsistencyLevel.ALL).build(); + batchPoints.point(point); + records.add(batchPoints.lineProtocol()); + }); + influxDbUtils.batchInsert(influxDbUtils.getDbName(),"", InfluxDB.ConsistencyLevel.ALL, records); + } + + /** + * 参数拼装处理 + */ + private List processPollutionList(List pollutionList,List harmonicVoltageList,List harmonicCurrentList,List frequencyDeviationList,List voltageDeviationList,List threePhaseVoltageList,List negativeSequenceList,List interharmonicVoltageList,List voltageFlickerList){ + for (PollutionDTO pollution : pollutionList) { + for (PublicDTO item : harmonicVoltageList) { + if (Objects.equals(pollution.getLineId(),item.getId())){ + pollution.setVAll(BigDecimal.valueOf(item.getData()).setScale(4, RoundingMode.HALF_UP).doubleValue()); + } + } + for (PublicDTO item : harmonicCurrentList) { + if (Objects.equals(pollution.getLineId(),item.getId())){ + pollution.setIAll(BigDecimal.valueOf(item.getData()).setScale(4, RoundingMode.HALF_UP).doubleValue()); + } + } + for (PublicDTO item : frequencyDeviationList) { + if (Objects.equals(pollution.getLineId(),item.getId())){ + pollution.setFreqDev(BigDecimal.valueOf(item.getData()).setScale(4, RoundingMode.HALF_UP).doubleValue()); + } + } + for (PublicDTO item : voltageDeviationList) { + if (Objects.equals(pollution.getLineId(),item.getId())){ + pollution.setVDev(BigDecimal.valueOf(item.getData()).setScale(4, RoundingMode.HALF_UP).doubleValue()); + } + } + for (PublicDTO item : threePhaseVoltageList) { + if (Objects.equals(pollution.getLineId(),item.getId())){ + pollution.setVUnbalance(BigDecimal.valueOf(item.getData()).setScale(4, RoundingMode.HALF_UP).doubleValue()); + } + } + for (PublicDTO item : negativeSequenceList) { + if (Objects.equals(pollution.getLineId(),item.getId())){ + pollution.setINeg(BigDecimal.valueOf(item.getData()).setScale(4, RoundingMode.HALF_UP).doubleValue()); + } + } + for (PublicDTO item : interharmonicVoltageList) { + if (Objects.equals(pollution.getLineId(),item.getId())){ + pollution.setVInharm(BigDecimal.valueOf(item.getData()).setScale(4, RoundingMode.HALF_UP).doubleValue()); + } + } + for (PublicDTO item : voltageFlickerList) { + if (Objects.equals(pollution.getLineId(),item.getId())){ + pollution.setPlt(BigDecimal.valueOf(item.getData()).setScale(4, RoundingMode.HALF_UP).doubleValue()); + } + } + } + return pollutionList; + } + + /** + * 出参处理 + */ + private List process(Map> outMap){ + List outList = new ArrayList<>(); + for (String key : outMap.keySet()) { + outList.add(outMap.get(key).get()); + } + return outList; + } + + /** + * influxDb时间条件处理 + */ + private String processDate(String date,Integer type){ + String processSql = ""; + if (StrUtil.isNotBlank(date)){ + if (Integer.valueOf(BizParamConstant.STAT_BIZ_DAY).equals(type)){ + processSql = " and time >= '"+date+" 00:00:00' and time <= '"+date+" 23:59:59' "; + }else if (Integer.valueOf(BizParamConstant.STAT_BIZ_MONTH).equals(type)){ + Date dateOut = DateUtil.parse(date); + Date dateOutb = DateUtil.beginOfMonth(dateOut); + Date dateOute = DateUtil.endOfMonth(dateOut); + processSql =" and time >= '"+DateUtil.formatDate(dateOutb)+" 00:00:00' and time <= '"+DateUtil.formatDate(dateOute)+" 23:59:59' "; + }else if (Integer.valueOf(BizParamConstant.STAT_BIZ_QUARTER).equals(type)){ + Date dateOut = DateUtil.parse(date); + Date dateOutb = DateUtil.beginOfQuarter(dateOut); + Date dateOute = DateUtil.endOfQuarter(dateOut); + processSql =" and time >= '"+DateUtil.formatDate(dateOutb)+" 00:00:00' and time <= '"+DateUtil.formatDate(dateOute)+" 23:59:59' "; + }else if (Integer.valueOf(BizParamConstant.STAT_BIZ_YEAR).equals(type)){ + Date dateOut = DateUtil.parse(date); + Date dateOutb = DateUtil.beginOfYear(dateOut); + Date dateOute = DateUtil.endOfYear(dateOut); + processSql =" and time >= '"+DateUtil.formatDate(dateOutb)+" 00:00:00' and time <= '"+DateUtil.formatDate(dateOute)+" 23:59:59' "; + } + } + return processSql; + } + + /** + * 获取限值表中的所有监测点信息 + */ + private List getAllLinesLimitData() { + return lineFeignClient.getAllLineOverLimit("harmonic-boot","").getData(); + } +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpFlickerReportDPOServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpFlickerReportDPOServiceImpl.java new file mode 100644 index 000000000..168073b88 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpFlickerReportDPOServiceImpl.java @@ -0,0 +1,20 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import com.github.jeffreyning.mybatisplus.service.MppServiceImpl; +import com.njcn.prepare.harmonic.mapper.line.RMpFlickerReportDPOMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpFlickerReportDPO; +import com.njcn.prepare.harmonic.service.RMpFlickerReportDPOService; +import org.springframework.stereotype.Service; +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 14:15【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Service +public class RMpFlickerReportDPOServiceImpl extends MppServiceImpl implements RMpFlickerReportDPOService{ + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpHarmonicIMagReportDPOServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpHarmonicIMagReportDPOServiceImpl.java new file mode 100644 index 000000000..6eb304511 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpHarmonicIMagReportDPOServiceImpl.java @@ -0,0 +1,20 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import com.github.jeffreyning.mybatisplus.service.MppServiceImpl; +import com.njcn.prepare.harmonic.mapper.line.RMpHarmonicIMagReportDPOMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpHarmonicIMagReportDPO; +import com.njcn.prepare.harmonic.service.RMpHarmonicIMagReportDPOService; +import org.springframework.stereotype.Service; +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 9:50【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Service +public class RMpHarmonicIMagReportDPOServiceImpl extends MppServiceImpl implements RMpHarmonicIMagReportDPOService{ + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpHarmonicIRateReportDPOServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpHarmonicIRateReportDPOServiceImpl.java new file mode 100644 index 000000000..8c6f3a4c0 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpHarmonicIRateReportDPOServiceImpl.java @@ -0,0 +1,20 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import com.github.jeffreyning.mybatisplus.service.MppServiceImpl; +import com.njcn.prepare.harmonic.mapper.line.RMpHarmonicIRateReportDPOMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpHarmonicIRateReportDPO; +import com.njcn.prepare.harmonic.service.RMpHarmonicIRateReportDPOService; +import org.springframework.stereotype.Service; +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 18:33【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Service +public class RMpHarmonicIRateReportDPOServiceImpl extends MppServiceImpl implements RMpHarmonicIRateReportDPOService{ + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpHarmonicPReportDPOServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpHarmonicPReportDPOServiceImpl.java new file mode 100644 index 000000000..13c1a676b --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpHarmonicPReportDPOServiceImpl.java @@ -0,0 +1,25 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import com.github.jeffreyning.mybatisplus.service.MppServiceImpl; +import com.njcn.prepare.harmonic.mapper.line.RMpHarmonicPReportDPOMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpHarmonicPReportDPO; +import com.njcn.prepare.harmonic.service.line.RMpHarmonicPReportDPOService; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/25 10:33【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Slf4j +@Component +@RequiredArgsConstructor +public class RMpHarmonicPReportDPOServiceImpl extends MppServiceImpl implements RMpHarmonicPReportDPOService { + +} + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpHarmonicVRateReportDPOServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpHarmonicVRateReportDPOServiceImpl.java new file mode 100644 index 000000000..c30ed3261 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpHarmonicVRateReportDPOServiceImpl.java @@ -0,0 +1,25 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import com.github.jeffreyning.mybatisplus.service.MppServiceImpl; +import com.njcn.prepare.harmonic.mapper.line.RMpHarmonicVRateReportDPOMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpHarmonicVRateReportDPO; +import com.njcn.prepare.harmonic.service.line.RMpHarmonicVRateReportDPOService; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/25 11:11【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Slf4j +@Component +@RequiredArgsConstructor +public class RMpHarmonicVRateReportDPOServiceImpl extends MppServiceImpl implements RMpHarmonicVRateReportDPOService { + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpInharmonicIMagReportDPOServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpInharmonicIMagReportDPOServiceImpl.java new file mode 100644 index 000000000..ad5a5cda5 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpInharmonicIMagReportDPOServiceImpl.java @@ -0,0 +1,21 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import com.github.jeffreyning.mybatisplus.service.MppServiceImpl; +import com.njcn.prepare.harmonic.mapper.line.RMpInharmonicIMagReportDPOMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpInharmonicIMagReportDPO; +import com.njcn.prepare.harmonic.service.RMpInharmonicIMagReportDPOService; +import org.springframework.stereotype.Service; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/27 9:05【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Service +public class RMpInharmonicIMagReportDPOServiceImpl extends MppServiceImpl implements RMpInharmonicIMagReportDPOService { + +} + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpInharmonicIRateReportDPOServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpInharmonicIRateReportDPOServiceImpl.java new file mode 100644 index 000000000..e10365ffd --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpInharmonicIRateReportDPOServiceImpl.java @@ -0,0 +1,20 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import com.github.jeffreyning.mybatisplus.service.MppServiceImpl; +import com.njcn.prepare.harmonic.mapper.line.RMpInharmonicIRateReportDPOMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpInharmonicIRateReportDPO; +import com.njcn.prepare.harmonic.service.RMpInharmonicIRateReportDPOService; +import org.springframework.stereotype.Service; +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 19:36【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Service +public class RMpInharmonicIRateReportDPOServiceImpl extends MppServiceImpl implements RMpInharmonicIRateReportDPOService{ + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpInharmonicVRateReportDPOServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpInharmonicVRateReportDPOServiceImpl.java new file mode 100644 index 000000000..63c019eba --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpInharmonicVRateReportDPOServiceImpl.java @@ -0,0 +1,21 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import com.github.jeffreyning.mybatisplus.service.MppServiceImpl; +import com.njcn.prepare.harmonic.mapper.line.RMpInharmonicVRateReportDPOMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpInharmonicVRateReportDPO; +import com.njcn.prepare.harmonic.service.RMpInharmonicVRateReportDPOService; +import org.springframework.stereotype.Service; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/27 9:42【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Service +public class RMpInharmonicVRateReportDPOServiceImpl extends MppServiceImpl implements RMpInharmonicVRateReportDPOService { + +} + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpMeasurePhaseReportDPOServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpMeasurePhaseReportDPOServiceImpl.java new file mode 100644 index 000000000..3585889a0 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpMeasurePhaseReportDPOServiceImpl.java @@ -0,0 +1,20 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import com.github.jeffreyning.mybatisplus.service.MppServiceImpl; +import com.njcn.prepare.harmonic.mapper.line.RMpMeasurePhaseReportDPOMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpMeasurePhaseReportDPO; +import com.njcn.prepare.harmonic.service.RMpMeasurePhaseReportDPOService; +import org.springframework.stereotype.Service; +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/28 10:53【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Service +public class RMpMeasurePhaseReportDPOServiceImpl extends MppServiceImpl implements RMpMeasurePhaseReportDPOService{ + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpMeasureReportDPOServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpMeasureReportDPOServiceImpl.java new file mode 100644 index 000000000..7e0d8af05 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpMeasureReportDPOServiceImpl.java @@ -0,0 +1,20 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import com.github.jeffreyning.mybatisplus.service.MppServiceImpl; +import com.njcn.prepare.harmonic.mapper.line.RMpMeasureReportDPOMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpMeasureReportDPO; +import com.njcn.prepare.harmonic.service.RMpMeasureReportDPOService; +import org.springframework.stereotype.Service; +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/28 10:54【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Service +public class RMpMeasureReportDPOServiceImpl extends MppServiceImpl implements RMpMeasureReportDPOService{ + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpPltReportDPOServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpPltReportDPOServiceImpl.java new file mode 100644 index 000000000..81a8d2b95 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/RMpPltReportDPOServiceImpl.java @@ -0,0 +1,20 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import com.github.jeffreyning.mybatisplus.service.MppServiceImpl; +import com.njcn.prepare.harmonic.mapper.line.RMpPltReportDPOMapper; +import com.njcn.prepare.harmonic.pojo.po.line.RMpPltReportDPO; +import com.njcn.prepare.harmonic.service.RMpPltReportDPOService; +import org.springframework.stereotype.Service; +/** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 15:26【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +@Service +public class RMpPltReportDPOServiceImpl extends MppServiceImpl implements RMpPltReportDPOService{ + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/ReportServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/ReportServiceImpl.java new file mode 100644 index 000000000..dcf768672 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/line/ReportServiceImpl.java @@ -0,0 +1,302 @@ +package com.njcn.prepare.harmonic.service.Impl.line; + +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.date.DateUtil; +import cn.hutool.json.JSONArray; +import cn.hutool.json.JSONObject; +import cn.hutool.json.JSONUtil; +import com.alibaba.cloud.commons.lang.StringUtils; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.njcn.common.pojo.constant.BizParamConstant; +import com.njcn.common.pojo.enums.common.DataStateEnum; +import com.njcn.common.pojo.exception.BusinessException; +import com.njcn.device.pq.api.DeptLineFeignClient; +import com.njcn.harmonic.enums.HarmonicResponseEnum; +import com.njcn.harmonic.pojo.dto.ReportTemplateDTO; +import com.njcn.influxdb.param.InfluxDBSqlConstant; +import com.njcn.influxdb.param.InfluxDBTableConstant; +import com.njcn.influxdb.utils.InfluxDbUtils; +import com.njcn.prepare.harmonic.constant.Param; +import com.njcn.prepare.harmonic.mapper.line.ExcelRptMapper; +import com.njcn.prepare.harmonic.mapper.line.ExcelRptTempMapper; +import com.njcn.prepare.harmonic.pojo.param.LineParam; +import com.njcn.prepare.harmonic.pojo.po.ExcelRpt; +import com.njcn.prepare.harmonic.pojo.po.ExcelRptTemp; +import com.njcn.prepare.harmonic.service.line.ReportService; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.influxdb.dto.QueryResult; +import org.springframework.stereotype.Service; + +import java.util.*; +import java.util.stream.Collectors; + +/** + * 自定义报表 + * @author qijian + * @date 2022/10/20 + */ +@Service +@RequiredArgsConstructor +@Slf4j +public class ReportServiceImpl implements ReportService { + + private final DeptLineFeignClient deptLineFeignClient; + + private final InfluxDbUtils influxDbUtils; + + private final ExcelRptTempMapper excelRptTempMapper; + + private final ExcelRptMapper excelRptMapper; + + + @Override + public boolean batchReport(LineParam reportParam) { + + //查询所有已激活模板 + List reportTemplateList = excelRptTempMapper.getActiveTempList(); + if (CollUtil.isEmpty(reportTemplateList)) { + throw new BusinessException(HarmonicResponseEnum.CUSTOM_REPORT_ACTIVE); + } + + //有监测点,匹配监测点的数据进行处理 + //无监测点,查询稳态所有监测点 + List list = reportParam.getLineIds(); + if (CollUtil.isEmpty(list)){ + list = new ArrayList<>(); + Map> map = deptLineFeignClient.getLineByDeptRelation(Param.STEADY_STATE).getData(); + Collection> values = map.values(); + for (List value : values) { + list.addAll(value); + } + } + + //根据content进行处理 + List dataList = new ArrayList<>(); + JSONArray jsonArray = null; + for (ExcelRptTemp excelRptTemp : reportTemplateList) { + try { + //获取content解析数据 + jsonArray = JSONUtil.parseArray(excelRptTemp.getContent()); + dataList = getDataList(jsonArray); + } catch (Exception e) { + throw new BusinessException(HarmonicResponseEnum.CUSTOM_REPORT_JSON); + } + + //查询influxDB数据 + List endList = new ArrayList<>(); + for (String lineId : list) { + if (CollUtil.isNotEmpty(dataList)) { + //开始组织sql + dataList.stream().forEach(data -> { + StringBuilder sql = new StringBuilder(InfluxDBSqlConstant.SELECT); + switch (data.getStatMethod()) { + case InfluxDBTableConstant.MAX: + assSql(data, sql, endList, InfluxDBSqlConstant.MAX, lineId); + break; + case InfluxDBTableConstant.MIN: + assSql(data, sql, endList, InfluxDBSqlConstant.MIN, lineId); + break; + case InfluxDBTableConstant.AVG: + assSql(data, sql, endList, InfluxDBSqlConstant.AVG, lineId); + break; + case InfluxDBTableConstant.CP95: + assSql(data, sql, endList, InfluxDBSqlConstant.CP95, lineId); + break; + default: + break; + } + }); + } + + //根据数据填充content + if (CollUtil.isNotEmpty(endList)) { + contentChange(jsonArray, endList); + } + + //存入报表库 + //年:例如2022年,传入2022-01-01进行匹配,有则更新无则插入 + //季:例如2022第二季度,传入2022-04-01进行匹配,有则更新无则插入 + //月:例如2022十月份,传入2022-10-01进行匹配,有则更新无则插入 + //周:例如2022年第五周,传入2022-01-23(周一)进行匹配,有则更新无则插入 + //日:直接插入,无需配对 + String afterContent = jsonArray.toString(); + if (BizParamConstant.STAT_BIZ_DAY.equals(reportParam.getType().toString())){ + rptInsert(reportParam, lineId, excelRptTemp, afterContent); + }else{ + rptBiz(reportParam, lineId, excelRptTemp, afterContent); + } + } + } + + return true; + } + + /** + * rpt业务方法 + * @param reportParam,lineId,excelRptTemp,afterContent 参数 + * @return 结果 + */ + private void rptBiz(LineParam reportParam, String lineId, ExcelRptTemp excelRptTemp, String afterContent) { + LambdaQueryWrapper lambdaQuery = new LambdaQueryWrapper<>(); + lambdaQuery.eq(ExcelRpt::getLineId, lineId).eq(ExcelRpt::getTempId, excelRptTemp.getId()).eq(ExcelRpt::getType, reportParam.getType()).eq(ExcelRpt::getDataDate,reportParam.getDataDate()); + ExcelRpt excelRpt = excelRptMapper.selectOne(lambdaQuery); + if (excelRpt != null){ + excelRpt.setContent(afterContent); + excelRptMapper.updateById(excelRpt); + } else { + rptInsert(reportParam, lineId, excelRptTemp, afterContent); + } + } + + /** + * 新增rpt方法 + * @param reportParam,lineId,excelRptTemp,afterContent 参数 + * @return 结果 + */ + private void rptInsert(LineParam reportParam, String lineId, ExcelRptTemp excelRptTemp, String afterContent) { + ExcelRpt excelRpt = new ExcelRpt(); + excelRpt.setName(excelRptTemp.getName()); + excelRpt.setLineId(lineId); + excelRpt.setDataDate(DateUtil.parse(reportParam.getDataDate())); + excelRpt.setTempId(excelRptTemp.getId()); + excelRpt.setContent(afterContent); + excelRpt.setType(reportParam.getType()); + excelRpt.setState(DataStateEnum.ENABLE.getCode()); + excelRptMapper.insert(excelRpt); + } + + /** + * 根据数据填充content + * @param jsonArray 参数 + * @return 结果 + */ + private void contentChange(JSONArray jsonArray, List endList) { + //进行反向赋值到模板 + //1、根据itemName分组 + Map> assMap = endList.stream().collect(Collectors.groupingBy(ReportTemplateDTO::getItemName)); + //2、把itemName的value赋给v和m + jsonArray.forEach(item -> { + JSONObject jsonObject = (JSONObject) item; + JSONArray itemArr = (JSONArray) jsonObject.get("celldata"); + itemArr.forEach((it) -> { + if (Objects.nonNull(it) && !"null".equals(it.toString())) { + //获取到1列 + JSONObject data = (JSONObject) it; + JSONObject son = (JSONObject) data.get("v"); + if (son.containsKey("v")) { + String v = son.getStr("v"); + //数据格式:$HA[_25]#B#max#classId$ 或 $HA[_25]#max#classId$ + if (v.charAt(0) == '$' && v.contains("#")) { + String str = assMap.get(v.replace("$", "")).get(0).getValue(); + //没有值,赋"/" + if (StringUtils.isBlank(str)) { + str = "/"; + } + son.set("v", str); + } + } + } + }); + }); + } + + /** + * 获取content解析数据 + * @param jsonArray 参数 + * @return 结果 + */ + private List getDataList(JSONArray jsonArray) { + List reportTemplateDTOList = new ArrayList<>(); + jsonArray.forEach(item -> { + JSONObject jsonObject = (JSONObject) item; + JSONArray itemArr = (JSONArray) jsonObject.get("celldata"); + itemArr.forEach((it) -> { + if (Objects.nonNull(it) && !"null".equals(it.toString())) { + //获取到1列 + JSONObject data = (JSONObject) it; + JSONObject son = (JSONObject) data.get("v"); + if (son.containsKey("v")) { + String v = son.getStr("v"); + //数据格式:$HA[_25]#B#max#classId$ 或 $HA[_25]#max#classId$ + if (v.charAt(0) == '$' && v.contains("#")) { + //剔除前后$ + v = v.replace("$", ""); + //封装ReportTemplateDTO + ReportTemplateDTO reportTemplateDTO = new ReportTemplateDTO(); + reportTemplateDTO.setItemName(v); + //根据#分割数据 + String[] vItem = v.split("#"); + if (vItem.length == 4) { + //$HA[_25]#B#max#classId$ + reportTemplateDTO.setTemplateName(vItem[0]); + reportTemplateDTO.setPhase(vItem[1]); + reportTemplateDTO.setStatMethod(vItem[2].toUpperCase()); + reportTemplateDTO.setClassId(vItem[3]); + } else if (vItem.length == 3) { + //$HA[_25]#max#classId$ + reportTemplateDTO.setTemplateName(vItem[0]); + reportTemplateDTO.setPhase("M"); + reportTemplateDTO.setStatMethod(vItem[1].toUpperCase()); + reportTemplateDTO.setClassId(vItem[2]); + } + reportTemplateDTOList.add(reportTemplateDTO); + } + } + } + }); + }); + + return reportTemplateDTOList; + } + + /** + * 组装influxDB查询sql,查询value并封装endlist + * @param data,sql,endList,method,reportSearchParam 参数 + * @return 结果 + */ + private void assSql(ReportTemplateDTO data, StringBuilder sql, List endList, String method, String lineId) { + //sql拼接示例:select MAX(IHA2) as IHA2 from power_quality_data where Phase = 'A' and LineId='1324564568' and Stat_Method='max' tz('Asia/Shanghai') + if (InfluxDBTableConstant.NO_PHASE.equals(data.getPhase())) { + sql.append(method).append(InfluxDBSqlConstant.LBK).append(data.getTemplateName()).append(InfluxDBSqlConstant.RBK).append(InfluxDBSqlConstant.AS_VALUE) + .append(InfluxDBSqlConstant.FROM).append(data.getClassId()) + .append(InfluxDBSqlConstant.WHERE).append(InfluxDBTableConstant.LINE_ID).append(InfluxDBSqlConstant.EQ).append(InfluxDBSqlConstant.QM).append(lineId).append(InfluxDBSqlConstant.QM) + .append(InfluxDBSqlConstant.AND).append(InfluxDBTableConstant.VALUE_TYPE).append(InfluxDBSqlConstant.EQ).append(InfluxDBSqlConstant.QM).append(data.getStatMethod()).append(InfluxDBSqlConstant.QM) + .append(InfluxDBSqlConstant.TZ); + } else { + sql.append(method).append(InfluxDBSqlConstant.LBK).append(data.getTemplateName()).append(InfluxDBSqlConstant.RBK).append(InfluxDBSqlConstant.AS_VALUE) + .append(InfluxDBSqlConstant.FROM).append(data.getClassId()) + .append(InfluxDBSqlConstant.WHERE).append(InfluxDBTableConstant.LINE_ID).append(InfluxDBSqlConstant.EQ).append(InfluxDBSqlConstant.QM).append(lineId).append(InfluxDBSqlConstant.QM) + .append(InfluxDBSqlConstant.AND).append(InfluxDBTableConstant.VALUE_TYPE).append(InfluxDBSqlConstant.EQ).append(InfluxDBSqlConstant.QM).append(data.getStatMethod()).append(InfluxDBSqlConstant.QM) + .append(InfluxDBSqlConstant.AND).append(InfluxDBTableConstant.PHASIC_TYPE).append(InfluxDBSqlConstant.EQ).append(InfluxDBSqlConstant.QM).append(data.getPhase()).append(InfluxDBSqlConstant.QM) + .append(InfluxDBSqlConstant.TZ); + } + + //根据不同的库表赋值 + QueryResult queryResult = influxDbUtils.query(String.valueOf(sql)); + + //剖析influx数据,填入value + List results = queryResult.getResults(); + if (results.size() != 0) { + QueryResult.Result result = results.get(0); + if (result.getSeries() != null){ + List seriess = result.getSeries(); + if (seriess.size() != 0) { + QueryResult.Series series = seriess.get(0); + List columns = series.getColumns(); + List> values = series.getValues(); + for (List columnValue : values) { + for (int i = 0; i < columnValue.size(); i++) { + if (columns.get(i).equals("value")) { + data.setValue(columnValue.get(i).toString()); + } + } + } + } + } + } + endList.add(data); + } + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/substion/SubstionServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/substion/SubstionServiceImpl.java new file mode 100644 index 000000000..c523e9e7e --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/substion/SubstionServiceImpl.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.service.Impl.substion; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:19 + */ +public class SubstionServiceImpl { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/voltage/VoltageServiceImpl.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/voltage/VoltageServiceImpl.java new file mode 100644 index 000000000..455850364 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/Impl/voltage/VoltageServiceImpl.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.service.Impl.voltage; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:19 + */ +public class VoltageServiceImpl { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpFlickerReportDPOService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpFlickerReportDPOService.java new file mode 100644 index 000000000..e07aa3e12 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpFlickerReportDPOService.java @@ -0,0 +1,17 @@ +package com.njcn.prepare.harmonic.service; + +import com.github.jeffreyning.mybatisplus.service.IMppService; +import com.njcn.prepare.harmonic.pojo.po.line.RMpFlickerReportDPO; + /** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 14:15【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpFlickerReportDPOService extends IMppService{ + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpHarmonicIMagReportDPOService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpHarmonicIMagReportDPOService.java new file mode 100644 index 000000000..106f2c5a5 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpHarmonicIMagReportDPOService.java @@ -0,0 +1,17 @@ +package com.njcn.prepare.harmonic.service; + +import com.github.jeffreyning.mybatisplus.service.IMppService; +import com.njcn.prepare.harmonic.pojo.po.line.RMpHarmonicIMagReportDPO; + /** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 9:50【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpHarmonicIMagReportDPOService extends IMppService { + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpHarmonicIRateReportDPOService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpHarmonicIRateReportDPOService.java new file mode 100644 index 000000000..3a18912b6 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpHarmonicIRateReportDPOService.java @@ -0,0 +1,17 @@ +package com.njcn.prepare.harmonic.service; + +import com.github.jeffreyning.mybatisplus.service.IMppService; +import com.njcn.prepare.harmonic.pojo.po.line.RMpHarmonicIRateReportDPO; + /** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 18:33【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpHarmonicIRateReportDPOService extends IMppService { + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpInharmonicIMagReportDPOService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpInharmonicIMagReportDPOService.java new file mode 100644 index 000000000..5bcf8cde5 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpInharmonicIMagReportDPOService.java @@ -0,0 +1,18 @@ +package com.njcn.prepare.harmonic.service; + +import com.github.jeffreyning.mybatisplus.service.IMppService; +import com.njcn.prepare.harmonic.pojo.po.line.RMpInharmonicIMagReportDPO; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/27 9:05【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpInharmonicIMagReportDPOService extends IMppService { + + +} + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpInharmonicIRateReportDPOService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpInharmonicIRateReportDPOService.java new file mode 100644 index 000000000..61e95cf90 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpInharmonicIRateReportDPOService.java @@ -0,0 +1,17 @@ +package com.njcn.prepare.harmonic.service; + +import com.github.jeffreyning.mybatisplus.service.IMppService; +import com.njcn.prepare.harmonic.pojo.po.line.RMpInharmonicIRateReportDPO; + /** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 19:36【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpInharmonicIRateReportDPOService extends IMppService { + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpInharmonicVRateReportDPOService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpInharmonicVRateReportDPOService.java new file mode 100644 index 000000000..b7e89a87a --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpInharmonicVRateReportDPOService.java @@ -0,0 +1,18 @@ +package com.njcn.prepare.harmonic.service; + +import com.github.jeffreyning.mybatisplus.service.IMppService; +import com.njcn.prepare.harmonic.pojo.po.line.RMpInharmonicVRateReportDPO; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/27 9:42【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpInharmonicVRateReportDPOService extends IMppService { + + +} + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpMeasurePhaseReportDPOService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpMeasurePhaseReportDPOService.java new file mode 100644 index 000000000..b95ce9215 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpMeasurePhaseReportDPOService.java @@ -0,0 +1,17 @@ +package com.njcn.prepare.harmonic.service; + +import com.github.jeffreyning.mybatisplus.service.IMppService; +import com.njcn.prepare.harmonic.pojo.po.line.RMpMeasurePhaseReportDPO; + /** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/28 10:53【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpMeasurePhaseReportDPOService extends IMppService { + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpMeasureReportDPOService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpMeasureReportDPOService.java new file mode 100644 index 000000000..3df990a61 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpMeasureReportDPOService.java @@ -0,0 +1,17 @@ +package com.njcn.prepare.harmonic.service; + +import com.github.jeffreyning.mybatisplus.service.IMppService; +import com.njcn.prepare.harmonic.pojo.po.line.RMpMeasureReportDPO; + /** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/28 10:54【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpMeasureReportDPOService extends IMppService { + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpPltReportDPOService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpPltReportDPOService.java new file mode 100644 index 000000000..82614b308 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/RMpPltReportDPOService.java @@ -0,0 +1,17 @@ +package com.njcn.prepare.harmonic.service; + +import com.github.jeffreyning.mybatisplus.service.IMppService; +import com.njcn.prepare.harmonic.pojo.po.line.RMpPltReportDPO; + /** + * + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/26 15:26【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpPltReportDPOService extends IMppService { + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/area/AreaService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/area/AreaService.java new file mode 100644 index 000000000..3efae5d14 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/area/AreaService.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.service.area; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:18 + */ +public interface AreaService { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/device/DeviceService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/device/DeviceService.java new file mode 100644 index 000000000..d5de31439 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/device/DeviceService.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.service.device; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 20:18 + */ +public interface DeviceService { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/DayDataService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/DayDataService.java new file mode 100644 index 000000000..96e4ee7cd --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/DayDataService.java @@ -0,0 +1,22 @@ +package com.njcn.prepare.harmonic.service.line; + +import java.util.List; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/24 9:45【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface DayDataService { + /** + * @Description: 生成day表相关数据 + * @Param: [indexLists, startTime, endTime] + * @return: void + * @Author: clam + * @Date: 2022/10/24 + */ + void dayDataJobHandler(List indexLists, String startTime, String endTime); +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/IntegrityService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/IntegrityService.java new file mode 100644 index 000000000..2bcc24695 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/IntegrityService.java @@ -0,0 +1,13 @@ +package com.njcn.prepare.harmonic.service.line; + +import com.njcn.prepare.harmonic.pojo.param.LineParam; + +/** + * @author xiaoyao + * @version 1.0.0 + * @createTime 2022/10/24 20:06 + */ +public interface IntegrityService { + + String computeDataIntegrity(LineParam lineParam); +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/LimitTargetService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/LimitTargetService.java new file mode 100644 index 000000000..1221a203b --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/LimitTargetService.java @@ -0,0 +1,13 @@ +package com.njcn.prepare.harmonic.service.line; + +import com.njcn.prepare.harmonic.pojo.param.LineParam; + +/** + * @author xiaoyao + * @version 1.0.0 + * @createTime 2022/10/26 13:37 + */ +public interface LimitTargetService { + + void getLimitTargetData(LineParam lineParam); +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/NormalLimitService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/NormalLimitService.java new file mode 100644 index 000000000..3fe6b32a4 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/NormalLimitService.java @@ -0,0 +1,11 @@ +package com.njcn.prepare.harmonic.service.line; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 19:58 + */ +public interface NormalLimitService { + + String getNormLimitData(); +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/OnlineRateService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/OnlineRateService.java new file mode 100644 index 000000000..df771bcb4 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/OnlineRateService.java @@ -0,0 +1,13 @@ +package com.njcn.prepare.harmonic.service.line; + +import com.njcn.prepare.harmonic.pojo.param.LineParam; + +/** + * @author xiaoyao + * @version 1.0.0 + * @createTime 2022/10/27 9:23 + */ +public interface OnlineRateService { + + void getOnlineRateData(LineParam lineParam); +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/PollutionService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/PollutionService.java new file mode 100644 index 000000000..7098efa96 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/PollutionService.java @@ -0,0 +1,19 @@ +package com.njcn.prepare.harmonic.service.line; + +import com.njcn.prepare.harmonic.pojo.dto.PollutionDTO; +import com.njcn.prepare.harmonic.pojo.param.LineParam; + +import java.util.List; + +/** + * 监测点污染指标 + * + * @author xiaoyao + * @version 1.0.0 + * @createTime 2022/10/18 8:54 + */ +public interface PollutionService { + + void processPollutionData(LineParam lineParam); + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/RMpHarmonicPReportDPOService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/RMpHarmonicPReportDPOService.java new file mode 100644 index 000000000..47a828fca --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/RMpHarmonicPReportDPOService.java @@ -0,0 +1,18 @@ +package com.njcn.prepare.harmonic.service.line; + +import com.github.jeffreyning.mybatisplus.service.IMppService; +import com.njcn.prepare.harmonic.pojo.po.line.RMpHarmonicPReportDPO; + +/** + * Description: + * 接口文档访问地址:http://serverIP:port/swagger-ui.html + * Date: 2022/10/25 10:33【需求编号】 + * + * @author clam + * @version V1.0.0 + */ +public interface RMpHarmonicPReportDPOService extends IMppService { + + +} + diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/RMpHarmonicVRateReportDPOService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/RMpHarmonicVRateReportDPOService.java new file mode 100644 index 000000000..d0da7a427 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/RMpHarmonicVRateReportDPOService.java @@ -0,0 +1,18 @@ +package com.njcn.prepare.harmonic.service.line; + +import com.github.jeffreyning.mybatisplus.service.IMppService; +import com.njcn.prepare.harmonic.pojo.po.line.RMpHarmonicVRateReportDPO; + +/** +* +* Description: +* 接口文档访问地址:http://serverIP:port/swagger-ui.html +* Date: 2022/10/25 11:11【需求编号】 +* +* @author clam +* @version V1.0.0 +*/ +public interface RMpHarmonicVRateReportDPOService extends IMppService { + + +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/ReportService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/ReportService.java new file mode 100644 index 000000000..b39d8019e --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/line/ReportService.java @@ -0,0 +1,17 @@ +package com.njcn.prepare.harmonic.service.line; + +import com.njcn.prepare.harmonic.pojo.param.LineParam; + +/** + * @author qijian + * @version 1.0.0 + * @createTime 2022/10/20 - 11:17 + */ +public interface ReportService { + /** + * 批量处理报表 + * @param reportParam 参数 + * @return 返回值 + */ + boolean batchReport(LineParam reportParam); +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/substion/SubstionService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/substion/SubstionService.java new file mode 100644 index 000000000..50f14a699 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/substion/SubstionService.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.service.substion; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 19:58 + */ +public interface SubstionService { +} diff --git a/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/voltage/VoltageService.java b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/voltage/VoltageService.java new file mode 100644 index 000000000..055b4d172 --- /dev/null +++ b/pqs-prepare/harmonic-prepare/src/main/java/com/njcn/prepare/harmonic/service/voltage/VoltageService.java @@ -0,0 +1,9 @@ +package com.njcn.prepare.harmonic.service.voltage; + +/** + * @author denghuajun + * @version 1.0.0 + * @date 2022年10月17日 19:58 + */ +public interface VoltageService { +} diff --git a/pqs.ipr b/pqs.ipr index 814ca2211..317fff00c 100644 --- a/pqs.ipr +++ b/pqs.ipr @@ -1,3858 +1,3871 @@ - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - eventreport - pids - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + eventreport + pids + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +