| | |
| | | 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> |
| | | |
| | | |