奥体项目数据接口修改
正在显示
1 个修改的文件
包含
14 行增加
和
1 行删除
... | @@ -1518,9 +1518,22 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { | ... | @@ -1518,9 +1518,22 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { |
1518 | if(map.get(wList.get(0).getMonitorId())==null){ | 1518 | if(map.get(wList.get(0).getMonitorId())==null){ |
1519 | echartResult.setValue(""); | 1519 | echartResult.setValue(""); |
1520 | }else{ | 1520 | }else{ |
1521 | double pResult = formatDouble(Double.parseDouble(map.get(wList.get(0).getMonitorId()).toString())*Double.parseDouble(wList.get(0).getMonitorZoom())); | 1521 | for (WhatStructData whatStructData:wList) { |
1522 | if("pressure".equals(whatStructData.getEquipType())){ | ||
1523 | if(whatStructData.getMonitorId()==null){ | ||
1524 | echartResult.setValue(""); | ||
1525 | }else{ | ||
1526 | if(map.get(whatStructData.getMonitorId())==null){ | ||
1527 | echartResult.setValue(""); | ||
1528 | }else{ | ||
1529 | double pResult = formatDouble(Double.parseDouble(map.get(whatStructData.getMonitorId()).toString())*Double.parseDouble(whatStructData.getMonitorZoom())); | ||
1522 | echartResult.setValue(String.valueOf(pResult)); | 1530 | echartResult.setValue(String.valueOf(pResult)); |
1523 | } | 1531 | } |
1532 | } | ||
1533 | break; | ||
1534 | } | ||
1535 | } | ||
1536 | } | ||
1524 | echartResult.setSeries("压力表"); | 1537 | echartResult.setSeries("压力表"); |
1525 | list.add(echartResult); | 1538 | list.add(echartResult); |
1526 | }else if("f".equals(type)){ | 1539 | }else if("f".equals(type)){ | ... | ... |
-
请 注册 或 登录 后发表评论