diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java index 4db7b3630..126ddd808 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java @@ -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()); }