Browse Source

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

release_toaliyun_real
gongbiao 6 years ago
parent
commit
eec7629137
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java

+ 1
- 5
mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java View File

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


Loading…
Cancel
Save