首页>代码>SSM+Layui开发员工部门管理系统>/部门管理系统SSM/sysDept/src/com/hhtc/controller/HrefController.java
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.Employee;
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("/hrefaddus")
	public ModelAndView addus(Model model) {
		ModelAndView mav = new ModelAndView("admin/addus");
		return mav;
	}
	@RequestMapping("/hrefmohuname")
	public ModelAndView hrefmohuname(String username,Model model,HttpSession session) {
		List<Employee> list=adminService.selectbyname(username);
		session.setAttribute("list", list);//servlet中的request.setAttribute("list", list);
		ModelAndView mav = new ModelAndView("admin/mohuname");
		return mav;
	}
	/**
	 * 看人力 资源部详情
	 * @param id
	 * @param model
	 * @return
	 */
	@RequestMapping("/hrefustail")
	public String detailus(String id,Model model) {
		Employee employee=adminService.selectoneus(id);
		model.addAttribute("employee",employee);
		return "admin/usdetail";
	}
	/**
	 * 看行政员工详情
	 * @param id
	 * @param model
	 * @return
	 */
	@RequestMapping("/hrefXzDetail")
	public String hrefXzDetail(String id,Model model) {
		Employee employee=adminService.selectoneus(id);
		model.addAttribute("employee",employee);
		return "admin/xzDetail";
	}
	/**
	 * 修改员工信息
	 * @param id
	 * @param model
	 * @return
	 */
	@RequestMapping("/hrefupdateus")
	public String updateus(String id,Model model) {
		Employee employee=adminService.selectoneus(id);
		model.addAttribute("employee",employee);
		return "admin/updateus";
	}
	/**
	 * 修改行政部门员工信息
	 * @param id
	 * @param model
	 * @return
	 */
	@RequestMapping("/hrefupdateXz")
	public String hrefupdateXz(String id,Model model) {
		Employee employee=adminService.selectoneus(id);
		model.addAttribute("employee",employee);
		return "admin/updateXz";
	}
	
	/**
	 * 人力资源管理
	 * @param model
	 * @return
	 */
	@RequestMapping("/hrefJsManage")
	public ModelAndView hrefJsManage(Model model) {
		ModelAndView mav = new ModelAndView("admin/jsmanage");
		return mav;
	}
	/**
	 * 行政部管理 
	 * @param model
	 * @return
	 */
	@RequestMapping("/hrefXzManage")
	public ModelAndView hrefXzManage(Model model) {
		ModelAndView mav = new ModelAndView("admin/xzmanage");
		return mav;
	}


}
最近下载更多
微信网友_6372890284232704  LV4 2023年8月30日
cunbie  LV4 2023年6月13日
841146628  LV4 2023年6月12日
bismarcktirppitz  LV2 2023年6月6日
十一  LV4 2023年5月29日
lllllllllcc  LV2 2023年5月25日
ly4910  LV3 2023年5月15日
周敏国  LV9 2023年4月13日
我是大帅哥  LV11 2023年3月29日
boqiu2016  LV17 2023年3月15日
最近浏览更多
邓艺妮 4月3日
暂无贡献等级
adscazsc 3月12日
暂无贡献等级
xxg634460601  LV3 2月22日
阿卡丽  LV3 2月7日
admin_z  LV22 1月29日
zeng666 2023年12月28日
暂无贡献等级
Dominick  LV14 2023年12月27日
WBelong  LV7 2023年12月27日
wwwww816  LV3 2023年12月19日
liuxiao2  LV16 2023年10月25日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友