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
fd55bfdc
Commit
fd55bfdc
authored
Jul 29, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店分组
parent
dfbf5dc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
HmStoreController.java
...ic/haoban/manage/web/controller/hm/HmStoreController.java
+15
-9
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/hm/HmStoreController.java
View file @
fd55bfdc
...
...
@@ -27,6 +27,7 @@ import com.gic.clerk.api.service.ClerkService;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.dto.StoreGroupDTO
;
import
com.gic.enterprise.api.dto.StoreSearchDTO
;
import
com.gic.enterprise.api.service.StoreGroupService
;
import
com.gic.enterprise.api.service.StoreService
;
...
...
@@ -87,15 +88,20 @@ public class HmStoreController {
params
.
put
(
"enterpriseId"
,
enterpriseId
);
// 2线上
params
.
put
(
"status"
,
2
);
if
(
StringUtils
.
isNotBlank
(
storeGroupId
)
&&
storeGroupId
.
contains
(
","
))
{
List
<
String
>
storeGroupIds
=
Arrays
.
asList
(
storeGroupId
.
split
(
","
))
;
List
<
String
>
groupIds
=
storeGroupService
.
getStoreGroupIdsByParentGroupId
(
enterpriseId
,
storeGroupIds
);
logger
.
info
(
"分组的数量={}"
,
groupIds
.
size
());
params
.
put
(
"storeGroupIdList"
,
groupIds
);
}
else
{
params
.
put
(
"storeGroupId"
,
storeGroupId
);
// 是否显示子分组(1显示,其余不显示)
params
.
put
(
"showChildren"
,
1
);
if
(
StringUtils
.
isNotBlank
(
storeGroupId
))
{
boolean
flag
=
true
;
if
(!
storeGroupId
.
contains
(
","
))
{
StoreGroupDTO
groupDTO
=
this
.
storeGroupService
.
getStoreGroupById
(
storeGroupId
)
;
if
(
null
!=
groupDTO
&&
groupDTO
.
getParentGroupId
().
equals
(
"0"
))
{
flag
=
false
;
}
}
if
(
flag
)
{
List
<
String
>
storeGroupIds
=
Arrays
.
asList
(
storeGroupId
.
split
(
","
))
;
List
<
String
>
groupIds
=
storeGroupService
.
getStoreGroupIdsByParentGroupId
(
enterpriseId
,
storeGroupIds
);
logger
.
info
(
"分组的数量={}"
,
groupIds
.
size
());
params
.
put
(
"storeGroupIdList"
,
groupIds
);
}
}
// 只获取导购和店长
params
.
put
(
"clerkTypeList"
,
Arrays
.
asList
(
1
,
0
));
...
...
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