package com.hhtc.controller; import java.util.List; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import com.hhtc.po.Student; import com.hhtc.po.Teacher; import com.hhtc.service.AdminService; @Controller public class HrefController { @Autowired private AdminService adminService; @RequestMapping("/index") public ModelAndView index(Model model) { ModelAndView mav = new ModelAndView("index"); return mav; } //学生 @RequestMapping("/hrefaddstu") public ModelAndView addstu(Model model) { ModelAndView mav = new ModelAndView("admin/addstu"); return mav; } @RequestMapping("/hrefmohuname") public ModelAndView hrefmohuname(String stuname,Model model,HttpSession session) { List<Student> list=adminService.selectbyname(stuname); session.setAttribute("list", list); ModelAndView mav = new ModelAndView("admin/mohuname"); return mav; } @RequestMapping("/hrefxiustu") public String xiustu(String id,Model model) { Student student=adminService.selectone(id); model.addAttribute("student",student); return "admin/updatestu"; } @RequestMapping("/hrefstumanage") public ModelAndView hrefstumanage(Model model) { ModelAndView mav = new ModelAndView("admin/stumanage"); return mav; } //老师 @RequestMapping("/hrefaddtea") public ModelAndView hrefaddtea(Model model) { ModelAndView mav = new ModelAndView("admin/addtea"); return mav; } @RequestMapping("/hrefteamanage") public ModelAndView hrefteamanage(Model model) { ModelAndView mav = new ModelAndView("admin/teamanage"); return mav; } @RequestMapping("/hrefmohunametea") public ModelAndView hrefmohunametea(String teaname,Model model,HttpSession session) { List<Teacher> list=adminService.selectbynametea(teaname); session.setAttribute("tealist",list); ModelAndView mav = new ModelAndView("admin/mohuname2"); return mav; } @RequestMapping("/hrefxiutea") public String hrefxiutea(String id,Model model) { Teacher teacher=adminService.selectonetea(id); model.addAttribute("teacher",teacher); return "admin/updatetea"; } }

xiao小果 LV13
2024年8月19日
赵鑫cdsaljkdfsa LV11
2024年7月2日
xzg123456 LV6
2024年6月18日
hongdongdong LV14
2024年6月18日
卢旯旯 LV4
2024年6月10日
勿念时光 LV1
2024年6月7日
pangzhihui LV14
2024年4月17日
自由吃柚子 LV2
2024年3月26日
3090754224 LV2
2024年1月7日
李朝磊 LV18
2023年12月30日

SX520886 LV6
4月24日
tomsrt
4月22日
暂无贡献等级
哪里的完整版 LV8
3月10日
xiaoaitx LV8
1月1日
ma406805131 LV19
2024年12月26日
Rubiai LV1
2024年12月26日
Ella0902
2024年12月18日
暂无贡献等级
xinshou11111x
2024年12月17日
暂无贡献等级
571818771 LV3
2024年12月16日
2194192290li LV1
2024年12月2日