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
864ab228
Commit
864ab228
authored
Apr 18, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 客户触达人数消息
parent
61e6dff4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
GroupMessageServiceImpl.java
...service/service/content/impl/GroupMessageServiceImpl.java
+6
-6
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/content/impl/GroupMessageServiceImpl.java
View file @
864ab228
...
...
@@ -2,6 +2,7 @@ package com.gic.haoban.manage.service.service.content.impl;
import
com.alibaba.fastjson.JSON
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.util.DateUtil
;
import
com.gic.commons.util.UniqueIdUtils
;
import
com.gic.haoban.manage.api.dto.WxEnterpriseQwDTO
;
import
com.gic.haoban.manage.api.enums.content.ClerkShareMaterialType
;
...
...
@@ -338,7 +339,7 @@ public class GroupMessageServiceImpl implements GroupMessageService {
if
(
qwInfo
.
needOpenUserId3th
())
{
userId
=
staff
.
getWxOpenUseId
();
}
List
<
String
>
externalUserIds
=
this
.
queryMomentResult
(
corpId
,
userId
,
groupMessageInfoBo
.
getStartTime
(),
groupMessageInfoBo
.
getEndTime
()
);
List
<
String
>
externalUserIds
=
this
.
queryMomentResult
(
corpId
,
userId
);
if
(
CollectionUtils
.
isEmpty
(
externalUserIds
))
{
log
.
info
(
"处理导购群发朋友圈触达客户日志, 成员无好友. staffId:{}"
,
clerkShareLogBo
.
getStaffId
());
return
;
...
...
@@ -468,17 +469,16 @@ public class GroupMessageServiceImpl implements GroupMessageService {
* 查询发朋友圈结果
* @param corpid
* @param userId
* @param startTime
* @param endTime
* @return
*/
public
List
<
String
>
queryMomentResult
(
String
corpid
,
String
userId
,
Date
startTime
,
Date
endTime
)
{
public
List
<
String
>
queryMomentResult
(
String
corpid
,
String
userId
)
{
Date
currentTime
=
new
Date
();
QywxMomentInfoQDTO
qywxMomentInfoQDTO
=
new
QywxMomentInfoQDTO
();
qywxMomentInfoQDTO
.
setCorpid
(
corpid
);
qywxMomentInfoQDTO
.
setSuiteid
(
config
.
getWxSuiteid
());
qywxMomentInfoQDTO
.
setStartTime
(
startTime
.
getTime
()
/
1000
);
qywxMomentInfoQDTO
.
setEndTime
(
end
Time
.
getTime
()
/
1000
);
qywxMomentInfoQDTO
.
setStartTime
(
DateUtil
.
addNumForMinute
(
currentTime
,
-
30
)
.
getTime
()
/
1000
);
qywxMomentInfoQDTO
.
setEndTime
(
current
Time
.
getTime
()
/
1000
);
qywxMomentInfoQDTO
.
setCreatorId
(
userId
);
qywxMomentInfoQDTO
.
setPageSize
(
20
);
ServiceResponse
<
QywxMomentRespDTO
>
serviceResponse
=
qywxSuiteApiService
.
queryQywxMomentList
(
qywxMomentInfoQDTO
);
...
...
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