当前位置:   article > 正文

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

Java项目:地方废物回收机构管理系统(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图、数据库表、系统功能实现、管理员功能模块、员工功能模块、系统测试、总结与心得体会、总结):

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

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

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

 

宿舍信息展示:

 

部门管理控制层:

  1. @RequestMapping("/Department")
  2. @RestController
  3. public class DepartmentController {
  4. @Autowired
  5. IDepartmentService departmentService;
  6. @Autowired
  7. private HttpServletRequest request;
  8. @PostMapping("/addDepartment")
  9. public Result addDepartment(@RequestParam("departmentNumber") String departmentNumber, @RequestParam("departmentName") String departmentName,
  10. @RequestParam("departmentHead") String departmentHead, @RequestParam("departmentAddress") String departmentAddress,
  11. @RequestParam("departmentTel") String departmentTel, @RequestParam("departmentFax") String departmentFax)throws ParseException {
  12. SimpleDateFormat formatter=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  13. Department department = new Department();
  14. department.setDepartmentName(departmentName);
  15. department.setDepartmentNumber(departmentNumber);
  16. department.setDepartmentAddress(departmentAddress);
  17. department.setDepartmentHead(departmentHead);
  18. department.setDepartmentTel(departmentTel);
  19. department.setDepartmentFax(departmentFax);
  20. return departmentService.addDepartment(department);
  21. }
  22. @GetMapping("/getAllDepartments")
  23. public ModelAndView getAllDepartments(){
  24. departmentService.getAllDepartments();
  25. // System.out.println("就是"+request.getSession().getAttribute("departmentPage"));
  26. return new ModelAndView("department");
  27. }
  28. @PostMapping("/deleteDepartment")
  29. public Result deleteDepartment(@RequestParam("ids") String ids){
  30. return departmentService.deleteDepartment(ids);
  31. }
  32. @PostMapping("/modifyDepartment")
  33. public Result modifyDepartment(@RequestParam("departmentNumber") String departmentNumber, @RequestParam("departmentName") String departmentName,
  34. @RequestParam("departmentHead") String departmentHead, @RequestParam("departmentAddress") String departmentAddress,
  35. @RequestParam("departmentTel") String departmentTel, @RequestParam("departmentFax") String departmentFax,
  36. @RequestParam("id") long id)throws ParseException{
  37. Department department = new Department();
  38. department.setDepartmentName(departmentName);
  39. department.setDepartmentNumber(departmentNumber);
  40. department.setDepartmentAddress(departmentAddress);
  41. department.setDepartmentHead(departmentHead);
  42. department.setDepartmentTel(departmentTel);
  43. department.setDepartmentFax(departmentFax);
  44. department.setId(id);
  45. // System.out.println("department修改: "+ department);
  46. return departmentService.modifyDepartment(department);
  47. }
  48. @GetMapping("/getPage")
  49. public ModelAndView getPage(@RequestParam("currentPage") Integer currentPage){
  50. departmentService.getPageDatas(currentPage);
  51. // System.out.println("currentPage: "+currentPage);
  52. return new ModelAndView("department");
  53. }
  54. @GetMapping("/getDepartmentById")
  55. public Result getDepartmentById(@RequestParam("id") long id){
  56. return departmentService.getDepartmentById(id);
  57. }
  58. @GetMapping("/getDepartmentByDepartmentNumber")
  59. public ModelAndView getDepartmentByDepartmentNumber(@RequestParam("departmentNumber") String departmentNumber)throws ParseException{
  60. departmentService.getDepartmentByDepartmentNumber(departmentNumber);
  61. return new ModelAndView("department");
  62. }
  63. @PostMapping("/getDepartmentNumberByDepartmentName")
  64. public Result getDepartmentNumberByDepartmentName(@RequestParam("departmentName") String departmentName)throws ParseException{
  65. return departmentService.getDepartmentNumberByDepartmentName(departmentName);
  66. }
  67. }

雇员管理控制层: 

  1. @Controller
  2. @RequestMapping("/employee")
  3. public class EmployeeController {
  4. @Autowired
  5. private IEmployeeService employeeService;
  6. @Autowired
  7. private EmployeeServiceImpl employeeServiceImpl;
  8. @PostMapping("/login")
  9. public ModelAndView login(Employee employee, HttpServletRequest request){
  10. Result result = employeeService.login(employee);
  11. if (result.getCode()==0){
  12. return new ModelAndView("redirect:/page/index");
  13. }
  14. request.setAttribute("pageMsg",result.getMsg());
  15. return new ModelAndView("forward:/page/login");
  16. }
  17. @PostMapping("/del_employees")
  18. @ResponseBody
  19. public ModelAndView deleteEmployees(@RequestParam("ids") String ids){
  20. employeeService.deleteEmployees(ids);
  21. return new ModelAndView("employeeInfo");
  22. }
  23. @GetMapping("/getPage")
  24. public ModelAndView getPage(@RequestParam("currentPage") Integer currentPage){
  25. employeeService.getPageDatas(currentPage);
  26. return new ModelAndView("employeeInfo");
  27. }
  28. @PostMapping("/addEmployee")
  29. @ResponseBody
  30. public Result addEmployee(Employee employee){
  31. return employeeService.addEmployee(employee);
  32. }
  33. @GetMapping("/getUpdateEmployeeInfo")
  34. public ModelAndView getUpdateEmployeeInfo(){
  35. employeeServiceImpl.updateAllEmployeeToSession();
  36. return new ModelAndView("employeeInfo");
  37. }
  38. @GetMapping("/getMyAccount")
  39. public ModelAndView getMyAccount(){
  40. return new ModelAndView("myAccount");
  41. }
  42. @GetMapping("/getEmployee")
  43. @ResponseBody
  44. public Result getEmployee(@RequestParam("id") long id){
  45. Employee employee = new Employee();
  46. employee.setId(id);
  47. return employeeService.getEmployee(employee);
  48. }
  49. @PostMapping("/updateEmployeeById")
  50. @ResponseBody
  51. public Result updateEmployeeById(Employee employee){
  52. return employeeService.updateEmployeeById(employee);
  53. }
  54. @PostMapping("/getEmployeeByNumber")
  55. @ResponseBody
  56. public Result getEmployeeByNumber(Employee employee){
  57. return employeeService.getEmployeeByNumber(employee.getEmployeeNumber());
  58. }
  59. @PostMapping("/updateEmployeeByNumber")
  60. @ResponseBody
  61. public Result updateEmployeeByNumber(Employee employee){
  62. return employeeService.updateEmployeeByNumber(employee);
  63. }
  64. @PostMapping("/uploadMyImage")
  65. @ResponseBody
  66. public Result upLoadMyImage(){
  67. return employeeService.upLoadMyImage();
  68. }
  69. @GetMapping("/clearLogin")
  70. @ResponseBody
  71. public Result clearLogin(){
  72. return employeeServiceImpl.clearLogin();
  73. }
  74. @PostMapping("/modifyPwd")
  75. @ResponseBody
  76. public Result modifyPwd(@RequestParam("oldPwd") String oldPwd,@RequestParam("newPwd") String newPwd){
  77. return employeeService.modifyPwd(oldPwd,newPwd);
  78. }
  79. @GetMapping("/loginYesOrNo")
  80. @ResponseBody
  81. public Result loginYesOrNo(){
  82. employeeServiceImpl.getEmployeeLoginInfo();
  83. return new Result(0,"已登录",null);
  84. }
  85. @GetMapping("/getEmployeeByEmployeeNumber")
  86. @ResponseBody
  87. public Result getEmployeeByEmployeeNumber(@RequestParam("employeeNumber") String employeeNumber)throws ParseException {
  88. Employee employee = new Employee();
  89. employee.setEmployeeNumber(employeeNumber);
  90. return employeeService.getEmployeeByEmployeeNumber(employee);
  91. }
  92. @PostMapping("/getEmployeeByName")
  93. @ResponseBody
  94. public Result getEmployeeByName(Employee employee)throws ParseException{
  95. return employeeService.getEmployeeByName(employee.getEmployeeName());
  96. }
  97. @GetMapping("/getPersonByEmployeeNumber")
  98. @ResponseBody
  99. public ModelAndView getPersonByEmployeeNumber(@RequestParam("employeeNumber") String employeeNumber){
  100. Employee employee = new Employee();
  101. employee.setEmployeeNumber(employeeNumber);
  102. employeeServiceImpl.getPersonByEmployeeNumber(employee);
  103. return new ModelAndView("employeeInfo");
  104. }
  105. }

机构管理控制层:

  1. @RequestMapping("/Education")
  2. @RestController
  3. public class EducationController {
  4. @Autowired
  5. IEducationService educationService;
  6. @Autowired
  7. private HttpServletRequest request;
  8. @PostMapping("/addEducation")
  9. public Result addEducation(@RequestParam("educationNumber") String educationNumber,
  10. @RequestParam("graduation") String graduation,
  11. @RequestParam("major") String major,
  12. @RequestParam("genre") String genre,
  13. @RequestParam("arrangement") String arrangement,
  14. @RequestParam("status") String status,
  15. @RequestParam("beginTime") String beginTime,
  16. @RequestParam("employeeNumber") String employeeNumber,
  17. @RequestParam("endTime") String endTime)throws ParseException {
  18. SimpleDateFormat formatter=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  19. Education education = new Education();
  20. education.setEducationNumber(educationNumber);
  21. education.setGraduation(graduation);
  22. education.setMajor(major);
  23. education.setGenre(genre);
  24. education.setArrangement(arrangement);
  25. education.setStatus(status);
  26. education.setBeginTime(beginTime);
  27. education.setEndTime(endTime);
  28. education.setEmployeeNumber(employeeNumber);
  29. return educationService.addEducation(education);
  30. }
  31. @GetMapping("/getAllEducations")
  32. public ModelAndView getAllEducations(){
  33. educationService.getAllEducations();
  34. return new ModelAndView("education");
  35. }
  36. @PostMapping("/deleteEducation")
  37. public Result deleteEducation(@RequestParam("ids") String ids){
  38. return educationService.deleteEducation(ids);
  39. }
  40. @PostMapping("/modifyEducation")
  41. public Result modifyEducation( @RequestParam("educationNumber") String educationNumber,
  42. @RequestParam("graduation") String graduation,
  43. @RequestParam("major") String major,
  44. @RequestParam("genre") String genre,
  45. @RequestParam("arrangement") String arrangement,
  46. @RequestParam("status") String status,
  47. @RequestParam("beginTime") String beginTime,
  48. @RequestParam("endTime") String endTime,
  49. @RequestParam("employeeNumber")String employeeNumber,
  50. @RequestParam("id") long id)throws ParseException{
  51. SimpleDateFormat formatter=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  52. Education education = new Education();
  53. education.setEducationNumber(educationNumber);
  54. education.setGraduation(graduation);
  55. education.setMajor(major);
  56. education.setGenre(genre);
  57. education.setArrangement(arrangement);
  58. education.setStatus(status);
  59. education.setBeginTime(beginTime);
  60. education.setEndTime(endTime);
  61. education.setEmployeeNumber(employeeNumber);
  62. education.setId(id);
  63. return educationService.modifyEducation(education);
  64. }
  65. @GetMapping("/getPage")
  66. public ModelAndView getPage(@RequestParam("currentPage") Integer currentPage){
  67. educationService.getPageDatas(currentPage);
  68. return new ModelAndView("education");
  69. }
  70. @GetMapping("/getEducationById")
  71. public Result getEducationById(@RequestParam("id") long id){
  72. return educationService.getEducationById(id);
  73. }
  74. @GetMapping("/getEducationByEmployeeNumber")
  75. public ModelAndView getEducationByEmployeeNumber(@RequestParam("employeeNumber") String employeeNumber)throws ParseException{
  76. educationService.getEducationByEmployeeNumber(employeeNumber);
  77. return new ModelAndView("education");
  78. }
  79. @PostMapping("/getEmployeeNumberByEmployeeName")
  80. public Result getEmployeeNumberByEmployeeName(@RequestParam("employeeName") String employeeName)throws ParseException{
  81. return educationService.getEmployeeNumberByEmployeeName(employeeName);
  82. }
  83. }

团体管理控制层: 

  1. @RequestMapping("/Community")
  2. @RestController
  3. public class CommunityController {
  4. @Autowired
  5. ICommunityService communityService;
  6. @Autowired
  7. private HttpServletRequest request;
  8. @PostMapping("/addCommunity")
  9. public Result addCommunity(@RequestParam("relation") String relation,
  10. @RequestParam("name") String name,
  11. @RequestParam("age") String age,
  12. @RequestParam("political") String political,
  13. @RequestParam("nation") String nation,
  14. @RequestParam("work") String work,
  15. @RequestParam("post") String post,
  16. @RequestParam("phenomenon") String phenomenon,
  17. @RequestParam("employeeNumber")String employeeNumber)throws ParseException {
  18. SimpleDateFormat formatter=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  19. Community community = new Community();
  20. community.setRelation(relation);
  21. community.setName(name);
  22. community.setAge(age);
  23. community.setPolitical(political);
  24. community.setNation(nation);
  25. community.setWork(work);
  26. community.setPost(post);
  27. community.setPhenomenon(phenomenon);
  28. community.setEmployeeNumber(employeeNumber);
  29. return communityService.addCommunity(community);
  30. }
  31. @GetMapping("/getAllCommunitys")
  32. public ModelAndView getAllCommunitys(){
  33. communityService.getAllCommunitys();
  34. // System.out.println("就是Community:"+request.getSession().getAttribute("communityPage"));
  35. return new ModelAndView("community");
  36. }
  37. @PostMapping("/deleteCommunity")
  38. public Result deleteCommunity(@RequestParam("ids") String ids){
  39. return communityService.deleteCommunity(ids);
  40. }
  41. @PostMapping("/modifyCommunity")
  42. public Result modifyCommunity(@RequestParam("relation") String relation,
  43. @RequestParam("name") String name,
  44. @RequestParam("age") String age,
  45. @RequestParam("political") String political,
  46. @RequestParam("nation") String nation,
  47. @RequestParam("work") String work,
  48. @RequestParam("post") String post,
  49. @RequestParam("phenomenon") String phenomenon,
  50. @RequestParam("employeeNumber") String employeeNumber,
  51. @RequestParam("id") long id)throws ParseException{
  52. SimpleDateFormat formatter=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  53. Community community = new Community();
  54. community.setRelation(relation);
  55. community.setName(name);
  56. community.setAge(age);
  57. community.setPolitical(political);
  58. community.setNation(nation);
  59. community.setWork(work);
  60. community.setPost(post);
  61. community.setPhenomenon(phenomenon);
  62. community.setEmployeeNumber(employeeNumber);
  63. community.setId(id);
  64. return communityService.modifyCommunity(community);
  65. }
  66. @GetMapping("/getPage")
  67. public ModelAndView getPage(@RequestParam("currentPage") Integer currentPage){
  68. communityService.getPageDatas(currentPage);
  69. // System.out.println("currentPage: "+currentPage);
  70. return new ModelAndView("community");
  71. }
  72. @GetMapping("/getCommunityById")
  73. public Result getCommunityById(@RequestParam("id") long id){
  74. return communityService.getCommunityById(id);
  75. }
  76. @GetMapping("/getCommunityByEmployeeNumber")
  77. public ModelAndView getCommunityByEmployeeNumber(@RequestParam("employeeNumber") String employeeNumber)throws ParseException{
  78. communityService.getCommunityByEmployeeNumber(employeeNumber);
  79. return new ModelAndView("community");
  80. }
  81. @PostMapping("/getEmployeeNumberByEmployeeName")
  82. public Result getEmployeeNumberByEmployeeName(@RequestParam("employeeName") String employeeName)throws ParseException{
  83. return communityService.getEmployeeNumberByEmployeeName(employeeName);
  84. }
  85. }

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

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号