陶杰
2024-09-10 ddd049fd5e732828bc5b739d9cc270ac707d1dbc
src/main/java/com/mzl/flower/service/impl/coupon/CouponRecordServiceImpl.java
@@ -497,7 +497,7 @@
        // 查询订单使用的优惠券
        final CouponRecordDO couponRecordDO = getCouponByOrderId(orderId);
        if(null==couponRecordDO){
            throw new IllegalArgumentException("优惠券不存在,无法操作");
            return false;
        }
        log.info("优惠券退回之前:"+ JSON.toJSONString(couponRecordDO));
        couponRecordDO.setStatus(CouponUsedStatusEnum.UNUSED.getType());