记得上下班打卡 | git大法好,push需谨慎

Commit ae6f1968 authored by jiangxiulong's avatar jiangxiulong

增加为空判断 正巧遇到limitNum的倍数无数据 会有问题ArrayIndexOutOfBoundsException: -1

parent 68d8bb3e
...@@ -81,8 +81,12 @@ public class KylinRefundExecuteServiceImpl { ...@@ -81,8 +81,12 @@ public class KylinRefundExecuteServiceImpl {
} }
count = orderList.size(); count = orderList.size();
KylinOrderTickets lastInfo = orderList.get(count - 1); if (count > 0) {
mid = lastInfo.getMid(); KylinOrderTickets lastInfo = orderList.get(count - 1);
if (lastInfo != null) {
mid = lastInfo.getMid();
}
}
} while (count >= limitNum); } while (count >= limitNum);
KylinOrderRefundBatches updateBatchData = new KylinOrderRefundBatches(); KylinOrderRefundBatches updateBatchData = new KylinOrderRefundBatches();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment