/** * 获得该学院下的所有专业 * * @return */ @RequestMapping("/admin/specialties") public String specialties(Model model, HttpSession session) { College college = (College) session.getAttribute("user"); List<Specialty> specialties = collegeService.getSpecialties(college.getId()); model.addAttribute("specialties", specialties); return "admin/specialties"; }
/** * 加载学生列表 * * @param session * @return */ @RequestMapping(value = "/college/students", method = RequestMethod.POST) @ResponseBody public Pager<Student> getStudents( Pager<Student> pager, StudentQueryDto dto, HttpSession session) { College college = (College) session.getAttribute("user"); dto.setColId(college.getId()); studentService.findStudents(pager, dto); return pager; }