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/VideoCommentMapper.xml | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/framework/src/main/resources/mapper/lmk/VideoCommentMapper.xml b/framework/src/main/resources/mapper/lmk/VideoCommentMapper.xml index 2c1c43a..59e68f2 100644 --- a/framework/src/main/resources/mapper/lmk/VideoCommentMapper.xml +++ b/framework/src/main/resources/mapper/lmk/VideoCommentMapper.xml @@ -145,14 +145,15 @@ <select id="countNumGroupByVideo" resultType="cn.lili.modules.lmk.domain.vo.CollectTypeNumVO"> SELECT - video_id as id, - COUNT(*) as countNum + LV.id as id, + COUNT(LVC.video_id) as countNum FROM - lmk_video_comment + lmk_video LV + LEFT JOIN lmk_video_comment LVC ON LVC.video_id = LV.id AND LVC.delete_flag = 0 AND LVC.status = 'normal' WHERE - delete_flag = 0 AND status = 'normal' + LV.comment_num_job = 1 AND LV.delete_flag = 0 AND LV.status = '1' GROUP BY - video_id + LVC.video_id </select> -- Gitblit v1.8.0