From d5befd75e1e63d78317d51603fe90fff8b2b0deb Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 8 Dec 2025 10:58:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(pricing):=20=E4=BF=AE=E5=A4=8D=E4=BC=98?= =?UTF-8?q?=E6=83=A0=E5=88=B8=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E6=8B=BC?= =?UTF-8?q?=E6=8E=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在每个查询条件后添加空格,避免SQL语法错误 - 确保动态SQL片段正确连接 - 优化时间范围查询条件的格式处理 --- .../pricing/mapper/PriceCouponClaimRecordMapper.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/ycwl/basic/pricing/mapper/PriceCouponClaimRecordMapper.java b/src/main/java/com/ycwl/basic/pricing/mapper/PriceCouponClaimRecordMapper.java index 107ba60b..9d17dfd1 100644 --- a/src/main/java/com/ycwl/basic/pricing/mapper/PriceCouponClaimRecordMapper.java +++ b/src/main/java/com/ycwl/basic/pricing/mapper/PriceCouponClaimRecordMapper.java @@ -89,22 +89,22 @@ public interface PriceCouponClaimRecordMapper extends BaseMapper" + "" + - "AND r.user_id = #{userId}" + + "AND r.user_id = #{userId} " + "" + "" + - "AND r.coupon_id = #{couponId}" + + "AND r.coupon_id = #{couponId} " + "" + "" + - "AND r.status = #{status}" + + "AND r.status = #{status} " + "" + "" + - "AND r.claim_time >= #{startTime}" + + "AND r.claim_time >= #{startTime} " + "" + "" + - "AND r.claim_time <= #{endTime}" + + "AND r.claim_time <= #{endTime} " + "" + "" + - "AND r.scenic_id = #{scenicId}" + + "AND r.scenic_id = #{scenicId} " + "" + "" + "ORDER BY r.create_time DESC" +