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
3b6f2b34
Commit
3b6f2b34
authored
Aug 27, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl_bugfix_0723' into develop_dl_bugfix_0723
parents
4d893d32
6ed31d40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+10
-6
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/OrgUsrServiceImpl.java
View file @
3b6f2b34
...
@@ -266,14 +266,18 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -266,14 +266,18 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
private
List
<
OrgMenuDto
>
doIsOnlineData
(
List
<
OrgMenuDto
>
list
)
{
private
List
<
OrgMenuDto
>
doIsOnlineData
(
List
<
OrgMenuDto
>
list
)
{
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
for
(
OrgMenuDto
orgMenuDto
:
list
)
{
for
(
OrgMenuDto
orgMenuDto
:
list
)
{
orgMenuDto
.
setIsOnline
(
Boolean
.
TRUE
);
if
(
orgMenuDto
.
getBizOrgCode
().
length
()
==
12
)
{
if
(
orgMenuDto
.
getBizOrgCode
().
length
()
==
12
&&
CollectionUtils
.
isNotEmpty
(
orgMenuDto
.
getChildren
()))
{
orgMenuDto
.
setIsOnline
(
Boolean
.
TRUE
);
Set
<
Boolean
>
collect
=
orgMenuDto
.
getChildren
().
stream
().
map
(
OrgMenuDto:
:
getIsOnline
).
collect
(
Collectors
.
toSet
());
if
(
CollectionUtils
.
isNotEmpty
(
orgMenuDto
.
getChildren
()))
{
if
(
CollectionUtils
.
isEmpty
(
collect
)
||
(
collect
.
contains
(
Boolean
.
FALSE
)
&&
!
collect
.
contains
(
Boolean
.
TRUE
)))
{
Set
<
Boolean
>
collect
=
orgMenuDto
.
getChildren
().
stream
().
map
(
OrgMenuDto:
:
getIsOnline
).
collect
(
Collectors
.
toSet
());
if
(
CollectionUtils
.
isEmpty
(
collect
)
||
(
collect
.
contains
(
Boolean
.
FALSE
)
&&
!
collect
.
contains
(
Boolean
.
TRUE
)))
{
orgMenuDto
.
setIsOnline
(
Boolean
.
FALSE
);
}
}
else
if
(
CollectionUtils
.
isEmpty
(
orgMenuDto
.
getChildren
()))
{
orgMenuDto
.
setIsOnline
(
Boolean
.
FALSE
);
orgMenuDto
.
setIsOnline
(
Boolean
.
FALSE
);
}
}
}
else
if
(
CollectionUtils
.
isEmpty
(
orgMenuDto
.
getChildren
())
)
{
}
else
if
(
orgMenuDto
.
getBizOrgCode
().
length
()
==
6
)
{
orgMenuDto
.
setIsOnline
(
Boolean
.
FALS
E
);
orgMenuDto
.
setIsOnline
(
Boolean
.
TRU
E
);
}
}
doIsOnlineData
(
orgMenuDto
.
getChildren
());
doIsOnlineData
(
orgMenuDto
.
getChildren
());
}
}
...
...
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