d11999c3 张雷

奥体项目接口修改

1 个父辈 d1036995
...@@ -38,6 +38,9 @@ public class WhatStructData { ...@@ -38,6 +38,9 @@ public class WhatStructData {
38 /**点表ID*/ 38 /**点表ID*/
39 @ApiModelProperty(value = "点表ID") 39 @ApiModelProperty(value = "点表ID")
40 private String monitorId; 40 private String monitorId;
41 /**点名称*/
42 @ApiModelProperty(value = "点名称")
43 private String monitorName;
41 /**点类型*/ 44 /**点类型*/
42 @ApiModelProperty(value = "点类型") 45 @ApiModelProperty(value = "点类型")
43 private String monitorType; 46 private String monitorType;
......
...@@ -1339,7 +1339,7 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { ...@@ -1339,7 +1339,7 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService {
1339 for (WhatStructData whatStructData:flowList) { 1339 for (WhatStructData whatStructData:flowList) {
1340 Map<String, Object> map = new HashMap<>(); 1340 Map<String, Object> map = new HashMap<>();
1341 map.put("id",whatStructData.getId()); 1341 map.put("id",whatStructData.getId());
1342 map.put("name",whatStructData.getId()); 1342 map.put("name",whatStructData.getMonitorName());
1343 map.put("time",""); 1343 map.put("time","");
1344 map.put("flow",""); 1344 map.put("flow","");
1345 map.put("flow_ljll",""); 1345 map.put("flow_ljll","");
...@@ -1364,7 +1364,7 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { ...@@ -1364,7 +1364,7 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService {
1364 for (WhatStructData whatStructData:wList) { 1364 for (WhatStructData whatStructData:wList) {
1365 Map<String, Object> map = new HashMap<>(); 1365 Map<String, Object> map = new HashMap<>();
1366 map.put("id",whatStructData.getId()); 1366 map.put("id",whatStructData.getId());
1367 map.put("name",whatStructData.getId()); 1367 map.put("name",whatStructData.getMonitorName());
1368 map.put("time",""); 1368 map.put("time","");
1369 map.put("value",""); 1369 map.put("value","");
1370 for (Map<String, Object> mMap : monitorList ) { 1370 for (Map<String, Object> mMap : monitorList ) {
...@@ -1383,7 +1383,7 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { ...@@ -1383,7 +1383,7 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService {
1383 for (WhatStructData whatStructData:wList) { 1383 for (WhatStructData whatStructData:wList) {
1384 Map<String, Object> map = new HashMap<>(); 1384 Map<String, Object> map = new HashMap<>();
1385 map.put("id",whatStructData.getId()); 1385 map.put("id",whatStructData.getId());
1386 map.put("name",whatStructData.getId()); 1386 map.put("name",whatStructData.getMonitorName());
1387 map.put("time",""); 1387 map.put("time","");
1388 map.put("value",""); 1388 map.put("value","");
1389 list.add(map); 1389 list.add(map);
...@@ -1472,12 +1472,13 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { ...@@ -1472,12 +1472,13 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService {
1472 List<Map<String, Object>> list1 = new ArrayList<>(); 1472 List<Map<String, Object>> list1 = new ArrayList<>();
1473 Map<String, Object> map = new HashMap<>(); 1473 Map<String, Object> map = new HashMap<>();
1474 map.put("id",whatStructData.getEquipCode()); 1474 map.put("id",whatStructData.getEquipCode());
1475 map.put("name",whatStructData.getEquipCode()); 1475 map.put("name",whatStructData.getMonitorName());
1476 String equipCode = whatStructData.getEquipCode(); 1476 String equipCode = whatStructData.getEquipCode();
1477 for (WhatStructData whatStructData1 : equipList) { 1477 for (WhatStructData whatStructData1 : equipList) {
1478 if(equipCode.equals(whatStructData1.getEquipCode())){ 1478 if(equipCode.equals(whatStructData1.getEquipCode())){
1479 Map<String, Object> statusMap = new HashMap<>(); 1479 Map<String, Object> statusMap = new HashMap<>();
1480 statusMap.put("name",whatStructData1.getId()); 1480 statusMap.put("id",whatStructData1.getId());
1481 statusMap.put("name",whatStructData1.getMonitorName());
1481 if(whatStructData1.getMonitorId()!=null){ 1482 if(whatStructData1.getMonitorId()!=null){
1482 statusMap.put("monitorid",whatStructData1.getMonitorId()); 1483 statusMap.put("monitorid",whatStructData1.getMonitorId());
1483 }else{ 1484 }else{
...@@ -1876,12 +1877,12 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService { ...@@ -1876,12 +1877,12 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService {
1876 String bpName = pumpId+"_BP"; 1877 String bpName = pumpId+"_BP";
1877 String gpName = pumpId+"_GP"; 1878 String gpName = pumpId+"_GP";
1878 for (Map<String, Object> bean : list) { 1879 for (Map<String, Object> bean : list) {
1879 if(bpName.equals(bean.get("name"))){ 1880 if(bpName.equals(bean.get("id"))){
1880 if("1".equals(map.get(bean.get("monitorid").toString()))){ 1881 if("1".equals(map.get(bean.get("monitorid").toString()))){
1881 status = "变频运行"; 1882 status = "变频运行";
1882 } 1883 }
1883 } 1884 }
1884 if(gpName.equals(bean.get("name"))){ 1885 if(gpName.equals(bean.get("id"))){
1885 if("1".equals(map.get(bean.get("monitorid").toString()))){ 1886 if("1".equals(map.get(bean.get("monitorid").toString()))){
1886 status = "工频运行"; 1887 status = "工频运行";
1887 } 1888 }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!