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/MyCollectMapper.xml | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/framework/src/main/resources/mapper/lmk/MyCollectMapper.xml b/framework/src/main/resources/mapper/lmk/MyCollectMapper.xml index 573467c..71af97c 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> @@ -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