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
27d103ef
Commit
27d103ef
authored
Jan 04, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/社群' into 'developer'
结束不统计 See merge request
!819
parents
2adee799
bc375ff4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
GroupChatPlanServiceImpl.java
...e/service/service/chat/impl/GroupChatPlanServiceImpl.java
+4
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatPlanServiceImpl.java
View file @
27d103ef
...
...
@@ -321,6 +321,7 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
int
sendCount
=
0
;
int
failCount
=
0
;
List
<
TabGroupChatPlanLog
>
addList
=
new
ArrayList
<>();
boolean
endFlag
=
false
;
for
(
QywxSendMessageResultDTO
item
:
list
)
{
TabGroupChatPlanLog
entity
=
new
TabGroupChatPlanLog
();
Date
sendTime
=
item
.
getSendTime
();
...
...
@@ -328,6 +329,7 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
// 如果企微的发送时间晚于计划的结束时间,不记录此类数据
if
(
sendTime
.
after
(
plan
.
getEndTime
()))
{
logger
.
info
(
"发送时间晚计划结束"
);
endFlag
=
true
;
continue
;
}
GroupChatBO
chat
=
this
.
groupChatService
.
getByWxChatId
(
wxEnterpriseId
,
wxChatId
);
...
...
@@ -362,7 +364,9 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
}
if
(
CollectionUtils
.
isNotEmpty
(
addList
))
{
this
.
groupChatPlanLogMapper
.
batchInsert
(
addList
);
}
// 更新统计数量、状态
if
(!
endFlag
)
{
this
.
groupChatPlanOwnerLogService
.
updateSendCount
(
ownerLog
.
getOwnerLogId
(),
sendCount
,
list
.
get
(
0
).
getSendTime
(),
failCount
);
// 完成代办
...
...
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