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
ff2a6a44
Commit
ff2a6a44
authored
Nov 10, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log
parent
3ae3e83e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
QwMessageController.java
...an/manage/web/controller/content/QwMessageController.java
+7
-3
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/content/QwMessageController.java
View file @
ff2a6a44
...
@@ -11,6 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -11,6 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.clerk.api.service.ClerkService
;
...
@@ -20,10 +21,8 @@ import com.gic.haoban.app.customer.dto.CustomerDTO;
...
@@ -20,10 +21,8 @@ import com.gic.haoban.app.customer.dto.CustomerDTO;
import
com.gic.haoban.app.customer.dto.MemberInfoListParamsDTO
;
import
com.gic.haoban.app.customer.dto.MemberInfoListParamsDTO
;
import
com.gic.haoban.app.customer.service.api.service.DistributeApiService
;
import
com.gic.haoban.app.customer.service.api.service.DistributeApiService
;
import
com.gic.haoban.common.utils.EntityUtil
;
import
com.gic.haoban.common.utils.EntityUtil
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.web.controller.WebBaseController
;
import
com.gic.haoban.manage.web.controller.WebBaseController
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.qo.CustomerQO
;
import
com.gic.haoban.manage.web.qo.CustomerQO
;
import
com.gic.haoban.manage.web.utils.ClerkUtils
;
import
com.gic.haoban.manage.web.utils.ClerkUtils
;
...
@@ -97,15 +96,20 @@ public class QwMessageController extends WebBaseController {
...
@@ -97,15 +96,20 @@ public class QwMessageController extends WebBaseController {
String
staffId
=
qo
.
getStaffId
();
String
staffId
=
qo
.
getStaffId
();
List
<
String
>
clerkIdList
=
qo
.
getClerkIdList
()
;
List
<
String
>
clerkIdList
=
qo
.
getClerkIdList
()
;
ClerkDTO
clerk
=
this
.
clerkService
.
getclerkById
(
clerkId
);
ClerkDTO
clerk
=
this
.
clerkService
.
getclerkById
(
clerkId
);
logger
.
info
(
"clerkType={},ChooseAll={}"
,
clerk
.
getClerkType
(),
qo
.
getChooseAll
());
// 查询所有门店-导购
// 查询所有门店-导购
if
(
StringUtils
.
isNotBlank
(
qo
.
getChooseAll
())
&&
"1"
.
equals
(
qo
.
getChooseAll
()))
{
if
(
StringUtils
.
isNotBlank
(
qo
.
getChooseAll
())
&&
"1"
.
equals
(
qo
.
getChooseAll
()))
{
if
(
clerk
.
getClerkType
()
==
1
)
{
if
(
clerk
.
getClerkType
()
==
1
)
{
String
storeId
=
clerk
.
getStoreId
()
;
String
storeId
=
clerk
.
getStoreId
()
;
clerkIdList
=
staffApiService
.
listBindStaffId
(
storeId
);
clerkIdList
=
staffApiService
.
listBindStaffId
(
storeId
);
logger
.
info
(
"店长,导购数={}"
,
clerkIdList
.
size
());
}
else
if
(
clerk
.
getClerkType
()==
2
)
{
}
else
if
(
clerk
.
getClerkType
()==
2
)
{
// 区经
}
else
{
clerkIdList
=
new
ArrayList
<>();
}
}
}
}
logger
.
info
(
"clerkIdList={}"
,
JSON
.
toJSONString
(
clerkIdList
));
if
(
CollectionUtils
.
isEmpty
(
clerkIdList
))
{
if
(
CollectionUtils
.
isEmpty
(
clerkIdList
))
{
return
RestResponse
.
failure
(
"-1"
,
"无发送导购数据"
);
return
RestResponse
.
failure
(
"-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