|
|
|
@@ -817,10 +817,6 @@ public class WxOrderServiceImpl implements WxOrderService { |
|
|
|
logger.error("券不存在, couponId: " + updateOrder.getProductId()); |
|
|
|
throw new MallinkException(ErrorCode.COUPON_IS_EMPTY); |
|
|
|
} |
|
|
|
if (coupon.getStatus() == EnumCouponStatus.COUPON_STATUS_TAKE_OFFF.getCode()) { |
|
|
|
logger.error("券已下架, couponId: " + updateOrder.getProductId()); |
|
|
|
throw new MallinkException(ErrorCode.COUPON_IS_TAKE_OFF); |
|
|
|
} |
|
|
|
// 检查用户 |
|
|
|
WxCUser user = wxCUserMapper.selectByPrimaryKey(updateOrder.getCUserId()); |
|
|
|
if (user == null) { |
|
|
|
|