4b240043 张雷

奥体项目数据问题修改

1 个父辈 0dbf5212
...@@ -1171,6 +1171,10 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { ...@@ -1171,6 +1171,10 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService {
1171 dataMap.put("status","abnormal"); 1171 dataMap.put("status","abnormal");
1172 } 1172 }
1173 } 1173 }
1174 if("0.0".equals(monitorMap.get(bean.getMonitorId()))
1175 ||"0.00".equals(monitorMap.get(bean.getMonitorId()))){
1176 dataMap.put("value","0.01");
1177 }
1174 beanMap.put(bean.getEquipType(), dataMap); 1178 beanMap.put(bean.getEquipType(), dataMap);
1175 }else{ 1179 }else{
1176 dataMap.put("value","--"); 1180 dataMap.put("value","--");
...@@ -1227,6 +1231,10 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { ...@@ -1227,6 +1231,10 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService {
1227 dataMap.put("status","abnormal"); 1231 dataMap.put("status","abnormal");
1228 } 1232 }
1229 } 1233 }
1234 if("0.0".equals(monitorMap.get(whatStructData.getMonitorId()))
1235 ||"0.00".equals(monitorMap.get(whatStructData.getMonitorId()))){
1236 dataMap.put("value","0.01");
1237 }
1230 map.put(whatStructData.getId(),dataMap); 1238 map.put(whatStructData.getId(),dataMap);
1231 } 1239 }
1232 }else{ 1240 }else{
...@@ -1240,6 +1248,10 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { ...@@ -1240,6 +1248,10 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService {
1240 dataMap.put("status","abnormal"); 1248 dataMap.put("status","abnormal");
1241 } 1249 }
1242 } 1250 }
1251 if("0.0".equals(monitorMap.get(whatStructData.getMonitorId()))
1252 ||"0.00".equals(monitorMap.get(whatStructData.getMonitorId()))){
1253 dataMap.put("value","0.01");
1254 }
1243 map.put(whatStructData.getId(),dataMap); 1255 map.put(whatStructData.getId(),dataMap);
1244 } 1256 }
1245 }else{ 1257 }else{
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!