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
5597883b
Commit
5597883b
authored
Jul 30, 2025
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(编辑企业信息): 新增手动刷新用户组的接口
parent
49632525
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
TzsUserInfoServiceImpl.java
...t/module/tcm/biz/service/impl/TzsUserInfoServiceImpl.java
+8
-6
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 @
5597883b
...
@@ -2419,6 +2419,9 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
...
@@ -2419,6 +2419,9 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
List
<
RegUnitInfo
>
regUnitInfos
=
regUnitInfoService
.
lambdaQuery
().
in
(
RegUnitInfo:
:
getAdminUserId
,
adminUserIdList
).
list
();
List
<
RegUnitInfo
>
regUnitInfos
=
regUnitInfoService
.
lambdaQuery
().
in
(
RegUnitInfo:
:
getAdminUserId
,
adminUserIdList
).
list
();
List
<
TzBaseEnterpriseInfo
>
enterpriseInfos
=
baseEnterpriseInfoService
.
lambdaQuery
().
in
(
TzBaseEnterpriseInfo:
:
getUseUnitCode
,
adminUserIdList
).
list
();
Map
<
String
,
TzBaseEnterpriseInfo
>
enterpriseInfoMap
=
enterpriseInfos
.
stream
().
collect
(
Collectors
.
toMap
(
TzBaseEnterpriseInfo:
:
getUseUnitCode
,
x
->
x
,
(
oldValue
,
newValue
)
->
newValue
));
for
(
RegUnitInfo
regUnitInfo
:
regUnitInfos
)
{
for
(
RegUnitInfo
regUnitInfo
:
regUnitInfos
)
{
String
useCode
=
regUnitInfo
.
getUnitCode
();
String
useCode
=
regUnitInfo
.
getUnitCode
();
CompanyModel
companyInfo
=
Privilege
.
companyClient
.
queryByCompanyCode
(
useCode
).
getResult
();
CompanyModel
companyInfo
=
Privilege
.
companyClient
.
queryByCompanyCode
(
useCode
).
getResult
();
...
@@ -2427,20 +2430,19 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
...
@@ -2427,20 +2430,19 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
Map
<
Long
,
List
<
RoleModel
>>
orgRoles
=
new
HashMap
<>();
Map
<
Long
,
List
<
RoleModel
>>
orgRoles
=
new
HashMap
<>();
List
<
RoleModel
>
userRoleList
=
new
ArrayList
<>();
List
<
RoleModel
>
userRoleList
=
new
ArrayList
<>();
List
<
Long
>
roleIds
=
new
ArrayList
<>();
List
<
Long
>
roleIds
=
new
ArrayList
<>();
Set
<
String
>
roleNameSet
=
new
HashSet
<>();
FeignClientResult
<
List
<
RoleModel
>>
roleListResult
=
Privilege
.
roleClient
.
queryRoleList
(
null
,
null
);
FeignClientResult
<
List
<
RoleModel
>>
roleListResult
=
Privilege
.
roleClient
.
queryRoleList
(
null
,
null
);
List
<
RoleModel
>
roleModels
=
roleListResult
.
getResult
();
List
<
RoleModel
>
roleModels
=
roleListResult
.
getResult
();
List
<
DataDictionary
>
unitTypeList
=
regUnitInfoService
.
setAndGetUnitTypeList
();
List
<
DataDictionary
>
unitTypeList
=
regUnitInfoService
.
setAndGetUnitTypeList
();
String
[]
unitTypeCodes
=
regUnitInfo
.
getUnitTypeCode
().
split
(
","
);
TzBaseEnterpriseInfo
baseEnterpriseInfo
=
enterpriseInfoMap
.
get
(
regUnitInfo
.
getUnitCode
());
String
[]
unitTypes
=
baseEnterpriseInfo
.
getUnitType
().
split
(
"#"
);
FeignClientResult
<
AgencyUserModel
>
userResult
=
Privilege
.
agencyUserClient
.
queryByUserId
(
regUnitInfo
.
getAdminUserId
());
FeignClientResult
<
AgencyUserModel
>
userResult
=
Privilege
.
agencyUserClient
.
queryByUserId
(
regUnitInfo
.
getAdminUserId
());
AgencyUserModel
agencyUserModel
=
userResult
.
getResult
();
AgencyUserModel
agencyUserModel
=
userResult
.
getResult
();
Map
<
String
,
DataDictionary
>
dataDictionaryMap
=
unitTypeList
.
stream
().
collect
(
Collectors
.
toMap
(
DataDictionary:
:
get
Cod
e
,
Function
.
identity
(),
(
k1
,
k2
)
->
k1
));
Map
<
String
,
DataDictionary
>
dataDictionaryMap
=
unitTypeList
.
stream
().
collect
(
Collectors
.
toMap
(
DataDictionary:
:
get
Nam
e
,
Function
.
identity
(),
(
k1
,
k2
)
->
k1
));
for
(
String
type
Code
:
unitTypeCod
es
)
{
for
(
String
type
:
unitTyp
es
)
{
DataDictionary
unitType
=
dataDictionaryMap
.
get
(
type
Code
);
DataDictionary
unitType
=
dataDictionaryMap
.
get
(
type
);
String
appCode
=
unitType
.
getTypeDesc
()
!=
null
?
unitType
.
getTypeDesc
()
:
""
;
String
appCode
=
unitType
.
getTypeDesc
()
!=
null
?
unitType
.
getTypeDesc
()
:
""
;
String
[]
appCodes
=
appCode
.
split
(
","
);
String
[]
appCodes
=
appCode
.
split
(
","
);
Collections
.
addAll
(
appCodesSet
,
appCodes
);
Collections
.
addAll
(
appCodesSet
,
appCodes
);
roleNameSet
.
add
(
unitType
.
getName
());
userRoleList
.
addAll
(
roleModels
.
stream
()
userRoleList
.
addAll
(
roleModels
.
stream
()
.
filter
(
r
->
unitType
.
getExtend
().
contains
(
r
.
getSequenceNbr
().
toString
())).
collect
(
Collectors
.
toList
()));
.
filter
(
r
->
unitType
.
getExtend
().
contains
(
r
.
getSequenceNbr
().
toString
())).
collect
(
Collectors
.
toList
()));
userRoleList
.
forEach
(
r
->
{
userRoleList
.
forEach
(
r
->
{
...
...
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