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