From 85a5c7b24b07d37bee581ab803e9b7b644c53de0 Mon Sep 17 00:00:00 2001 From: xiaohanzi Date: Thu, 18 Jun 2020 10:03:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8B=BC=E5=9B=A2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/service/impl/WxOrderGroupServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxOrderGroupServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxOrderGroupServiceImpl.java index 3508d84bf..e0d299b5b 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxOrderGroupServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxOrderGroupServiceImpl.java @@ -78,7 +78,10 @@ public class WxOrderGroupServiceImpl implements WxOrderGroupService { WxCoupon wxCoupon = wxCouponMapper.selectById(order.getProductId()); if (null == wxCoupon) { throw new MallinkException(ErrorCode.ORDER_GROUP_COOPERATING_FAILD.getCode(),"WxCoupon is null. orderId:"+order.getId()); - } + } + if (wxOrderGroup.getStatus() == EnumOrderStatus.ORDER_STATUS_COOPERATING_COMPLETE.getCode()) { + return; + } int remainPeople = updateOrderGroup(wxOrderGroup,order,wxCoupon); if (remainPeople == 0) { actionAfterOrderGroupSuccess(order, order.getOrderGroupId());