From cca9b37d15cefe705d03219e2be1f73d77ee7254 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 11 七月 2025 11:29:53 +0800
Subject: [PATCH] docker compose

---
 framework/src/main/resources/mapper/lmk/ActivityMapper.xml |   55 ++++++++++++++++++++++++++++++++++---------------------
 1 files changed, 34 insertions(+), 21 deletions(-)

diff --git a/framework/src/main/resources/mapper/lmk/ActivityMapper.xml b/framework/src/main/resources/mapper/lmk/ActivityMapper.xml
index 0362cd4..4d7b1aa 100644
--- a/framework/src/main/resources/mapper/lmk/ActivityMapper.xml
+++ b/framework/src/main/resources/mapper/lmk/ActivityMapper.xml
@@ -18,6 +18,7 @@
         <result column="limit_user_num" property="limitUserNum" />
         <result column="activity_location" property="activityLocation" />
         <result column="activity_content" property="activityContent" />
+        <result column="publish" property="publish" />
     </resultMap>
 
     <resultMap id="MyActivityResultMap" type="cn.lili.modules.lmk.domain.vo.MyActivityVo">
@@ -32,10 +33,6 @@
         <result column="activity_report_id" property="activityReportId"/>
     </resultMap>
 
-    <resultMap id="ActivityReportMap" type="cn.lili.modules.lmk.domain.vo.ActivityReportVO">
-        <result column="activity_id" property="activityId"/>
-        <result column="user_id" property="userId"/>
-    </resultMap>
 
 
     <select id="getMyActivityList" resultMap="MyActivityResultMap">
@@ -55,10 +52,10 @@
                  LEFT JOIN lmk_activity LA ON LAR.activity_id = LA.id
         where  LA.delete_flag = 0
           AND LAR.delete_flag = 0
-          AND LAR.user_id = #{query.id}
+          AND LAR.user_id = #{userId}
           AND LAR.cancel = #{query.cancel}
         <if test="query.status == null or query.status == ''">
-            AND LA.status != '宸茬粨鏉�'
+            AND LA.status != 'end'
         </if>
         <if test="query.status != null and query.status != ''">
           AND LA.status = #{query.status}
@@ -82,7 +79,8 @@
             LA.cover_type,
             LA.limit_user_num,
             LA.activity_location,
-            LA.activity_content
+            LA.activity_content,
+            LA.publish
         FROM
             lmk_activity LA
         WHERE
@@ -105,7 +103,8 @@
             LA.cover_type,
             LA.limit_user_num,
             LA.activity_location,
-            LA.activity_content
+            LA.activity_content,
+            LA.publish
         FROM
             lmk_activity LA
         WHERE
@@ -116,6 +115,32 @@
             <if test="query.reportStartTime != null">AND LA.report_start_time >= #{query.reportStartTime}</if>
             <if test="query.reportEndTime != null">AND LA.report_end_time &lt;= #{query.reportEndTime}</if>
     </select>
+
+    <select id="getCanReportPage" resultMap="BaseResultMap">
+        SELECT
+        LA.id,
+        LA.activity_name,
+        LA.activity_type,
+        LA.report_start_time,
+        LA.report_end_time,
+        LA.start_time,
+        LA.end_time,
+        LA.status,
+        LA.recommend,
+        LA.cover,
+        LA.cover_type,
+        LA.limit_user_num,
+        LA.activity_location,
+        LA.activity_content
+        FROM
+        lmk_activity LA
+        WHERE
+        LA.delete_flag = 0
+        AND LA.publish = 1
+    </select>
+
+
+
     <resultMap id="memberMap" type="cn.lili.modules.member.entity.vo.MemberVO">
         <id property="id" column="id"/>
 
@@ -148,19 +173,6 @@
         WHERE LAR.activity_id = #{query.id}
     </select>
 
-
-    <update id="cancelActivity" >
-        UPDATE
-            lmk_activity_report LAR
-        SET LAR.cancel = true where LAR.id = #{id}
-    </update>
-
-
-    <select id="getActivityReport" resultMap="ActivityReportMap">
-        SELECT LAR.* FROM lmk_activity_report LAR
-        WHERE LAR.user_id = #{query.userId} and LAR.activity_id = #{query.activityId}
-    </select>
-
     <update id="batchUpdateActivities">
         UPDATE lmk_activity
         <trim prefix="SET" suffixOverrides=",">
@@ -175,4 +187,5 @@
             #{item.id}
         </foreach>
     </update>
+
 </mapper>

--
Gitblit v1.8.0