From 0f64a74ee3b818bb42b7b9c9b01a9d33c279781b Mon Sep 17 00:00:00 2001
From: lisy <linlangsur163@163.com>
Date: 星期一, 14 八月 2023 18:31:21 +0800
Subject: [PATCH] 管理后台:修复积分商品列表的数据展示

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

diff --git a/cloud-server-activity/src/main/resources/mapper/PointsMerchandiseMapper.xml b/cloud-server-activity/src/main/resources/mapper/PointsMerchandiseMapper.xml
index 8e05102..38bcc37 100644
--- a/cloud-server-activity/src/main/resources/mapper/PointsMerchandiseMapper.xml
+++ b/cloud-server-activity/src/main/resources/mapper/PointsMerchandiseMapper.xml
@@ -3,4 +3,36 @@
 <mapper namespace="com.dsh.activity.mapper.PointsMerchandiseMapper">
 
 
+    <select id="queryGoodsListOfSearch" resultType="java.util.Map">
+        SELECT id,
+               `name`,
+               `cover`,
+               `type`,
+               date_format(startTime ,'%Y-%m-%d') as startTime,
+               date_format(endTime ,'%Y-%m-%d') as endTime,
+               useScope,
+               userPopulation,
+               quantityIssued,
+               pickUpQuantity,
+               `sort`,
+               shelves
+        from t_points_merchandise
+        where 1 = 1
+        <if test="name != null">
+            and `name` like concat('%', #{name}, '%')
+        </if>
+        <if test="type != null">
+            and type = #{type}
+        </if>
+        <if test="redemptionMethod != null">
+            and redemptionMethod = #{redemptionMethod}
+        </if>
+        <if test="userPopulation != null">
+            and userPopulation = #{userPopulation}
+        </if>
+        <if test="state != null">
+            and `state` = #{state}
+        </if>
+        order by insertTime desc
+    </select>
 </mapper>

--
Gitblit v1.7.1