Bladeren bron

字段修改

wangliang 4 jaren geleden
bovenliggende
commit
147251508b

+ 1 - 1
themis-backend/src/main/java/com/qmth/themis/backend/api/TEExamStudentController.java

@@ -72,7 +72,7 @@ public class TEExamStudentController {
     @ApiOperation(value = "考生查询接口")
     @RequestMapping(value = "/query", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "考生信息", response = TEExamStudentDto.class)})
-    public Result query(@ApiParam(value = "考试批次id", required = true) @RequestParam Long examId, @ApiParam(value = "考试批次id", required = false) @RequestParam(required = false) Long activityId, @ApiParam(value = "证件号", required = false) @RequestParam(required = false) String identity, @ApiParam(value = "姓名", required = false) @RequestParam(required = false) String name, @ApiParam(value = "考场代码", required = false) @RequestParam(required = false) String roomCode, @ApiParam(value = "科目代码", required = false) @RequestParam(required = false) String courseCode, @ApiParam(value = "年级", required = false) @RequestParam String grade, @ApiParam(value = "是否启用", required = false) @RequestParam(required = false) Integer enable, @ApiParam(value = "分页页码", required = true) @RequestParam int pageNumber, @ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
+    public Result query(@ApiParam(value = "考试批次id", required = true) @RequestParam Long examId, @ApiParam(value = "考试批次id", required = false) @RequestParam(required = false) Long activityId, @ApiParam(value = "证件号", required = false) @RequestParam(required = false) String identity, @ApiParam(value = "姓名", required = false) @RequestParam(required = false) String name, @ApiParam(value = "考场代码", required = false) @RequestParam(required = false) String roomCode, @ApiParam(value = "科目代码", required = false) @RequestParam(required = false) String courseCode, @ApiParam(value = "年级", required = false) @RequestParam(required = false) String grade, @ApiParam(value = "是否启用", required = false) @RequestParam(required = false) Integer enable, @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);
         }

+ 6 - 6
themis-backend/src/main/java/com/qmth/themis/backend/interceptor/AuthInterceptor.java

@@ -56,13 +56,13 @@ public class AuthInterceptor implements HandlerInterceptor {
         String url = request.getServletPath();
         String method = request.getMethod();
         if (url.equalsIgnoreCase(SystemConstant.ERROR)) {
-            if (response.getStatus() == HttpStatus.HTTP_NOT_FOUND) {
+//            if (response.getStatus() == HttpStatus.HTTP_NOT_FOUND) {
                 throw new BusinessException(ExceptionResultEnum.NOT_FOUND);
-            } else if (response.getStatus() == HttpStatus.HTTP_INTERNAL_ERROR) {
-                throw new BusinessException(ExceptionResultEnum.SERVICE_NOT_FOUND);
-            } else {
-                throw new BusinessException(ExceptionResultEnum.EXCEPTION_ERROR);
-            }
+//            } else if (response.getStatus() == HttpStatus.HTTP_INTERNAL_ERROR) {
+//                throw new BusinessException(ExceptionResultEnum.SERVICE_NOT_FOUND);
+//            } else {
+//                throw new BusinessException(ExceptionResultEnum.EXCEPTION_ERROR);
+//            }
         }
         Platform platform = Platform.valueOf(ServletUtil.getRequestPlatform());
         String deviceId = ServletUtil.getRequestDeviceId();

+ 6 - 6
themis-exam/src/main/java/com/qmth/themis/exam/interceptor/AuthInterceptor.java

@@ -60,13 +60,13 @@ public class AuthInterceptor implements HandlerInterceptor {
         String url = request.getServletPath();
         String method = request.getMethod();
         if (url.equalsIgnoreCase(SystemConstant.ERROR)) {
-            if (response.getStatus() == HttpStatus.HTTP_NOT_FOUND) {
+//            if (response.getStatus() == HttpStatus.HTTP_NOT_FOUND) {
                 throw new BusinessException(ExceptionResultEnum.NOT_FOUND);
-            } else if (response.getStatus() == HttpStatus.HTTP_INTERNAL_ERROR) {
-                throw new BusinessException(ExceptionResultEnum.SERVICE_NOT_FOUND);
-            } else {
-                throw new BusinessException(ExceptionResultEnum.EXCEPTION_ERROR);
-            }
+//            } else if (response.getStatus() == HttpStatus.HTTP_INTERNAL_ERROR) {
+//                throw new BusinessException(ExceptionResultEnum.SERVICE_NOT_FOUND);
+//            } else {
+//                throw new BusinessException(ExceptionResultEnum.EXCEPTION_ERROR);
+//            }
         }
         Platform platform = Platform.valueOf(ServletUtil.getRequestPlatform());
         String deviceId = ServletUtil.getRequestDeviceId();