Commit 2d0f62e6 authored by Quxl's avatar Quxl

x

parent 366dc972
...@@ -42,6 +42,8 @@ public interface ReviewService { ...@@ -42,6 +42,8 @@ public interface ReviewService {
Integer opt_state, Integer opt_state,
Page page); Page page);
List<Map<String, Object>> listNewAsianList(Page page);
/** /**
* 查询评委审片列表 * 查询评委审片列表
* @param is_review * @param is_review
...@@ -93,5 +95,5 @@ public interface ReviewService { ...@@ -93,5 +95,5 @@ public interface ReviewService {
void deleteDoubtfulById(Integer id); void deleteDoubtfulById(Integer id);
Map<String, Object> queryReviewRecordMapById(Integer record_id); Map<String, Object> queryReviewRecordMapById(Integer record_id);
} }
\ No newline at end of file
...@@ -30,7 +30,15 @@ public class AdminUserServiceImpl implements AdminUserService { ...@@ -30,7 +30,15 @@ public class AdminUserServiceImpl implements AdminUserService {
@Override @Override
public List<Map<String, Object>> queryGroupList(String keyword, Page page) { public List<Map<String, Object>> queryGroupList(String keyword, Page page) {
SqlWhere argEdit = new SqlWhere().lk(new String[]{"ug.group_id", "ug.group_name"}, keyword); SqlWhere argEdit = new SqlWhere().lk(new String[]{"ug.group_id", "ug.group_name"}, keyword);
String sql = "SELECT ug.group_id, ug.group_name, (select count(u.uid) from fc_user u where u.group_id = ug.group_id) count, (select group_concat(ugf.fun_id) from fc_user_group_fun ugf where ugf.group_id = ug.group_id group by ugf.group_id) funs FROM fc_user_group ug" + StringUtil.join(" and ", " where ", " ", " ", argEdit.getStringList()) ; String sql = ""
+ "SELECT "
+ "ug.group_id, "
+ "ug.group_name, "
+ "(select count(u.uid) from fc_user u where u.group_id = ug.group_id) count, "
+ "( SELECT group_concat( ugf.fun_id ) FROM fc_user_group_funs ugf WHERE ugf.group_id = ug.group_id GROUP BY ugf.group_id ) funs, "
+ "( SELECT group_concat( ugf.fun_id ) FROM fc_user_group_round ugr WHERE ugr.group_id = ug.group_id GROUP BY ugr.group_id ) rounds, "
+ "( SELECT group_concat( ugf.fun_id ) FROM fc_user_group_enroll uge WHERE uge.group_id = ug.group_id GROUP BY uge.group_id ) enrolls "
+ "FROM fc_user_group ug" + StringUtil.join(" and ", " where ", " ", " ", argEdit.getStringList()) ;
return jdbcTemplate.limit(sql, page, argEdit.getObjectList()); return jdbcTemplate.limit(sql, page, argEdit.getObjectList());
} }
......
...@@ -119,6 +119,12 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -119,6 +119,12 @@ public class ReviewServiceImpl implements ReviewService {
return jdbcTemplate.limit(sql, page, w1.getObjectList()); return jdbcTemplate.limit(sql, page, w1.getObjectList());
} }
@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";
return null;
}
@Override @Override
public List<Map<String, Object>> queryReviewListForUser( public List<Map<String, Object>> queryReviewListForUser(
boolean is_review, boolean is_review,
......
...@@ -92,6 +92,22 @@ public class AdminReviewController { ...@@ -92,6 +92,22 @@ public class AdminReviewController {
return Rjx.jsonOk().setData(list).setPage(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 @ResponseBody
@PostMapping("getReviewGroupUserList") @PostMapping("getReviewGroupUserList")
@ApiOperation("可分配的审片评委查询") @ApiOperation("可分配的审片评委查询")
......
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