Browse Source

修改形变告警bug

master
lijiuwei 8 months ago
parent
commit
303e3e19cb
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      inspect-main/inspect-main-task/src/main/java/com/inspect/analysis/service/impl/AnalysisServiceImpl.java

+ 7
- 2
inspect-main/inspect-main-task/src/main/java/com/inspect/analysis/service/impl/AnalysisServiceImpl.java View File

@ -742,7 +742,12 @@ public class AnalysisServiceImpl implements IAnalysisService {
private AlgValue selectAlgMap(String devId, String type) {
log.info("selectAlgMap patrolPointId: {}", devId);
Map<String, String> thresholdMap = patrolResultService.selectPatrolPresetParam(devId);
log.info("selectAlgMap thresholdMap: {}", JSONObject.toJSONString(thresholdMap));
return new AlgValue(thresholdMap.get("alarm_max_temp"), thresholdMap.get("alarm_min_temp"));
if(thresholdMap != null) {
log.info("selectAlgMap thresholdMap: {}", JSONObject.toJSONString(thresholdMap));
return new AlgValue(thresholdMap.get("alarm_max_temp"), thresholdMap.get("alarm_min_temp"));
} else {
log.info("selectAlgMap thresholdMap is null");
return new AlgValue();
}
}
}

Loading…
Cancel
Save