|
|
@@ -295,7 +295,10 @@ public class CorpMsgBulkTaskServiceImpl extends ServiceImpl<CorpMsgBulkTaskMappe
|
|
|
List<List<String>> split = CollectionUtil.split(corpUserIdList, LIMIT / 4);
|
|
|
for (List<String> strings : split) {
|
|
|
List<CorpUserSendRecord> corpUserSendRecords = corpMsgBulkTaskMapper.getsSuccessCorpUser(strings);
|
|
|
- corpUserSendRecords.forEach(corpUserSendRecord -> corpUserSendRecord.setCorpMsgRecordId(corpMsgBulkTaskRecord.getId()));
|
|
|
+ corpUserSendRecords.forEach(corpUserSendRecord -> {
|
|
|
+ corpUserSendRecord.setCorpMsgRecordId(corpMsgBulkTaskRecord.getId());
|
|
|
+ corpUserSendRecord.setStatus(true);
|
|
|
+ });
|
|
|
corpUserSendRecordService.saveBatch(corpUserSendRecords);
|
|
|
}
|
|
|
}
|
|
|
@@ -306,6 +309,7 @@ public class CorpMsgBulkTaskServiceImpl extends ServiceImpl<CorpMsgBulkTaskMappe
|
|
|
corpUserSendRecords.forEach(corpUserSendRecord -> {
|
|
|
corpUserSendRecord.setCorpMsgRecordId(corpMsgBulkTaskRecord.getId());
|
|
|
corpMsgBulkTaskRecord.setTaskId(corpMsgBulkTaskRecord.getTaskId());
|
|
|
+ corpUserSendRecord.setStatus(false);
|
|
|
corpUserSendRecordService.saveBatch(corpUserSendRecords);
|
|
|
});
|
|
|
}
|