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
fcabbefa
Commit
fcabbefa
authored
Apr 14, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户详情,受审组数据调整
parent
4f83cbac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
UserApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/UserApiServiceImpl.java
+10
-4
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/UserApiServiceImpl.java
View file @
fcabbefa
...
...
@@ -22,10 +22,9 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.*
;
import
java.util.stream.Collector
;
import
java.util.stream.Collectors
;
/**
* @author guojx
...
...
@@ -51,6 +50,8 @@ public class UserApiServiceImpl implements UserApiService {
private
AccountGroupRelService
accountGroupRelService
;
@Autowired
private
AccountGroupService
accountGroupService
;
@Autowired
private
AuditedGroupUserRelService
auditedGroupUserRelService
;
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
...
...
@@ -224,6 +225,11 @@ public class UserApiServiceImpl implements UserApiService {
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"用户类型错误,不是GIC管理员"
);
}
UserDTO
result
=
EntityUtil
.
changeEntityNew
(
UserDTO
.
class
,
tabUser
);
//受审组
List
<
Integer
>
userGroupIdList
=
auditedGroupUserRelService
.
listAuditedGroupByUserId
(
tabUser
.
getEnterpriseId
(),
userId
);
result
.
setUserGroupIds
(
Optional
.
ofNullable
(
userGroupIdList
).
orElse
(
new
ArrayList
<>()).
stream
()
.
map
(
e
->
e
.
toString
()).
collect
(
Collectors
.
joining
(
","
)));
//角色集
List
<
UserRoleDTO
>
userRoleDTOList
=
userRoleService
.
listUserRoleByUserId
(
userId
);
StringBuilder
userRoleStr
=
new
StringBuilder
();
...
...
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