47c8d9f9 张雷

奥体项目接口修改

1 个父辈 d11999c3
......@@ -1398,8 +1398,9 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService {
public Map<String, Object> getPumpRealTimeData(String sourceType, String pumpId) {
Map<String, Object> map = new HashMap<>();
map.put("status","变频运行");
map.put("runtime","0.6563");
map.put("runtime","0");
map.put("name",pumpId);
map.put("id",pumpId);
String pgField = "";
List<Map<String, Object>> statusList = new ArrayList<>();
List<WhatStructData> equipList = new ArrayList<>();
......@@ -1412,7 +1413,8 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService {
pgField = pgField +","+whatStructData.getMonitorId();
if("equip_status".equals(whatStructData.getEquipType())){
Map<String, Object> statusMap = new HashMap<>();
statusMap.put("name",whatStructData.getId());
statusMap.put("name",whatStructData.getMonitorName());
statusMap.put("id",whatStructData.getId());
statusMap.put("monitorid",whatStructData.getMonitorId());
statusList.add(statusMap);
if("0".equals(whatStructData.getMonitorZoom())){
......@@ -1420,6 +1422,7 @@ public class OlympicCenterServiceImpl implements IOlympicCenterService {
}else{
equipMap.put("show_model", "1");//根据1个点判断状态
}
map.put("name",whatStructData.getMonitorName());
}
if("equip_time".equals(whatStructData.getEquipType())){
equipMap.put("runtime",whatStructData.getMonitorId());
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!