| | |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | | |
| | | public interface FilmLocationWorkMapper extends BaseMapper<FilmLocationWork> { |
| | |
| | | List<FilmLocationWork> getByLocaltionId(@Param("locationId") String locationId); |
| | | |
| | | List<FilmLocationWork> selectByLocationId(Long id); |
| | | |
| | | @Select("<script>" + |
| | | "SELECT DISTINCT location_id FROM film_location_work " + |
| | | "WHERE location_id IN " + |
| | | "<foreach item='id' collection='list' open='(' separator=',' close=')'>" + |
| | | "#{id}" + |
| | | "</foreach>" + |
| | | "</script>") |
| | | Set<Long> findLocationIdsWithWorks(@Param("list") List<Long> locationIds); |
| | | |
| | | |
| | | @Select("<script>" + |
| | | "SELECT DISTINCT film_id FROM film_location_work " + |
| | | "WHERE location_id IN " + |
| | | "<foreach item='id' collection='list' open='(' separator=',' close=')'>" + |
| | | "#{id}" + |
| | | "</foreach>" + |
| | | "</script>") |
| | | Set<Long> findFilmIdsWithWorks(@Param("list") List<Long> locationIds); |
| | | } |