Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
gassafety
Commits
664a3595
Commit
664a3595
authored
Aug 05, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备巡检修改级联选项问题修复
parent
a3d0687b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
TDeviceInfoServiceImpl.java
...om/zehong/system/service/impl/TDeviceInfoServiceImpl.java
+11
-11
No files found.
gassafety-system/src/main/java/com/zehong/system/service/impl/TDeviceInfoServiceImpl.java
View file @
664a3595
...
...
@@ -102,14 +102,14 @@ public class TDeviceInfoServiceImpl implements ITDeviceInfoService
for
(
TPipe
pipe
:
pipeList
){
Map
<
Object
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"id"
,
pipe
.
getPipeId
());
map
.
put
(
"level"
,
2
);
map
.
put
(
"level"
,
"2"
);
map
.
put
(
"name"
,
pipe
.
getPipeName
());
childNodeList
.
add
(
map
);
}
Map
<
Object
,
Object
>
treeNode
=
new
HashMap
<>();
treeNode
.
put
(
"id"
,
0
);
treeNode
.
put
(
"level"
,
1
);
treeNode
.
put
(
"id"
,
"0"
);
treeNode
.
put
(
"level"
,
"1"
);
treeNode
.
put
(
"name"
,
"管道"
);
treeNode
.
put
(
"childList"
,
childNodeList
);
...
...
@@ -141,23 +141,23 @@ public class TDeviceInfoServiceImpl implements ITDeviceInfoService
}
Map
<
Object
,
Object
>
treeNode1
=
new
HashMap
<>();
treeNode1
.
put
(
"id"
,
1
);
treeNode1
.
put
(
"level"
,
1
);
treeNode1
.
put
(
"id"
,
"1"
);
treeNode1
.
put
(
"level"
,
"1"
);
treeNode1
.
put
(
"name"
,
"调压阀"
);
treeNode1
.
put
(
"childList"
,
childNodeList1
);
Map
<
Object
,
Object
>
treeNode2
=
new
HashMap
<>();
treeNode2
.
put
(
"id"
,
2
);
treeNode2
.
put
(
"level"
,
1
);
treeNode2
.
put
(
"id"
,
"2"
);
treeNode2
.
put
(
"level"
,
"1"
);
treeNode2
.
put
(
"name"
,
"阀门井"
);
treeNode2
.
put
(
"childList"
,
childNodeList2
);
Map
<
Object
,
Object
>
treeNode3
=
new
HashMap
<>();
treeNode3
.
put
(
"id"
,
3
);
treeNode3
.
put
(
"level"
,
1
);
treeNode3
.
put
(
"id"
,
"3"
);
treeNode3
.
put
(
"level"
,
"1"
);
treeNode3
.
put
(
"name"
,
"流量计"
);
treeNode3
.
put
(
"childList"
,
childNodeList3
);
Map
<
Object
,
Object
>
treeNode4
=
new
HashMap
<>();
treeNode4
.
put
(
"id"
,
4
);
treeNode4
.
put
(
"level"
,
1
);
treeNode4
.
put
(
"id"
,
"4"
);
treeNode4
.
put
(
"level"
,
"1"
);
treeNode4
.
put
(
"name"
,
"压力表"
);
treeNode4
.
put
(
"childList"
,
childNodeList4
);
...
...
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