提交代码

master
胡锐 6 months ago committed by yuanye
parent 881c546422
commit d80e5fb096
  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) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "优惠券状态不处于待使用");
}
discountUserRel.setStatus(2);
couponDiscountUserRelService.update(discountUserRel);
// 查询优惠券
CouponDiscount discount = couponDiscountService.queryDetail(discountUserRel.getDiscountId());
if (discount == null) {

Loading…
Cancel
Save