|
|
|
@@ -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()); |
|
|
|
|