Просмотр исходного кода

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

release_toaliyun_real
gongbiao 6 лет назад
Родитель
Сommit
830e781aca
1 измененных файлов: 6 добавлений и 0 удалений
  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 Просмотреть файл

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


Загрузка…
Отмена
Сохранить