|
|
|
@@ -601,11 +601,7 @@ public class WxOrderServiceImpl implements WxOrderService { |
|
|
|
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); |
|
|
|
WxCouponChannel wxCouponChannel = wxCouponChannelMapper.selectByPrimaryKey(order.getCouponChannelId()); |
|
|
|
if (wxCouponChannel != null && wxCouponChannel.getStatus().equals(EnumCouponChannelStatus.STATUS_TAKE_OFFF.getCode())) { |
|
|
|
cardInfo.setSupportTransfer(EnumCouponTransfer.NO.getCode()); |
|
|
|
} |
|
|
|
|