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
045cb08f
Commit
045cb08f
authored
Jul 05, 2022
by
王鹿鹿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务 7480 7481
parent
4f131fff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
BuildingServiceImpl.java
...yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
+21
-1
EquipmentManageServiceImpl.java
.../equipmanage/service/impl/EquipmentManageServiceImpl.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
View file @
045cb08f
...
...
@@ -1270,7 +1270,27 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
//1.组装数据
List
<
BuildingTreeVo
>
companyBuildingList
=
buildBuildingAndCompanyListVos
(
authKey
);
//2.list to tree
return
companyBuildingList
.
stream
().
filter
(
a
->
companyBuildingList
.
stream
().
noneMatch
(
c
->
c
.
getId
().
toString
().
equals
(
a
.
getParentId
()))).
peek
(
b
->
b
.
setChildren
(
getCompanyBuildingChildrenTree
(
b
.
getId
().
toString
(),
companyBuildingList
))).
collect
(
Collectors
.
toList
());
List
<
BuildingTreeVo
>
buildingTreeVos
=
companyBuildingList
.
stream
().
filter
(
a
->
companyBuildingList
.
stream
().
noneMatch
(
c
->
c
.
getId
().
toString
().
equals
(
a
.
getParentId
()))).
peek
(
b
->
b
.
setChildren
(
getCompanyBuildingChildrenTree
(
b
.
getId
().
toString
(),
companyBuildingList
))).
collect
(
Collectors
.
toList
());
// 任务 7481
if
(
buildingTreeVos
.
size
()
==
1
&&
buildingTreeVos
.
get
(
0
).
getChildren
().
size
()
>
0
)
{
List
<
BuildingTreeVo
>
buildingTreeVosNew
=
buildingTreeVos
.
get
(
0
).
getChildren
().
stream
().
sorted
(
new
Comparator
<
BuildingTreeVo
>()
{
@Override
public
int
compare
(
BuildingTreeVo
o1
,
BuildingTreeVo
o2
)
{
if
(
o1
.
getGroupType
().
equals
(
o2
.
getGroupType
()))
{
return
0
;
}
if
(
o1
.
getGroupType
().
equals
(
"building"
)
)
{
return
-
1
;
}
if
(
o2
.
getGroupType
().
equals
(
"building"
)
)
{
return
1
;
}
return
0
;
}
}).
collect
(
Collectors
.
toList
());
buildingTreeVos
.
get
(
0
).
setChildren
(
buildingTreeVosNew
);
}
return
buildingTreeVos
;
}
@Override
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentManageServiceImpl.java
View file @
045cb08f
...
...
@@ -81,7 +81,7 @@ public class EquipmentManageServiceImpl extends ServiceImpl<EquipmentManageMappe
List
<
EquipmentManageVo
>
utils
=
equipmentManageMapper
.
getUtils
();
List
<
DynamicFormGroup
>
list
=
iEqDynamicFormGroupService
.
list
(
new
LambdaQueryWrapper
<
DynamicFormGroup
>()
.
eq
(
DynamicFormGroup:
:
getOrgCode
,
orgCode
)
//.eq(DynamicFormGroup::getOrgCode, orgCode) 任务 7480
.
eq
(
DynamicFormGroup:
:
getParentId
,
0
)
.
orderByDesc
(
BaseEntity:
:
getCreateDate
));
// List<EquipmentManageVo> systemList = equipmentManageMapper.getSystemList();
...
...
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