diff --git a/src/main/java/au/com/royalpay/payment/manage/task/BillOrderCheckTask.java b/src/main/java/au/com/royalpay/payment/manage/task/BillOrderCheckTask.java index 04d7e7df0..37f3a017d 100644 --- a/src/main/java/au/com/royalpay/payment/manage/task/BillOrderCheckTask.java +++ b/src/main/java/au/com/royalpay/payment/manage/task/BillOrderCheckTask.java @@ -32,11 +32,14 @@ public class BillOrderCheckTask { if(CollectionUtils.isEmpty(orderIds)){ return; } - orderIds.forEach((p) -> { + for (String p : orderIds) { + if (p==null){ + continue; + } JSONObject order = orderMapper.find(p); if(order.getIntValue("status")==3||order.getIntValue("status")==1){ billOrderMapper.updateStatusByOrderId(p,"2"); } - }); + } } }