作者主页:夜未央5788
项目介绍
管理员: 管理员登录系统后,可以对首页,个人中心,用户管理,业务员管理,汽车类型管理,租赁汽车管理,汽车租赁管理,汽车归还管理,租赁订单管理,检查信息管理,系统管理
业务员:登录进入致远汽车租赁系统可以对首页,个人中心,汽车租赁管理,汽车归还管理,租赁订单管理,检查信息管理等
用户:用户登录进入致远汽车租赁系统可以对首页,个人中心,汽车租赁管理,汽车归还管理,租赁订单管理,检查信息管理,我的收藏管理等
使用人群:
正在做毕设的学生,或者需要项目实战练习的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版本均可;
技术栈
前端: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
运行截图
论文
前台界面
后台界面
相关代码
package com.gxyan.controller;
import com.gxyan.common.ServerResponse;
import com.gxyan.pojo.Car;
import com.gxyan.service.IStoreService;
import com.gxyan.vo.StoreQuery;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
* @author gxyan
* @date 2019/1/3 10:04
*/
@Slf4j
@RestController
@RequestMapping("store")
public class StoreController {
@Autowired
private IStoreService storeService;
@RequestMapping(value = "addBrand", method = RequestMethod.GET)
public ServerResponse addBrand(String brand) {
return storeService.addBrand(brand);
}
@RequestMapping(value = "delBrand", method = RequestMethod.GET)
public ServerResponse delBrand(Integer brandId) {
return storeService.delBrand(brandId);
}
@RequestMapping(value = "addSeries", method = RequestMethod.GET)
public ServerResponse addSeries(Integer brandId, String seriesName) {
return storeService.addSeries(brandId, seriesName);
}
@RequestMapping(value = "delSeries", method = RequestMethod.GET)
public ServerResponse delSeries(Integer seriesId) {
return storeService.delSeries(seriesId);
}
@RequestMapping(value = "addStore", method = RequestMethod.POST)
public ServerResponse addStore(Car car) {
return storeService.addStore(car);
}
@RequestMapping(value = "getList", method = RequestMethod.GET)
public ServerResponse getList(StoreQuery storeQuery) {
return storeService.getList(storeQuery);
}
@RequestMapping(value = "update", method = RequestMethod.POST)
public ServerResponse update(Car car) {
return storeService.updateStore(car);
}
}
package com.gxyan.controller;
import com.gxyan.common.ServerResponse;
import com.gxyan.pojo.Employee;
import com.gxyan.service.IEmployeeService;
import com.gxyan.vo.EmployeeQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
* @author gxyan
* @date 2019/1/6 16:51
*/
@RestController
@RequestMapping("employee")
public class EmployeeController {
@Autowired
private IEmployeeService employeeService;
@RequestMapping(value = "addEmployee", method = RequestMethod.POST)
public ServerResponse addEmployee(Employee employee) {
return employeeService.addEmployee(employee);
}
@RequestMapping(value = "getList", method = RequestMethod.GET)
public ServerResponse getList(EmployeeQuery employeeQuery) {
return employeeService.getList(employeeQuery);
}
@RequestMapping(value = "update", method = RequestMethod.POST)
public ServerResponse update(Employee employee) {
return employeeService.updateEmployee(employee);
}
}
package com.gxyan.controller;
import com.gxyan.common.ServerResponse;
import com.gxyan.pojo.Customer;
import com.gxyan.service.ICustomerService;
import com.gxyan.vo.CustomerQuery;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
* @author gxyan
* @date 2019/1/6 10:03
*/
@Slf4j
@RestController
@RequestMapping("customer")
public class CustomerController {
@Autowired
private ICustomerService customerService;
@RequestMapping(value = "addCustomer", method = RequestMethod.GET)
public ServerResponse addCustomer(Customer customer) {
return customerService.addCustomer(customer);
}
@RequestMapping(value = "getList", method = RequestMethod.GET)
public ServerResponse getList(CustomerQuery customerQuery) {
return customerService.getList(customerQuery);
}
@RequestMapping(value = "update", method = RequestMethod.POST)
public ServerResponse update(Customer customer) {
return customerService.updateCustomer(customer);
}
}
package com.gxyan.controller;
import com.gxyan.common.ServerResponse;
import com.gxyan.pojo.Customer;
import com.gxyan.service.IChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* @author gxyan
* @date 2019/1/12 20:54
*/
@RestController
@RequestMapping("chart")
public class ChartController {
@Autowired
private IChartService chartService;
/**
* 获取 全部员工的月销量报表 数据
* @param date
* @return
*/
@RequestMapping(value = "getEmpChart", method = RequestMethod.GET)
public ServerResponse getEmpChart(String date) {
return chartService.getEmpChart(date);
}
/**
* 获取经理主页 昨日销量报表 数据
* @return
*/
@RequestMapping(value = "getIndexChart", method = RequestMethod.GET)
public ServerResponse getIndexChart() {
return chartService.getIndexChart();
}
/**
* 获取经理主页 昨日销量
* @return
*/
@RequestMapping(value = "getSaleNum", method = RequestMethod.GET)
public ServerResponse getSaleNum() {
return chartService.getSaleNum();
}
/**
* 获取 销售报表 数据
* @param start
* @param end
* @return
*/
@RequestMapping(value = "getSalesChart", method = RequestMethod.GET)
public ServerResponse getSalesChart(String start, String end) {
return chartService.getSalesChart(start, end);
}
/**
* 获取员工主页 本月销售额 数据
* @param id
* @return
*/
@RequestMapping(value = "getIndexSales", method = RequestMethod.GET)
public ServerResponse getIndexSales(Integer id) {
return chartService.getIndexSales(id);
}
@RequestMapping(value = "getEmpSalesChart", method = RequestMethod.GET)
public ServerResponse getEmpSalesChart(Integer id, String date) {
return chartService.getEmpSalesChart(id, date);
}
}
如果也想学习本系统,下面领取。关注并回复:117springboot
原文地址:https://blog.csdn.net/hanyunlong1989/article/details/134759240
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_49683.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!