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
bbef701b
Commit
bbef701b
authored
May 27, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-recommend2' into 'developer'
查询群发结果重试 See merge request
!2888
parents
13ac9292
a0c18b8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
QwSendMsgServiceImpl.java
...anage/service/service/send/impl/QwSendMsgServiceImpl.java
+18
-4
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/send/impl/QwSendMsgServiceImpl.java
View file @
bbef701b
...
...
@@ -118,6 +118,23 @@ public class QwSendMsgServiceImpl implements QwSendMsgService {
if
(
CollectionUtils
.
isEmpty
(
sendResultList
))
{
return
;
}
//判断是否已经发送
List
<
GroupSendResultBO
>
noSendList
=
sendResultList
.
stream
().
filter
(
dto
->
Objects
.
equals
(
dto
.
getStatus
(),
0
))
.
collect
(
Collectors
.
toList
());
if
(!
CollectionUtils
.
isEmpty
(
noSendList
))
{
Integer
tryCount
=
dealQwSendDTO
.
getTryCount
();
if
(
tryCount
!=
null
&&
tryCount
>=
10
)
{
return
;
}
if
(
tryCount
==
null
)
{
tryCount
=
0
;
}
// 重新刷新
dealQwSendDTO
.
setRefreshType
(
2
);
dealQwSendDTO
.
setTryCount
(++
tryCount
);
MqUtils
.
sendMessageToMQ
(
"qwSendRefreshByMQ"
,
JSON
.
toJSONString
(
dealQwSendDTO
),
60
);
return
;
}
log
.
info
(
"刷新企微群发结果:{}"
,
qwSendMsg
.
getMsgId
());
List
<
TabQwSendLog
>
entities
;
List
<
List
<
GroupSendResultBO
>>
partition
=
Lists
.
partition
(
sendResultList
,
1000
);
...
...
@@ -174,10 +191,7 @@ public class QwSendMsgServiceImpl implements QwSendMsgService {
log
.
error
(
"未查询到userid"
);
return
Collections
.
emptyList
();
}
List
<
GroupSendResultBO
>
sendResultList
=
getSendResult
(
qwSendMsg
.
getWxEnterpriseId
(),
qwSendMsg
.
getMsgId
(),
newWxUserId
);
//判断是否已经发送
return
sendResultList
.
stream
().
filter
(
dto
->
!
Objects
.
equals
(
dto
.
getStatus
(),
0
))
.
collect
(
Collectors
.
toList
());
return
getSendResult
(
qwSendMsg
.
getWxEnterpriseId
(),
qwSendMsg
.
getMsgId
(),
newWxUserId
);
}
public
List
<
GroupSendResultBO
>
getSendResult
(
String
wxEnterpriseId
,
String
msgId
,
String
userId
)
{
...
...
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