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