Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
push-message
Project
Project
Details
Activity
Releases
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
liucheng
push-message
Commits
d917369d
Commit
d917369d
authored
May 12, 2023
by
liuyiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决批量发送部分数据重复问题
parent
c2cc1782
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
MobPushService.java
src/main/java/com/weface/component/MobPushService.java
+7
-1
No files found.
src/main/java/com/weface/component/MobPushService.java
View file @
d917369d
...
...
@@ -275,7 +275,9 @@ public class MobPushService {
// 将消息体进行拆分
for
(
int
i
=
0
;
i
<
formCount
;
i
++)
{
MultiInformForm
subForm
=
new
MultiInformForm
();
BeanUtils
.
copyProperties
(
form
,
subForm
);
subForm
.
setPushType
(
form
.
getPushType
());
subForm
.
setEquipmentType
(
form
.
getEquipmentType
());
subForm
.
setUrl
(
form
.
getUrl
());
// 当前子推送任务内的消息体
// List<MultiMsgDTO> subMsgList = new ArrayList<>();
...
...
@@ -284,6 +286,10 @@ public class MobPushService {
// 不再对原集合操作,避免出现java.util.ConcurrentModificationException异常
if
(
subMsgList
.
size
()
==
0
)
{
subForm
.
setMsgList
(
new
ArrayList
<>(
Collections
.
singletonList
(
msgList
.
get
(
msgList
.
size
()
-
1
))));
}
else
{
ArrayList
<
MultiMsgDTO
>
enableOperateList
=
new
ArrayList
<>(
subMsgList
);
enableOperateList
.
add
(
msgList
.
get
(
msgList
.
size
()
-
1
));
subForm
.
setMsgList
(
enableOperateList
);
}
}
else
{
List
<
MultiMsgDTO
>
subMsgList
=
msgList
.
subList
(
MAX_ITEM_SIZE
*
i
,
(
MAX_ITEM_SIZE
*
i
)
+
MAX_ITEM_SIZE
);
...
...
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