From bf6989e1f9cc614cf0439f048280cbcdb78d4009 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期五, 29 八月 2025 02:12:03 +0800
Subject: [PATCH] 提交本地代码

---
 framework/src/main/resources/mapper/lmk/PrizeActivityMapper.xml |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 57 insertions(+), 2 deletions(-)

diff --git a/framework/src/main/resources/mapper/lmk/PrizeActivityMapper.xml b/framework/src/main/resources/mapper/lmk/PrizeActivityMapper.xml
index f590d0f..c4cee58 100644
--- a/framework/src/main/resources/mapper/lmk/PrizeActivityMapper.xml
+++ b/framework/src/main/resources/mapper/lmk/PrizeActivityMapper.xml
@@ -14,6 +14,7 @@
         <result column="activity_img" property="activityImg" />
         <result column="activity_cover" property="activityCover" />
         <result column="enable_status" property="enableStatus" />
+        <result column="popup" property="popup"/>
     </resultMap>
 
 
@@ -52,11 +53,65 @@
             LPA.activity_img,
             LPA.activity_cover,
             LPA.enable_status,
-            LPA.id
+            LPA.id,
+            LPA.popup
         FROM
             lmk_prize_activity LPA
         WHERE
             LPA.delete_flag = 0
-    </select>
+        <if test="query.activityName != null and query.activityName !=''">
+            AND LPA.activity_name LIKE CONCAT('%',#{query.ctivityName},'%')
+        </if>
+        <if test="query.beginTime != null">AND LPA.begin_time >= #{query.beginTime}</if>
+        <if test="query.endTime != null">AND LPA.end_time &lt;= #{query.endTime}</if>
 
+    </select>
+    <resultMap id="prizeInfoMap" type="cn.lili.modules.lmk.domain.vo.PrizeDetailVO">
+        <id property="id" column="id"/>
+        <result property="activityName" column="activity_name"/>
+        <result property="activityDes" column="activity_des"/>
+        <result property="beginTime" column="begin_time"/>
+        <result property="endTime" column="end_time"/>
+        <result property="activityImg" column="activity_img"/>
+        <result property="activityCover" column="activity_cover"/>
+        <collection property="prizeInfoVOS" ofType="cn.lili.modules.lmk.domain.vo.PrizeInfoVO">
+            <id property="id" column="refId"/>
+            <result property="prizeId" column="prizeId"/>
+            <result property="prizeContent" column="prize_content"/>
+            <result property="maxPreDay" column="max_pre_day"/>
+            <result property="prizeProbability" column="prize_probability"/>
+            <result property="remainNum" column="remain_num"/>
+            <result property="prizeCover" column="prize_cover"/>
+            <result property="prizeDes" column="prize_des"/>
+            <result property="prizeImg" column="prize_img"/>
+            <result property="prizeName" column="prize_name"/>
+        </collection>
+     </resultMap>
+    <select id="prizeInfo" resultMap="prizeInfoMap">
+        SELECT lpa.id,
+               lpa.activity_name,
+               lpa.activity_des,
+               lpa.begin_time,
+               lpa.end_time,
+               lpa.activity_img,
+               lpa.activity_cover,
+               larp.id refId,
+               larp.prize_id,
+               larp.prize_content,
+               larp.max_pre_day,
+               larp.prize_probability,
+               larp.remain_num,
+               lpd.prize_cover,
+               lpd.prize_des,
+               lpd.prize_img,
+               lpd.prize_name
+        FROM lmk_prize_activity lpa
+                 JOIN lmk_activity_ref_prize larp ON larp.prize_activity_id = lpa.id
+            AND lpa.delete_flag = 0
+            AND larp.delete_flag = 0
+                 JOIN lmk_prize_draw lpd ON lpd.id = larp.prize_id
+            AND lpd.delete_flag = 0
+            AND larp.delete_flag = 0
+        WHERE lpa.id = #{id}
+    </select>
 </mapper>

--
Gitblit v1.8.0