Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
Overview
Overview
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
base_platform_enterprise
gic-platform-auth
Commits
c4b6bd18
Commit
c4b6bd18
authored
Nov 01, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
如果为null,默认值0
parent
9e532cdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
AccountGroupApiServiceImpl.java
...c/auth/service/outer/impl/AccountGroupApiServiceImpl.java
+4
-1
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/AccountGroupApiServiceImpl.java
View file @
c4b6bd18
...
...
@@ -75,13 +75,16 @@ public class AccountGroupApiServiceImpl implements AccountGroupApiService {
List
<
TabSysAccountGroup
>
list
=
accountGroupService
.
listAccountGroupByEnterpriseId
(
enterpriseId
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
//求分组下的组员数量值
Map
<
String
,
Integer
>
map
=
new
HashMap
<>(
16
);
List
<
Integer
>
accountGroupIdList
=
new
ArrayList
<>(
list
.
size
());
for
(
TabSysAccountGroup
temp
:
list
)
{
accountGroupIdList
.
add
(
temp
.
getAccountGroupId
());
//设置默认值0
map
.
put
(
temp
.
getAccountGroupId
().
toString
(),
0
);
}
List
<
AccountGroupListDTO
>
accountGroupListDTOList
=
accountGroupRelService
.
groupByAccountGroupId
(
accountGroupIdList
);
Map
<
String
,
Integer
>
map
=
new
HashMap
<>(
16
);
if
(
CollectionUtils
.
isNotEmpty
(
accountGroupListDTOList
))
{
for
(
AccountGroupListDTO
dto
:
accountGroupListDTOList
)
{
map
.
put
(
dto
.
getAccountGroupId
().
toString
(),
dto
.
getMemberCount
());
...
...
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