package top.lvzhiqiang.mapper; import org.apache.ibatis.annotations.Select; import top.lvzhiqiang.entity.FileImage; import top.lvzhiqiang.entity.VideoCast; import top.lvzhiqiang.entity.VideoGenres; import java.util.List; import java.util.Map; /** * 照片信息Mapper * * @author lvzhiqiang * 2024/8/26 11:02 */ public interface PictureInfoMapper { @Select("select main_who AS name, count(id) AS count from video_info_infantry where type = #{infantryType} group by main_who order by count(id) desc") List findCast(String infantryType); @Select("select fic.category_name AS name, count(fi.category_id) AS count " + "from file_image fi " + " left join file_image_category fic on fi.category_id = fic.id " + "group by fi.category_id " + "order by count(fi.category_id) desc ") List findUploadGenres(); @Select({""}) List getUploadImageInfoList(Map params); }