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
fa2a4d4b
Commit
fa2a4d4b
authored
Jun 08, 2022
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.空针bug
parent
4f8c790a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
KeySiteServiceImpl.java
...ot/module/common/biz/service/impl/KeySiteServiceImpl.java
+3
-4
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/KeySiteServiceImpl.java
View file @
fa2a4d4b
...
...
@@ -233,7 +233,7 @@ public class KeySiteServiceImpl extends BaseService<KeySiteDto, KeySite, KeySite
OrgPersonEnum
.
公司
.
getKey
()
+
","
+
OrgPersonEnum
.
部门
.
getKey
(),
reginParams
.
getPersonIdentity
().
getBizOrgCode
());
List
<
KeySite
>
keySiteList
=
this
.
list
(
new
LambdaQueryWrapper
<
KeySite
>().
eq
(
BaseEntity:
:
getIsDelete
,
false
));
comDeptList
=
comDeptList
.
stream
().
map
(
c
->
c
.
setTotal
(
keySiteList
.
stream
()
comDeptList
=
comDeptList
.
stream
().
filter
(
u
->
StringUtils
.
isNotEmpty
(
u
.
getBizOrgCode
())).
map
(
c
->
c
.
setTotal
(
keySiteList
.
stream
()
.
filter
(
k
->
StringUtils
.
isNotBlank
(
k
.
getBizOrgCode
())
&&
k
.
getBizOrgCode
().
contains
(
c
.
getBizOrgCode
()))
.
count
())).
collect
(
Collectors
.
toList
());
List
<
OrgMenuDto
>
menuList
=
comDeptList
.
stream
().
map
(
o
->
{
...
...
@@ -242,10 +242,9 @@ public class KeySiteServiceImpl extends BaseService<KeySiteDto, KeySite, KeySite
* + o.getTotal() + ")", ObjectUtils.isEmpty(o.getParentId()) ? 0L :
* Long.valueOf(o.getParentId()), o.getBizOrgType(), false, o.getBizOrgCode());
*/
OrgMenuDto
menu
=
new
OrgMenuDto
(
o
.
getSequenceNbr
(),
o
.
getBizOrgName
(),
ObjectUtils
.
isEmpty
(
o
.
getParentId
())
?
0L
:
Long
.
valueOf
(
o
.
getParentId
()),
o
.
getBizOrgType
(),
false
,
return
new
OrgMenuDto
(
o
.
getSequenceNbr
(),
o
.
getBizOrgName
(),
ObjectUtils
.
isEmpty
(
o
.
getParentId
())
?
0L
:
Long
.
parseLong
(
o
.
getParentId
()),
o
.
getBizOrgType
(),
false
,
o
.
getBizOrgCode
());
return
menu
;
}).
collect
(
Collectors
.
toList
());
return
buildTreeParallel
(
menuList
);
}
...
...
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