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
dfbf5dc8
Commit
dfbf5dc8
authored
Jul 29, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店分组查询包含子分组
parent
ff269726
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
HmStoreController.java
...ic/haoban/manage/web/controller/hm/HmStoreController.java
+14
-4
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/hm/HmStoreController.java
View file @
dfbf5dc8
...
...
@@ -28,6 +28,7 @@ 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.StoreSearchDTO
;
import
com.gic.enterprise.api.service.StoreGroupService
;
import
com.gic.enterprise.api.service.StoreService
;
import
com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO
;
import
com.gic.haoban.common.utils.AuthWebRequestUtil
;
...
...
@@ -57,6 +58,8 @@ public class HmStoreController {
private
HmQrcodeApiService
hmQrcodeApiService
;
@Autowired
private
StoreService
storeService
;
@Autowired
private
StoreGroupService
storeGroupService
;
/**
*
...
...
@@ -74,7 +77,7 @@ public class HmStoreController {
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
String
enterpriseId
=
loginUser
.
getEnterpriseId
();
String
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
();
// 分组id
// 分组id
[多个,号分割]
String
storeGroupId
=
request
.
getParameter
(
"storeGroupId"
);
// 门店参数
String
storeSearchParams
=
request
.
getParameter
(
"storeSearchParams"
);
...
...
@@ -84,9 +87,16 @@ public class HmStoreController {
params
.
put
(
"enterpriseId"
,
enterpriseId
);
// 2线上
params
.
put
(
"status"
,
2
);
params
.
put
(
"storeGroupId"
,
storeGroupId
);
// 是否显示子分组(1显示,其余不显示)
params
.
put
(
"showChildren"
,
1
);
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
);
}
// 只获取导购和店长
params
.
put
(
"clerkTypeList"
,
Arrays
.
asList
(
1
,
0
));
if
(
StringUtils
.
isNotBlank
(
storeSearchParams
))
{
...
...
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