Beispiel #1
0
  /**
   * 获得该学院下的所有专业
   *
   * @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";
  }
Beispiel #2
0
 /**
  * 加载学生列表
  *
  * @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;
 }