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

[C端消费卡][修改][支付时判断是否已下架,下架后卡不可转赠]

release_toaliyun_real
gongbiao 6 лет назад
Родитель
Сommit
b104c359a8
1 измененных файлов: 10 добавлений и 0 удалений
  1. +10
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java

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

@@ -599,6 +599,16 @@ public class WxOrderServiceImpl implements WxOrderService {
cardInfo.setCreateDate(curr); cardInfo.setCreateDate(curr);
cardInfo.setUpdateDate(curr); cardInfo.setUpdateDate(curr);
cardInfo.setSupportTransfer(coupon.getSupportTransfer()); cardInfo.setSupportTransfer(coupon.getSupportTransfer());

//检查卡是否下架,如果是,不可转赠
WxCouponChannel couponChannel = new WxCouponChannel();
couponChannel.setCouponId(coupon.getId());
couponChannel.setTenantId(user.getTenantId());
couponChannel.setTargetAd(EnumCouponChannelType.COUPON_CHANNEL_ID_CARD.getCode());
WxCouponChannel wxCouponChannel = wxCouponChannelMapper.selectOne(couponChannel);
if (wxCouponChannel != null && wxCouponChannel.getStatus().equals(EnumCouponChannelStatus.STATUS_TAKE_OFFF.getCode())) {
cardInfo.setSupportTransfer(EnumCouponTransfer.NO.getCode());
}
wxCardInfoMapper.insertSelective(cardInfo); wxCardInfoMapper.insertSelective(cardInfo);
} }
return couponOrder; return couponOrder;


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