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
1
Merge Requests
1
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
8c77c5eb
Commit
8c77c5eb
authored
Sep 21, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:报错
parent
c9e27a2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
HaobanRoleApiServiceImpl.java
...rvice/service/out/impl/role/HaobanRoleApiServiceImpl.java
+14
-13
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/role/HaobanRoleApiServiceImpl.java
View file @
8c77c5eb
...
...
@@ -193,19 +193,18 @@ public class HaobanRoleApiServiceImpl implements HaobanRoleApiService {
public
ServiceResponse
addHaobanRole
(
String
wxEnterpriseId
)
{
List
<
HaobanRoleBO
>
haobanRoleBOList
=
haobanRoleService
.
getListByWxEnterpriseId
(
"-1"
,
null
);
HaobanRoleQDTO
haobanRoleQDTO
=
new
HaobanRoleQDTO
();
HaobanRoleQDTO
haobanRoleSystemQDTO
=
new
HaobanRoleQDTO
();
int
count
=
haobanRoleService
.
getCountByWxEnterpriseId
(
wxEnterpriseId
,
null
);
//清除历史权限
if
(
count
>
0
)
{
haobanRoleService
.
deleteByWxEnterpriseId
(
wxEnterpriseId
,
null
);
haobanRoleMenuService
.
deleteByWxEnterpriseId
(
wxEnterpriseId
);
}
for
(
HaobanRoleBO
haobanRoleBO
:
haobanRoleBOList
)
{
Long
roleId
=
haobanRoleBO
.
getRoleId
();
Integer
clerkType
=
haobanRoleBO
.
getClerkType
();
String
roleName
=
haobanRoleBO
.
getRoleName
();
int
count
=
haobanRoleService
.
getCountByWxEnterpriseId
(
wxEnterpriseId
,
null
);
//清除历史权限
if
(
count
>
0
)
{
haobanRoleService
.
deleteByWxEnterpriseId
(
wxEnterpriseId
,
null
);
haobanRoleMenuService
.
deleteByWxEnterpriseId
(
wxEnterpriseId
);
}
haobanRoleQDTO
.
setRoleName
(
roleName
);
haobanRoleSystemQDTO
.
setRoleName
(
roleName
);
haobanRoleQDTO
.
setSystemFlag
(
1
);
...
...
@@ -278,22 +277,24 @@ public class HaobanRoleApiServiceImpl implements HaobanRoleApiService {
if
(
handoverFlag
)
{
menuCodes
.
add
(
"customerList_inheritCustomer"
);
}
// TODO: 2022/9/21 我的
menuCodes
.
add
(
"workbench"
);
//导购和店长初始化权限以好办web为准
List
<
String
>
menuCodesOld
=
applicationSettingApiService
.
findMenuCodes
(
wxEnterpriseId
);
List
<
String
>
clerkMenuCodes
=
haobanMenuService
.
getHaobanMenuByPid
(
menuCodesOld
);
menuCodes
.
addAll
(
clerkMenuCodes
);
HaobanRoleQDTO
haobanRoleQDTO
=
new
HaobanRoleQDTO
();
HaobanRoleQDTO
haobanRoleSystemQDTO
=
new
HaobanRoleQDTO
();
int
count
=
haobanRoleService
.
getCountByWxEnterpriseId
(
wxEnterpriseId
,
null
);
//清除历史权限
if
(
count
>
0
)
{
haobanRoleService
.
deleteByWxEnterpriseId
(
wxEnterpriseId
,
null
);
haobanRoleMenuService
.
deleteByWxEnterpriseId
(
wxEnterpriseId
);
}
for
(
HaobanRoleBO
haobanRoleBO
:
haobanRoleBOList
)
{
Long
roleId
=
haobanRoleBO
.
getRoleId
();
Integer
clerkType
=
haobanRoleBO
.
getClerkType
();
String
roleName
=
haobanRoleBO
.
getRoleName
();
int
count
=
haobanRoleService
.
getCountByWxEnterpriseId
(
wxEnterpriseId
,
null
);
//清除历史权限
if
(
count
>
0
)
{
haobanRoleService
.
deleteByWxEnterpriseId
(
wxEnterpriseId
,
null
);
haobanRoleMenuService
.
deleteByWxEnterpriseId
(
wxEnterpriseId
);
}
haobanRoleQDTO
.
setRoleName
(
roleName
);
haobanRoleSystemQDTO
.
setRoleName
(
roleName
);
haobanRoleQDTO
.
setSystemFlag
(
1
);
...
...
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