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

Commit ae6f1968 authored by jiangxiulong's avatar jiangxiulong

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

parent 68d8bb3e
......@@ -81,8 +81,12 @@ public class KylinRefundExecuteServiceImpl {
}
count = orderList.size();
KylinOrderTickets lastInfo = orderList.get(count - 1);
mid = lastInfo.getMid();
if (count > 0) {
KylinOrderTickets lastInfo = orderList.get(count - 1);
if (lastInfo != null) {
mid = lastInfo.getMid();
}
}
} while (count >= limitNum);
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