大家好!我是岛上程序猿,感谢您阅读本文,欢迎一键三连哦。
💞当前专栏:Java毕业设计
精彩专栏推荐👇🏻👇🏻👇🏻
开发环境
开发语言:Java
框架:ssm
JDK版本:JDK1.8
服务器:tomcat7
数据库:mysql 5.7
数据库工具:Navicat12
开发软件:eclipse/myeclipse/idea
Maven包:Maven3.3.9
浏览器:谷歌浏览器
演示视频
jsp_ssm人事工资管理系统
源码下载地址:
https://download.csdn.net/download/m0_46388260/88010159
LW目录
【如需全文请按文末获取联系】
目录
一、项目简介
人事管理系统的主要使用者分为管理员和员工,实现功能包括管理员:个人中心、公告信息管理、部门管理、职位管理、员工管理、员工培训管理、奖惩信息管理、员工工资管理、员工事务管理、管理员管理,员工:公告信息管理、员工培训管理、奖惩信息管理、员工工资管理、员工事务管理等功能。由于本网站的功能模块设计比较全面,所以使得整个人事管理系统信息管理的过程得以实现。
二、系统设计
2.1软件功能模块设计
本人事管理系统结构图如图4-2所示。
2.2数据库设计
本人事管理系统采用的是MYSQL数据库,数据存储快,因为人事管理系统,主要的就是对信息的管理,信息内容比较多,这就需要好好的设计一个好的数据库,分类要清楚,不能添加信息的时候,造成信息太过混乱,设计好的数据库首先就需要先把各个实体之间的关系表达明确,系统的E-R图如下图所示:
1、员工培训管理实体图如图4-5所示:
2、员工管理实体图如图4-6所示:
3、奖惩信息管理实体图如图4-7所示:
三、系统项目部分截图
3.1管理员功能模块
管理员登录,通过填写注册时输入的用户名、密码进行登录,如图5-1所示。
管理员登录进入人事管理系统可以查看个人中心、公告信息管理、部门管理、职位管理、员工管理、员工培训管理、奖惩信息管理、员工工资管理、员工事务管理、管理员管理等信息。
公告信息管理,在公告信息管理页面中可以通过填写公告标题、公告类型、图片、内容、发布日期等内容进行修改、删除,如图5-2所示。还可以根据需要对部门管理进行,修改或删除等详细操作,如图5-3所示。
员工工资管理,在员工工资管理页面中可以填写工资月份、员工工号、员工姓名、部门、性别、职位、底薪、绩效、岗位补贴、全勤奖、加班费、扣绩效、其它扣款、扣五险一金、实发工资、工资备注等信息,并可根据需要对已有员工工资管理进行修改或删除等详细操作,如图5-5所示。
奖惩信息管理,在奖惩信息管理页面中可以查看奖惩名称、奖惩类型、奖惩内容、员工工号、员工姓名、手机、部门、职位、日期、备注等内容,并且根据需要对已有奖惩信息管理进行详情,修改或删除等详细操作,如图5-7所示。
3.2员工功能模块
员工登录进入人事管理系统可以查看个人中心、公告信息管理、员工培训管理、奖惩信息管理、员工工资管理、员工事务管理等内容。
公告信息管理,在公告信息管理页面中通过填写公告标题、公告类型、图片、内容、发布日期等信息,还可以根据需要对公告信息管理进行查看如图5-9所示。
员工工资管理,在员工工资管理页面中通过填写工资月份、员工工号、员工姓名、部门、性别、职位、底薪、绩效、岗位补贴、全勤奖、加班费、扣绩效、其它扣款、扣五险一金、实发工资、工资备注等内容进行修改、删除,如图5-11所示。
四、部分核心代码
4.1 用户部分
package com.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;
import com.entity.GonggaoxinxiEntity;
import com.entity.view.GonggaoxinxiView;
import com.service.GonggaoxinxiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
* 公告信息
* 后端接口
* @author
* @email
* @date 2021-03-06 15:26:49
*/
@RestController
@RequestMapping("/gonggaoxinxi")
public class GonggaoxinxiController {
@Autowired
private GonggaoxinxiService gonggaoxinxiService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,GonggaoxinxiEntity gonggaoxinxi, HttpServletRequest request){
EntityWrapper<GonggaoxinxiEntity> ew = new EntityWrapper<GonggaoxinxiEntity>();
PageUtils page = gonggaoxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, gonggaoxinxi), params), params));
request.setAttribute("data", page);
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,GonggaoxinxiEntity gonggaoxinxi, HttpServletRequest request){
EntityWrapper<GonggaoxinxiEntity> ew = new EntityWrapper<GonggaoxinxiEntity>();
PageUtils page = gonggaoxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, gonggaoxinxi), params), params));
request.setAttribute("data", page);
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( GonggaoxinxiEntity gonggaoxinxi){
EntityWrapper<GonggaoxinxiEntity> ew = new EntityWrapper<GonggaoxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( gonggaoxinxi, "gonggaoxinxi"));
return R.ok().put("data", gonggaoxinxiService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(GonggaoxinxiEntity gonggaoxinxi){
EntityWrapper< GonggaoxinxiEntity> ew = new EntityWrapper< GonggaoxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( gonggaoxinxi, "gonggaoxinxi"));
GonggaoxinxiView gonggaoxinxiView = gonggaoxinxiService.selectView(ew);
return R.ok("查询公告信息成功").put("data", gonggaoxinxiView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
GonggaoxinxiEntity gonggaoxinxi = gonggaoxinxiService.selectById(id);
return R.ok().put("data", gonggaoxinxi);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
GonggaoxinxiEntity gonggaoxinxi = gonggaoxinxiService.selectById(id);
return R.ok().put("data", gonggaoxinxi);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody GonggaoxinxiEntity gonggaoxinxi, HttpServletRequest request){
gonggaoxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(gonggaoxinxi);
gonggaoxinxiService.insert(gonggaoxinxi);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody GonggaoxinxiEntity gonggaoxinxi, HttpServletRequest request){
gonggaoxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(gonggaoxinxi);
gonggaoxinxiService.insert(gonggaoxinxi);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody GonggaoxinxiEntity gonggaoxinxi, HttpServletRequest request){
//ValidatorUtils.validateEntity(gonggaoxinxi);
gonggaoxinxiService.updateById(gonggaoxinxi);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
gonggaoxinxiService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<GonggaoxinxiEntity> wrapper = new EntityWrapper<GonggaoxinxiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = gonggaoxinxiService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
获取源码或论文
如需对应的LW或源码,以及其他定制需求,也可以下方微信联系我。