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

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

parent 7983ab50
......@@ -221,9 +221,11 @@ public class SiteTreeSelect implements Serializable {
}
JSONArray jsonArray = jsonObject.getJSONArray("children");
List<SiteTreeSelect> children = new ArrayList<>();
for (int i = 0; i < jsonArray.size(); i++) {
SiteTreeSelect child = JSON.parseObject(jsonArray.getJSONObject(i).toJSONString(), SiteTreeSelect.class);
children.add(child);
if(!ObjectUtils.isEmpty(jsonArray)){
for (int i = 0; i < jsonArray.size(); i++) {
SiteTreeSelect child = JSON.parseObject(jsonArray.getJSONObject(i).toJSONString(), SiteTreeSelect.class);
children.add(child);
}
}
node.setChildren(children);
return node;
......
......@@ -47,8 +47,9 @@ GET {{baseUrl}}/test/one/49
Accept: application/json
###redis 测试
GET {{baseUrl}}/test/updateDevice
###站点树 测试
GET {{baseUrl}}/sitestat/siteTree
Authorization: {{authToken}}
Accept: application/json
......
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