Commit fdfc9ea1 authored by Quxl's avatar Quxl

x

parent 41ae7c8c
...@@ -42,7 +42,7 @@ public interface ReviewService { ...@@ -42,7 +42,7 @@ public interface ReviewService {
Integer opt_state, Integer opt_state,
Page page); Page page);
List<Map<String, Object>> listNewAsianList(Page page); List<Map<String, Object>> listNewAsianList(String keyword, Integer review_state, Integer playactor_type, Integer reveiw_round, Page page);
/** /**
* 查询评委审片列表 * 查询评委审片列表
......
...@@ -122,7 +122,7 @@ public class AdminUserServiceImpl implements AdminUserService { ...@@ -122,7 +122,7 @@ public class AdminUserServiceImpl implements AdminUserService {
@Override @Override
public List<Fc_user_group_funs> queryGroupFunList(Integer group_id) { public List<Fc_user_group_funs> queryGroupFunList(Integer group_id) {
return jdbcTemplate.queryForBeans("select * from fc_user_group_fun where group_id = ?", Fc_user_group_funs.class, group_id); return jdbcTemplate.queryForBeans("select * from fc_user_group_funs where group_id = ?", Fc_user_group_funs.class, group_id);
} }
@Override @Override
......
...@@ -120,8 +120,39 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -120,8 +120,39 @@ public class ReviewServiceImpl implements ReviewService {
} }
@Override @Override
public List<Map<String, Object>> listNewAsianList(Page page) { public List<Map<String, Object>> listNewAsianList(String keyword, Integer review_state, Integer playactor_type, Integer reveiw_round, Page page) {
String sql = "select r.* from fc_review r, r, fc_review_record_ext rre where r.id = rre"; String sql = ""
+ "select "
+ "r.id, "
+ "r.film_id, "
+ "r.enroll_type_id, "
+ "r.review_round, "
+ "r.allot_stte, "
+ "r.review_state, "
+ "r.opt_state, "
+ "r.push_time, "
+ "r.review_time, "
+ "rre.ext_title, "
+ "avg(rre.ext_score) ext_score_avg "
+ "from "
+ "fc_review r, fc_review_record rr, fc_review_record_ext rre "
+ "where "
+ "r.id = rr.review_id "
+ "and rr.id = rre.record_id "
+ "and rr.review_round = " + reveiw_round + " "
+ "and rr.review_state = 2, "
+ "and rr.review_time is not null "
+ "group by "
+ "r.id, "
+ "r.film_id, "
+ "r.enroll_type_id, "
+ "r.review_round, "
+ "r.allot_stte, "
+ "r.review_state, "
+ "r.opt_state, "
+ "r.push_time, "
+ "r.review_time, "
+ "rre.ext_title ";
return null; return null;
} }
......
...@@ -92,20 +92,20 @@ public class AdminReviewController { ...@@ -92,20 +92,20 @@ public class AdminReviewController {
return Rjx.jsonOk().setData(list).setPage(page); return Rjx.jsonOk().setData(list).setPage(page);
} }
@ResponseBody // @ResponseBody
@PostMapping("listNewAsianList") // @PostMapping("listNewAsianList")
@ApiOperation("查询亚新榜单") // @ApiOperation("查询亚新榜单")
@ApiImplicitParams({ // @ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="index", value="分页编号"), // @ApiImplicitParam(paramType="query", dataType="long", required=true, name="index", value="分页编号"),
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="limit", value="分页大小"), // @ApiImplicitParam(paramType="query", dataType="long", required=true, name="limit", value="分页大小"),
}) // })
public Object listNewAsian(Long index, Long limit) { // public Object listNewAsian(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);
List<Map<String, Object>> list = reviewService.listNewAsianList(page); // List<Map<String, Object>> list = reviewService.listNewAsianList(page);
return Rjx.jsonOk().setData(list).setPage(page); // return Rjx.jsonOk().setData(list).setPage(page);
} // }
@ResponseBody @ResponseBody
......
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