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
8ef2c30a
Commit
8ef2c30a
authored
Dec 06, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
社群群发-获取msgid
parent
596b1318
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
GroupChatPlanService.java
...ban/manage/service/service/chat/GroupChatPlanService.java
+4
-0
GroupChatPlanServiceImpl.java
...e/service/service/chat/impl/GroupChatPlanServiceImpl.java
+7
-3
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/GroupChatPlanService.java
View file @
8ef2c30a
...
...
@@ -7,6 +7,7 @@ import com.gic.haoban.manage.api.dto.chat.GroupChatPlanLogDTO;
import
com.gic.haoban.manage.api.dto.qdto.chat.GroupChatPlanSearchQDTO
;
import
com.gic.haoban.manage.api.qdto.StaffSendResultQDTO
;
import
com.gic.haoban.manage.service.pojo.bo.chat.GroupChatPlanBO
;
import
com.gic.haoban.manage.service.service.content.impl.GroupMessageServiceImpl
;
import
java.util.Date
;
...
...
@@ -39,4 +40,6 @@ public interface GroupChatPlanService {
void
staffSendResult
(
StaffSendResultQDTO
qdto
);
void
stopByMsgid
(
Long
planId
);
String
getQwMsgId
(
String
staffId
,
Date
sendTime
,
GroupMessageServiceImpl
.
GroupMsgChatType
groupMsgChatType
)
;
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatPlanServiceImpl.java
View file @
8ef2c30a
...
...
@@ -837,9 +837,9 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
}
}
p
rivate
String
getQwMsgId
(
String
staffId
,
Date
sendTime
,
GroupMessageServiceImpl
.
GroupMsgChatType
groupMsgChatType
)
{
Date
startTime
=
DateUtil
.
addNumFor
Minute
(
sendTime
,-
1
)
;
@Override
p
ublic
String
getQwMsgId
(
String
staffId
,
Date
sendTime
,
GroupMessageServiceImpl
.
GroupMsgChatType
groupMsgChatType
)
{
Date
startTime
=
DateUtil
.
addNumFor
Second
(
sendTime
,
0
)
;
Date
endTime
=
DateUtil
.
addNumForMinute
(
sendTime
,
1
)
;
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByPrimaryKey
(
staffId
)
;
String
wxEnterpriseId
=
staff
.
getWxEnterpriseId
()
;
...
...
@@ -851,7 +851,11 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
// 发送到群
List
<
QywxGroupMessageInfoDTO
>
msgList
=
this
.
queryGroupMsg
(
groupMsgChatType
,
startTime
,
endTime
,
qwDTO
,
wxUserId
);
if
(
CollectionUtils
.
isNotEmpty
(
msgList
))
{
if
(
msgList
.
size
()==
0
)
{
return
msgList
.
get
(
0
).
getMsgId
()
;
}
else
{
return
msgList
.
get
(
msgList
.
size
()-
1
).
getMsgId
()
;
}
}
return
null
;
}
...
...
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