From ba67018c68fe194f2713ffae2b328b3769364dd6 Mon Sep 17 00:00:00 2001 From: wengding <18458794212@163.com> Date: Fri, 27 Jun 2025 11:50:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/PromotionCouponTemplateServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/PromotionCouponTemplateServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/PromotionCouponTemplateServiceImpl.java index 02c4750..cfc8108 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/PromotionCouponTemplateServiceImpl.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/PromotionCouponTemplateServiceImpl.java @@ -156,11 +156,11 @@ public class PromotionCouponTemplateServiceImpl implements IPromotionCouponTempl SysUser sysUser = sysUserMapper.selectById(bo.getUserId()); lqw.apply( " (take_limit_count = -1 or take_limit_count >= (select count(bc.id) from promotion_coupon bc where bc.template_id = id and bc.user_id = {0} )) " + - "and ( product_scope_type in (1, 2, 3) or (product_scope_type = 4 and date_format(register_date, '%y-%m-%d') <= date_format({1}, '%y-%m-%d'))", + "and ( product_scope_type in (1, 2, 3) or (product_scope_type = 4 and date_format(register_date, '%y-%m-%d') <= date_format({1}, '%y-%m-%d')))", bo.getUserId(), sysUser.getCreateTime()); }else if (bo.getUserId() != null){ lqw.apply( - " (take_limit_count = -1 "); + " (take_limit_count = -1 )"); } return lqw; }