Commit 12589d02 authored by Quxl's avatar Quxl

x

parent e17764e9
......@@ -139,9 +139,9 @@ public class ReviewServiceImpl implements ReviewService {
@Override
public List<Map<String, Object>> queryBestMvListByGroup(String keyword, Integer user_group_id, Integer review_round, String ext_type, Page page) {
XRException.assertNotBlank("选片轮数不能为空", review_round);
String sql = "select r.* from fc_review r, fc_review_record rr, fc_review_record_ext rre where rre.record_id = rr.id and rr.review_id = r.id and r.enroll_type_id = 2 and review_round >= " + review_round + " group by rr.review_id, rre.record_id, ";
String sql = "select * from fc_report_asia_new where user_gorup_id = ? and review_round = ?";
//TODO
return null;
return jdbcTemplate.limit(sql, page);
}
@Override
......
......@@ -140,6 +140,7 @@ public class AdminReviewController {
@ApiImplicitParam(paramType="query", dataType="int", name="review_round", value="第2或3选(2,3)"),
@ApiImplicitParam(paramType="query", dataType="long", name="index", value="分页编号"),
@ApiImplicitParam(paramType="query", dataType="long", name="limit", value="分页大小"),
@ApiImplicitParam(paramType="query", dataType="string", name="limitKey", value="分页排序", allowMultiple=true),
})
public Object getBestMvList(
String keyword,
......@@ -147,10 +148,11 @@ public class AdminReviewController {
Integer review_round,
String ext_type,
Long index,
Long limit) {
Long limit,
String[] limitKey) {
index = index == null ? 1 : index;
limit = limit == null ? 20 : limit;
Page page = new Page(index, limit);
Page page = new Page(index, limit, limitKey);
List<Map<String, Object>> list = reviewService.queryBestMvListByGroup(keyword, user_group_id, review_round, ext_type, 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