|
|
@ -285,6 +285,7 @@ public class BsOrderServiceImpl implements BsOrderService { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "优惠券状态不处于待使用"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "优惠券状态不处于待使用"); |
|
|
|
} |
|
|
|
} |
|
|
|
discountUserRel.setStatus(2); |
|
|
|
discountUserRel.setStatus(2); |
|
|
|
|
|
|
|
discountUserRel.setUseEndTime(new Date()); |
|
|
|
couponDiscountUserRelService.update(discountUserRel); |
|
|
|
couponDiscountUserRelService.update(discountUserRel); |
|
|
|
// 查询优惠券
|
|
|
|
// 查询优惠券
|
|
|
|
CouponDiscount discount = couponDiscountService.queryDetail(discountUserRel.getDiscountId()); |
|
|
|
CouponDiscount discount = couponDiscountService.queryDetail(discountUserRel.getDiscountId()); |
|
|
@ -352,6 +353,7 @@ public class BsOrderServiceImpl implements BsOrderService { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知优惠券"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知优惠券"); |
|
|
|
} |
|
|
|
} |
|
|
|
discountUserRel.setStatus(1); |
|
|
|
discountUserRel.setStatus(1); |
|
|
|
|
|
|
|
discountUserRel.setUseTime(null); |
|
|
|
couponDiscountUserRelService.update(discountUserRel); |
|
|
|
couponDiscountUserRelService.update(discountUserRel); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|