|
@@ -5,7 +5,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.qmth.themis.business.annotation.ApiJsonObject;
|
|
|
import com.qmth.themis.business.annotation.ApiJsonProperty;
|
|
|
import com.qmth.themis.business.base.BasePage;
|
|
|
-import com.qmth.themis.business.bean.backend.ReexamListNotDongBean;
|
|
|
+import com.qmth.themis.business.bean.backend.ReexamListDoneBean;
|
|
|
+import com.qmth.themis.business.bean.backend.ReexamListNotDoneBean;
|
|
|
import com.qmth.themis.business.bean.backend.ReexamListRequestBean;
|
|
|
import com.qmth.themis.business.cache.RedisKeyHelper;
|
|
|
import com.qmth.themis.business.cache.bean.ExamCacheBean;
|
|
@@ -221,9 +222,7 @@ public class TEExamReexamController {
|
|
|
}
|
|
|
IPage<ReexamListRequestBean> reexamListRequestBeanIPage = teExamReexamService.reexamPageRequestList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, courseCode, name, identity, userId);
|
|
|
BasePage basePage = new BasePage(reexamListRequestBeanIPage.getRecords(), reexamListRequestBeanIPage.getCurrent(), reexamListRequestBeanIPage.getSize(), reexamListRequestBeanIPage.getTotal());
|
|
|
- Map map = new HashMap<>();
|
|
|
- map.put(SystemConstant.RECORDS, basePage);
|
|
|
- return ResultUtil.ok(map);
|
|
|
+ return ResultUtil.ok(basePage);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "重考待审列表接口")
|
|
@@ -245,9 +244,9 @@ public class TEExamReexamController {
|
|
|
throw new BusinessException(ExceptionResultEnum.EXAM_ID_IS_NULL);
|
|
|
}
|
|
|
TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
|
|
|
- IPage<ReexamListNotDongBean> reexamListNotDongBeanIPage = teExamReexamService.reexamPageNotDoneList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, courseCode, name, identity, reason, reasonStartTime, reasonEndTime, applyName, tbUser.getId());
|
|
|
+ IPage<ReexamListNotDoneBean> reexamListNotDongBeanIPage = teExamReexamService.reexamPageNotDoneList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, courseCode, name, identity, reason, reasonStartTime, reasonEndTime, applyName, tbUser.getId());
|
|
|
BasePage basePage = new BasePage(reexamListNotDongBeanIPage.getRecords(), reexamListNotDongBeanIPage.getCurrent(), reexamListNotDongBeanIPage.getSize(), reexamListNotDongBeanIPage.getTotal());
|
|
|
- return ResultUtil.ok(Collections.singletonMap(SystemConstant.RECORDS, basePage));
|
|
|
+ return ResultUtil.ok(basePage);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "重考已审列表接口")
|
|
@@ -259,20 +258,18 @@ public class TEExamReexamController {
|
|
|
@ApiParam(value = "科目代码", required = false) @RequestParam(required = false) String courseCode,
|
|
|
@ApiParam(value = "姓名", required = false) @RequestParam(required = false) String name,
|
|
|
@ApiParam(value = "证件号", required = false) @RequestParam(required = false) String identity,
|
|
|
+ @ApiParam(value = "审核状态", required = false) @RequestParam(required = false) Integer auditingStatus,
|
|
|
+ @ApiParam(value = "申请开始时间", required = false) @RequestParam(required = false) String reasonStartTime,
|
|
|
+ @ApiParam(value = "申请结束时间", required = false) @RequestParam(required = false) String reasonEndTime,
|
|
|
+ @ApiParam(value = "申请人", required = false) @RequestParam(required = false) String applyName,
|
|
|
@ApiParam(value = "分页页码", required = true) @RequestParam int pageNumber,
|
|
|
@ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
|
|
|
if (Objects.isNull(examId) || Objects.equals(examId, "")) {
|
|
|
throw new BusinessException(ExceptionResultEnum.EXAM_ID_IS_NULL);
|
|
|
}
|
|
|
TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
|
|
|
- AuthDto authDto = (AuthDto) redisUtil.get(SystemConstant.userOauth + "::" + tbUser.getId());
|
|
|
- //如果有监考员角色,只能查看自己所监考的考场,巡考员和管理员则可以查看全部考场
|
|
|
- Long userId = null;
|
|
|
- if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
|
|
|
- userId = tbUser.getId();
|
|
|
- }
|
|
|
- IPage<ReexamListRequestBean> reexamListRequestBeanIPage = teExamReexamService.reexamPageRequestList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, courseCode, name, identity, userId);
|
|
|
+ IPage<ReexamListDoneBean> reexamListRequestBeanIPage = teExamReexamService.reexamPageDoneList(new Page<>(pageNumber, pageSize), examId, examActivityId, roomCode, courseCode, name, identity, auditingStatus,reasonStartTime,reasonEndTime,applyName,tbUser.getId());
|
|
|
BasePage basePage = new BasePage(reexamListRequestBeanIPage.getRecords(), reexamListRequestBeanIPage.getCurrent(), reexamListRequestBeanIPage.getSize(), reexamListRequestBeanIPage.getTotal());
|
|
|
- return ResultUtil.ok(Collections.singletonMap(SystemConstant.RECORDS, basePage));
|
|
|
+ return ResultUtil.ok(basePage);
|
|
|
}
|
|
|
}
|