部门员工管理java_SSM+Layui开发员工部门管理系统

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 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;

}

}

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值