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

fix card

release_toaliyun_real
lin 3 лет назад
Родитель
Сommit
25796795f0
1 измененных файлов: 5 добавлений и 4 удалений
  1. +5
    -4
      mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java

+ 5
- 4
mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java Просмотреть файл

@@ -1509,6 +1509,7 @@ public class WxOrderServiceImpl implements WxOrderService {
cardInfo.setUpdateDate(curr);
cardInfo.setOwnerUserId(user.getId());
cardInfo.setCUserId(user.getId());
cardInfo.setSupportTransfer(coupon.getSupportTransfer());
wxCardInfoMapper.updateById(cardInfo);
}else {
cardInfo = new WxCardInfo();
@@ -1571,10 +1572,10 @@ public class WxOrderServiceImpl implements WxOrderService {
cardInfo.setUpdateDate(curr);
cardInfo.setSupportTransfer(coupon.getSupportTransfer());
//检查卡是否下架,如果是,不可转赠
WxCouponChannel wxCouponChannel = wxCouponChannelMapper.selectById(order.getCouponChannelId(),order.getTenantId());
if (wxCouponChannel != null && wxCouponChannel.getStatus().equals(EnumCouponChannelStatus.STATUS_TAKE_OFFF.getCode())) {
cardInfo.setSupportTransfer(EnumCouponTransfer.NO.getCode());
}
// WxCouponChannel wxCouponChannel = wxCouponChannelMapper.selectById(order.getCouponChannelId(),order.getTenantId());
// if (wxCouponChannel != null && wxCouponChannel.getStatus().equals(EnumCouponChannelStatus.STATUS_TAKE_OFFF.getCode())) {
// cardInfo.setSupportTransfer(EnumCouponTransfer.NO.getCode());
// }
wxCardInfoMapper.insert(cardInfo);
}
}


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