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
8799b565
Commit
8799b565
authored
May 30, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店分组
parent
d82ab25e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
GicDepartmentController.java
...haoban/manage/web/controller/GicDepartmentController.java
+9
-3
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/GicDepartmentController.java
View file @
8799b565
...
...
@@ -96,7 +96,6 @@ public class GicDepartmentController extends WebBaseController{
if
(
idList
.
contains
(
item
.
getStoreGroupId
()))
{
HaobanStoreGroupVO
vo
=
EntityUtil
.
changeEntityByOrika
(
HaobanStoreGroupVO
.
class
,
item
)
;
vo
.
setHasRight
(
true
);
this
.
addSubGroup
(
enterpriseId
,
vo
.
getStoreGroupId
(),
retList
);
retList
.
add
(
vo
)
;
String
chain
=
item
.
getStoreGroupChain
()
;
String
[]
arr
=
chain
.
split
(
"_"
)
;
...
...
@@ -108,6 +107,9 @@ 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
()
;
...
...
@@ -131,8 +133,12 @@ public class GicDepartmentController extends WebBaseController{
}
private
void
addSubGroup
(
String
enterpriseId
,
String
parentGroupId
,
List
<
HaobanStoreGroupVO
>
retList
)
{
List
<
StoreGroupDTO
>
list
=
this
.
storeGroupService
.
getStoreGroupList
(
enterpriseId
,
null
,
parentGroupId
)
;
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
++)
{
arr
[
i
]
=
idList
.
get
(
i
)
;
}
List
<
StoreGroupDTO
>
list
=
this
.
storeGroupService
.
listStoreGroupAndChildren
(
arr
,
enterpriseId
)
;
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
List
<
HaobanStoreGroupVO
>
voList
=
EntityUtil
.
changeEntityListByOrika
(
HaobanStoreGroupVO
.
class
,
list
)
;
voList
.
forEach
(
dto
->{
...
...
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