1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| @RequestMapping("/getResult") public JsonResponse getResult(@RequestParam(required = false, defaultValue = "1") int currentPage, @RequestParam(required = false, defaultValue = "false") boolean desc, QueryResultOption option){ return new JsonResponse(JsonResponse.OK, studentService.getResult(currentPage, desc, option), null); }
@RequestMapping("/getResultByDepartment") @Deprecated public JsonResponse getResultByDepartment(int departmentId, @RequestParam(required = false, defaultValue = "1") int currentPage, @RequestParam(required = false, defaultValue = "false") boolean desc){ return new JsonResponse(JsonResponse.OK, studentService.getResultByDepartment(departmentId, currentPage, desc), null); }
@RequestMapping("/getResultByMajor") @Deprecated public JsonResponse getResultByMajor(String majorId, @RequestParam(required = false, defaultValue = "1") int currentPage, @RequestParam(required = false, defaultValue = "false") boolean desc){ return new JsonResponse(JsonResponse.OK, studentService.getResultByMajor(majorId, currentPage, desc), null); }
@RequestMapping("/searchStudent") @Deprecated public JsonResponse searchStudent(@RequestParam(required = false, defaultValue = "1") int currentPage,String keyword){ return new JsonResponse(JsonResponse.OK, studentService.searchStudent(currentPage,keyword), null); }
@RequestMapping("/searchStudentByCandidate") public JsonResponse searchStudentByCandidate(@RequestParam(required = false, defaultValue = "1") int currentPage,String keyword){ return new JsonResponse(JsonResponse.OK, studentService.searchStudentByCandidate(currentPage,keyword), null); }
@RequestMapping("/getStudentBeforeRank") public JsonResponse getStudentBeforeRank(@RequestParam(required = false, defaultValue = "1") int currentPage, int rank){ return new JsonResponse(JsonResponse.OK, studentService.getStudentBeforeRank(currentPage, rank), null); }
@RequestMapping("/getStatisticsResult") public JsonResponse getStatisticsResult(){ return new JsonResponse(JsonResponse.OK, studentService.getStatisticsResult(), null); }
@RequestMapping("/getStatisticsResultInDepartment")
|