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
f9d684af
Commit
f9d684af
authored
May 24, 2025
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改知识库录入权限
parent
aa227316
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
RemoteData.java
...com/yeejoin/amos/knowledgebase/face/feign/RemoteData.java
+3
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-knowledgebase-biz/src/main/java/com/yeejoin/amos/knowledgebase/face/feign/RemoteData.java
View file @
f9d684af
...
...
@@ -83,6 +83,7 @@ public class RemoteData {
//组装部门信息为Map
Map
<
Long
,
DepartmentModel
>
departmentMap
=
new
HashMap
<>();
if
(
agencyUserModel
.
getCompanyDepartments
()!=
null
){
for
(
List
<
DepartmentModel
>
departments
:
agencyUserModel
.
getCompanyDepartments
().
values
())
{
if
(
ValidationUtil
.
isEmpty
(
departments
))
{
continue
;
...
...
@@ -95,6 +96,7 @@ public class RemoteData {
}
}
}
}
//组装单位信息为Map
Map
<
Long
,
CompanyModel
>
companyMap
=
new
HashMap
(
Bean
.
listToMap
(
agencyUserModel
.
getCompanys
(),
"sequenceNbr"
,
CompanyModel
.
class
));
...
...
@@ -103,7 +105,7 @@ public class RemoteData {
List
<
RoleModel
>
roleModels
=
rolesMap
.
get
(
orgKey
);
for
(
RoleModel
roleModel
:
roleModels
)
{
String
orgCode
=
null
;
if
(
departmentMap
.
containsKey
(
orgKey
))
{
if
(
departmentMap
!=
null
&&
departmentMap
.
containsKey
(
orgKey
))
{
orgCode
=
departmentMap
.
get
(
orgKey
).
getOrgCode
();
}
else
if
(
companyMap
.
containsKey
(
orgKey
))
{
orgCode
=
companyMap
.
get
(
orgKey
).
getOrgCode
();
...
...
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