Commit 93c16f34 authored by Quxl's avatar Quxl

x

parent 122487c8
...@@ -108,6 +108,8 @@ public interface ReviewService { ...@@ -108,6 +108,8 @@ public interface ReviewService {
List<Map<String, Object>> queryUserGroupListByReviewRecord(int enroll_type_id, Integer review_round); List<Map<String, Object>> queryUserGroupListByReviewRecord(int enroll_type_id, Integer review_round);
List<Map<String, Object>> queryBestMvGroupList(Integer review_round);
List<Map<String, Object>> queryTimeoutList(String keyword, Page page); List<Map<String, Object>> queryTimeoutList(String keyword, Page page);
List<Map<String, Object>> queryReviewRecordLogList(String username, Integer enroll_type_id, Integer review_state, Page page); List<Map<String, Object>> queryReviewRecordLogList(String username, Integer enroll_type_id, Integer review_state, Page page);
......
...@@ -562,6 +562,12 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -562,6 +562,12 @@ public class ReviewServiceImpl implements ReviewService {
return ugList; return ugList;
} }
@Override
public List<Map<String, Object>> queryBestMvGroupList(Integer review_round) {
String sql = "select ug.group_id, ug.group_name from fc_user_group ug, fc_user_group_round ugr, fc_user_group_enroll uge where ug.group_id = ugr.group_id and ug.group_id = uge.group_id and ugr.review_round = " + review_round + " and uge.enroll_type_id = 2 group by ug.group_id, ug.group_name";
return jdbcTemplate.queryForList(sql);
}
@Override @Override
public List<Map<String, Object>> queryTimeoutList(String keyword, Page page) { public List<Map<String, Object>> queryTimeoutList(String keyword, Page page) {
Date date = DateUtil.day(new Date(), -2); Date date = DateUtil.day(new Date(), -2);
......
...@@ -113,7 +113,7 @@ public class AdminReviewController { ...@@ -113,7 +113,7 @@ public class AdminReviewController {
@ApiImplicitParam(paramType="query", dataType="int", name="review_round", value="2,3"), @ApiImplicitParam(paramType="query", dataType="int", name="review_round", value="2,3"),
}) })
public Object getBestMvGroupList(Integer review_round) { public Object getBestMvGroupList(Integer review_round) {
List<Map<String, Object>> ugList = reviewService.queryUserGroupListByReviewRecord(2, review_round); List<Map<String, Object>> ugList = reviewService.queryBestMvGroupList(review_round);
return Rjx.jsonOk().setData(ugList); return Rjx.jsonOk().setData(ugList);
} }
......
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