|
|
@@ -1586,6 +1586,12 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
// throw new InterruptedException("导出被中断");
|
|
|
}
|
|
|
for (Order order : batch) {
|
|
|
+ // 定期检查中断标志
|
|
|
+ if (context.isCancelled() || Thread.currentThread().isInterrupted()) {
|
|
|
+ context.setProcessedRows(indexNum);
|
|
|
+ break;
|
|
|
+// throw new InterruptedException("导出被中断");
|
|
|
+ }
|
|
|
Row row = sheet.createRow(rowNum++);
|
|
|
row.setHeightInPoints(18);
|
|
|
//序号
|