|
|
@ -284,6 +284,8 @@ public class BsOrderServiceImpl implements BsOrderService { |
|
|
|
if (discountUserRel.getStatus() != 1) { |
|
|
|
if (discountUserRel.getStatus() != 1) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "优惠券状态不处于待使用"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "优惠券状态不处于待使用"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
discountUserRel.setStatus(2); |
|
|
|
|
|
|
|
couponDiscountUserRelService.update(discountUserRel); |
|
|
|
// 查询优惠券
|
|
|
|
// 查询优惠券
|
|
|
|
CouponDiscount discount = couponDiscountService.queryDetail(discountUserRel.getDiscountId()); |
|
|
|
CouponDiscount discount = couponDiscountService.queryDetail(discountUserRel.getDiscountId()); |
|
|
|
if (discount == null) { |
|
|
|
if (discount == null) { |
|
|
|