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
3ecf2e9a
Commit
3ecf2e9a
authored
Apr 21, 2023
by
王祖波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-content2' into 'master'
Feature content2 See merge request
!1179
parents
35c958a8
739c5280
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
NoticeMessageApiServiceImpl.java
...rvice/service/notify/out/NoticeMessageApiServiceImpl.java
+4
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/notify/out/NoticeMessageApiServiceImpl.java
View file @
3ecf2e9a
...
...
@@ -19,6 +19,7 @@ import com.gic.haoban.manage.api.dto.notify.qdto.NotifyMessageBatchQDTO;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.StaffClerkRelationApiService
;
import
com.gic.haoban.manage.api.service.WxEnterpriseRelatedApiService
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise
;
import
com.gic.haoban.manage.service.service.WxEnterpriseRelatedService
;
import
com.gic.wechat.api.dto.qywx.QywxTemplateCardSendMessageDTO
;
import
org.apache.commons.collections.CollectionUtils
;
...
...
@@ -169,6 +170,8 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
logger
.
info
(
"商户未关联好办或都已停用enterpriseId={}"
,
enterpriseId
);
return
ServiceResponse
.
success
();
}
List
<
TabHaobanWxEnterprise
>
wxEnterpriseList
=
wxEnterpriseRelatedService
.
listByEnterpriseId
(
enterpriseId
);
List
<
String
>
wxEnterpriseIdList
=
wxEnterpriseList
.
stream
().
map
(
TabHaobanWxEnterprise:
:
getWxEnterpriseId
).
collect
(
Collectors
.
toList
());
List
<
String
>
clerkIdList
=
clerkService
.
getclerkListByStoreIds
(
storeIdList
);
if
(
CollectionUtils
.
isEmpty
(
clerkIdList
))
{
logger
.
info
(
"门店导购列表为空"
);
...
...
@@ -185,7 +188,7 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
return
ServiceResponse
.
success
();
}
notifyMessageBatchQDTO
.
setTemplateCode
(
messageTypeEnum
.
getTemplateCode
());
Map
<
String
,
List
<
StaffClerkRelationDTO
>>
map
=
relationList
.
stream
().
collect
(
Collectors
.
groupingBy
(
StaffClerkRelationDTO:
:
getWxEnterpriseId
));
Map
<
String
,
List
<
StaffClerkRelationDTO
>>
map
=
relationList
.
stream
().
filter
(
x
->
wxEnterpriseIdList
.
contains
(
x
.
getWxEnterpriseId
())).
collect
(
Collectors
.
groupingBy
(
StaffClerkRelationDTO:
:
getWxEnterpriseId
));
map
.
forEach
((
wxEnterpriseId
,
v
)->{
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
);
if
(
qwDTO
==
null
)
{
...
...
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