|
|
|
@ -615,7 +615,12 @@ public class InboundNotificationServiceImpl implements InboundNotificationServic |
|
|
|
inbounds.add(detailVo); |
|
|
|
} |
|
|
|
if (!inbounds.isEmpty()) { |
|
|
|
detailMapper.saveInboundDetails(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<InboundNotificationDetailVo> subList = inbounds.subList(i, end); |
|
|
|
detailMapper.saveInboundDetails(subList); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|