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

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

校园人力资源管理系统:学校部门管理,教室管理,学历信息管理,职务,教师职称,奖励,学历,社会关系,工作经历,培训管理,公告等信息功能等等。

请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述

适用

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

    @ResponseBody
    public Result clearLogin(){
        return employeeServiceImpl.clearLogin();
    }
    @PostMapping("/modifyPwd")
    @ResponseBody
    public Result modifyPwd(@RequestParam("oldPwd") String oldPwd,@RequestParam("newPwd") String newPwd){
        return employeeService.modifyPwd(oldPwd,newPwd);
    }
    @GetMapping("/loginYesOrNo")
    @ResponseBody
    public Result loginYesOrNo(){
    public ModelAndView login(Employee employee, HttpServletRequest request){
        Result result = employeeService.login(employee);
        if (result.getCode()==0){
            return new ModelAndView("redirect:/page/index");
        }
        request.setAttribute("pageMsg",result.getMsg());
        return new ModelAndView("forward:/page/login");
    }
    @PostMapping("/del_employees")
    @ResponseBody
    public ModelAndView deleteEmployees(@RequestParam("ids") String ids){
        employeeService.deleteEmployees(ids);
        return new ModelAndView("employeeInfo");
    }
    }
    @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("/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);
    public ModelAndView login(Employee employee, HttpServletRequest request){
        Result result = employeeService.login(employee);
        if (result.getCode()==0){
            return new ModelAndView("redirect:/page/index");
        }
        request.setAttribute("pageMsg",result.getMsg());
        return new ModelAndView("forward:/page/login");
    }
    @PostMapping("/del_employees")
    @ResponseBody
    public ModelAndView deleteEmployees(@RequestParam("ids") String ids){
        employeeService.deleteEmployees(ids);
        return new ModelAndView("employeeInfo");
    }
    @GetMapping("/getPage")
    public ModelAndView getPage(@RequestParam("currentPage") Integer currentPage){
        employeeService.getPageDatas(currentPage);
        return new ModelAndView("employeeInfo");
    }
    @PostMapping("/addEmployee")
    @ResponseBody
    public Result addEmployee(Employee employee){
        return employeeService.addEmployee(employee);
        return new ModelAndView("employeeInfo");
    }
}
社区管理控制层:
@RequestMapping("/Community")
@RestController
public class CommunityController {
    @Autowired
    ICommunityService communityService;
    @Autowired
        employeeService.deleteEmployees(ids);
        return new ModelAndView("employeeInfo");
    }
    @GetMapping("/getPage")
    public ModelAndView getPage(@RequestParam("currentPage") Integer currentPage){
        employeeService.getPageDatas(currentPage);
        return new ModelAndView("employeeInfo");
    }
    @PostMapping("/addEmployee")
    @ResponseBody
    public Result addEmployee(Employee employee){
        return employeeService.addEmployee(employee);
    }
    @GetMapping("/getUpdateEmployeeInfo")
    public ModelAndView getUpdateEmployeeInfo(){
        employeeServiceImpl.updateAllEmployeeToSession();
        return new ModelAndView("employeeInfo");
    }
    @GetMapping("/getMyAccount")
    public ModelAndView getMyAccount(){
        return new ModelAndView("myAccount");
    }
    @GetMapping("/getEmployee")
//        System.out.println("currentPage: "+currentPage);
        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);
    @ResponseBody
    public Result clearLogin(){
        return employeeServiceImpl.clearLogin();
    }
    @PostMapping("/modifyPwd")
    @ResponseBody
    public Result modifyPwd(@RequestParam("oldPwd") String oldPwd,@RequestParam("newPwd") String newPwd){
        return employeeService.modifyPwd(oldPwd,newPwd);
    }
    @GetMapping("/loginYesOrNo")
    @ResponseBody
    public Result loginYesOrNo(){
        employeeServiceImpl.getEmployeeLoginInfo();
        return new Result(0,"已登录",null);
    }
    @GetMapping("/getEmployeeByEmployeeNumber")
    @ResponseBody
    public Result getEmployeeByEmployeeNumber(@RequestParam("employeeNumber") String employeeNumber)throws ParseException {
        Employee employee = new Employee();
        employee.setEmployeeNumber(employeeNumber);
        return employeeService.getEmployeeByEmployeeNumber(employee);
        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);
        community.setPhenomenon(phenomenon);
        community.setEmployeeNumber(employeeNumber);
        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")
    public Result addDepartment(@RequestParam("departmentNumber") String departmentNumber, @RequestParam("departmentName") String departmentName,
                                      @RequestParam("departmentHead") String departmentHead, @RequestParam("departmentAddress") String departmentAddress,
                                      @RequestParam("departmentTel") String departmentTel, @RequestParam("departmentFax") String departmentFax)throws ParseException {
        SimpleDateFormat formatter=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Department department = new Department();
        department.setDepartmentName(departmentName);
        department.setDepartmentNumber(departmentNumber);
        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);
    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);
        community.setPhenomenon(phenomenon);
    public Result addEmployee(Employee employee){
        return employeeService.addEmployee(employee);
    }
    @GetMapping("/getUpdateEmployeeInfo")
    public ModelAndView getUpdateEmployeeInfo(){
        employeeServiceImpl.updateAllEmployeeToSession();
        return new ModelAndView("employeeInfo");
    }
    @GetMapping("/getMyAccount")
    public ModelAndView getMyAccount(){
        return new ModelAndView("myAccount");
    }
    @GetMapping("/getEmployee")
    @ResponseBody
    public Result getEmployee(@RequestParam("id") long id){
    @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);
        department.setDepartmentAddress(departmentAddress);
        department.setDepartmentHead(departmentHead);
        department.setDepartmentTel(departmentTel);
        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;
    @ResponseBody
    public Result upLoadMyImage(){
        return employeeService.upLoadMyImage();
    }
    @GetMapping("/clearLogin")
    @ResponseBody
    public Result clearLogin(){
        return employeeServiceImpl.clearLogin();
    }
    @PostMapping("/modifyPwd")
    @ResponseBody
    public Result modifyPwd(@RequestParam("oldPwd") String oldPwd,@RequestParam("newPwd") String newPwd){
        return employeeService.modifyPwd(oldPwd,newPwd);
    }
    @GetMapping("/loginYesOrNo")
    @ResponseBody
    public Result loginYesOrNo(){
        employeeServiceImpl.getEmployeeLoginInfo();
        return new Result(0,"已登录",null);
    }
    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);
        department.setDepartmentAddress(departmentAddress);
        department.setDepartmentHead(departmentHead);
        department.setDepartmentTel(departmentTel);
        department.setDepartmentFax(departmentFax);
    public ModelAndView getAllDepartments(){
        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);
        department.setDepartmentAddress(departmentAddress);
        department.setDepartmentHead(departmentHead);
    }
    @GetMapping("/clearLogin")
    @ResponseBody
    public Result clearLogin(){
        return employeeServiceImpl.clearLogin();
    }
    @PostMapping("/modifyPwd")
    @ResponseBody
    public Result modifyPwd(@RequestParam("oldPwd") String oldPwd,@RequestParam("newPwd") String newPwd){
        return employeeService.modifyPwd(oldPwd,newPwd);
    }
    @GetMapping("/loginYesOrNo")
    @ResponseBody
    public Result loginYesOrNo(){
        employeeServiceImpl.getEmployeeLoginInfo();
        return new Result(0,"已登录",null);
    }
    @GetMapping("/getEmployeeByEmployeeNumber")
    @ResponseBody
    public Result getEmployeeByEmployeeNumber(@RequestParam("employeeNumber") String employeeNumber)throws ParseException {
        Employee employee = new Employee();
        employee.setEmployeeNumber(employeeNumber);
        return employeeService.getEmployeeByEmployeeNumber(employee);
    }
    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);
        community.setPolitical(political);
        community.setNation(nation);
        community.setWork(work);
        community.setPost(post);
    @ResponseBody
    public Result upLoadMyImage(){
        return employeeService.upLoadMyImage();
    }
    @GetMapping("/clearLogin")
    @ResponseBody
    public Result clearLogin(){
        return employeeServiceImpl.clearLogin();
    }
    @PostMapping("/modifyPwd")
    @ResponseBody
    public Result modifyPwd(@RequestParam("oldPwd") String oldPwd,@RequestParam("newPwd") String newPwd){
        return employeeService.modifyPwd(oldPwd,newPwd);
    }
    @GetMapping("/loginYesOrNo")
    @ResponseBody
    public Result loginYesOrNo(){
        employeeServiceImpl.getEmployeeLoginInfo();
        return new Result(0,"已登录",null);
    }
        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);
        community.setPhenomenon(phenomenon);
        community.setEmployeeNumber(employeeNumber);
        return communityService.addCommunity(community);
    }
    @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 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);
        department.setDepartmentAddress(departmentAddress);
        department.setDepartmentHead(departmentHead);
        department.setDepartmentTel(departmentTel);
        department.setDepartmentFax(departmentFax);
        department.setId(id);
        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,
                               @RequestParam("employeeNumber")String employeeNumber)throws ParseException {

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
基于springboot_ssm的个人博客源代码: 个人博客系统主要用于发表个人博客,记录个人生活日常,学习心得,技术分享等,供他人浏览,查阅,评论等。本系统结构如下: (1)博主端: 登录模块:登入后台管理系统:首先进入登录页面,需要输入账号和密码。它会使用Shiro进行安全管理,对前台输入的密 码进行加密运算,然后与数据库中的进行比较。成功后才能登入后台系统。 博客管理模块: 博客管理功能分为写博客和博客信息管理。写博客是博主用来发表编写博客的,需要博客标题,然后选择博 客类型,最后将博客内容填入百度的富文本编辑器中,点击发布博客按钮即可发布博客。 博客类别管理模块:博主类别管理系统可以添加,修改和删除博客类型名称和排序序号。将会显示到首页的按日志类别区域。 游客可 以从这里查找相关的感兴趣的博客内容 评论信息管理模块:评论管理功能分为评论审核和评论信息管理两部分。评论审核是当有游客或自己发表了评论之后,博主需 要在后台管理系统中审核评论。若想将此评论显示在页面上则点击审核通过,否则点击审核不通过。 个人信息管理模块:修改博主的个人信息,可以修改昵称,个性签名,可以添加个人头像,修改个人简介; 系统管理功能模块:友情链接管理,修改密码,刷新系统缓存和安全退出,友情链接管理可以添加,修改,删除友情链接网址 (2)游客端: 查询博客: 查询具体哪一篇博客 查看博客内容: 查看博客内容 查看博主个人信息:查看博主个人简介 发表评论: 可以评论具体某篇博客 友情链接: 查看友情链接

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值