| | |
| | | |
| | | <select id="countNumGroupByComment" resultType="cn.lili.modules.lmk.domain.vo.CollectTypeNumVO"> |
| | | SELECT |
| | | LTUR.ref_id as id, |
| | | LVC.id as id, |
| | | count(LTUR.ref_id) as countNum |
| | | FROM |
| | | lmk_thumbs_up_record LTUR |
| | | INNER JOIN lmk_video_comment LVC ON LTUR.ref_id = LVC.id AND LVC.thumbs_up_job = 1 AND LVC.delete_flag = 0 |
| | | lmk_video_comment LVC |
| | | LEFT JOIN lmk_thumbs_up_record LTUR ON LTUR.ref_id = LVC.id AND LTUR.thumbs_up_type = 'video_comment' AND LTUR.delete_flag = 0 |
| | | WHERE |
| | | LTUR.thumbs_up_type = 'video_comment' |
| | | AND LTUR.delete_flag = 0 |
| | | LVC.thumbs_up_job = 1 |
| | | AND LVC.delete_flag = 0 |
| | | GROUP BY |
| | | LTUR.ref_id |
| | | </select> |