Java项目:地方废物回收机构管理系统(java+SpringBoot+Vue+ElementUI+Mysql)

本文介绍了基于SpringBoot和Vue的废物回收机构管理系统,包括管理员和员工的功能模块,如数据管理、请假申请、工资管理等,同时提供了环境需求、技术栈和数据库配置信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

源码获取:俺的博客首页 "资源" 里下载! 

项目介绍

基于SpringBoot Vue的地方废物回收机构管理系统

角色:管理员、员工

管理员:管理员登录系统后,可以对首页、个人中心、员工管理、员工请假管理、销假申请管理、工作日志管理、员工工资管理、员工任务管理、任务汇报管理、设备信息管理、设备借用管理、设备归还管理、设备报修管理、维修入库管理、员工打卡管理、员工评价管理、回收价格管理、宿舍信息管理、宿舍入住管理、宿舍搬出管理、管理员管理、系统管理等功能进行相应的操作管理,

员工:员工登录进入地方废物回收机构管理系统可以对首页、个人中心、员工请假管理、销假申请管理、工作日志管理、员工工资管理、员工任务管理、任务汇报管理、设备信息管理、设备借用管理、设备归还管理、设备报修管理、维修入库管理、员工打卡管理、员工评价管理、回收价格管理、宿舍入住管理、宿舍搬出管理等功能进行相应操作


环境需要

1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。
2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;
3.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;
4.数据库:MySql 5.7/8.0版本均可;
5.是否Maven项目:是;


技术栈

后端:SpringBoot+Mybaits

前端:Vue+ElementUI


使用说明

项目运行:
1. 使用Navicat或者其它工具,在mysql中创建对应sql文件名称的数据库,并导入项目的sql文件;
2. 使用IDEA/Eclipse/MyEclipse导入项目,导入成功后请执行maven clean;maven install命令,然后运行;
3. 将项目中application.yml配置文件中的数据库配置改为自己的配置;

文档介绍(Mysql数据库介绍、Mysql环境配置、B/S架构、SpringBoot框架、系统分析、可行性分析、技术可行性、操作可行性、经济可行性、性能需求分析、功能分析、系统设计、功能结构、数据库设计、数据库E/R图、数据库表、系统功能实现、管理员功能模块、员工功能模块、系统测试、总结与心得体会、总结):

后台登录页面和角色选择:

后台管理功能栏展示(请假申请管理、工作日志管理、员工工资管理、员工任务管理、任务汇报管理、设备信息管理、设备借用管理、设备归还管理、设备报修管理、维修入库管理、员工打卡管理、员工评价管理、回收价格管理、宿舍入住管理、宿舍搬出管理):

设备信息管理(设备信息详情展示):

宿舍信息展示:

部门管理控制层:

@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("/Education")
@RestController
public class EducationController {


    @Autowired
    IEducationService educationService;

    @Autowired
    private HttpServletRequest request;

    @PostMapping("/addEducation")
    public Result addEducation(@RequestParam("educationNumber") String educationNumber,
                               @RequestParam("graduation") String graduation,
                               @RequestParam("major") String major,
                               @RequestParam("genre") String genre,
                               @RequestParam("arrangement") String arrangement,
                               @RequestParam("status") String status,
                               @RequestParam("beginTime") String beginTime,
                               @RequestParam("employeeNumber") String employeeNumber,
                               @RequestParam("endTime") String endTime)throws ParseException {
        SimpleDateFormat formatter=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

        Education education = new Education();
        education.setEducationNumber(educationNumber);
        education.setGraduation(graduation);
        education.setMajor(major);
        education.setGenre(genre);
        education.setArrangement(arrangement);
        education.setStatus(status);
        education.setBeginTime(beginTime);
        education.setEndTime(endTime);
        education.setEmployeeNumber(employeeNumber);

        return educationService.addEducation(education);
    }


    @GetMapping("/getAllEducations")
    public ModelAndView getAllEducations(){
        educationService.getAllEducations();
        return new ModelAndView("education");
    }

    @PostMapping("/deleteEducation")
    public Result deleteEducation(@RequestParam("ids") String ids){
        return educationService.deleteEducation(ids);
    }

    @PostMapping("/modifyEducation")
    public Result modifyEducation( @RequestParam("educationNumber") String educationNumber,
                                   @RequestParam("graduation") String graduation,
                                   @RequestParam("major") String major,
                                   @RequestParam("genre") String genre,
                                   @RequestParam("arrangement") String arrangement,
                                   @RequestParam("status") String status,
                                   @RequestParam("beginTime") String beginTime,
                                   @RequestParam("endTime") String endTime,
                                   @RequestParam("employeeNumber")String employeeNumber,
                                   @RequestParam("id") long id)throws ParseException{
        SimpleDateFormat formatter=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Education education = new Education();
        education.setEducationNumber(educationNumber);
        education.setGraduation(graduation);
        education.setMajor(major);
        education.setGenre(genre);
        education.setArrangement(arrangement);
        education.setStatus(status);
        education.setBeginTime(beginTime);
        education.setEndTime(endTime);
        education.setEmployeeNumber(employeeNumber);
        education.setId(id);
        return educationService.modifyEducation(education);
    }

    @GetMapping("/getPage")
    public ModelAndView getPage(@RequestParam("currentPage") Integer currentPage){
        educationService.getPageDatas(currentPage);
        return new ModelAndView("education");
    }

    @GetMapping("/getEducationById")
    public Result getEducationById(@RequestParam("id") long id){
        return educationService.getEducationById(id);
    }

    @GetMapping("/getEducationByEmployeeNumber")
    public ModelAndView getEducationByEmployeeNumber(@RequestParam("employeeNumber") String employeeNumber)throws ParseException{
        educationService.getEducationByEmployeeNumber(employeeNumber);
        return new ModelAndView("education");
    }

    @PostMapping("/getEmployeeNumberByEmployeeName")
    public Result getEmployeeNumberByEmployeeName(@RequestParam("employeeName") String employeeName)throws ParseException{
        return  educationService.getEmployeeNumberByEmployeeName(employeeName);
    }
}

团体管理控制层: 

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

源码获取:俺的博客首页 "资源" 里下载!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

OldWinePot

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值