From 073c19b089bb440004c36dd71bdbc9c70c2ad9f0 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期四, 27 十一月 2025 14:12:44 +0800
Subject: [PATCH] 权限问题

---
 framework/src/main/resources/mapper/lmk/PrizeGrantRecordMapper.xml |   44 +++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 43 insertions(+), 1 deletions(-)

diff --git a/framework/src/main/resources/mapper/lmk/PrizeGrantRecordMapper.xml b/framework/src/main/resources/mapper/lmk/PrizeGrantRecordMapper.xml
index b1a97a7..70e7725 100644
--- a/framework/src/main/resources/mapper/lmk/PrizeGrantRecordMapper.xml
+++ b/framework/src/main/resources/mapper/lmk/PrizeGrantRecordMapper.xml
@@ -54,12 +54,54 @@
             LPGR.prize_content,
             LPGR.grant_status,
             LPGR.prize_num_id,
+            LPGR.create_time,
             LPGR.des,
             LPGR.id
         FROM
             lmk_prize_grant_record LPGR
         WHERE
             LPGR.delete_flag = 0
+        <if test="query.nickName != null and query.nickName !=''">
+            AND LPGR.nick_name like CONCAT('%',#{query.nickName},'%')
+        </if>
+        <if test="query.activityName != null and query.activityName !=''">
+            AND LPGR.activity_name like CONCAT('%',#{query.activityName},'%')
+        </if>
+        <if test="query.grantStatus != null and query.grantStatus !=''">
+            AND LPGR.grant_status  = #{query.grantStatus}
+        </if>
+        <if test="query.startTime != null">AND LPGR.create_time >= #{query.startTime}</if>
+        <if test="query.endTime != null">AND LPGR.create_time &lt;= #{query.endTime}</if>
+        ORDER BY LPGR.create_time DESC
     </select>
-
+    <select id="getExportData" resultMap="BaseResultMap">
+        SELECT
+        LPGR.user_id,
+        LPGR.nick_name,
+        LPGR.activity_id,
+        LPGR.activity_name,
+        LPGR.prize_id,
+        LPGR.prize_name,
+        LPGR.prize_content,
+        LPGR.grant_status,
+        LPGR.prize_num_id,
+        LPGR.des,
+        LPGR.create_time,
+        LPGR.id
+        FROM
+        lmk_prize_grant_record LPGR
+        WHERE
+        LPGR.delete_flag = 0
+        <if test="query.nickName != null and query.nickName !=''">
+            AND LPGR.nick_name like CONCAT('%',#{query.nickName},'%')
+        </if>
+        <if test="query.activityName != null and query.activityName !=''">
+            AND LPGR.activity_name like CONCAT('%',#{query.activityName},'%')
+        </if>
+        <if test="query.grantStatus != null and query.grantStatus !=''">
+            AND LPGR.grant_status  = #{query.grantStatus}
+        </if>
+        <if test="query.startTime != null">AND LPGR.create_time >= #{query.startTime}</if>
+        <if test="query.endTime != null">AND LPGR.create_time &lt;= #{query.endTime}</if>
+    </select>
 </mapper>

--
Gitblit v1.8.0