| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.mzl.flower.dto.request.film.FilmWorksQueryDTO; |
| | | import com.mzl.flower.dto.response.film.FilmLocationNameDTO; |
| | | import com.mzl.flower.dto.response.film.FilmWorksVO; |
| | | import com.mzl.flower.entity.film.FilmWorks; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.MapKey; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | |
| | | @Select("select * from film_works where deleted = '0' and status = 'pending_create'") |
| | | List<FilmWorksVO> pendingCreate(); |
| | | |
| | | |
| | | @Select("<script>" + |
| | | "select * from film_works where deleted = '0' " + |
| | | "and id IN " + |
| | | "<foreach item='id' collection='list' open='(' separator=',' close=')'>" + |
| | | "#{id}" + |
| | | "</foreach>" + |
| | | "</script>") |
| | | @MapKey("id") |
| | | List<FilmWorksVO> getFilmWorksByIds(@Param("list") List<Long> ids); |
| | | |
| | | @Select("select * from film_works where deleted = '0' and name_cn = #{nameCn} and type = #{type} and release_year = #{releaseYear} limit 1") |
| | | FilmWorks getFilmWorksByName(@Param("nameCn") String nameCn, @Param("type")String type, @Param("releaseYear") String releaseYear); |
| | | } |