提交代码

master
胡锐 6 months ago
parent 8eceaf45f6
commit c0c2de5a10
  1. 2
      service/src/main/java/com/hfkj/service/order/impl/BsOrderServiceImpl.java

@ -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) {

Loading…
Cancel
Save