From d3f5a984360ae152369e6edf743cf8ace4e1d8ec Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期四, 28 八月 2025 14:23:08 +0800
Subject: [PATCH] 导出时间

---
 framework/src/main/resources/mapper/lmk/PrizeRecordMapper.xml |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/framework/src/main/resources/mapper/lmk/PrizeRecordMapper.xml b/framework/src/main/resources/mapper/lmk/PrizeRecordMapper.xml
index 4d42fa5..c8058e1 100644
--- a/framework/src/main/resources/mapper/lmk/PrizeRecordMapper.xml
+++ b/framework/src/main/resources/mapper/lmk/PrizeRecordMapper.xml
@@ -62,6 +62,7 @@
             LPR.prize_num_id,
             LPR.activity_prize_ref_id,
             LPR.distribute_status,
+            LPR.create_time,
             LPR.id
         FROM
             lmk_prize_record LPR
@@ -79,6 +80,8 @@
         <if test="query.distributeStatus != null and query.distributeStatus !=''">
             AND LPR.distribute_status  = #{query.distributeStatus}
         </if>
+        <if test="query.startTime != null">AND LPR.create_time >= #{query.startTime}</if>
+        <if test="query.endTime != null">AND LPR.create_time &lt;= #{query.endTime}</if>
     </select>
     <select id="getByUserIdPage" resultMap="BaseResultMap">
         SELECT
@@ -116,6 +119,7 @@
         LPR.prize_num_id,
         LPR.activity_prize_ref_id,
         LPR.distribute_status,
+        LPR.create_time,
         LPR.id
         FROM
         lmk_prize_record LPR
@@ -133,6 +137,8 @@
         <if test="query.distributeStatus != null and query.distributeStatus !=''">
             AND LPR.distribute_status  = #{query.distributeStatus}
         </if>
+        <if test="query.startTime != null">AND LPR.create_time >= #{query.startTime}</if>
+        <if test="query.endTime != null">AND LPR.create_time &lt;= #{query.endTime}</if>
     </select>
     <resultMap id="getPrizeRecordListByTimeMap" type="cn.lili.modules.lmk.domain.vo.PrizeRecordTimeVO">
         <result property="activityPrizeRefId" column="activity_prize_ref_id"/>

--
Gitblit v1.8.0