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
0eee906b
Commit
0eee906b
authored
Apr 02, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加日志
parent
bb0a5042
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
GroupMessageServiceImpl.java
...service/service/content/impl/GroupMessageServiceImpl.java
+5
-0
QywxGroupMsgTaskApiServiceImpl.java
...out/impl/content/task/QywxGroupMsgTaskApiServiceImpl.java
+1
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/content/impl/GroupMessageServiceImpl.java
View file @
0eee906b
...
...
@@ -136,6 +136,7 @@ public class GroupMessageServiceImpl implements GroupMessageService {
.
collect
(
Collectors
.
toList
());
List
<
TabHaobanStaff
>
tabHaobanStaffs
=
staffService
.
listStaffWithIds
(
staffIds
);
if
(
CollectionUtils
.
isEmpty
(
tabHaobanStaffs
))
{
log
.
info
(
"成员不存在 staffIds:{}"
,
JSON
.
toJSONString
(
staffIds
));
return
Collections
.
emptyMap
();
}
return
tabHaobanStaffs
...
...
@@ -181,6 +182,8 @@ public class GroupMessageServiceImpl implements GroupMessageService {
private
void
doHandlerWithSend2Group
(
String
wxEnterpriseId
,
List
<
ClerkShareLogBO
>
clerkShareLogBos
,
GroupMessageInfoBo
groupMessageInfoBo
,
WxEnterpriseQwDTO
qwInfo
,
String
corpId
,
Map
<
String
,
TabHaobanStaff
>
staffInfoMap
,
List
<
String
>
excludeMsgId
,
List
<
Long
>
clerkShareLogIds
)
{
log
.
info
(
"doHandlerWithSend2Group 处理群发到群组开始 >>>>>>> "
);
if
(
groupMessageInfoBo
.
getStartTime
()
==
null
||
groupMessageInfoBo
.
getEndTime
()
==
null
)
{
log
.
info
(
"doHandlerWithSend2Group 处理群发到群组缺少时间参数 {}"
,
JSON
.
toJSONString
(
groupMessageInfoBo
));
return
;
...
...
@@ -254,6 +257,7 @@ public class GroupMessageServiceImpl implements GroupMessageService {
*/
private
void
doHandlerWithSend2Customer
(
List
<
ClerkShareLogBO
>
clerkShareLogBos
,
GroupMessageInfoBo
groupMessageInfoBo
,
WxEnterpriseQwDTO
qwInfo
,
String
corpId
,
Map
<
String
,
TabHaobanStaff
>
staffInfoMap
,
List
<
String
>
excludeMsgId
,
List
<
Long
>
clerkShareLogIds
)
{
log
.
info
(
"doHandlerWithSend2Customer 处理群发到客户 开始 >>>>>>>>"
);
if
(
groupMessageInfoBo
.
getStartTime
()
==
null
||
groupMessageInfoBo
.
getEndTime
()
==
null
)
{
log
.
info
(
"doHandlerWithSend2Customer 处理群发到客户 缺少时间参数 {}"
,
JSON
.
toJSONString
(
groupMessageInfoBo
));
return
;
...
...
@@ -431,6 +435,7 @@ public class GroupMessageServiceImpl implements GroupMessageService {
List
<
QywxGroupMsgSendResultDTO
.
GroupMsgSendResultInfo
>
groupMsgSendResultInfos
=
new
ArrayList
<>();
groupMsgSendResultInfos
.
addAll
(
serviceResponse
.
getResult
().
getSendResultInfos
());
if
(
StringUtils
.
isNotBlank
(
serviceResponse
.
getResult
().
getCursor
()))
{
log
.
info
(
"递归获取成员群发结果 >>>>> "
);
String
tempCursor
=
serviceResponse
.
getResult
().
getCursor
();
this
.
queryGroupMsgSendResult
(
corpid
,
msgId
,
userId
,
tempCursor
);
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/content/task/QywxGroupMsgTaskApiServiceImpl.java
View file @
0eee906b
...
...
@@ -53,6 +53,7 @@ public class QywxGroupMsgTaskApiServiceImpl implements QywxGroupMsgTaskApiServic
@Override
public
ServiceResponse
<
Void
>
groupMsgTaskJob
(
String
params
)
{
log
.
info
(
"执行群发定时任务 {}"
,
DateUtil
.
datetimeToString
(
new
Date
()));
// 获取开启【内容】权限的企业id
List
<
String
>
enterpriseIds
=
groupMessageService
.
hasMaterialRightEnterprise
();
// 获取企业 (当前时间 - 30分钟, 当前时间)范围内的 导购分享记录。按创建时间排序
...
...
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