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
2894cf61
Commit
2894cf61
authored
Jun 22, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购、资源组引用维护调整
parent
1f24b9f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
UserApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/UserApiServiceImpl.java
+7
-7
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/UserApiServiceImpl.java
View file @
2894cf61
...
@@ -144,7 +144,7 @@ public class UserApiServiceImpl implements UserApiService {
...
@@ -144,7 +144,7 @@ public class UserApiServiceImpl implements UserApiService {
accountGroupRelService
.
deleteByUserId
(
userId
,
AccountGroupMemberTypeEnum
.
ADMIN
.
getCode
());
accountGroupRelService
.
deleteByUserId
(
userId
,
AccountGroupMemberTypeEnum
.
ADMIN
.
getCode
());
}
}
ServiceResponse
<
Integer
>
response
=
saveRole
(
userId
,
userDTO
.
getEnterpriseId
(),
userDTO
.
getUserRoleIds
(),
ServiceResponse
<
Integer
>
response
=
saveRole
(
user
DTO
.
getUserName
(),
user
Id
,
userDTO
.
getEnterpriseId
(),
userDTO
.
getUserRoleIds
(),
userDTO
.
getUserResourceIds
(),
userDTO
.
getAccountGroupIds
(),
userDTO
.
getUserGroupIds
());
userDTO
.
getUserResourceIds
(),
userDTO
.
getAccountGroupIds
(),
userDTO
.
getUserGroupIds
());
if
(
response
.
isSuccess
())
{
if
(
response
.
isSuccess
())
{
return
response
;
return
response
;
...
@@ -285,7 +285,7 @@ public class UserApiServiceImpl implements UserApiService {
...
@@ -285,7 +285,7 @@ public class UserApiServiceImpl implements UserApiService {
//同步审核员
//同步审核员
auditorApiService
.
syncModifyNameOrPhone
(
userDTO
.
getUserId
(),
tabUser
.
getEnterpriseId
(),
userDTO
.
getPhoneNumber
(),
userDTO
.
getUserName
(),
null
);
auditorApiService
.
syncModifyNameOrPhone
(
userDTO
.
getUserId
(),
tabUser
.
getEnterpriseId
(),
userDTO
.
getPhoneNumber
(),
userDTO
.
getUserName
(),
null
);
ServiceResponse
response
=
saveRole
(
userDTO
.
getUserId
(),
userDTO
.
getEnterpriseId
(),
userDTO
.
getUserRoleIds
(),
ServiceResponse
response
=
saveRole
(
userDTO
.
getUser
Name
(),
userDTO
.
getUser
Id
(),
userDTO
.
getEnterpriseId
(),
userDTO
.
getUserRoleIds
(),
userDTO
.
getUserResourceIds
(),
userDTO
.
getAccountGroupIds
(),
userDTO
.
getUserGroupIds
());
userDTO
.
getUserResourceIds
(),
userDTO
.
getAccountGroupIds
(),
userDTO
.
getUserGroupIds
());
if
(
response
.
isSuccess
())
{
if
(
response
.
isSuccess
())
{
return
response
;
return
response
;
...
@@ -888,7 +888,7 @@ public class UserApiServiceImpl implements UserApiService {
...
@@ -888,7 +888,7 @@ public class UserApiServiceImpl implements UserApiService {
* @param userResourceIds
* @param userResourceIds
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer>
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer>
*/
*/
private
ServiceResponse
<
Integer
>
saveRole
(
Integer
userId
,
Integer
enterpriseId
,
String
userRoleIds
,
private
ServiceResponse
<
Integer
>
saveRole
(
String
userName
,
Integer
userId
,
Integer
enterpriseId
,
String
userRoleIds
,
String
userResourceIds
,
String
accountGroupIds
,
String
userGroupIds
)
{
String
userResourceIds
,
String
accountGroupIds
,
String
userGroupIds
)
{
String
[]
userRoleIdArr
;
String
[]
userRoleIdArr
;
String
[]
userResourceIdArr
;
String
[]
userResourceIdArr
;
...
@@ -937,7 +937,7 @@ public class UserApiServiceImpl implements UserApiService {
...
@@ -937,7 +937,7 @@ public class UserApiServiceImpl implements UserApiService {
}
}
}
}
//业务类型配置在:gic-member-config4.0.tab_conf_reference_type
//业务类型配置在:gic-member-config4.0.tab_conf_reference_type
saveRefer
(
userId
,
4
,
userRoleIdArr
);
saveRefer
(
userId
,
userName
,
4
,
userRoleIdArr
);
//新增用户资源关联数据
//新增用户资源关联数据
UserResourceDTO
userResourceDTO
=
new
UserResourceDTO
();
UserResourceDTO
userResourceDTO
=
new
UserResourceDTO
();
...
@@ -956,7 +956,7 @@ public class UserApiServiceImpl implements UserApiService {
...
@@ -956,7 +956,7 @@ public class UserApiServiceImpl implements UserApiService {
}
}
}
}
saveRefer
(
userId
,
5
,
userResourceIdArr
);
saveRefer
(
userId
,
userName
,
5
,
userResourceIdArr
);
//账号分组用户关联数据维护
//账号分组用户关联数据维护
if
(
StringUtils
.
isNotBlank
(
accountGroupIds
))
{
if
(
StringUtils
.
isNotBlank
(
accountGroupIds
))
{
...
@@ -1003,10 +1003,10 @@ public class UserApiServiceImpl implements UserApiService {
...
@@ -1003,10 +1003,10 @@ public class UserApiServiceImpl implements UserApiService {
* @param businessType 业务类型配置在:gic-member-config4.0.tab_conf_reference_type
* @param businessType 业务类型配置在:gic-member-config4.0.tab_conf_reference_type
* @param businessReferIdArr
* @param businessReferIdArr
*/
*/
private
void
saveRefer
(
Integer
businessId
,
Integer
businessType
,
String
[]
businessReferIdArr
)
{
private
void
saveRefer
(
Integer
businessId
,
String
businessName
,
Integer
businessType
,
String
[]
businessReferIdArr
)
{
PopupDTO
popupDTO
=
new
PopupDTO
();
PopupDTO
popupDTO
=
new
PopupDTO
();
popupDTO
.
setBusinessId
(
String
.
valueOf
(
businessId
));
popupDTO
.
setBusinessId
(
String
.
valueOf
(
businessId
));
popupDTO
.
setBusinessName
(
"管理员"
);
popupDTO
.
setBusinessName
(
businessName
);
popupDTO
.
setBusinessType
(
9
);
popupDTO
.
setBusinessType
(
9
);
if
(
businessReferIdArr
!=
null
&&
businessReferIdArr
.
length
>
0
)
{
if
(
businessReferIdArr
!=
null
&&
businessReferIdArr
.
length
>
0
)
{
...
...
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