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
c004b49c
Commit
c004b49c
authored
Dec 25, 2023
by
王祖波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix-20231225' into 'master'
企微接口1000批次发送 See merge request
!1595
parents
1b810b1a
78b4359a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
NoticeMessageApiServiceImpl.java
...rvice/service/notify/out/NoticeMessageApiServiceImpl.java
+5
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/notify/out/NoticeMessageApiServiceImpl.java
View file @
c004b49c
...
@@ -332,6 +332,9 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
...
@@ -332,6 +332,9 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
if
(
ObjectUtil
.
isNull
(
noticeMessageTypeEnum
))
{
if
(
ObjectUtil
.
isNull
(
noticeMessageTypeEnum
))
{
return
ServiceResponse
.
failure
(
"-1"
,
"模版枚举不存在"
);
return
ServiceResponse
.
failure
(
"-1"
,
"模版枚举不存在"
);
}
}
List
<
String
>
userIdList
=
relationList
.
stream
().
map
(
StaffClerkRelationDTO:
:
getClerkId
).
distinct
().
collect
(
Collectors
.
toList
());
List
<
List
<
String
>>
listList
=
ListUtil
.
split
(
userIdList
,
1000
);
for
(
List
<
String
>
list
:
listList
)
{
noticeMessageHandler
.
sendMessage
(
NoticeMessageForm
.
builder
()
noticeMessageHandler
.
sendMessage
(
NoticeMessageForm
.
builder
()
.
messageCode
(
noticeMessageTypeEnum
.
getMessageCode
())
.
messageCode
(
noticeMessageTypeEnum
.
getMessageCode
())
.
mqRouterCode
(
noticeMessageTypeEnum
.
getRouterCode
())
.
mqRouterCode
(
noticeMessageTypeEnum
.
getRouterCode
())
...
@@ -339,8 +342,9 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
...
@@ -339,8 +342,9 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
.
createTime
(
new
Date
())
.
createTime
(
new
Date
())
.
enterpriseId
(
notifyMessageBatchQDTO
.
getEnterpriseId
())
.
enterpriseId
(
notifyMessageBatchQDTO
.
getEnterpriseId
())
.
uniqueKey
(
UniqueIdUtils
.
uniqueLongHex
())
.
uniqueKey
(
UniqueIdUtils
.
uniqueLongHex
())
.
userIdList
(
relationList
.
stream
().
map
(
StaffClerkRelationDTO:
:
getClerkId
).
distinct
().
collect
(
Collectors
.
toList
())
)
.
userIdList
(
list
)
.
variableMap
(
variableMap
).
build
());
.
variableMap
(
variableMap
).
build
());
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
"发送消息通知失败"
,
e
);
logger
.
error
(
"发送消息通知失败"
,
e
);
}
}
...
...
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