基于javaweb+springboot的校园人力人事资源管理系统(java+Springboot+ssm+mysql+jsp+maven)

本文详细介绍了一款基于Java Web、Spring Boot、SSM架构的校园人力资源管理系统,涵盖了部门管理、教室管理等多个模块,包括学历、职务等信息的详细操作与管理。适合课程设计、毕业设计等实践项目。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

基于javaweb+springboot的校园人力人事资源管理系统(java+Springboot+ssm+mysql+jsp+maven)
校园人力资源管理系统:学校部门管理,教室管理,学历信息管理,职务,教师职称,奖励,学历,社会关系,工作经历,培训管理,公告等信息功能等等。
请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

//        System.out.println("就是Community:"+request.getSession().getAttribute("communityPage"));
        return new ModelAndView("community");
    }
    @PostMapping("/deleteCommunity")
    public Result deleteCommunity(@RequestParam("ids") String ids){
        return communityService.deleteCommunity(ids);
    }
    @PostMapping("/modifyCommunity")
    public Result modifyCommunity(@RequestParam("relation") String relation,
                                  @RequestParam("name") String name,
                                  @RequestParam("age") String age,
                                  @RequestParam("political") String political,
                                  @RequestParam("nation") String nation,
                                  @RequestParam("work") String work,
                                  @RequestParam("post") String post,
                                  @RequestParam("phenomenon") String phenomenon,
                                  @RequestParam("employeeNumber") String employeeNumber,
                                  @RequestParam("id") long id)throws ParseException{
        SimpleDateFormat formatter=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Community community = new Community();
        community.setRelation(relation);
        community.setName(name);
        community.setAge(age);
    }
    @GetMapping("/getAllCommunitys")
    public ModelAndView getAllCommunitys(){
        communityService.getAllCommunitys();
//        System.out.println("就是Community:"+request.getSession().getAttribute("communityPage"));
        return new ModelAndView("community");
    }
    @PostMapping("/deleteCommunity")
    public Result deleteCommunity(@RequestParam("ids") String ids){
        return communityService.deleteCommunity(ids);
    }
    @PostMapping("/modifyCommunity")
    public Result modifyCommunity(@RequestParam("relation") String relation,
                                  @RequestParam("name") String name,
                                  @RequestParam("age") String age,
                                  @RequestParam("political") String political,
                                  @RequestParam("nation") String nation,
                                  @RequestParam("work") String work,
        return new ModelAndView("community");
    }
    @GetMapping("/getCommunityById")
    public Result getCommunityById(@RequestParam("id") long id){
        return communityService.getCommunityById(id);
    }
    @GetMapping("/getCommunityByEmployeeNumber")
    public ModelAndView getCommunityByEmployeeNumber(@RequestParam("employeeNumber") String employeeNumber)throws ParseException{
        communityService.getCommunityByEmployeeNumber(employeeNumber);
        return new ModelAndView("community");
    }
    @PostMapping("/getEmployeeNumberByEmployeeName")
    public Result getEmployeeNumberByEmployeeName(@RequestParam("employeeName") String employeeName)throws ParseException{
        return  communityService.getEmployeeNumberByEmployeeName(employeeName);
    }
}
部门控制层:
@RequestMapping("/Department")
@RestController
public class DepartmentController {
    @Autowired
    IDepartmentService departmentService;
    @Autowired
    private HttpServletRequest request;
    @PostMapping("/addDepartment")
        employeeServiceImpl.getPersonByEmployeeNumber(employee);
        return new ModelAndView("employeeInfo");
    }
}
社区管理控制层:
@RequestMapping("/Community")
@RestController
public class CommunityController {
    @Autowired
    ICommunityService communityService;
    @Autowired
    private HttpServletRequest request;
    @PostMapping("/addCommunity")
    public Result addCommunity(@RequestParam("relation") String relation,
                               @RequestParam("name") String name,
                               @RequestParam("age") String age,
                               @RequestParam("political") String political,
                               @RequestParam("nation") String nation,
                               @RequestParam("work") String work,
                               @RequestParam("post") String post,
                               @RequestParam("phenomenon") String phenomenon,
    @GetMapping("/getPage")
    public ModelAndView getPage(@RequestParam("currentPage") Integer currentPage){
        departmentService.getPageDatas(currentPage);
//        System.out.println("currentPage: "+currentPage);
        return new ModelAndView("department");
    }
    @GetMapping("/getDepartmentById")
    public Result getDepartmentById(@RequestParam("id") long id){
        return departmentService.getDepartmentById(id);
    }
    @GetMapping("/getDepartmentByDepartmentNumber")
    public ModelAndView getDepartmentByDepartmentNumber(@RequestParam("departmentNumber") String departmentNumber)throws ParseException{
        departmentService.getDepartmentByDepartmentNumber(departmentNumber);
        return new ModelAndView("department");
    }
    @PostMapping("/getDepartmentNumberByDepartmentName")
    public Result getDepartmentNumberByDepartmentName(@RequestParam("departmentName") String departmentName)throws ParseException{
        return  departmentService.getDepartmentNumberByDepartmentName(departmentName);
    }
}
员工管理控制层:
    @ResponseBody
    public ModelAndView getPersonByEmployeeNumber(@RequestParam("employeeNumber") String employeeNumber){
        Employee employee = new Employee();
        employee.setEmployeeNumber(employeeNumber);
        employeeServiceImpl.getPersonByEmployeeNumber(employee);
        return new ModelAndView("employeeInfo");
    }
}
社区管理控制层:
@RequestMapping("/Community")
@RestController
public class CommunityController {
    @Autowired
    ICommunityService communityService;
    @Autowired
    private HttpServletRequest request;
@RestController
public class CommunityController {
    @Autowired
    ICommunityService communityService;
    @Autowired
    private HttpServletRequest request;
    @PostMapping("/addCommunity")
    public Result addCommunity(@RequestParam("relation") String relation,
                               @RequestParam("name") String name,
                               @RequestParam("age") String age,
                               @RequestParam("political") String political,
                               @RequestParam("nation") String nation,
                               @RequestParam("work") String work,
                               @RequestParam("post") String post,
                               @RequestParam("phenomenon") String phenomenon,
                               @RequestParam("employeeNumber")String employeeNumber)throws ParseException {
        SimpleDateFormat formatter=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Community community = new Community();
        community.setRelation(relation);
        community.setName(name);
        community.setAge(age);
        departmentService.getAllDepartments();
//        System.out.println("就是"+request.getSession().getAttribute("departmentPage"));
        return new ModelAndView("department");
    }
    @PostMapping("/deleteDepartment")
    public Result deleteDepartment(@RequestParam("ids") String ids){
        return departmentService.deleteDepartment(ids);
    }
    @PostMapping("/modifyDepartment")
    public Result modifyDepartment(@RequestParam("departmentNumber") String departmentNumber, @RequestParam("departmentName") String departmentName,
                                   @RequestParam("departmentHead") String departmentHead, @RequestParam("departmentAddress") String departmentAddress,
                                   @RequestParam("departmentTel") String departmentTel, @RequestParam("departmentFax") String departmentFax,
                                   @RequestParam("id") long id)throws ParseException{
        Department department = new Department();
        department.setDepartmentName(departmentName);
        department.setDepartmentNumber(departmentNumber);
    }
    @PostMapping("/deleteCommunity")
    public Result deleteCommunity(@RequestParam("ids") String ids){
        return communityService.deleteCommunity(ids);
    }
    @PostMapping("/modifyCommunity")
    public Result modifyCommunity(@RequestParam("relation") String relation,
                                  @RequestParam("name") String name,
                                  @RequestParam("age") String age,
                                  @RequestParam("political") String political,
                                  @RequestParam("nation") String nation,
                                  @RequestParam("work") String work,
                                  @RequestParam("post") String post,
                                  @RequestParam("phenomenon") String phenomenon,
                                  @RequestParam("employeeNumber") String employeeNumber,
                                  @RequestParam("id") long id)throws ParseException{
        SimpleDateFormat formatter=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Community community = new Community();
        community.setRelation(relation);
        community.setName(name);
        community.setAge(age);
        community.setPolitical(political);
        community.setNation(nation);
        community.setWork(work);
        community.setPost(post);
    @GetMapping("/getDepartmentById")
    public Result getDepartmentById(@RequestParam("id") long id){
        return departmentService.getDepartmentById(id);
    }
    @GetMapping("/getDepartmentByDepartmentNumber")
    public ModelAndView getDepartmentByDepartmentNumber(@RequestParam("departmentNumber") String departmentNumber)throws ParseException{
        departmentService.getDepartmentByDepartmentNumber(departmentNumber);
        return new ModelAndView("department");
    }
    @PostMapping("/getDepartmentNumberByDepartmentName")
    public Result getDepartmentNumberByDepartmentName(@RequestParam("departmentName") String departmentName)throws ParseException{
        return  departmentService.getDepartmentNumberByDepartmentName(departmentName);
    }
}
员工管理控制层:
@Controller
@RequestMapping("/employee")
public class EmployeeController {
    @Autowired
    private IEmployeeService employeeService;
    @Autowired
    private EmployeeServiceImpl employeeServiceImpl;
    @PostMapping("/login")
    public ModelAndView login(Employee employee, HttpServletRequest request){
        Result result = employeeService.login(employee);

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值