Commit 08022c69 authored by Quxl's avatar Quxl

x

parent f244cd46
......@@ -42,7 +42,7 @@ public interface ReviewService {
Integer opt_state,
Page page);
List<Map<String, Object>> queryNewAsianRoundList(String keyword, Integer user_group_id, Integer review_state, Integer review_round, String ext_type, Page page);
List<Map<String, Object>> queryBestMvListByGroup(String keyword, Integer user_group_id, Integer review_state, Integer review_round, String ext_type, Page page);
/**
* 查询评委审片列表
......
......@@ -130,7 +130,7 @@ public class ReviewServiceImpl implements ReviewService {
}
@Override
public List<Map<String, Object>> queryNewAsianRoundList(String keyword, Integer user_group_id, Integer review_state, Integer review_round, String ext_type, Page page) {
public List<Map<String, Object>> queryBestMvListByGroup(String keyword, Integer user_group_id, Integer review_state, Integer review_round, String ext_type, Page page) {
XRException.assertNotBlank("获奖类型不能未空", ext_type);
XRException.assertNotBlank("选片轮数不能为空", review_round);
String sql = ""
......
......@@ -92,7 +92,7 @@ public class AdminReviewController {
}
@ResponseBody
@PostMapping("getNewAsianRoundList")
@PostMapping({"getNewAsianRoundList", "getBestMvListByGroup"})
@ApiOperation("查询亚新榜单")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="string", name="keyword", value="搜索关键字"),
......@@ -102,14 +102,14 @@ public class AdminReviewController {
@ApiImplicitParam(paramType="query", dataType="long", name="index", value="分页编号"),
@ApiImplicitParam(paramType="query", dataType="long", name="limit", value="分页大小"),
})
public Object getNewAsianRoundList(String keyword, Integer review_state, Integer review_round, String ext_type, Long index, Long limit) {
public Object getBestMvListByGroup(String keyword, Integer review_state, Integer review_round, String ext_type, Long index, Long limit) {
index = index == null ? 1 : index;
limit = limit == null ? 20 : limit;
Page page = new Page(index, limit);
List<Map<String, Object>> ugList = reviewService.queryUserGroupListByReviewRecord(2, review_round);
for(Map<String, Object> ugMap : ugList) {
Integer ugId = ((Number)ugMap.get("group_id")).intValue();
List<Map<String, Object>> list = reviewService.queryNewAsianRoundList(keyword, ugId, review_state, review_round, ext_type, page);
List<Map<String, Object>> list = reviewService.queryBestMvListByGroup(keyword, ugId, review_state, review_round, ext_type, page);
ugMap.put("list", list);
}
return Rjx.jsonOk().setData(ugList).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