cloudroam
16 小时以前 e7e0a1b534c9ac0ab76102a0ffc0939ba1d447ee
src/main/java/com/mzl/flower/mapper/film/FilmLocationMapper.java
@@ -13,6 +13,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
 * <p>
@@ -46,4 +47,22 @@
    @Select("select * from film_location where  is_enabled = '1' and deleted = '0' order by location_weight desc  limit 3")
    List<FilmLocationVO> getFilmLocationListTop3();
    @Select("select id,city,pinyin,country,continent from film_location WHERE continent = #{continent} and deleted = '0' and city is not NULL GROUP BY city,pinyin")
    List<FilmLocationVO> getFilmLocationLifo(String continent);
    @Select("select * from film_location WHERE city = #{city} and deleted = '0'")
    List<FilmLocationVO> getFilmLocationByCity(String city);
    @Select("<script>" +
            "SELECT *  FROM film_location " +
            "WHERE id IN " +
            "<foreach item='id' collection='list' open='(' separator=',' close=')'>" +
            "#{id}" +
            "</foreach>" +
            "</script>")
    List<FilmLocationVO> findLocationIdByids(@Param("list") List<Long> ids);
}