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
b4bd2720
Commit
b4bd2720
authored
May 30, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店分组
parent
8799b565
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
GicDepartmentController.java
...haoban/manage/web/controller/GicDepartmentController.java
+8
-7
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/GicDepartmentController.java
View file @
b4bd2720
...
...
@@ -110,7 +110,6 @@ public class GicDepartmentController extends WebBaseController{
if
(
CollectionUtils
.
isNotEmpty
(
idList
))
{
this
.
addSubGroup
(
enterpriseId
,
idList
,
retList
);
}
logger
.
info
(
"有权限的列表={}"
,
otherList
);
for
(
PowerStoreGroupDTO
item
:
departmentList
)
{
String
groupId
=
item
.
getStoreGroupId
()
;
if
(
idList
.
contains
(
groupId
))
{
...
...
@@ -131,8 +130,7 @@ public class GicDepartmentController extends WebBaseController{
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
retList
);
}
// 增加所有子分组
private
void
addSubGroup
(
String
enterpriseId
,
List
<
String
>
idList
,
List
<
HaobanStoreGroupVO
>
retList
)
{
String
[]
arr
=
new
String
[
idList
.
size
()]
;
for
(
int
i
=
0
;
i
<
idList
.
size
();
i
++)
{
...
...
@@ -141,10 +139,13 @@ public class GicDepartmentController extends WebBaseController{
List
<
StoreGroupDTO
>
list
=
this
.
storeGroupService
.
listStoreGroupAndChildren
(
arr
,
enterpriseId
)
;
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
List
<
HaobanStoreGroupVO
>
voList
=
EntityUtil
.
changeEntityListByOrika
(
HaobanStoreGroupVO
.
class
,
list
)
;
voList
.
forEach
(
dto
->{
dto
.
setHasRight
(
true
);
});
retList
.
addAll
(
voList
)
;
for
(
HaobanStoreGroupVO
item
:
voList
)
{
if
(!
idList
.
contains
(
item
.
getStoreGroupId
()))
{
item
.
setHasRight
(
true
);
retList
.
add
(
item
)
;
idList
.
add
(
item
.
getStoreGroupId
())
;
}
}
}
}
...
...
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