|
|
|
@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |