Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
d96f2d43
Commit
d96f2d43
authored
Nov 21, 2024
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新换流变排油阀接口查询规则
parent
e57b16a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+15
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
d96f2d43
...
...
@@ -2943,6 +2943,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
@Override
public
List
<
Map
<
String
,
Object
>>
getFEquipInfoListCategory
(
String
bizOrgCode
)
{
List
<
DataDictionary
>
zdsbfl
=
jcsFeignClient
.
dataDictionaryIdFillMenu
(
"ZDSBFL"
).
getResult
();
List
<
DataDictionary
>
dictionaryList
=
treeMenuList
(
zdsbfl
,
"1850"
);
List
<
Map
<
String
,
Object
>>
list
=
this
.
baseMapper
.
getFEquipInfoListCategory
(
bizOrgCode
);
ArrayList
<
String
>
strings
=
new
ArrayList
<>();
list
.
forEach
(
item
->
{
...
...
@@ -2991,7 +2992,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
});
List
<
Map
<
String
,
Object
>>
listNew
=
new
ArrayList
<>();
Map
<
String
,
List
<
Map
<
String
,
Object
>>>
categoryMap
=
resultList
.
stream
().
collect
(
Collectors
.
groupingBy
(
t
->
t
.
get
(
"category"
).
toString
()));
zdsbfl
.
forEach
(
item
->
{
dictionaryList
.
forEach
(
item
->
{
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"code"
,
item
.
getTreeCode
());
map
.
put
(
"name"
,
item
.
getName
());
...
...
@@ -3000,4 +3001,17 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
});
return
listNew
;
}
private
static
List
<
DataDictionary
>
treeMenuList
(
List
<
DataDictionary
>
menuList
,
String
treeCode
)
{
List
<
DataDictionary
>
childMenu
=
new
ArrayList
<>();
for
(
DataDictionary
mu
:
menuList
)
{
//遍历出父id等于参数的id,add进子节点集合
if
(
mu
.
getTreeCode
()
==
treeCode
)
{
//递归遍历下一级
treeMenuList
(
menuList
,
mu
.
getTreeCode
());
childMenu
.
add
(
mu
);
}
}
return
childMenu
;
}
}
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