Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
de5f8db3
Commit
de5f8db3
authored
Jun 19, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加设备上线和下线的业务日志记录
parent
7983ab50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
device-manager/src/main/java/com/mortals/xhx/module/site/model/SiteTreeSelect.java
...ava/com/mortals/xhx/module/site/model/SiteTreeSelect.java
+5
-3
device-manager/src/test/java/com/mortals/httpclient/system.http
...-manager/src/test/java/com/mortals/httpclient/system.http
+3
-2
No files found.
device-manager/src/main/java/com/mortals/xhx/module/site/model/SiteTreeSelect.java
View file @
de5f8db3
...
...
@@ -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
;
...
...
device-manager/src/test/java/com/mortals/httpclient/system.http
View file @
de5f8db3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment