Commit 0687577e authored by Quxl's avatar Quxl

x

parent 278eaa5b
...@@ -106,4 +106,6 @@ public interface ReviewService { ...@@ -106,4 +106,6 @@ 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>> queryTimeoutList(String keyword, Page page);
} }
\ No newline at end of file
...@@ -686,4 +686,18 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -686,4 +686,18 @@ public class ReviewServiceImpl implements ReviewService {
return ugList; return ugList;
} }
@Override
public List<Map<String, Object>> queryTimeoutList(String keyword, Page page) {
Date date = DateUtil.day(new Date(), -2);
String sql = "select rr.*, u.username, mf.en_name, mf.cn_name from fc_review_record rr left join fc_user u on u.uid = rr.user_id left join fc_review r on r.id = rr.review_id left join fc_member_film mf on mf.id = r.film_id where rr.review_time is null and rr.create_time < ?";
if(StringUtil.isNotBlank(keyword)) {
sql = "select t.* from (" + sql + ") t where t.username like ? or t.en_name like ? or t.cn_name like ?";
String likestr = "%" + keyword + "%";
return jdbcTemplate.limit(sql, page, date,likestr, likestr, likestr);
} else {
return jdbcTemplate.limit(sql, page, date);
}
}
} }
\ No newline at end of file
...@@ -140,6 +140,28 @@ public class AdminReviewController { ...@@ -140,6 +140,28 @@ public class AdminReviewController {
return Rjx.jsonOk().set("userList", userList).set("groupList", groupList); return Rjx.jsonOk().set("userList", userList).set("groupList", groupList);
} }
@ResponseBody
@PostMapping("timeoutList")
@ApiOperation("超时列表")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="keyword", value="关键字"),
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="index", value="分页编号"),
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="limit", value="分页大小"),
})
public Object timeoutList(
String keyword,
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.queryTimeoutList(
keyword,
page);
return Rjx.jsonOk().setData(list).setPage(page);
}
@ResponseBody @ResponseBody
@Transactional @Transactional
@PostMapping("allot") @PostMapping("allot")
......
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