Commit ecfce0c2 authored by caotao's avatar caotao

预警未标黄问题排查处理

parent dedbaaa6
...@@ -633,6 +633,8 @@ public class AlarmInfoDetailServiceImpl implements IAlarmInfoDetailService { ...@@ -633,6 +633,8 @@ public class AlarmInfoDetailServiceImpl implements IAlarmInfoDetailService {
* @return * @return
*/ */
public HashMap<String,Object> getWaringCycleAndMaxValueByWaring(String warningPeriod,String warningContenct,String pointName){ public HashMap<String,Object> getWaringCycleAndMaxValueByWaring(String warningPeriod,String warningContenct,String pointName){
// 汇流箱机内温度连续30分钟健康指数≤74.0
HashMap<String,Object> result = new HashMap<>(); HashMap<String,Object> result = new HashMap<>();
warningContenct=warningContenct.replace(pointName+"连续",""); warningContenct=warningContenct.replace(pointName+"连续","");
String spiltStr =CommonConstans.waringPeriodTowaringCycle.get(warningPeriod); String spiltStr =CommonConstans.waringPeriodTowaringCycle.get(warningPeriod);
...@@ -645,8 +647,8 @@ public class AlarmInfoDetailServiceImpl implements IAlarmInfoDetailService { ...@@ -645,8 +647,8 @@ public class AlarmInfoDetailServiceImpl implements IAlarmInfoDetailService {
}else { }else {
warningCycle=Integer.valueOf(strings[0].replace(".0", "")); warningCycle=Integer.valueOf(strings[0].replace(".0", ""));
} }
if(strings[1].contains("<")){ if(strings[1].contains("")){
maxValue = Double.valueOf(strings[1].split("<")[1]); maxValue = Double.valueOf(strings[1].split("")[1]);
} }
} }
result.put("maxValue",maxValue); result.put("maxValue",maxValue);
......
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