新增数据质量清洗算法
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
package com.njcn.dataProcess.api;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
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.dataProcess.api.fallback.DataHarmRateIFeignClientFallbackFactory;
|
||||
import com.njcn.dataProcess.param.LineCountEvaluateParam;
|
||||
import com.njcn.dataProcess.pojo.dto.CommonMinuteDto;
|
||||
import com.njcn.dataProcess.pojo.dto.DataHarmRateIDto;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -24,4 +30,10 @@ public interface DataHarmRateIFeignClient {
|
||||
@PostMapping("/addList")
|
||||
HttpResult<String> addList(@RequestBody List<DataHarmRateIDto> list);
|
||||
|
||||
@PostMapping("/getRawData")
|
||||
HttpResult<List<DataHarmRateIDto>> getRawData(@RequestBody LineCountEvaluateParam lineParam);
|
||||
|
||||
@PostMapping("/addInfluxDbList")
|
||||
HttpResult<String> addInfluxDbList(@RequestBody List<DataHarmRateIDto> dataIList);
|
||||
|
||||
}
|
||||
|
||||
@@ -1,12 +1,19 @@
|
||||
package com.njcn.dataProcess.api;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
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.dataProcess.api.fallback.DataHarmRateVFeignClientFallbackFactory;
|
||||
import com.njcn.dataProcess.dto.DataHarmrateVDTO;
|
||||
import com.njcn.dataProcess.param.LineCountEvaluateParam;
|
||||
import com.njcn.dataProcess.pojo.dto.CommonMinuteDto;
|
||||
import com.njcn.dataProcess.pojo.dto.DataHarmDto;
|
||||
import com.njcn.dataProcess.pojo.dto.DataHarmRateVDto;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -33,4 +40,7 @@ public interface DataHarmRateVFeignClient {
|
||||
@PostMapping("/getHarmRateVData")
|
||||
HttpResult<List<DataHarmDto>> getHarmRateVData(@RequestBody LineCountEvaluateParam lineParam);
|
||||
|
||||
@PostMapping("/batchInsertion")
|
||||
HttpResult<String> batchInsertion(@RequestBody List<DataHarmrateVDTO> dataHarmrateVDTOList);
|
||||
|
||||
}
|
||||
|
||||
@@ -1,14 +1,20 @@
|
||||
package com.njcn.dataProcess.api;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
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.dataProcess.api.fallback.DataHarmphasicIFeignClientFallbackFactory;
|
||||
import com.njcn.dataProcess.dto.DataHarmphasicIDTO;
|
||||
import com.njcn.dataProcess.param.LineCountEvaluateParam;
|
||||
import com.njcn.dataProcess.pojo.dto.CommonMinuteDto;
|
||||
import com.njcn.dataProcess.pojo.dto.DataFlucDto;
|
||||
import com.njcn.dataProcess.pojo.dto.DataHarmPhasicIDto;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -32,4 +38,7 @@ public interface DataHarmphasicIFeignClient {
|
||||
@PostMapping("/addList")
|
||||
HttpResult<String> addList(@RequestBody List<DataHarmPhasicIDto> data);
|
||||
|
||||
@PostMapping("/getRawData")
|
||||
HttpResult<List<DataHarmPhasicIDto>> getRawData(@RequestBody LineCountEvaluateParam lineParam);
|
||||
|
||||
}
|
||||
|
||||
@@ -1,12 +1,18 @@
|
||||
package com.njcn.dataProcess.api;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
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.dataProcess.api.fallback.DataHarmpowerQFeignClientFallbackFactory;
|
||||
import com.njcn.dataProcess.dto.DataHarmpowerQDTO;
|
||||
import com.njcn.dataProcess.param.LineCountEvaluateParam;
|
||||
import com.njcn.dataProcess.pojo.dto.CommonMinuteDto;
|
||||
import com.njcn.dataProcess.pojo.dto.DataHarmPowerQDto;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -32,4 +38,7 @@ public interface DataHarmpowerQFeignClient {
|
||||
@PostMapping("/addList")
|
||||
HttpResult<String> addList(@RequestBody List<DataHarmPowerQDto> data);
|
||||
|
||||
@PostMapping("/getRawData")
|
||||
HttpResult<List<DataHarmPowerQDto>> getRawData(@RequestBody LineCountEvaluateParam lineParam);
|
||||
|
||||
}
|
||||
|
||||
@@ -1,12 +1,18 @@
|
||||
package com.njcn.dataProcess.api;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
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.dataProcess.api.fallback.DataIFeignClientFallbackFactory;
|
||||
import com.njcn.dataProcess.dto.DataHarmpowerSDTO;
|
||||
import com.njcn.dataProcess.param.LineCountEvaluateParam;
|
||||
import com.njcn.dataProcess.pojo.dto.CommonMinuteDto;
|
||||
import com.njcn.dataProcess.pojo.dto.DataHarmPowerSDto;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -32,4 +38,7 @@ public interface DataHarmpowerSFeignClient {
|
||||
@PostMapping("/addList")
|
||||
HttpResult<String> addList(@RequestBody List<DataHarmPowerSDto> data);
|
||||
|
||||
@PostMapping("/getRawData")
|
||||
HttpResult<List<DataHarmPowerSDto>> getRawData(@RequestBody LineCountEvaluateParam lineParam);
|
||||
|
||||
}
|
||||
|
||||
@@ -1,12 +1,18 @@
|
||||
package com.njcn.dataProcess.api;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
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.dataProcess.api.fallback.DataIFeignClientFallbackFactory;
|
||||
import com.njcn.dataProcess.dto.DataIDTO;
|
||||
import com.njcn.dataProcess.param.LineCountEvaluateParam;
|
||||
import com.njcn.dataProcess.pojo.dto.CommonMinuteDto;
|
||||
import com.njcn.dataProcess.pojo.dto.DataIDto;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -35,4 +41,7 @@ public interface DataIFeignClient {
|
||||
|
||||
@PostMapping("/getDataI")
|
||||
HttpResult<List<DataIDto>> getDataI(@RequestBody LineCountEvaluateParam lineParam);
|
||||
|
||||
@PostMapping("/addInfluxDbList")
|
||||
HttpResult<String> addInfluxDbList(@RequestBody List<DataIDto> dataIList);
|
||||
}
|
||||
|
||||
@@ -2,12 +2,10 @@ package com.njcn.dataProcess.api;
|
||||
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
|
||||
import com.njcn.dataProcess.api.fallback.DataInharmIFeignClientFallbackFactory;
|
||||
import com.njcn.dataProcess.dto.DataInharmIDTO;
|
||||
import com.njcn.dataProcess.param.LineCountEvaluateParam;
|
||||
import com.njcn.dataProcess.pojo.dto.CommonMinuteDto;
|
||||
import com.njcn.dataProcess.pojo.dto.DataHarmRateVDto;
|
||||
import com.njcn.dataProcess.pojo.dto.DataInHarmIDto;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
@@ -32,4 +30,7 @@ public interface DataInharmIFeignClient {
|
||||
@PostMapping("/addList")
|
||||
HttpResult<String> addList(@RequestBody List<DataInHarmIDto> list);
|
||||
|
||||
@PostMapping("/getRawData")
|
||||
HttpResult<List<DataInHarmIDto>> getRawData(@RequestBody LineCountEvaluateParam lineParam);
|
||||
|
||||
}
|
||||
|
||||
@@ -24,8 +24,6 @@ import java.util.List;
|
||||
@FeignClient(value = ServerInfo.PLATFORM_DATA_PROCESSING_BOOT, path = "/dataInharmV", fallbackFactory = DataInharmVFeignClientFallbackFactory.class, contextId = "dataInharmV")
|
||||
public interface DataInharmVFeignClient {
|
||||
|
||||
|
||||
|
||||
@PostMapping("/batchInsertion")
|
||||
HttpResult<String> batchInsertion(@RequestBody List<DataInharmVDTO> dataInharmVDTOList);
|
||||
|
||||
|
||||
@@ -50,6 +50,18 @@ public class DataHarmRateIFeignClientFallbackFactory implements FallbackFactory<
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<DataHarmRateIDto>> getRawData(LineCountEvaluateParam lineParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}","获取原始数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<String> addInfluxDbList(List<DataHarmRateIDto> dataIList) {
|
||||
log.error("{}异常,降级处理,异常为:{}","influxdb数据插入",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ 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.dataProcess.api.DataHarmRateVFeignClient;
|
||||
import com.njcn.dataProcess.dto.DataHarmrateVDTO;
|
||||
import com.njcn.dataProcess.param.LineCountEvaluateParam;
|
||||
import com.njcn.dataProcess.pojo.dto.CommonMinuteDto;
|
||||
import com.njcn.dataProcess.pojo.dto.DataHarmDto;
|
||||
@@ -67,6 +68,12 @@ public class DataHarmRateVFeignClientFallbackFactory implements FallbackFactory<
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<String> batchInsertion(List<DataHarmrateVDTO> dataHarmrateVDTOList) {
|
||||
log.error("{}异常,降级处理,异常为:{}","谐波含有率数据批量插入",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +59,12 @@ public class DataHarmphasicIFeignClientFallbackFactory implements FallbackFactor
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<DataHarmPhasicIDto>> getRawData(LineCountEvaluateParam lineParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}","获取原始数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,6 +58,12 @@ public class DataHarmpowerQFeignClientFallbackFactory implements FallbackFactory
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<DataHarmPowerQDto>> getRawData(LineCountEvaluateParam lineParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}","获取原始数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +59,12 @@ public class DataHarmpowerSFeignClientFallbackFactory implements FallbackFactory
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<DataHarmPowerSDto>> getRawData(LineCountEvaluateParam lineParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}","harmPowerS获取原始数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,6 +70,12 @@ public class DataIFeignClientFallbackFactory implements FallbackFactory<DataIFei
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<String> addInfluxDbList(List<DataIDto> dataIList) {
|
||||
log.error("{}异常,降级处理,异常为:{}","dataI时序数据库插入数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +59,12 @@ public class DataInharmIFeignClientFallbackFactory implements FallbackFactory<Da
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<DataInHarmIDto>> getRawData(LineCountEvaluateParam lineParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}","获取原始数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ public class DataFlickerDTO implements Serializable{
|
||||
private Double pst;
|
||||
private Double plt;
|
||||
private Integer qualityflag;
|
||||
private Integer abnormalFlag;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -34,6 +34,6 @@ public class DataFlucDTO implements Serializable{
|
||||
private Double fluc;
|
||||
private Double fluccf;
|
||||
private Integer qualityflag;
|
||||
|
||||
private Integer abnormalFlag;
|
||||
|
||||
}
|
||||
|
||||
@@ -232,6 +232,6 @@ public class DataHarmphasicIDTO implements Serializable{
|
||||
private Double i49Cp95;
|
||||
private Double i50Cp95;
|
||||
private Integer qualityflag;
|
||||
|
||||
private Integer abnormalFlag;
|
||||
|
||||
}
|
||||
|
||||
@@ -232,6 +232,7 @@ public class DataHarmphasicVDTO implements Serializable{
|
||||
private Double v49Cp95;
|
||||
private Double v50Cp95;
|
||||
private Integer qualityflag;
|
||||
private Integer abnormalFlag;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -243,6 +243,6 @@ public class DataHarmpowerPDTO implements Serializable {
|
||||
private Double p49Cp95;
|
||||
private Double p50Cp95;
|
||||
private Integer qualityflag;
|
||||
|
||||
private Integer abnormalFlag;
|
||||
|
||||
}
|
||||
|
||||
@@ -236,6 +236,6 @@ public class DataHarmpowerQDTO implements Serializable {
|
||||
private Double q49Cp95;
|
||||
private Double q50Cp95;
|
||||
private Integer qualityflag;
|
||||
|
||||
private Integer abnormalFlag;
|
||||
|
||||
}
|
||||
|
||||
@@ -237,6 +237,6 @@ public class DataHarmpowerSDTO implements Serializable {
|
||||
private Double s49Cp95;
|
||||
private Double s50Cp95;
|
||||
private Integer qualityflag;
|
||||
|
||||
private Integer abnormalFlag;
|
||||
|
||||
}
|
||||
|
||||
@@ -232,6 +232,6 @@ public class DataHarmrateVDTO implements Serializable{
|
||||
private Double v49Cp95;
|
||||
private Double v50Cp95;
|
||||
private Integer qualityflag;
|
||||
|
||||
private Integer abnormalFlag;
|
||||
|
||||
}
|
||||
|
||||
@@ -232,6 +232,6 @@ public class DataInharmVDTO implements Serializable{
|
||||
private Double v49Cp95;
|
||||
private Double v50Cp95;
|
||||
private Integer qualityflag;
|
||||
|
||||
private Integer abnormalFlag;
|
||||
|
||||
}
|
||||
|
||||
@@ -32,6 +32,6 @@ public class DataPltDTO implements Serializable {
|
||||
private String phasicType;
|
||||
private Double plt;
|
||||
private Integer qualityflag;
|
||||
|
||||
private Integer abnormalFlag;
|
||||
|
||||
}
|
||||
|
||||
@@ -57,5 +57,10 @@ public class LineCountEvaluateParam extends BaseParam implements Serializable {
|
||||
*/
|
||||
private String lt;
|
||||
|
||||
/**
|
||||
* 数据类型 判断获取数据是否排除暂态异常数据
|
||||
*/
|
||||
private Boolean dataType = true;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -45,6 +45,9 @@ public class DataFlicker {
|
||||
@Column(name = "quality_flag",tag = true)
|
||||
private String qualityFlag ="0";
|
||||
|
||||
//是否是异常指标数据,0否1是
|
||||
@Column(name = "abnormal_flag")
|
||||
private Integer abnormalFlag;
|
||||
|
||||
public static DataFlicker relationToInfluxDB(DataFlickerDTO dataFlicker) {
|
||||
if (dataFlicker == null) {
|
||||
@@ -61,7 +64,7 @@ public class DataFlicker {
|
||||
influxDBDataFlicker.setPlt(Objects.isNull(dataFlicker.getPlt())?0.00:dataFlicker.getPlt());
|
||||
influxDBDataFlicker.setPst(Objects.isNull(dataFlicker.getPst())?0.00:dataFlicker.getPst());
|
||||
influxDBDataFlicker.setQualityFlag(dataFlicker.getQualityflag()+"");
|
||||
|
||||
influxDBDataFlicker.setAbnormalFlag(dataFlicker.getAbnormalFlag());
|
||||
|
||||
return influxDBDataFlicker;
|
||||
}
|
||||
|
||||
@@ -39,10 +39,13 @@ public class DataFluc {
|
||||
@Column(name = "fluccf")
|
||||
private Double fluccf=0.00;
|
||||
|
||||
|
||||
@Column(name = "quality_flag",tag = true)
|
||||
private String qualityFlag="0";
|
||||
|
||||
//是否是异常指标数据,0否1是
|
||||
@Column(name = "abnormal_flag")
|
||||
private Integer abnormalFlag;
|
||||
|
||||
public static DataFluc relationToInfluxDB(DataFlucDTO dataFluc) {
|
||||
if (dataFluc == null) {
|
||||
return null;
|
||||
@@ -57,7 +60,7 @@ public class DataFluc {
|
||||
influxDBDataFluc.setFluc(Objects.isNull(dataFluc.getFluc())?0.00:dataFluc.getFluc());
|
||||
influxDBDataFluc.setFluccf(Objects.isNull(dataFluc.getFluccf())?0.00:dataFluc.getFluccf());
|
||||
influxDBDataFluc.setQualityFlag(dataFluc.getQualityflag()+"");
|
||||
|
||||
influxDBDataFluc.setAbnormalFlag(dataFluc.getAbnormalFlag());
|
||||
|
||||
return influxDBDataFluc;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,10 @@ public class DataHarmphasicI {
|
||||
@Column(name = "value_type",tag = true)
|
||||
private String valueType;
|
||||
|
||||
//是否是异常指标数据,0否1是
|
||||
@Column(name = "abnormal_flag")
|
||||
private Integer abnormalFlag;
|
||||
|
||||
@Column(name = "i_1")
|
||||
private Double i1;
|
||||
|
||||
@@ -209,6 +213,7 @@ public class DataHarmphasicI {
|
||||
influxDBDataHarmPhasicI.setPhasicType(dataHarmphasicI.getPhasicType());
|
||||
influxDBDataHarmPhasicI.setQualityFlag(dataHarmphasicI.getQualityflag()+"");
|
||||
influxDBDataHarmPhasicI.setValueType(valueType);
|
||||
influxDBDataHarmPhasicI.setAbnormalFlag(dataHarmphasicI.getAbnormalFlag());
|
||||
if (valueType.equals("AVG")) {
|
||||
influxDBDataHarmPhasicI.setI1(Objects.isNull(dataHarmphasicI.getI1())?0.00:dataHarmphasicI.getI1());
|
||||
influxDBDataHarmPhasicI.setI2(Objects.isNull(dataHarmphasicI.getI2())?0.00:dataHarmphasicI.getI2());
|
||||
|
||||
@@ -44,6 +44,10 @@ public class DataHarmphasicV {
|
||||
@Column(name = "value_type",tag = true)
|
||||
private String valueType;
|
||||
|
||||
//是否是异常指标数据,0否1是
|
||||
@Column(name = "abnormal_flag")
|
||||
private Integer abnormalFlag;
|
||||
|
||||
@Column(name = "v_1")
|
||||
private Double v1;
|
||||
|
||||
@@ -209,6 +213,7 @@ public class DataHarmphasicV {
|
||||
InfluxDBDataHarmphasicV.setPhasicType(dataHarmphasicV.getPhasicType());
|
||||
InfluxDBDataHarmphasicV.setQualityFlag(dataHarmphasicV.getQualityflag()+"");
|
||||
InfluxDBDataHarmphasicV.setValueType(valueType);
|
||||
InfluxDBDataHarmphasicV.setAbnormalFlag(dataHarmphasicV.getAbnormalFlag());
|
||||
if (valueType.equals("AVG")) {
|
||||
InfluxDBDataHarmphasicV.setV1(Objects.isNull(dataHarmphasicV.getV1())?0.00:dataHarmphasicV.getV1());
|
||||
InfluxDBDataHarmphasicV.setV2(Objects.isNull(dataHarmphasicV.getV2())?0.00:dataHarmphasicV.getV2());
|
||||
|
||||
@@ -44,6 +44,10 @@ public class DataHarmpowerP {
|
||||
@Column(name = "value_type",tag = true)
|
||||
private String valueType;
|
||||
|
||||
//是否是异常指标数据,0否1是
|
||||
@Column(name = "abnormal_flag")
|
||||
private Integer abnormalFlag;
|
||||
|
||||
@Column(name = "df")
|
||||
private Double df;
|
||||
|
||||
@@ -218,6 +222,7 @@ public class DataHarmpowerP {
|
||||
influxDBDataHarmpowerP.setPhasicType(dataHarmpowerP.getPhasicType());
|
||||
influxDBDataHarmpowerP.setQualityFlag(dataHarmpowerP.getQualityflag()+"");
|
||||
influxDBDataHarmpowerP.setValueType(valueType);
|
||||
influxDBDataHarmpowerP.setAbnormalFlag(dataHarmpowerP.getAbnormalFlag());
|
||||
if (valueType.equals("AVG")) {
|
||||
influxDBDataHarmpowerP.setDf(Objects.isNull(dataHarmpowerP.getDf())?0.00:dataHarmpowerP.getDf());
|
||||
influxDBDataHarmpowerP.setPf(Objects.isNull(dataHarmpowerP.getPf())?0.00:dataHarmpowerP.getPf());
|
||||
|
||||
@@ -44,6 +44,10 @@ public class DataHarmpowerQ {
|
||||
@Column(name = "value_type",tag = true)
|
||||
private String valueType;
|
||||
|
||||
//是否是异常指标数据,0否1是
|
||||
@Column(name = "abnormal_flag")
|
||||
private Integer abnormalFlag;
|
||||
|
||||
@Column(name = "q")
|
||||
private Double q;
|
||||
|
||||
@@ -212,6 +216,7 @@ public class DataHarmpowerQ {
|
||||
influxDBDataHarmpowerQ.setPhasicType(dataHarmpowerQ.getPhasicType());
|
||||
influxDBDataHarmpowerQ.setQualityFlag(dataHarmpowerQ.getQualityflag()+"");
|
||||
influxDBDataHarmpowerQ.setValueType(valueType);
|
||||
influxDBDataHarmpowerQ.setAbnormalFlag(dataHarmpowerQ.getAbnormalFlag());
|
||||
if (valueType.equals("AVG")) {
|
||||
|
||||
influxDBDataHarmpowerQ.setQ(Objects.isNull(dataHarmpowerQ.getQ())?0.00:dataHarmpowerQ.getQ());
|
||||
|
||||
@@ -44,6 +44,10 @@ public class DataHarmpowerS {
|
||||
@Column(name = "value_type",tag = true)
|
||||
private String valueType;
|
||||
|
||||
//是否是异常指标数据,0否1是
|
||||
@Column(name = "abnormal_flag")
|
||||
private Integer abnormalFlag;
|
||||
|
||||
@Column(name = "s")
|
||||
private Double s;
|
||||
|
||||
@@ -212,6 +216,7 @@ public class DataHarmpowerS {
|
||||
influxDBDataHarmpowerS.setPhasicType(dataHarmpowerS.getPhasicType());
|
||||
influxDBDataHarmpowerS.setQualityFlag(dataHarmpowerS.getQualityflag()+"");
|
||||
influxDBDataHarmpowerS.setValueType(valueType);
|
||||
influxDBDataHarmpowerS.setAbnormalFlag(dataHarmpowerS.getAbnormalFlag());
|
||||
if (valueType.equals("AVG")) {
|
||||
influxDBDataHarmpowerS.setS(Objects.isNull(dataHarmpowerS.getS())?0.00:dataHarmpowerS.getS());
|
||||
|
||||
|
||||
@@ -43,6 +43,10 @@ public class DataHarmrateI {
|
||||
@Column(name = "value_type",tag = true)
|
||||
private String valueType;
|
||||
|
||||
//是否是异常指标数据,0否1是
|
||||
@Column(name = "abnormal_flag")
|
||||
private Integer abnormalFlag;
|
||||
|
||||
@Column(name = "i_1")
|
||||
private Double i1;
|
||||
|
||||
|
||||
@@ -43,6 +43,10 @@ public class DataHarmrateV {
|
||||
@Column(name = "value_type",tag = true)
|
||||
private String valueType;
|
||||
|
||||
//是否是异常指标数据,0否1是
|
||||
@Column(name = "abnormal_flag")
|
||||
private Integer abnormalFlag;
|
||||
|
||||
@Column(name = "v_1")
|
||||
private Double v1;
|
||||
|
||||
@@ -208,6 +212,7 @@ public class DataHarmrateV {
|
||||
influxDBDataHarmRateV.setPhasicType(dataHarmrateV.getPhasicType());
|
||||
influxDBDataHarmRateV.setQualityFlag(dataHarmrateV.getQualityflag()+"");
|
||||
influxDBDataHarmRateV.setValueType(valueType);
|
||||
influxDBDataHarmRateV.setAbnormalFlag(dataHarmrateV.getAbnormalFlag());
|
||||
if (valueType.equals("AVG")) {
|
||||
influxDBDataHarmRateV.setV1(Objects.isNull(dataHarmrateV.getV1())?0.00:dataHarmrateV.getV1());
|
||||
influxDBDataHarmRateV.setV2(Objects.isNull(dataHarmrateV.getV2())?0.00:dataHarmrateV.getV2());
|
||||
|
||||
@@ -44,6 +44,10 @@ public class DataI {
|
||||
@Column(name = "value_type",tag = true)
|
||||
private String valueType;
|
||||
|
||||
//是否是异常指标数据,0否1是
|
||||
@Column(name = "abnormal_flag")
|
||||
private Integer abnormalFlag;
|
||||
|
||||
@Column(name = "i_neg")
|
||||
private Double iNeg;
|
||||
|
||||
|
||||
@@ -44,6 +44,10 @@ public class DataInharmI {
|
||||
@Column(name = "value_type",tag = true)
|
||||
private String valueType;
|
||||
|
||||
//是否是异常指标数据,0否1是
|
||||
@Column(name = "abnormal_flag")
|
||||
private Integer abnormalFlag;
|
||||
|
||||
@Column(name = "i_1")
|
||||
private Double i1;
|
||||
|
||||
|
||||
@@ -44,6 +44,10 @@ public class DataInharmV {
|
||||
@Column(name = "value_type",tag = true)
|
||||
private String valueType;
|
||||
|
||||
//是否是异常指标数据,0否1是
|
||||
@Column(name = "abnormal_flag")
|
||||
private Integer abnormalFlag;
|
||||
|
||||
@Column(name = "v_1")
|
||||
private Double v1;
|
||||
|
||||
@@ -209,6 +213,7 @@ public class DataInharmV {
|
||||
influxDBDataInHarmV.setPhasicType(dataInharmV.getPhasicType());
|
||||
influxDBDataInHarmV.setQualityFlag(dataInharmV.getQualityflag()+"");
|
||||
influxDBDataInHarmV.setValueType(valueType);
|
||||
influxDBDataInHarmV.setAbnormalFlag(dataInharmV.getAbnormalFlag());
|
||||
if (valueType.equals("AVG")) {
|
||||
influxDBDataInHarmV.setV1(Objects.isNull(dataInharmV.getV1())?0.00:dataInharmV.getV1());
|
||||
influxDBDataInHarmV.setV2(Objects.isNull(dataInharmV.getV2())?0.00:dataInharmV.getV2());
|
||||
|
||||
@@ -37,6 +37,10 @@ public class DataPlt {
|
||||
@Column(name = "quality_flag",tag = true)
|
||||
private String qualityFlag="0";
|
||||
|
||||
//是否是异常指标数据,0否1是
|
||||
@Column(name = "abnormal_flag")
|
||||
private Integer abnormalFlag;
|
||||
|
||||
@Column(name = "plt")
|
||||
private Double plt;
|
||||
|
||||
@@ -53,7 +57,7 @@ public class DataPlt {
|
||||
influxDBDataPlt.setPhasicType(dataPlt.getPhasicType());
|
||||
influxDBDataPlt.setPlt(Objects.isNull(dataPlt.getPlt())?0.00:dataPlt.getPlt());
|
||||
influxDBDataPlt.setQualityFlag(dataPlt.getQualityflag()+"");
|
||||
|
||||
influxDBDataPlt.setAbnormalFlag(dataPlt.getAbnormalFlag());
|
||||
|
||||
return influxDBDataPlt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user