xiangpei
9 天以前 1cdb060a8aa59b0979f7609db1781805528e76e7
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>