|  | @@ -3,6 +3,8 @@ package com.ruoyi.sim.controller;
 | 
											
												
													
														|  |  import java.util.List;
 |  |  import java.util.List;
 | 
											
												
													
														|  |  import javax.servlet.http.HttpServletResponse;
 |  |  import javax.servlet.http.HttpServletResponse;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +import com.ruoyi.common.utils.SecurityUtils;
 | 
											
												
													
														|  | 
 |  | +import com.ruoyi.sim.domain.vo.RealExamVo;
 | 
											
												
													
														|  |  import com.ruoyi.sim.service.impl.RealExamService;
 |  |  import com.ruoyi.sim.service.impl.RealExamService;
 | 
											
												
													
														|  |  import io.swagger.annotations.Api;
 |  |  import io.swagger.annotations.Api;
 | 
											
												
													
														|  |  import io.swagger.annotations.ApiOperation;
 |  |  import io.swagger.annotations.ApiOperation;
 | 
											
										
											
												
													
														|  | @@ -46,14 +48,14 @@ public class RealExamController extends BaseController {
 | 
											
												
													
														|  |          return getDataTable(list);
 |  |          return getDataTable(list);
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -    @GetMapping("/student/exam/listByUserId/{userId}")
 |  | 
 | 
											
												
													
														|  | 
 |  | +    @GetMapping("/student/exam/listByUserId/")
 | 
											
												
													
														|  |      @ApiOperation("[学生]查询userId学生考试列表")
 |  |      @ApiOperation("[学生]查询userId学生考试列表")
 | 
											
												
													
														|  | -    public TableDataInfo listByUserId(@PathVariable("userId") Long userId) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +    public TableDataInfo listByUserId() {
 | 
											
												
													
														|  |          // todo:
 |  |          // todo:
 | 
											
												
													
														|  |          RealExam q = new RealExam();
 |  |          RealExam q = new RealExam();
 | 
											
												
													
														|  | -        q.setUserId(userId);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        q.setUserId(SecurityUtils.getUserId());
 | 
											
												
													
														|  |          startPage();
 |  |          startPage();
 | 
											
												
													
														|  | -        List<RealExam> list = realExamService.selectRealExamList(q);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        List<RealExamVo> list = realExamService.list(q);
 | 
											
												
													
														|  |          // todo:
 |  |          // todo:
 | 
											
												
													
														|  |          return getDataTable(list);
 |  |          return getDataTable(list);
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
										
											
												
													
														|  | @@ -94,7 +96,7 @@ public class RealExamController extends BaseController {
 | 
											
												
													
														|  |          return realExamService.studentLoopPostRealExam(examId);
 |  |          return realExamService.studentLoopPostRealExam(examId);
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -//    @GetMapping(value = "/student/{examId}")
 |  | 
 | 
											
												
													
														|  | 
 |  | +    //    @GetMapping(value = "/student/{examId}")
 | 
											
												
													
														|  |  //    @ApiOperation("[学生][轮询]获取考试详细信息")
 |  |  //    @ApiOperation("[学生][轮询]获取考试详细信息")
 | 
											
												
													
														|  |      public AjaxResult getInfoStudent(@PathVariable("examId") Long examId) {
 |  |      public AjaxResult getInfoStudent(@PathVariable("examId") Long examId) {
 | 
											
												
													
														|  |          return success(realExamService.selectRealExamByExamId(examId));
 |  |          return success(realExamService.selectRealExamByExamId(examId));
 |