当前位置:   article > 正文

Java项目:117SpringBoot Vue的汽车租赁系统_基于springboot的汽车租赁系统

基于springboot的汽车租赁系统
 作者主页:夜未央5788

 简介:Java领域优质创作者、Java项目、学习资料、技术互助

文末获取源码

项目介绍

基于SpringBoot Vue的汽车租赁系统

角色:管理员、业务员、用户

管理员: 管理员登录系统后,可以对首页,个人中心,用户管理,业务员管理,汽车类型管理,租赁汽车管理,汽车租赁管理,汽车归还管理,租赁订单管理,检查信息管理,系统管理

业务员:登录进入致远汽车租赁系统可以对首页,个人中心,汽车租赁管理,汽车归还管理,租赁订单管理,检查信息管理等

用户:用户登录进入致远汽车租赁系统可以对首页,个人中心,汽车租赁管理,汽车归还管理,租赁订单管理,检查信息管理,我的收藏管理等

使用人群:
正在做毕设的学生,或者需要项目实战练习的Java学习者

由于本程序规模不大,可供课程设计,毕业设计学习演示之用

环境需要

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 +Layui +HTML+CSS+JS

使用说明

项目运行:
1. 使用Navicat或者其它工具,在mysql中创建对应sql文件名称的数据库,并导入项目的sql文件;
2. 使用IDEA/Eclipse/MyEclipse导入项目,导入成功后请执行maven clean;maven install命令,然后运行;
3. 将项目中application.yml配置文件中的数据库配置改为自己的配置;
4. 运行项目,控制台提示运行成功后再去运行前端项目;
5. 管理员用户名密码:admin/admin

普通用户名密码:user/123456

运行截图

论文

前台界面

后台界面 

 相关代码

StoreController

  1. package com.gxyan.controller;
  2. import com.gxyan.common.ServerResponse;
  3. import com.gxyan.pojo.Car;
  4. import com.gxyan.service.IStoreService;
  5. import com.gxyan.vo.StoreQuery;
  6. import lombok.extern.slf4j.Slf4j;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.web.bind.annotation.*;
  9. /**
  10. * @author gxyan
  11. * @date 2019/1/3 10:04
  12. */
  13. @Slf4j
  14. @RestController
  15. @RequestMapping("store")
  16. public class StoreController {
  17. @Autowired
  18. private IStoreService storeService;
  19. @RequestMapping(value = "addBrand", method = RequestMethod.GET)
  20. public ServerResponse addBrand(String brand) {
  21. return storeService.addBrand(brand);
  22. }
  23. @RequestMapping(value = "delBrand", method = RequestMethod.GET)
  24. public ServerResponse delBrand(Integer brandId) {
  25. return storeService.delBrand(brandId);
  26. }
  27. @RequestMapping(value = "addSeries", method = RequestMethod.GET)
  28. public ServerResponse addSeries(Integer brandId, String seriesName) {
  29. return storeService.addSeries(brandId, seriesName);
  30. }
  31. @RequestMapping(value = "delSeries", method = RequestMethod.GET)
  32. public ServerResponse delSeries(Integer seriesId) {
  33. return storeService.delSeries(seriesId);
  34. }
  35. @RequestMapping(value = "addStore", method = RequestMethod.POST)
  36. public ServerResponse addStore(Car car) {
  37. return storeService.addStore(car);
  38. }
  39. @RequestMapping(value = "getList", method = RequestMethod.GET)
  40. public ServerResponse getList(StoreQuery storeQuery) {
  41. return storeService.getList(storeQuery);
  42. }
  43. @RequestMapping(value = "update", method = RequestMethod.POST)
  44. public ServerResponse update(Car car) {
  45. return storeService.updateStore(car);
  46. }
  47. }

EmployeeController

  1. package com.gxyan.controller;
  2. import com.gxyan.common.ServerResponse;
  3. import com.gxyan.pojo.Employee;
  4. import com.gxyan.service.IEmployeeService;
  5. import com.gxyan.vo.EmployeeQuery;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8. import org.springframework.web.bind.annotation.RequestMethod;
  9. import org.springframework.web.bind.annotation.RestController;
  10. /**
  11. * @author gxyan
  12. * @date 2019/1/6 16:51
  13. */
  14. @RestController
  15. @RequestMapping("employee")
  16. public class EmployeeController {
  17. @Autowired
  18. private IEmployeeService employeeService;
  19. @RequestMapping(value = "addEmployee", method = RequestMethod.POST)
  20. public ServerResponse addEmployee(Employee employee) {
  21. return employeeService.addEmployee(employee);
  22. }
  23. @RequestMapping(value = "getList", method = RequestMethod.GET)
  24. public ServerResponse getList(EmployeeQuery employeeQuery) {
  25. return employeeService.getList(employeeQuery);
  26. }
  27. @RequestMapping(value = "update", method = RequestMethod.POST)
  28. public ServerResponse update(Employee employee) {
  29. return employeeService.updateEmployee(employee);
  30. }
  31. }

CustomerController

  1. package com.gxyan.controller;
  2. import com.gxyan.common.ServerResponse;
  3. import com.gxyan.pojo.Customer;
  4. import com.gxyan.service.ICustomerService;
  5. import com.gxyan.vo.CustomerQuery;
  6. import lombok.extern.slf4j.Slf4j;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.web.bind.annotation.RequestMapping;
  9. import org.springframework.web.bind.annotation.RequestMethod;
  10. import org.springframework.web.bind.annotation.RestController;
  11. /**
  12. * @author gxyan
  13. * @date 2019/1/6 10:03
  14. */
  15. @Slf4j
  16. @RestController
  17. @RequestMapping("customer")
  18. public class CustomerController {
  19. @Autowired
  20. private ICustomerService customerService;
  21. @RequestMapping(value = "addCustomer", method = RequestMethod.GET)
  22. public ServerResponse addCustomer(Customer customer) {
  23. return customerService.addCustomer(customer);
  24. }
  25. @RequestMapping(value = "getList", method = RequestMethod.GET)
  26. public ServerResponse getList(CustomerQuery customerQuery) {
  27. return customerService.getList(customerQuery);
  28. }
  29. @RequestMapping(value = "update", method = RequestMethod.POST)
  30. public ServerResponse update(Customer customer) {
  31. return customerService.updateCustomer(customer);
  32. }
  33. }

ChartController

  1. package com.gxyan.controller;
  2. import com.gxyan.common.ServerResponse;
  3. import com.gxyan.pojo.Customer;
  4. import com.gxyan.service.IChartService;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.beans.propertyeditors.CustomDateEditor;
  7. import org.springframework.web.bind.WebDataBinder;
  8. import org.springframework.web.bind.annotation.InitBinder;
  9. import org.springframework.web.bind.annotation.RequestMapping;
  10. import org.springframework.web.bind.annotation.RequestMethod;
  11. import org.springframework.web.bind.annotation.RestController;
  12. import java.text.ParseException;
  13. import java.text.SimpleDateFormat;
  14. import java.util.Date;
  15. /**
  16. * @author gxyan
  17. * @date 2019/1/12 20:54
  18. */
  19. @RestController
  20. @RequestMapping("chart")
  21. public class ChartController {
  22. @Autowired
  23. private IChartService chartService;
  24. /**
  25. * 获取 全部员工的月销量报表 数据
  26. * @param date
  27. * @return
  28. */
  29. @RequestMapping(value = "getEmpChart", method = RequestMethod.GET)
  30. public ServerResponse getEmpChart(String date) {
  31. return chartService.getEmpChart(date);
  32. }
  33. /**
  34. * 获取经理主页 昨日销量报表 数据
  35. * @return
  36. */
  37. @RequestMapping(value = "getIndexChart", method = RequestMethod.GET)
  38. public ServerResponse getIndexChart() {
  39. return chartService.getIndexChart();
  40. }
  41. /**
  42. * 获取经理主页 昨日销量
  43. * @return
  44. */
  45. @RequestMapping(value = "getSaleNum", method = RequestMethod.GET)
  46. public ServerResponse getSaleNum() {
  47. return chartService.getSaleNum();
  48. }
  49. /**
  50. * 获取 销售报表 数据
  51. * @param start
  52. * @param end
  53. * @return
  54. */
  55. @RequestMapping(value = "getSalesChart", method = RequestMethod.GET)
  56. public ServerResponse getSalesChart(String start, String end) {
  57. return chartService.getSalesChart(start, end);
  58. }
  59. /**
  60. * 获取员工主页 本月销售额 数据
  61. * @param id
  62. * @return
  63. */
  64. @RequestMapping(value = "getIndexSales", method = RequestMethod.GET)
  65. public ServerResponse getIndexSales(Integer id) {
  66. return chartService.getIndexSales(id);
  67. }
  68. @RequestMapping(value = "getEmpSalesChart", method = RequestMethod.GET)
  69. public ServerResponse getEmpSalesChart(Integer id, String date) {
  70. return chartService.getEmpSalesChart(id, date);
  71. }
  72. }

如果也想学习本系统,下面领取。关注并回复:117springboot

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

闽ICP备14008679号