当前位置:   article > 正文

基于javaweb+mysql的springboot地方废物回收机构管理系统(java+springboot+vue+elementui+mysql)

基于javaweb+mysql的springboot地方废物回收机构管理系统(java+springboot+vue+elementui+mysql)

基于javaweb+mysql的springboot地方废物回收机构管理系统(java+springboot+vue+elementui+mysql)

私信源码获取及调试交流

运行环境

Java≥8、MySQL≥5.7、Node.js≥10

开发工具

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

前端:WebStorm/VSCode/HBuilderX等均可

适用

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

功能说明

基于javaweb的SpringBoot地方废物回收机构管理系统(java+springboot+vue+elementui+mysql)

项目介绍

基于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图、数据库表、系统功能实现、管理员功能模块、员工功能模块、系统测试、总结与心得体会、总结):

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

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

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

宿舍信息展示:

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
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,

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
@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");

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
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 {

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
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")

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
@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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25

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")
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

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){
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
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,

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/717845
推荐阅读
相关标签
  

闽ICP备14008679号