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"; } }
最近下载更多
pangzhihui LV12
4月17日
自由吃柚子 LV2
3月26日
3090754224 LV2
1月7日
李朝磊 LV18
2023年12月30日
xiongwei11231 LV8
2023年12月12日
liuxiao2 LV16
2023年11月7日
蹇金金 LV7
2023年11月6日
wwewww LV4
2023年11月3日
wcheng LV2
2023年10月18日
李亮 LV19
2023年8月28日
最近浏览更多
自由吃柚子 LV2
3月26日
微信网友_6914427966033920 LV4
3月19日
XJH939 LV1
3月14日
xinnnnn LV1
2月26日
admin_z LV22
1月29日
周青松5 LV2
1月15日
3090754224 LV2
1月7日
minjing123 LV8
1月4日
李朝磊 LV18
2023年12月30日
zzzzzzz09173
2023年12月27日
暂无贡献等级