Commit b84b25a5 authored by chenzhao's avatar chenzhao

修改代码

parent 422d0d79
......@@ -1457,7 +1457,7 @@ public class CommonServiceImpl {
}
@Scheduled(cron = "0/5 * * * * ?")
@Scheduled(cron = "0 0/10 * * * ?")
public void healthWarningMinuteByFan() {
Date time = new Date();
List<IdxBizFanPointProcessVariableClassificationDto> data = idxBizFanPointProcessVariableClassificationMapper.getInfluxDBData();
......@@ -1571,7 +1571,14 @@ public class CommonServiceImpl {
idxBizFanHealthIndex.setHealthLevel(idxBizFanHealthLevel.getHealthLevel());
idxBizFanHealthIndex.setAnalysisType("按时刻");
idxBizFanHealthIndex.setAnalysisObjType("测点");
idxBizFanHealthIndex.setANOMALY(scoreValueArray.getDoubleValue(i));
if (ObjectUtils.isEmpty(scoreValueArray.getDoubleValue(i))){
System.out.println(JSON.toJSONString(requestMap));
idxBizFanHealthIndex.setANOMALY(0);
}else {
idxBizFanHealthIndex.setANOMALY(scoreValueArray.getDoubleValue(i));
}
idxBizFanHealthIndex.setANALYSISTIME(DateUtils.getDateNowString());
idxBizFanHealthIndexs.add(idxBizFanHealthIndex);
}
......@@ -1589,7 +1596,7 @@ public class CommonServiceImpl {
}
@Scheduled(cron = "0 0/5 * * * ?")
@Scheduled(cron = "0 0/10 * * * ?")
public void healthWarningMinuteByPv() {
Date time = new Date();
List<IdxBizPvPointProcessVariableClassificationDto> data = idxBizPvPointProcessVariableClassificationMapper.getInfluxDBData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment