2026-08-10 a378f38df1785cbc8c9f1d55ace6a37952d2f65b
yudao-module-mall/yudao-module-promotion/src/main/java/cn/iocoder/yudao/module/promotion/service/coupon/CouponServiceImpl.java
@@ -39,7 +39,7 @@
/**
 * 优惠劵 Service 实现类
 *
 * @author 芋道源码
 * @author 超级管理员
 */
@Slf4j
@Service
@@ -378,6 +378,11 @@
        return couponMapper.selectByIdAndUserId(id, userId);
    }
    @Override
    public CouponDO getCoupon(Long id) {
        return couponMapper.selectById(id);
    }
    private CouponDO validateCouponExists(Long id) {
        CouponDO coupon = couponMapper.selectById(id);
        if (coupon == null) {