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

news2024/12/24 20:11:31

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

运行环境

Java≥8、MySQL≥5.7

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

适用

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

功能说明

20220519001554

20220519001555

20220519001556

20220519001557

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

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

部门控制层:

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

department.setDepartmentAddress(departmentAddress);

department.setDepartmentHead(departmentHead);

department.setDepartmentTel(departmentTel);

department.setDepartmentFax(departmentFax);

return departmentService.addDepartment(department);

@GetMapping(“/getAllDepartments”)

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

department.setDepartmentTel(departmentTel);

department.setDepartmentFax(departmentFax);

department.setId(id);

// System.out.println("department修改: "+ department);

return departmentService.modifyDepartment(department);

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

员工管理控制层:

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

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

@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){

Employee employee = new Employee();

employee.setId(id);

return employeeService.getEmployee(employee);

@PostMapping(“/updateEmployeeById”)

@ResponseBody

public Result updateEmployeeById(Employee employee){

return employeeService.updateEmployeeById(employee);

@PostMapping(“/getEmployeeByNumber”)

@ResponseBody

public Result getEmployeeByNumber(Employee employee){

return employeeService.getEmployeeByNumber(employee.getEmployeeNumber());

@PostMapping(“/updateEmployeeByNumber”)

@ResponseBody

public Result updateEmployeeByNumber(Employee employee){

return employeeService.updateEmployeeByNumber(employee);

@PostMapping(“/uploadMyImage”)

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

@GetMapping(“/getEmployeeByEmployeeNumber”)

@ResponseBody

public Result getEmployeeByEmployeeNumber(@RequestParam(“employeeNumber”) String employeeNumber)throws ParseException {

Employee employee = new Employee();

employee.setEmployeeNumber(employeeNumber);

return employeeService.getEmployeeByEmployeeNumber(employee);

@PostMapping(“/getEmployeeByName”)

@ResponseBody

public Result getEmployeeByName(Employee employee)throws ParseException{

return employeeService.getEmployeeByName(employee.getEmployeeName());

@GetMapping(“/getPersonByEmployeeNumber”)

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

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

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

community.setId(id);

return communityService.modifyCommunity(community);

@GetMapping(“/getPage”)

public ModelAndView getPage(@RequestParam(“currentPage”) Integer currentPage){

communityService.getPageDatas(currentPage);

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

return new ModelAndView(“community”);

@PostMapping(“/getEmployeeNumberByEmployeeName”)

public Result getEmployeeNumberByEmployeeName(@RequestParam(“employeeName”) String employeeName)throws ParseException{

return communityService.getEmployeeNumberByEmployeeName(employeeName);


本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1080.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

两种查看电脑连接的wifi密码的办法!

1.使用一行命令行语句 只需要同时按下WinR,打开命令行窗口,输入cmd,然后进入了Dos操作界面,输入 netsh wlan show profiles WIFI名称 keyclear注意:这里的名称是你自己电脑所连接的名称 即可查看电脑锁连接WIF的详细…

【K8S系列】在 Linux 上安装 KubeSphere

目录 1、多节点安装介绍 2、概念介绍 3、安装 3.1 准备主机 系统要求 3.2 下载 KubeKey 3.3 编辑配置文件 文件关键字介绍 3.3 使用配置文件创建集群 3.4 验证安装 3.5 启用 kubectl 自动补全 1、多节点安装介绍 在生产环境中,由于单节点集群资源有限、…

初识C++ (一)

这里写目录标题一. 什么是C ?二. 关键字三. 命名空间namespace关键字命名域的使用四. c输入输出hello world输入结语经过一个多月的学习终于进入C啦 希望自己能够保持对编程的热爱 继续学习下去! 并且将学习到的知识传递给大家 一. 什么是C ?…

基于javaweb的在线心理测评系统设计和实现(java+springboot+ssm+mysql+jsp)

基于javaweb的在线心理测评系统设计和实现(javaspringbootssmmysqljsp) 运行环境 Java≥8、MySQL≥5.7 开发工具 eclipse/idea/myeclipse/sts等均可配置运行 适用 课程设计,大作业,毕业设计,项目练习,学习演示等 功能说明 …

类和对象 (三)

目录 <一>const成员 <二> 取地址及const取地址操作符重载 <三>再谈构造函数&#xff08;初始化列表&#xff09; 1.构造函数体赋值 2.初始化列表 <四>explicit关键字 <五>static成员 概念 <六>友元函数 <七>友元类 <八>内部类…

2021年上半年软件设计师上午真题及答案解析(五)

41、42、43、当UML状态图用于对系统、类或用例的动态方面建模时&#xff0c;通常是对&#xff08; &#xff09;建模。以下UML状态图中&#xff0c;假设活动的状态是A&#xff0c;事件b0发生并且a>5&#xff0c;发生条件是c状态到d状态的转换条件的是&#xff08; &#xff…

HTTP缓存

http缓存分为&#xff1a;强制缓存和协商缓存 强缓存 不需要客户端就不需要向服务器发送请求&#xff0c;直接使用本地缓存 对于强缓存的资源&#xff0c;可以看到返回的状态码是 200&#xff0c;并且会显示 from memory cache/from disk cache&#xff0c;强缓存是通过 Exp…

Go语言开发k8s-04-Service操作

文章目录1. 结构体1.1 ServiceList1.2 Service1.3 TypeMeta1.4 ObjectMeta1.5 ServiceSpec1.6 ServiceStatus1.7 对照yml文件示例2. Get List语法完整示例3. Create语法完整示例4. Get Service语法完整示例5. Update Service语法完整示例6. Delete Service语法完整示例1. 结构体…

python基于PHP的个人信息管理系统

随着现代工作的日趋繁忙,人们越来越意识到信息管理的重要性与必要性,而具有个性化特色的个人信息管理系统能够高速有效的管理个人信息,从而提升自己的工作效率 社会的发展给人们的生活压力越来越大,每天所要面临的问题也越来越多,面对如此多的事情需要去处理往往会顾此失彼,将很…

SpringCloud-Hystrix服务治理

简介 Hystrix是用于服务熔断&#xff0c;容错管理工具&#xff0c;旨在通过熔断机制控制服务和第三方库的节点&#xff0c;从而对延迟和故障提供更强大的容错能力。 服务降级 当服务器压力剧增的情况下&#xff0c;根据实际业务情况及流量&#xff0c;对一些服务和页面有策略的…

Web前端入门(十八)圆角边框及盒子阴影

总目录&#xff1a;https://blog.csdn.net/treesorshining/article/details/124725459 文章目录1.圆角边框2.盒子阴影2.1 开发中阴影常用语句2.2 文字阴影1.圆角边框 在 CSS3 中&#xff0c;新增了圆角边框样式&#xff0c;这样盒子就可以变圆角了。border-radius 属性用于设置…

牛客刷题总结——Python入门03:运算符

&#x1f935;‍♂️ 个人主页: 北极的三哈 个人主页 &#x1f468;‍&#x1f4bb; 作者简介&#xff1a;Python领域优质创作者。 &#x1f4d2; 系列专栏&#xff1a;《牛客题库-Python篇》 &#x1f310;推荐《牛客网》——找工作神器|笔试题库|面试经验|实习经验内推&am…

【Linux】分析缓冲区,刷新机制,FILE

文章目录一、Linux的缓冲区(一) 用户层缓冲区(二) 内核层缓冲区&#xff08;Kernel Buffer Cache&#xff09;验证buffer增加和减少释放缓存二、缓冲区的刷新策略(一) 用户层缓冲区刷新策略(二) 内核层缓冲区刷新策略三、探究缓冲区常见问题的产生(一) 由于缺失换行符导致内容没…

相对于java,C++中的那些神奇语法

空指针还可以调用成员函数 #include <cstdio>class Person { public:void sayHello() {printf("hello!\n");} };int main() {auto * p new Person;p->sayHello();p nullptr;p->sayHello();return 0; }运行结果如下&#xff1a; hello! hello!进程已结…

【深入理解java虚拟机】JVM故障处理工具介绍

目录前言一、jps&#xff1a;虚拟机进程状况工具一、一 输出远程机器信息二、jstat&#xff1a;虚拟机统计信息监视工具三、jinfo&#xff1a; Java配置信息工具四、jmap&#xff1a; Java内存映像工具五、jhat&#xff1a;虚拟机堆转储快照分析工具六、jstack&#xff1a; Jav…

问:毁掉一个人,有多容易?答:年龄到了就可以

人到中年&#xff0c;有点难。 曾在虎扑论坛上看到一篇爆帖&#xff1a; 标题是《loser回忆录&#xff1a;一年前我月薪两万被人叫X总&#xff0c;如今在美团送外卖》&#xff0c;63万浏览量&#xff0c;回复也超过了2300条。 如题&#xff0c;帖子的主人公是一个35岁的男人…

node-sass安装失败解决方法

node-sass安装失败&#xff0c;提示如下&#xff1a; gyp verb check python checking for Python executable "python" in the PATH gyp verb which succeeded python D:Program FilesPython38python.EXE gyp ERR! configure error gyp ERR! stack Error: Command f…

nvidia显卡驱动、cuda、cudnn、tensorflow对应版本

1、下载显卡驱动 在nvidia官网下载驱动&#xff0c;驱动官网选择设备的驱动进行搜索下载即可&#xff0c;搜索时注意对应的操作系统 一般为安装NVIDIA Studio驱动版本&#xff0c;GeForce Game Ready适用于游戏玩家&#xff0c;下面是两个版本区别的官方解释 下载完的驱动会以…

关键路径 ← AOE网

【问题描述】 给定一个只有一个源点和一个汇点的有向图&#xff0c;要求求出所有的关键活动&#xff0c;并计算完成该工程至少需要多少时间。【输入格式】 第一行包含两个整数 n 和 m&#xff0c;表示顶点数和边数。 接下来 m 行&#xff0c;每行包含三个整数 u&#xff0c;v&a…

p2p开户银行审核模块功能实现

审核模块简介 用户提交开户申请后要等待审核通过才能审核成功 审核需要银行系统进行开户 使用flask框架搭建一个银行系统 用户提交审核 银行进行开户&#xff0c;在返回p2p后台通过审核 flask搭建测试银行系统 利用工厂模式搭建一个flask框架 app.py from flask import Fl…