From 07811c07c6e23f179d284fc2fde13cc9218d967b Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期三, 15 十一月 2023 16:06:14 +0800 Subject: [PATCH] 后台bug修改 --- cloud-server-activity/src/main/resources/mapper/CouponMapper.xml | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cloud-server-activity/src/main/resources/mapper/CouponMapper.xml b/cloud-server-activity/src/main/resources/mapper/CouponMapper.xml index 3a9e973..cbe7368 100644 --- a/cloud-server-activity/src/main/resources/mapper/CouponMapper.xml +++ b/cloud-server-activity/src/main/resources/mapper/CouponMapper.xml @@ -50,7 +50,7 @@ from t_coupon_city WHERE provinceCode = #{cityCode}) o) </if> - <if test="name != null"> + <if test="name != null and name!=''"> and `name` like concat('%', #{name}, '%') </if> <if test="type != null"> @@ -87,6 +87,8 @@ illustrate from t_coupon where 1 = 1 and distributionMethod = 4 + and auditStatus = 2 + and startTime < now() <if test="cityCode != null"> and id in( SELECT DISTINCT couponId FROM @@ -134,7 +136,8 @@ illustrate from t_coupon where 1 = 1 and distributionMethod = 4 and useScope = 1 - + and auditStatus = 2 + and startTime < now() <if test="name != null"> and `name` like concat('%', #{name}, '%') </if> -- Gitblit v1.7.1