From 3358eb269c49c83aaa57c4274a5eb669be42bc11 Mon Sep 17 00:00:00 2001 From: wangning <164851225@qq.com> Date: Tue, 13 Mar 2018 09:14:55 +0800 Subject: [PATCH] update --- .../royalpay/payment/manage/task/BillOrderCheckTask.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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"); } - }); + } } }