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
a8832769
Commit
a8832769
authored
Feb 17, 2022
by
chenhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_ccs' of
http://172.16.10.76/moa/amos-boot-biz
into develop_ccs
parents
e8d0dc22
e800ef3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+3
-0
BuildingServiceImpl.java
...yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
+8
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
a8832769
...
@@ -806,6 +806,9 @@ LEFT JOIN (
...
@@ -806,6 +806,9 @@ LEFT JOIN (
#{bizOrgType}
#{bizOrgType}
</foreach>
</foreach>
</if>
</if>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
and usr.biz_org_code LIKE CONCAT (#{bizOrgCode},'%')
</if>
order by usr.rec_date
order by usr.rec_date
</select>
</select>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
View file @
a8832769
...
@@ -1152,13 +1152,19 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
...
@@ -1152,13 +1152,19 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
// 3.将建筑的bizOrgCode转换为parentId连接树 ,拼接数据准备
// 3.将建筑的bizOrgCode转换为parentId连接树 ,拼接数据准备
Map
<
String
,
Long
>
comMap
=
companyList
.
stream
().
collect
(
Collectors
.
toMap
(
BuildingTreeVo:
:
getBizOrgCode
,
BuildingTreeVo:
:
getId
));
Map
<
String
,
Long
>
comMap
=
companyList
.
stream
().
collect
(
Collectors
.
toMap
(
BuildingTreeVo:
:
getBizOrgCode
,
BuildingTreeVo:
:
getId
));
buildingTreeVos
.
forEach
(
b
->
{
//增加了一层对树的过滤,过滤掉指定公司外的其他建筑。
List
<
BuildingTreeVo
>
collect
=
buildingTreeVos
.
stream
().
filter
(
build
->
companyList
.
stream
().
map
(
m
->
{
String
bizOrgCode
=
m
.
getBizOrgCode
();
return
bizOrgCode
;
}).
collect
(
Collectors
.
toList
()).
contains
(
build
.
getBizOrgCode
())).
collect
(
Collectors
.
toList
());
collect
.
forEach
(
b
->
{
b
.
setParentId
(
"0"
.
equals
(
b
.
getParentId
())
?
String
.
valueOf
(
comMap
.
get
(
b
.
getBizOrgCode
()))
:
b
.
getParentId
());
b
.
setParentId
(
"0"
.
equals
(
b
.
getParentId
())
?
String
.
valueOf
(
comMap
.
get
(
b
.
getBizOrgCode
()))
:
b
.
getParentId
());
b
.
setDetailPaneApi
(
address
);
b
.
setDetailPaneApi
(
address
);
b
.
setApiUrl
(
apiUrl
);
b
.
setApiUrl
(
apiUrl
);
});
});
// 4.组装树
// 4.组装树
companyList
.
addAll
(
buildingTreeVos
);
companyList
.
addAll
(
collect
);
return
companyList
;
return
companyList
;
}
}
...
...
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