Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
20c1ba5d
Commit
20c1ba5d
authored
Nov 07, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: 好办权限刷新
parent
814afdb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
HaobanRoleApiServiceImpl.java
...rvice/service/out/impl/role/HaobanRoleApiServiceImpl.java
+7
-8
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/role/HaobanRoleApiServiceImpl.java
View file @
20c1ba5d
...
...
@@ -637,12 +637,12 @@ public class HaobanRoleApiServiceImpl implements HaobanRoleApiService {
"goodsDetail_material"
,
"goodsCenter_Count"
,
"materialManage"
,
"publishMaterial"
,
"userCenter_createCenter"
));
// 只添加(勾选)好办运维权限 不加商户权限
superManagementMenuCode
.
put
(
"0"
+
ContentMaterialROleInitQDTO
.
Version
.
LOW
.
getCode
(),
Arrays
.
asList
(
"knowledgeBase"
,
"AICreate"
,
"textCreate_create"
));
superManagementMenuCode
.
put
(
"0"
+
ContentMaterialROleInitQDTO
.
Version
.
HIGH
.
getCode
(),
Arrays
.
asList
(
"knowledgeBase"
,
"AICreate"
,
"textCreate_create"
));
superManagementMenuCode
.
put
(
"1"
+
ContentMaterialROleInitQDTO
.
Version
.
LOW
.
getCode
(),
Arrays
.
asList
(
"knowledgeBase"
,
"AICreate"
,
"textCreate_create"
));
superManagementMenuCode
.
put
(
"1"
+
ContentMaterialROleInitQDTO
.
Version
.
HIGH
.
getCode
(),
Arrays
.
asList
(
"knowledgeBase"
,
"AICreate"
,
"textCreate_create"
));
superManagementMenuCode
.
put
(
"2"
+
ContentMaterialROleInitQDTO
.
Version
.
LOW
.
getCode
(),
Arrays
.
asList
(
"knowledgeBase"
,
"AICreate"
,
"textCreate_create"
));
superManagementMenuCode
.
put
(
"2"
+
ContentMaterialROleInitQDTO
.
Version
.
HIGH
.
getCode
(),
Arrays
.
asList
(
"knowledgeBase"
,
"AICreate"
,
"textCreate_create"
));
superManagementMenuCode
.
put
(
"0"
+
ContentMaterialROleInitQDTO
.
Version
.
LOW
.
getCode
(),
Arrays
.
asList
(
"knowledgeBase"
,
"AICreate"
,
"textCreate_create"
,
"videoCreate"
));
superManagementMenuCode
.
put
(
"0"
+
ContentMaterialROleInitQDTO
.
Version
.
HIGH
.
getCode
(),
Arrays
.
asList
(
"knowledgeBase"
,
"AICreate"
,
"textCreate_create"
,
"videoCreate"
));
superManagementMenuCode
.
put
(
"1"
+
ContentMaterialROleInitQDTO
.
Version
.
LOW
.
getCode
(),
Arrays
.
asList
(
"knowledgeBase"
,
"AICreate"
,
"textCreate_create"
,
"videoCreate"
));
superManagementMenuCode
.
put
(
"1"
+
ContentMaterialROleInitQDTO
.
Version
.
HIGH
.
getCode
(),
Arrays
.
asList
(
"knowledgeBase"
,
"AICreate"
,
"textCreate_create"
,
"videoCreate"
));
superManagementMenuCode
.
put
(
"2"
+
ContentMaterialROleInitQDTO
.
Version
.
LOW
.
getCode
(),
Arrays
.
asList
(
"knowledgeBase"
,
"AICreate"
,
"textCreate_create"
,
"videoCreate"
));
superManagementMenuCode
.
put
(
"2"
+
ContentMaterialROleInitQDTO
.
Version
.
HIGH
.
getCode
(),
Arrays
.
asList
(
"knowledgeBase"
,
"AICreate"
,
"textCreate_create"
,
"videoCreate"
));
}
...
...
@@ -657,7 +657,6 @@ public class HaobanRoleApiServiceImpl implements HaobanRoleApiService {
logger
.
info
(
"flushRightOneTime 刷新企业内容权限:{}"
,
params
);
// 获取所有开通内容高级版的企业
List
<
String
>
enterpriseIds
=
materialEnterpriseAdaptor
.
queryHasRightEnterpriseIds
(
MaterialEnterpriseAdaptor
.
MaterialLevel
.
LOW
.
getCode
());
// 执行刷新权限
String
enterpriseId
=
""
;
...
...
@@ -665,7 +664,7 @@ public class HaobanRoleApiServiceImpl implements HaobanRoleApiService {
enterpriseId
=
params
;
}
List
<
String
>
menuCodes
=
new
ArrayList
<>();
menuCodes
.
add
(
"
AI
Create"
);
menuCodes
.
add
(
"
video
Create"
);
for
(
String
tempId
:
enterpriseIds
)
{
if
(
StringUtils
.
isNotBlank
(
enterpriseId
)
&&
!
StringUtils
.
equalsIgnoreCase
(
enterpriseId
,
tempId
))
{
...
...
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