Sfoglia il codice sorgente

[拼团][修改][拼团原价购买跳转错误加判断]

release_toaliyun_real
gongbiao 6 anni fa
parent
commit
830e781aca
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. +6
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxOrderGroupServiceImpl.java

+ 6
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxOrderGroupServiceImpl.java Vedi File

@@ -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<Map<String, Object>> couponOrderGroupList = wxOrderGroupMapper.queryOrderGroup(wxOrder);
if (couponOrderGroupList.isEmpty()) {
return new ResultData(ErrorCode.ORDER_GROUP_COOPERATING_FAILD);
}
Map<String, Object> couponOrderGroup = couponOrderGroupList.get(0);
//商场地址
WxMall wxMall = new WxMall();


Caricamento…
Annulla
Salva