From 50d7478082c9a8b4b75bcc202086cb610ec781c1 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期四, 17 七月 2025 19:13:19 +0800
Subject: [PATCH] 修改图片显示问题

---
 framework/src/main/resources/mapper/lmk/MyCollectMapper.xml |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/framework/src/main/resources/mapper/lmk/MyCollectMapper.xml b/framework/src/main/resources/mapper/lmk/MyCollectMapper.xml
index 573467c..9f89ba6 100644
--- a/framework/src/main/resources/mapper/lmk/MyCollectMapper.xml
+++ b/framework/src/main/resources/mapper/lmk/MyCollectMapper.xml
@@ -54,16 +54,17 @@
           AND ref_id IN <foreach collection="videoIds" open="(" item="videoId" close=")" separator=",">#{videoId}</foreach>
     </select>
 
-    <select id="countNumGroupByType" parameterType="string" resultType="cn.lili.modules.lmk.domain.vo.CollectTypeNumVO">
+    <select id="countNumGroupByVideo" parameterType="string" resultType="cn.lili.modules.lmk.domain.vo.CollectTypeNumVO">
         SELECT
-               ref_id as id,
-               count(id) as countNum
+               LV.id as id,
+               count(LMC.ref_id) as countNum
         FROM
-             lmk_my_collect
+             lmk_video LV
+                LEFT JOIN lmk_my_collect LMC ON LV.id = LMC.ref_id AND LMC.collect_type = 'video' AND LMC.delete_flag = 0
         WHERE
-              collect_type = #{type} AND delete_flag = 0
+            LV.collect_num_job = 1 AND LV.delete_flag = 0 AND LV.status = '1'
         GROUP BY
-            ref_id
+            LMC.ref_id
     </select>
 
 
@@ -89,8 +90,8 @@
             LA.*
         FROM lmk_my_collect LMC
                  LEFT JOIN lmk_activity LA
-                           ON LMC.ref_id = LA.id
-        WHERE LMC.collect_type = 'activity' and LMC.user_id = #{userId}
+                           ON LMC.ref_id = LA.id AND LMC.delete_flag = 0
+        WHERE LMC.collect_type = 'activity' and LMC.user_id = #{userId} AND LA.id IS NOT NULL
     </select>
     <resultMap id="videoBaseResult" type="cn.lili.modules.lmk.domain.vo.VideoVO">
         <id column="id" property="id"/>
@@ -100,10 +101,7 @@
         <result column="video_file_key" property="videoFileKey" />
         <result column="video_fit" property="videoFit" />
         <result column="title" property="title" />
-        <result column="goods_id" property="goodsId" />
-        <result column="goods_view_num" property="goodsViewNum" />
         <result column="video_duration" property="videoDuration" />
-        <result column="goods_order_num" property="goodsOrderNum" />
         <result column="recommend" property="recommend" />
         <result column="status" property="status" />
         <result column="play_num" property="playNum" />

--
Gitblit v1.8.0