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
e037a0e7
Commit
e037a0e7
authored
Apr 21, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-content2' into developer
parents
4fd9dd92
25cb43ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
14 deletions
+28
-14
GroupMessageServiceImpl.java
...service/service/content/impl/GroupMessageServiceImpl.java
+24
-14
MaterialReportServiceImpl.java
...rvice/service/content/impl/MaterialReportServiceImpl.java
+4
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/content/impl/GroupMessageServiceImpl.java
View file @
e037a0e7
...
...
@@ -34,6 +34,7 @@ import com.gic.wechat.api.dto.qywx.group.QywxGroupMsgSendResultDTO;
import
com.gic.wechat.api.dto.qywx.group.QywxMomentRespDTO
;
import
com.gic.wechat.api.dto.qywx.group.QywxMomentSendResultRespDTO
;
import
com.gic.wechat.api.service.qywx.QywxSuiteApiService
;
import
com.google.common.collect.Lists
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
...
...
@@ -344,10 +345,13 @@ public class GroupMessageServiceImpl implements GroupMessageService {
log
.
info
(
"处理导购群发朋友圈触达客户日志, 成员无好友. staffId:{}"
,
clerkShareLogBo
.
getStaffId
());
return
;
}
List
<
TriggerCustomerDetailBO
>
customerDetailBos
=
externalUserIds
.
stream
()
.
map
(
item
->
this
.
convertCustomerDetailLog
(
clerkShareLogBo
,
item
))
.
collect
(
Collectors
.
toList
());
triggerCustomerDetailService
.
batchSave
(
customerDetailBos
);
List
<
List
<
String
>>
partition
=
Lists
.
partition
(
externalUserIds
,
1000
);
for
(
List
<
String
>
userIds
:
partition
)
{
List
<
TriggerCustomerDetailBO
>
customerDetailBos
=
userIds
.
stream
()
.
map
(
item
->
this
.
convertCustomerDetailLog
(
clerkShareLogBo
,
item
))
.
collect
(
Collectors
.
toList
());
triggerCustomerDetailService
.
batchSave
(
customerDetailBos
);
}
}
}
...
...
@@ -551,11 +555,14 @@ public class GroupMessageServiceImpl implements GroupMessageService {
if
(
CollectionUtils
.
isEmpty
(
groupMsgSendResultInfos
))
{
return
;
}
List
<
TriggerCustomerDetailBO
>
customerDetailBos
=
groupMsgSendResultInfos
.
stream
()
.
map
(
item
->
this
.
convertCustomerDetailLog
(
clerkShareLogBO
,
item
.
getExternalUserId
()))
.
collect
(
Collectors
.
toList
());
triggerCustomerDetailService
.
batchSave
(
customerDetailBos
);
List
<
List
<
QywxGroupMsgSendResultDTO
.
GroupMsgSendResultInfo
>>
partition
=
Lists
.
partition
(
groupMsgSendResultInfos
,
1000
);
for
(
List
<
QywxGroupMsgSendResultDTO
.
GroupMsgSendResultInfo
>
msgSendResultInfos
:
partition
)
{
List
<
TriggerCustomerDetailBO
>
customerDetailBos
=
msgSendResultInfos
.
stream
()
.
map
(
item
->
this
.
convertCustomerDetailLog
(
clerkShareLogBO
,
item
.
getExternalUserId
()))
.
collect
(
Collectors
.
toList
());
triggerCustomerDetailService
.
batchSave
(
customerDetailBos
);
}
}
/**
...
...
@@ -569,11 +576,14 @@ public class GroupMessageServiceImpl implements GroupMessageService {
if
(
CollectionUtils
.
isEmpty
(
groupChatUserBos
))
{
return
;
}
List
<
TriggerCustomerDetailBO
>
customerDetailBos
=
groupChatUserBos
.
stream
()
.
map
(
item
->
this
.
convertCustomerDetailLog
(
clerkShareLogBO
,
item
.
getUserId
()))
.
collect
(
Collectors
.
toList
());
triggerCustomerDetailService
.
batchSave
(
customerDetailBos
);
List
<
List
<
GroupChatUserBO
>>
partition
=
Lists
.
partition
(
groupChatUserBos
,
1000
);
for
(
List
<
GroupChatUserBO
>
groupChatUserBOS
:
partition
)
{
List
<
TriggerCustomerDetailBO
>
customerDetailBos
=
groupChatUserBOS
.
stream
()
.
map
(
item
->
this
.
convertCustomerDetailLog
(
clerkShareLogBO
,
item
.
getUserId
()))
.
collect
(
Collectors
.
toList
());
triggerCustomerDetailService
.
batchSave
(
customerDetailBos
);
}
}
private
TriggerCustomerDetailBO
convertCustomerDetailLog
(
ClerkShareLogBO
clerkShareLogBO
,
String
externalUserId
)
{
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/content/impl/MaterialReportServiceImpl.java
View file @
e037a0e7
...
...
@@ -77,6 +77,10 @@ public class MaterialReportServiceImpl implements MaterialReportService {
.
build
();
// 获取成员关联的导购
materialReportBuilder
.
buildStaffRelationClerk
(
context
);
if
(
CollectionUtils
.
isEmpty
(
context
.
getStaffClerkRelations
()))
{
log
.
info
(
"处理成员周报月报数据, 成员{}未绑定导购"
,
staffId
);
return
;
}
// 判断是区经还是 店长/导购 填充主门店
materialReportBuilder
.
fillMainStore
(
context
);
// 获取素材数据
...
...
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