From 8b4b4eb2a6d06469d0e2a61ec0f8ce4d5953c375 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期五, 20 十二月 2024 16:59:27 +0800
Subject: [PATCH] 代码

---
 manage/src/main/resources/mapping/TCouponMapper.xml |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/manage/src/main/resources/mapping/TCouponMapper.xml b/manage/src/main/resources/mapping/TCouponMapper.xml
index 65ca5d7..47faa83 100644
--- a/manage/src/main/resources/mapping/TCouponMapper.xml
+++ b/manage/src/main/resources/mapping/TCouponMapper.xml
@@ -23,5 +23,19 @@
     <sql id="Base_Column_List">
         id, name, type, amount, storeId, time, amountCondition, createTime, updateTime, createBy, updateBy, isDelete, grantStatus
     </sql>
+    <select id="pageList" resultType="com.jilongda.manage.vo.TCouponVO">
+        select t1.* from
+            t_coupon t1
+        where 1=1
+        <if test="query.name != null and query.name != ''">
+            and t1.name like concat('%',#{query.name},'%')
+        </if>
+        <if test="query.type != null and query.type != ''">
+            and t1.type =#{query.type}
+        </if>
+        <if test="query.grantStatus != null and query.grantStatus != ''">
+            and t1.grantStatus =#{query.grantStatus}
+        </if>
+    </select>
 
 </mapper>

--
Gitblit v1.7.1