|
@@ -64,12 +64,31 @@ public class ExamInfoController extends BaseController {
|
|
|
})
|
|
|
public ResponsePageInfo<ExamInfoVipVo> list(@ModelAttribute ExamInfoDto examInfoDto) {
|
|
|
startPage();
|
|
|
+ UserInfo userInfo = SecurityUtils.getLoginUser().getStudent();
|
|
|
+ examInfoDto.setUserId(userInfo.getId());
|
|
|
List<ExamInfoVipVo> list = examInfoService.selectExamInfoList(examInfoDto);
|
|
|
+ return toResponsePageInfo(list);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 我的考场信息列表
|
|
|
+ */
|
|
|
+ @GetMapping("/myList")
|
|
|
+ @ApiOperation("我的考场信息列表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "pageNum", value = "当前页码", dataType = "int", paramType = "query", required = false),
|
|
|
+ @ApiImplicitParam(name = "pageSize", value = "每页数据量", dataType = "int", paramType = "query", required = false),
|
|
|
+ })
|
|
|
+ public ResponsePageInfo<ExamInfoVipVo> myList(@ModelAttribute ExamInfoDto examInfoDto) {
|
|
|
+ startPage();
|
|
|
UserInfo userInfo = SecurityUtils.getLoginUser().getStudent();
|
|
|
examInfoDto.setUserId(userInfo.getId());
|
|
|
+ List<ExamInfoVipVo> list = examInfoService.selectMyExamInfoList(examInfoDto);
|
|
|
return toResponsePageInfo(list);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* 获取考场信息详细信息
|
|
|
*/
|