|
|
|
@ -156,7 +156,12 @@ public class OutboundNotificationServiceImpl implements OutboundNotificationServ |
|
|
|
inbounds.add(detailVo); |
|
|
|
} |
|
|
|
if (!inbounds.isEmpty()) { |
|
|
|
detailMapper.saveOutboundDetails(inbounds); |
|
|
|
final int BATCH_SIZE = 100; |
|
|
|
for (int i = 0; i < inbounds.size(); i += BATCH_SIZE) { |
|
|
|
int end = Math.min(i + BATCH_SIZE, inbounds.size()); |
|
|
|
List<OutboundNotificationDetailVo> subList = inbounds.subList(i, end); |
|
|
|
detailMapper.saveOutboundDetails(subList); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -224,7 +229,12 @@ public class OutboundNotificationServiceImpl implements OutboundNotificationServ |
|
|
|
if (data.isEmpty()) { |
|
|
|
return; |
|
|
|
} |
|
|
|
detailMapper.updateOutboundDetails(data); |
|
|
|
final int BATCH_SIZE = 100; |
|
|
|
for (int i = 0; i < data.size(); i += BATCH_SIZE) { |
|
|
|
int end = Math.min(i + BATCH_SIZE, data.size()); |
|
|
|
List<OutboundNotificationDetailVo> subList = data.subList(i, end); |
|
|
|
detailMapper.updateOutboundDetails(subList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|