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
593cb454
Commit
593cb454
authored
Nov 08, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除并行流
parent
ba307b78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
KeySiteServiceImpl.java
...ot/module/common/biz/service/impl/KeySiteServiceImpl.java
+1
-2
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 @
593cb454
...
...
@@ -192,7 +192,6 @@ public class KeySiteServiceImpl extends BaseService<KeySiteDto, KeySite, KeySite
o
.
getBizOrgCode
());
return
menu
;
}).
collect
(
Collectors
.
toList
());
menuList
.
remove
(
null
);
return
buildTreeParallel
(
menuList
);
}
...
...
@@ -202,7 +201,7 @@ public class KeySiteServiceImpl extends BaseService<KeySiteDto, KeySite, KeySite
Map
<
Long
,
OrgMenuDto
>
map
=
new
HashMap
<>(
menuList
.
size
());
menuList
.
forEach
(
e
->
map
.
put
(
e
.
getKey
(),
e
));
Set
<?
extends
Map
.
Entry
<
Long
,
?
extends
OrgMenuDto
>>
entries
=
map
.
entrySet
();
entries
.
parallelS
tream
().
forEach
(
entry
->
{
entries
.
s
tream
().
forEach
(
entry
->
{
OrgMenuDto
value
=
entry
.
getValue
();
if
(
value
!=
null
)
{
OrgMenuDto
treeDto
=
map
.
get
(
value
.
getParentId
());
...
...
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