Commit fdfc9ea1 authored by Quxl's avatar Quxl

x

parent 41ae7c8c
......@@ -42,7 +42,7 @@ public interface ReviewService {
Integer opt_state,
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 {
@Override
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
......
......@@ -120,8 +120,39 @@ public class ReviewServiceImpl implements ReviewService {
}
@Override
public List<Map<String, Object>> listNewAsianList(Page page) {
String sql = "select r.* from fc_review r, r, fc_review_record_ext rre where r.id = rre";
public List<Map<String, Object>> listNewAsianList(String keyword, Integer review_state, Integer playactor_type, Integer reveiw_round, Page page) {
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;
}
......
......@@ -92,20 +92,20 @@ public class AdminReviewController {
return Rjx.jsonOk().setData(list).setPage(page);
}
@ResponseBody
@PostMapping("listNewAsianList")
@ApiOperation("查询亚新榜单")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="index", value="分页编号"),
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="limit", value="分页大小"),
})
public Object listNewAsian(Long index, Long limit) {
index = index == null ? 1 : index;
limit = limit == null ? 20 : limit;
Page page = new Page(index, limit);
List<Map<String, Object>> list = reviewService.listNewAsianList(page);
return Rjx.jsonOk().setData(list).setPage(page);
}
// @ResponseBody
// @PostMapping("listNewAsianList")
// @ApiOperation("查询亚新榜单")
// @ApiImplicitParams({
// @ApiImplicitParam(paramType="query", dataType="long", required=true, name="index", value="分页编号"),
// @ApiImplicitParam(paramType="query", dataType="long", required=true, name="limit", value="分页大小"),
// })
// public Object listNewAsian(Long index, Long limit) {
// index = index == null ? 1 : index;
// limit = limit == null ? 20 : limit;
// Page page = new Page(index, limit);
// List<Map<String, Object>> list = reviewService.listNewAsianList(page);
// return Rjx.jsonOk().setData(list).setPage(page);
// }
@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