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
79fe85a8
Commit
79fe85a8
authored
Aug 01, 2025
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(人员同步): 增加判断,岗位不为空
parent
6a28c37e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
TzsUserInfoServiceImpl.java
...t/module/tcm/biz/service/impl/TzsUserInfoServiceImpl.java
+10
-8
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/TzsUserInfoServiceImpl.java
View file @
79fe85a8
...
@@ -2348,7 +2348,7 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
...
@@ -2348,7 +2348,7 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
});
});
// 添加人员管理角色
// 添加人员管理角色
String
post
=
tzsUserInfoDto
.
getPost
();
String
post
=
tzsUserInfoDto
.
getPost
();
if
(
post
.
contains
(
PersonManageRoleEnum
.
code
.
getId
().
toString
()))
{
if
(
post
!=
null
&&
post
.
contains
(
PersonManageRoleEnum
.
code
.
getId
().
toString
()))
{
CompanyModel
companyModel
=
Optional
.
ofNullable
(
Privilege
.
companyClient
.
seleteOne
(
companySeq
)).
map
(
FeignClientResult:
:
getResult
).
orElse
(
null
);
CompanyModel
companyModel
=
Optional
.
ofNullable
(
Privilege
.
companyClient
.
seleteOne
(
companySeq
)).
map
(
FeignClientResult:
:
getResult
).
orElse
(
null
);
if
(!
ValidationUtil
.
isEmpty
(
companyModel
))
{
if
(!
ValidationUtil
.
isEmpty
(
companyModel
))
{
String
companyType
=
companyModel
.
getCompanyType
();
String
companyType
=
companyModel
.
getCompanyType
();
...
@@ -2374,13 +2374,15 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
...
@@ -2374,13 +2374,15 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
if
(!
ObjectUtils
.
isEmpty
(
roleGroup
)
&&
roleGroup
.
getExtend
()
!=
null
)
{
if
(!
ObjectUtils
.
isEmpty
(
roleGroup
)
&&
roleGroup
.
getExtend
()
!=
null
)
{
Privilege
.
groupUserClient
.
create
(
Long
.
valueOf
(
roleGroup
.
getExtend
()),
userIds
);
Privilege
.
groupUserClient
.
create
(
Long
.
valueOf
(
roleGroup
.
getExtend
()),
userIds
);
}
}
// 绑定两个规定用户组
if
(
post
!=
null
)
{
post
=
post
.
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replace
(
"\""
,
""
);
// 绑定两个规定用户组
for
(
String
code
:
post
.
split
(
","
))
{
post
=
post
.
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replace
(
"\""
,
""
);
DataDictionary
groupId
=
iDataDictionaryService
.
getOne
(
new
LambdaQueryWrapper
<
DataDictionary
>().
eq
(
DataDictionary:
:
getCode
,
code
).
likeRight
(
DataDictionary:
:
getType
,
QYRYGW
));
for
(
String
code
:
post
.
split
(
","
))
{
if
(!
ObjectUtils
.
isEmpty
(
groupId
)
&&
groupId
.
getExtend
()
!=
null
)
{
DataDictionary
groupId
=
iDataDictionaryService
.
getOne
(
new
LambdaQueryWrapper
<
DataDictionary
>().
eq
(
DataDictionary:
:
getCode
,
code
).
likeRight
(
DataDictionary:
:
getType
,
QYRYGW
));
Privilege
.
groupUserClient
.
deleteGroupUser
(
Long
.
valueOf
(
groupId
.
getExtend
()),
userResult
.
getResult
().
getUserId
());
if
(!
ObjectUtils
.
isEmpty
(
groupId
)
&&
groupId
.
getExtend
()
!=
null
)
{
Privilege
.
groupUserClient
.
create
(
Long
.
valueOf
(
groupId
.
getExtend
()),
userIds
);
Privilege
.
groupUserClient
.
deleteGroupUser
(
Long
.
valueOf
(
groupId
.
getExtend
()),
userResult
.
getResult
().
getUserId
());
Privilege
.
groupUserClient
.
create
(
Long
.
valueOf
(
groupId
.
getExtend
()),
userIds
);
}
}
}
}
}
}
}
...
...
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