REQ-2481: 添加删除日志表的job

This commit is contained in:
yanglin 2024-05-31 15:27:07 +08:00
parent 024ce3dca5
commit 4ad9595c8d

View File

@ -111,6 +111,8 @@ public class SendQueue {
.computeIfAbsent(batchNo, unused -> new ArrayList<>());
batchRecords.add(record);
}
if (batchNo2Records.isEmpty())
return Collections.emptyList();
List<List<Record>> groups = new ArrayList<>(batchNo2Records.values());
groups.sort(Comparator.comparingInt(List::size));
// a batch that has max records