From 232d3efb20f87f9c60faeda7bae4bc96e5687bd3 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期三, 11 十月 2023 19:19:47 +0800
Subject: [PATCH] 10.12

---
 cloud-server-activity/src/main/resources/mapper/PointsMerchandiseMapper.xml |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/cloud-server-activity/src/main/resources/mapper/PointsMerchandiseMapper.xml b/cloud-server-activity/src/main/resources/mapper/PointsMerchandiseMapper.xml
index 129dead..e300b16 100644
--- a/cloud-server-activity/src/main/resources/mapper/PointsMerchandiseMapper.xml
+++ b/cloud-server-activity/src/main/resources/mapper/PointsMerchandiseMapper.xml
@@ -18,12 +18,12 @@
                shelves
 
         from t_points_merchandise
-        where 1 = 1
+        <where>
         <if test="name != null">
             and `name` like concat('%', #{name}, '%')
         </if>
         <if test="type != null">
-            and type = #{type}
+            and `type` = #{type}
         </if>
         <if test="redemptionMethod != null">
             and redemptionMethod = #{redemptionMethod}
@@ -34,7 +34,8 @@
         <if test="state != null">
             and `state` = #{state}
         </if>
-        and `type` !=3
+        and `type` != 3
+        </where>
         order by insertTime desc
     </select>
     <select id="queryGoodsListOfSearchAudit" resultType="java.util.Map">

--
Gitblit v1.7.1