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 1d1605dd8..e2f5cd181 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxOrderGroupServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxOrderGroupServiceImpl.java @@ -231,6 +231,9 @@ public class WxOrderGroupServiceImpl implements WxOrderGroupService { if (orderTemp == null) { return new ResultData(ErrorCode.ORDER_IS_NOT_FIND); } + if (orderTemp.getOrderGroupId().equals(notOrderGroupId)) { + return new ResultData(ErrorCode.ORDER_GROUP_COOPERATING_FAILD); + } WxCouponChannel wxCouponChannel = wxCouponChannelMapper.selectByPrimaryKey(orderTemp.getCouponChannelId()); if (wxCouponChannel.getStatus().equals(EnumCouponChannelStatus.STATUS_TAKE_OFFF.getCode())) { return new ResultData(ErrorCode.COUPON_CHANNEL_IS_TAKE_OFF); @@ -239,6 +242,9 @@ public class WxOrderGroupServiceImpl implements WxOrderGroupService { wxOrder.setTenantId(wxOrderGroup.getTenantId()); wxOrder.setId(wxOrderGroup.getOrderId()); List> couponOrderGroupList = wxOrderGroupMapper.queryOrderGroup(wxOrder); + if (couponOrderGroupList.isEmpty()) { + return new ResultData(ErrorCode.ORDER_GROUP_COOPERATING_FAILD); + } Map couponOrderGroup = couponOrderGroupList.get(0); //ε•†εœΊεœ°ε€ WxMall wxMall = new WxMall();