Merge remote-tracking branch 'origin/dev' into dev
| | |
| | | .authorizeRequests() |
| | | .antMatchers(securityIgnoreUrls.toArray(ignores)).permitAll() |
| | | .antMatchers("/api/admin/user/update/password").permitAll() |
| | | .antMatchers("/api/admin/**").hasRole(RoleEnum.ADMIN.getName()) |
| | | .antMatchers("/api/admin/**").hasAnyRole(RoleEnum.ADMIN.getName(),RoleEnum.TEACHER.getName()) |
| | | .antMatchers("/api/student/**").hasRole(RoleEnum.STUDENT.getName()) |
| | | .antMatchers("/api/register/**").anonymous() |
| | | .anyRequest().permitAll() |
| | |
| | | |
| | | return Result.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/selectQuestion/{id}", method = RequestMethod.POST) |
| | | public Result<ExamPaperQuestion> selectQuestion(@PathVariable Integer id) { |
| | | ExamPaperQuestion vo = examPaperQuestionService.selectById(id); |
| | | return Result.ok(vo); |
| | | } |
| | | |
| | | @RequestMapping(value = "/select/{id}", method = RequestMethod.POST) |
| | | public Result<ExamPaperEditRequestVO> select(@PathVariable Integer id) { |
| | | ExamPaperEditRequestVO vm = examPaperService.examPaperToVM(id); |
| | |
| | | .eq(ExamSubmitTemp::getUserId, webContext.getCurrentUser().getId()) |
| | | .one(); |
| | | if (Objects.nonNull(hasJoin)) { |
| | | //TODO:开发环境先关闭 |
| | | // 允许提交后继续作答 |
| | | // if(ExamSubmitTempStatusEnum.finish.equals(hasJoin.getStatus())){ |
| | | // throw new RuntimeException("您已提交试卷,请勿重复作答"); |
| | | // } |