基于springboot,vue人事管理系统

开发工具:IDEA

服务器:Tomcat9.0, jdk1.8

项目构建:maven

数据库:mysql5.7

系统分前后台,项目采用前后端分离

前端技术:vue+elementUI

服务端技术:springboot+mybatis-plus

本项目分为管理员与普通用户两种角色

超级管理员可以为普通员工分配一些角色,进而改变员工的访问权限。

一、管理员功能:

1.登录、退出登录、首页(Echarts图表,个人考勤、员工基本信息)

2.薪资管理

(1).五险一金:查询、明细(可修改)、导出报表

(2).参保城市:新增、修改、删除、查询、批量删除、导出报表

(3).工资管理:查询、明细(可修改)、导出报表

3.权限管理

(1).角色管理:新增、修改、删除、查询、批量删除、导出报表、分配菜单

(2).菜单管理:新增、修改、删除、查询、批量删除、导出报表

4.系统管理

(1).文件管理:上传、下载、修改、删除、查询、批量删除、导出报表

(2).员工管理:新增、修改、删除、查询、批量删除、导出报表、分配角色

(3).部门管理:新增、修改、删除、查询、批量删除、导出报表

5.考勤管理

(1).请假审批:查询、批准、驳回、导出报表

(2).考勤表现:查询、修改状态、导出报表

二、普通用户功能:

首页、登录、退出登录、个人信息、修改密码,修改个人信息、请假申请

文档截图:

N-132基于springboot,vue人事管理系统

 

管理员截图:

普通用户截图:

package com.hrm.controller;

import com.hrm.service.InsuranceService;
import com.hrm.entity.Insurance;

import com.hrm.dto.ResponseDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;


/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author IT教程资源
 * @since 2023-03-23
 */
@RestController
@RequestMapping("/insurance")
public class InsuranceController {
    @Resource
    private InsuranceService insuranceService;

    @ApiOperation("新增")
    @PostMapping
    public ResponseDTO add(@RequestBody Insurance insurance) {
        return this.insuranceService.add(insurance);
    }

    @ApiOperation("逻辑删除")
    @DeleteMapping("/{id}")
    public ResponseDTO delete(@PathVariable Integer id) {
        return this.insuranceService.deleteById(id);
    }

    @ApiOperation("批量逻辑删除")
    @DeleteMapping("/batch/{ids}")
    public ResponseDTO deleteBatch(@PathVariable List<Integer> ids) {
        return this.insuranceService.deleteBatch(ids);
    }

    @ApiOperation("编辑更新")
    @PutMapping
    public ResponseDTO edit(@RequestBody Insurance insurance) {
        return this.insuranceService.edit(insurance);
    }

    @ApiOperation("查询")
    @GetMapping("/{id}")
    public ResponseDTO findById(@PathVariable Integer id) {
        return this.insuranceService.findById(id);
    }

    @ApiOperation("查询")
    @GetMapping("/staff/{id}")
    public ResponseDTO findByStaffId(@PathVariable Integer id) {
        return this.insuranceService.findByStaffId(id);
    }

    @ApiOperation("分页条件查询")
    @GetMapping
    public ResponseDTO list(@RequestParam(defaultValue = "1") Integer current, @RequestParam(defaultValue = "10") Integer size, @RequestParam(defaultValue = "") String name) {
        return this.insuranceService.list(current, size, name);
    }

    @ApiOperation("数据导出接口")
    @GetMapping("/export")
    public ResponseDTO export(HttpServletResponse response) throws IOException {
        return this.insuranceService.export(response);
    }

    @ApiOperation("数据导入接口")
    @PostMapping("/import")
    public ResponseDTO imp(MultipartFile file) throws IOException {
        return this.insuranceService.imp(file);
    }

    @ApiOperation("为员工设置社保")
    @PostMapping("/set")
    public ResponseDTO setInsurance(@RequestBody Insurance insurance) {
        return this.insuranceService.setInsurance(insurance);
    }
}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值