Commit d3715faa authored by Quxl's avatar Quxl

x

parent b3a8d482
...@@ -15,7 +15,7 @@ public interface FilmGroupService { ...@@ -15,7 +15,7 @@ public interface FilmGroupService {
void removeFilmGroupById(Integer[] id); void removeFilmGroupById(Integer[] id);
List<Map<String, Object>> queryNoGroupFilmList(String keyword, Integer enroll_type_id, String film_country, Integer film_type_name_short, Integer play_shanghai, Integer review_round, Integer review_state, Page page); List<Map<String, Object>> queryNoGroupFilmList(String keyword, Integer film_type_id, Integer enroll_type_id, String film_country, Integer film_type_name_short, Integer play_shanghai, Integer review_round, Integer review_state, Page page);
List<Map<String, Object>> queryGroupFilmList(Integer[] group_id, String keyword, Integer enroll_type_id, Integer film_type_name, List<Map<String, Object>> queryGroupFilmList(Integer[] group_id, String keyword, Integer enroll_type_id, Integer film_type_name,
Integer film_type_name_short, Integer play_shanghai, Integer is_important, Integer review_state, Integer review_round, Integer film_type_name_short, Integer play_shanghai, Integer is_important, Integer review_state, Integer review_round,
......
...@@ -68,9 +68,10 @@ public class FilmGroupServiceImpl implements FilmGroupService { ...@@ -68,9 +68,10 @@ public class FilmGroupServiceImpl implements FilmGroupService {
} }
@Override @Override
public List<Map<String, Object>> queryNoGroupFilmList(String keyword, Integer enroll_type_id, String film_country, Integer film_type_name_short, Integer play_shanghai, Integer review_round, Integer review_state, Page page) { public List<Map<String, Object>> queryNoGroupFilmList(String keyword, Integer film_type_id, Integer enroll_type_id, String film_country, Integer film_type_name_short, Integer play_shanghai, Integer review_round, Integer review_state, Page page) {
SqlWhere wehre = new SqlWhere() SqlWhere wehre = new SqlWhere()
.eq("t.film_country", film_country) .eq("t.film_country", film_country)
.eq("t.film_type_name", film_type_id)
.eq("t.film_type_name_short", film_type_name_short) .eq("t.film_type_name_short", film_type_name_short)
.eq("t.play_shanghai", play_shanghai) .eq("t.play_shanghai", play_shanghai)
.lk("t.keywords", keyword) .lk("t.keywords", keyword)
......
...@@ -46,12 +46,12 @@ public class FilmGroupController { ...@@ -46,12 +46,12 @@ public class FilmGroupController {
@ResponseBody @ResponseBody
@PostMapping("getFilmList") @PostMapping("getFilmList")
@ApiOperation("查询未分类影片列表") @ApiOperation("查询未分类影片列表")
public Object queryNoGroupFilmList(String keyword, Integer enroll_type_id, String film_country, Integer film_type_name_short, Integer play_shanghai, Integer review_round, Integer review_state, String[] orderBy, Long index, Long limit) { public Object queryNoGroupFilmList(String keyword, Integer film_type_id, Integer enroll_type_id, String film_country, Integer film_type_name_short, Integer play_shanghai, Integer review_round, Integer review_state, String[] orderBy, Long index, Long limit) {
index = index == null ? 1 : index; index = index == null ? 1 : index;
limit = limit == null ? 20 : limit; limit = limit == null ? 20 : limit;
Page page = new Page(index, limit); Page page = new Page(index, limit);
page.setLimitKey(orderBy); page.setLimitKey(orderBy);
List<Map<String, Object>> list = filmGroupService.queryNoGroupFilmList(keyword, enroll_type_id, film_country, film_type_name_short, play_shanghai, review_round, review_state, page); List<Map<String, Object>> list = filmGroupService.queryNoGroupFilmList(keyword, film_type_id, enroll_type_id, film_country, film_type_name_short, play_shanghai, review_round, review_state, page);
return Rjx.jsonOk().setData(list).setPage(page); return Rjx.jsonOk().setData(list).setPage(page);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment