liyong
10 天以前 450bcae3cfffe9923dc09dea2a4e89312bb373d7
yudao-module-mall/yudao-module-promotion/src/main/java/cn/iocoder/yudao/module/promotion/service/coupon/CouponServiceImpl.java
@@ -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) {