Commit be43bf9c authored by chenzhao's avatar chenzhao

修改代码

parent ceebd050
......@@ -592,13 +592,20 @@ public class JpStationController extends BaseController {
}
}
for (String s : collector.keySet()) {
Map<String,Object> result = new HashMap<>();
result.put("name",s);
result.put("value",collector.get(s));
itemList.add(result);
}
Map<String,Object> result = new HashMap<>();
result.put("name","正常");
result.put("value",collector.get("正常"));
itemList.add(result);
Map<String,Object> result1 = new HashMap<>();
result1.put("name","离线");
result1.put("value",collector.get("离线"));
itemList.add(result1);
Map<String,Object> result2 = new HashMap<>();
result2.put("name","报警");
result2.put("value",collector.get("报警"));
itemList.add(result2);
return ResponseHelper.buildResponse(itemList);
}
......
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