基于springboot的工资管理系统
创始人
2024-03-30 16:11:38
0

博主主页:猫头鹰源码

博主简介:Java领域优质创作者、CSDN博客专家、公司架构师、全网粉丝5万+、专注Java技术领域和毕业设计项目实战

主要内容:毕业设计(Javaweb项目|小程序等)、简历模板、学习资料、面试题库、技术咨询

文末联系获取

项目介绍: 

本系统原创项目,采用springboot框架,数据层采用mybatis,数据库使用mysql,适合选题:工资、工资管理等。

项目功能:

本系统是一个管理系统,主要分为两个角色,分别为管理员、员工,不同角色的功能如下:

登录注册:管理员和员工分别有不同的登录注册页面

个人信息:员工登录后,可以在个人信息管理中修改自己的信息。

员工管理:管理员可以进入新增员工,也可以修改或者删除员工信息,员工注册后也会将信息写入员工表中。

部门管理:这是管理员维护部门的界面,管理员可以增删改查部门信息。

工资管理:管理员登录后,可以下发每个人的工资信息,员工登录后进入工资管理,可以查看自己的工资情况。

请假管理:管理员进行查看审批,员工可以申请请假

考勤打卡:管理员查看考勤情况,员工可以进行考勤

统计管理:主要对每个员工的工资进行统计,以及对部门人数统计。

管理员管理:主要是管理员维护管理员的页面。

系统包含技术:

技术:springboot,mybatis,前端框架h-ui
开发工具:eclipse,idea都可运行
数据库:mysql 5.7
JDK版本:jdk1.8

部分截图说明:

下面是登录页面

管理员首页

管理员对员工进行维护

 管理员工资管理

 管理员请假审批

管理员考勤打卡

管理员查看部门人数统计

管理员个人工资查看

员工登录

员工查看工资

员工考勤打卡

员工请假申请

部分代码:

员工操作

 @Autowired(required=false)private DepartmentService departmentService;/** @description: 跳转到首页* @param request* @param model* @return: java.lang.String* @author: mty* @time: 2020/02/03 23:08*/@RequestMapping("/employIndex")public String employIndex(HttpServletRequest request,Model model) throws Exception{HttpSession session = request.getSession();if(session.getAttribute("name") == null || session.getAttribute("password") == null){session.setAttribute("msg", "对不起,请登录!");return "common/adminLogin";}String name = session.getAttribute("name").toString();String password = session.getAttribute("password").toString();List employList = employService.queryByAll();int total = employList.size();model.addAttribute("employList", employList);model.addAttribute("total", total);model.addAttribute("name", name);model.addAttribute("password", password);return "employ/index";}/** @description: 员工进入跳转到首页* @param request* @param model* @return: java.lang.String* @author: mty* @time: 2020/02/03 23:08*/@RequestMapping("/employIndex1")public String employIndex1(HttpServletRequest request,Model model) throws Exception{HttpSession session = request.getSession();if(session.getAttribute("name") == null || session.getAttribute("password") == null){session.setAttribute("msg", "对不起,请登录!");return "common/adminLogin";}String name = session.getAttribute("name").toString();String password = session.getAttribute("password").toString();Employ ee = employService.queryByOne(name,password);List employList = new ArrayList();employList.add(ee);int total = employList.size();model.addAttribute("employList", employList);model.addAttribute("total", total);model.addAttribute("name", name);model.addAttribute("password", password);return "employ/index1";}/** @description:进入修改* @param id* @param model* @return: org.springframework.web.servlet.ModelAndView* @author: mty* @time: 2020/02/03 23:10*/@RequestMapping("/employEdit/{id}")public ModelAndView  employEdit(@PathVariable("id") String id,Model model) throws Exception{ModelAndView mv = new ModelAndView();Employ employ = employService.queryById(id);List departmentList = departmentService.queryByAll();model.addAttribute("employ", employ);model.addAttribute("departmentList", departmentList);mv.setViewName("employ/edit");return mv;}/** @description:确认修改* @param employ* @param model* @param request* @return: java.lang.String* @author: mty* @time: 2020/02/03 23:11*/@RequestMapping("/employEditSubmit")public String  employEditSubmit(Employ employ,Model model,HttpServletRequest request) throws Exception{try{Department d = departmentService.queryById(employ.getDepartmentid());employ.setDepartment(d.getName());employService.update(employ);request.setAttribute("msg", "修改成功!");return "employ/edit";}catch (Exception e){request.setAttribute("msg", "修改失败!");return "employ/edit";}}/** @description:进入添加* @param model* @param request* @return: java.lang.String* @author: mty* @time: 2020/02/03 23:11*/@RequestMapping("/employAdd")public String  employAdd(Model model,HttpServletRequest request) throws Exception{List departmentList = departmentService.queryByAll();model.addAttribute("departmentList", departmentList);return "employ/add";}/** @description:确认增加* @param employ* @param model* @param request* @return: java.lang.String* @author: mty* @time: 2020/02/03 23:12*/@RequestMapping("/employAddSub")public String  employAddSub(Employ employ,Model model,HttpServletRequest request) throws Exception{try{HttpSession session = request.getSession();if(session.getAttribute("name") == null || session.getAttribute("id") == null){session.setAttribute("msg", "对不起,请登录!");return "common/adminLogin";}Department d = departmentService.queryById(employ.getDepartmentid());employ.setDepartment(d.getName());employService.addSelect(employ);request.setAttribute("msg", "添加成功!");return "employ/add";}catch (Exception e){request.setAttribute("msg", "添加失败!");return "employ/add";}}/** @description:根据ID删除* @param id* @param reuqest* @param model* @return: org.springframework.web.servlet.ModelAndView* @author: mty* @time: 2020/02/03 23:12*/@RequestMapping("/employDel/{id}")public ModelAndView employDel(@PathVariable("id") String id,HttpServletRequest reuqest, Model model) throws Exception{ModelAndView mv = new ModelAndView();employService.deleteById(id);mv.setViewName("employ/index");return mv;}/** @description:统计每个部门人数* @author: mty* @time: 2020/02/03 23:12*/@RequestMapping("/employStatic")public ModelAndView employStatic(Model model) throws Exception{ModelAndView mv = new ModelAndView();List list = employService.queryStatic();List de = departmentService.queryByAll();for(int i=0;i data = new ArrayList();List str = new ArrayList();for(int i = 0;i

员工登录

 /** @description:员工登录校验* @param name* @param password* @param type* @param request* @return: org.springframework.web.servlet.ModelAndView* @author: mty* @time: 2020/02/03 11:22*/@RequestMapping("/employSubmit")public ModelAndView studentSubmit(String name, String password,HttpServletRequest request) throws Exception{HttpSession session = request.getSession();ModelAndView modelAndView = new ModelAndView();Employ list = employService.queryByOne(name,password);if(list == null) {request.setAttribute("msg", "对不起,用户不存在,请重试!");modelAndView.setViewName("common/login");return modelAndView;}else {Employ employ = list;List elist = employService.queryByAll();for(int i=0;i

以上就是部分功能展示,从整体上来看,本系统功能是十分完整的,界面设计简洁大方,交互友好,数据库设计也很合理,规模适中,代码工整,清晰,适合学习使用。

好了,今天就到这儿吧,小伙伴们点赞、收藏、评论,一键三连走起呀,下期见~~

相关内容

热门资讯

AWSECS:访问外部网络时出... 如果您在AWS ECS中部署了应用程序,并且该应用程序需要访问外部网络,但是无法正常访问,可能是因为...
AWSElasticBeans... 在Dockerfile中手动配置nginx反向代理。例如,在Dockerfile中添加以下代码:FR...
银河麒麟V10SP1高级服务器... 银河麒麟高级服务器操作系统简介: 银河麒麟高级服务器操作系统V10是针对企业级关键业务...
AWR报告解读 WORKLOAD REPOSITORY PDB report (PDB snapshots) AW...
AWS管理控制台菜单和权限 要在AWS管理控制台中创建菜单和权限,您可以使用AWS Identity and Access Ma...
北信源内网安全管理卸载 北信源内网安全管理是一款网络安全管理软件,主要用于保护内网安全。在日常使用过程中,卸载该软件是一种常...
群晖外网访问终极解决方法:IP... 写在前面的话 受够了群晖的quickconnet的小水管了,急需一个新的解决方法&#x...
​ToDesk 远程工具安装及... 目录 前言 ToDesk 优势 ToDesk 下载安装 ToDesk 功能展示 文件传输 设备链接 ...
Azure构建流程(Power... 这可能是由于配置错误导致的问题。请检查构建流程任务中的“发布构建制品”步骤,确保正确配置了“Arti...
不能访问光猫的的管理页面 光猫是现代家庭宽带网络的重要组成部分,它可以提供高速稳定的网络连接。但是,有时候我们会遇到不能访问光...