Commit f9ab911b authored by 赵啸非's avatar 赵啸非

添加设备上线和下线的业务日志记录

parent 5048b37c
...@@ -230,14 +230,14 @@ public class SitestatServiceImpl extends AbstractCRUDServiceImpl<SitestatDao, Si ...@@ -230,14 +230,14 @@ public class SitestatServiceImpl extends AbstractCRUDServiceImpl<SitestatDao, Si
Map<String, Object> model = new HashMap<>(); Map<String, Object> model = new HashMap<>();
if (!ObjectUtils.isEmpty(token)) { if (!ObjectUtils.isEmpty(token)) {
String resp = siteFeign.siteTree(token); String resp = siteFeign.siteTree(token);
Rest<String> rest = JSON.parseObject(resp, new TypeReference<Rest<String>>() { Rest<Rest<String>> rest = JSON.parseObject(resp, new TypeReference<Rest<Rest<String>>>() {
}); });
if(rest.getCode()==YesNoEnum.YES.getValue()){ if(rest.getCode()==YesNoEnum.YES.getValue()){
String siteTreeSelectStr = rest.getData(); String siteTreeSelectStr = rest.getData().getData();
Rest<String> restSite = JSON.parseObject(siteTreeSelectStr, new TypeReference<Rest<String>>() { // Rest<String> restSite = JSON.parseObject(siteTreeSelectStr, new TypeReference<Rest<String>>() {
}); // });
JSONArray jsonArray = JSON.parseArray(restSite.getData()); JSONArray jsonArray = JSON.parseArray(siteTreeSelectStr);
// if (ObjectUtils.isEmpty(jsonArray)) { // if (ObjectUtils.isEmpty(jsonArray)) {
// return new ArrayList<>(); // return new ArrayList<>();
// } // }
......
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