Blogger introduction: ✌Programmer Brother Xu, 7 years of experience as a programmer in a large factory. 300,000+ fans across the entire network, Csdn blog expert, high-quality author on Nuggets/Huawei Cloud/Alibaba Cloud/InfoQ and other platforms, focusing on Java technology and graduation project practice✌
Article directory
1 Introduction
Hello everyone, what I bring to you today is a 4S store vehicle management system based on SpringBoot.
2 Technology stack
Development language: Java
Framework: springboot
JDK version: JDK1.8
Server: tomcat7 or Tomcat 8
Database: mysql 5.7 (preferably version 5.7, 8.0 sometimes has many pitfalls)
Database tool: Navicat11
Development software: eclipse/myeclipse/idea
Maven package :Maven3.3.9 (no mandatory requirement)
Browser: Google Chrome
3 Function Overview
The overall function of the platform is shown in the figure below:
4 System design
4.1 Main functions of system design
Through market research and consulting research, we understood the needs of users and managers, and then developed modules for administrators, salespersons, and maintenance personnel. Its functional structure diagram is shown in Figure 4-1 below:
4.2 Database design
4.2.1 Database design specifications
Data can be designed to follow the principle of separation of responsibilities, that is, system independence should be considered during design, that is, each system should not interfere with each other and not confuse data tables and system relationships.
Database naming must also follow certain standards, otherwise it will be easy to confuse. Database field names should be as similar to table names as possible. Use lowercase English letters and underscores for naming and try to use simple words.
4.2.3 Data table
This system uses the MySQL database to store data. The specific display part of the main data tables used in the system is as follows.
Table 4-1: Insurance companies
Field Name | type | length | Field description | primary key | Defaults |
---|---|---|---|---|---|
id | bigint | primary key | primary key | ||
addtime | timestamp | creation time | CURRENT_TIMESTAMP | ||
gongsibianhao | varchar | 200 | Company Number | ||
gongsimingcheng | varchar | 200 | Company Name | ||
dizhi | varchar | 200 | address | ||
fuzeren | varchar | 200 | principal | ||
lianxifangshi | varchar | 200 | Contact information | ||
beizhu | varchar | 200 | Remark |
Table 4-2: Material information
Field Name | type | length | Field description | primary key | Defaults |
---|---|---|---|---|---|
id | bigint | primary key | primary key | ||
addtime | timestamp | creation time | CURRENT_TIMESTAMP | ||
wuzibianhao | varchar | 200 | Material number | ||
wuzimingcheng | varchar | 200 | Material name | ||
guige | varchar | 200 | Specification | ||
shuliang | int | quantity | |||
danjia | int | unit price | |||
gongyingshang | varchar | 200 | supplier | ||
wuzijieshao | longtext | 4294967295 | Material introduction | ||
wuzitupian | varchar | 200 | Material pictures |
Table 4-3: Maintenance personnel
Field Name | type | length | Field description | primary key | Defaults |
---|---|---|---|---|---|
id | bigint | primary key | primary key | ||
addtime | timestamp | creation time | CURRENT_TIMESTAMP | ||
weixiuzhanghao | varchar | 200 | Maintenance account | ||
mima | varchar | 200 | password | ||
weixiuxingming | varchar | 200 | Repair name | ||
xingbie | varchar | 200 | gender | ||
nianling | int | age | |||
shouji | varchar | 200 | cell phone | ||
zhuzhi | varchar | 200 | address |
Table 4-4: User table
Field Name | type | length | Field description | primary key | Defaults |
---|---|---|---|---|---|
id | bigint | primary key | primary key | ||
username | varchar | 100 | username | ||
password | varchar | 100 | password | ||
role | varchar | 100 | Role | administrator | |
addtime | timestamp | add time | CURRENT_TIMESTAMP |
Table 4-5: token table
Field Name | type | length | Field description | primary key | Defaults |
---|---|---|---|---|---|
id | bigint | primary key | primary key | ||
userid | bigint | user id | |||
username | varchar | 100 | username | ||
tablename | varchar | 100 | Table Name | ||
role | varchar | 100 | Role | ||
token | varchar | 200 | password | ||
addtime | timestamp | add time | CURRENT_TIMESTAMP | ||
expiratedtime | timestamp | Expiration | CURRENT_TIMESTAMP |
5 system implementation
To log in to the system, the user logs in by filling in the user name, password, selected role and other information entered during registration, as shown in Figure 5-1.
5.1 Administrator function module
Administrators can log in to the 4S store vehicle system to view the homepage, personal center, salesperson management, maintenance management, customer management, supplier information management, insurance company management, vehicle information management, material information management, vehicle sales management, and vehicle maintenance management. , business statistics management, sales statistics management and other functions for detailed operations, as shown in Figure 5-2.
Salesperson management: In the salesperson management page, you can detail, modify and delete the index, sales account, sales name, gender, age, mobile phone, address and other contents; as shown in Figure 5-3.
Maintenance staff management; in the maintenance staff management page, you can detail, modify and delete the index, maintenance account, maintenance name, gender, age, mobile phone, address and other contents; as shown in Figure 5-4.
Customer management; in the customer management page, you can detail, modify and delete the index, customer number, customer name, contact information, vehicle brand, car purchase method, delivery time, insurance period and other contents; as shown in Figure 5-5 .
5.2 Salesperson function module
When the salesperson logs in to the 4S store vehicle system, he can view the homepage, personal center, customer management, supplier information management, insurance company management, vehicle information management, vehicle sales management and other functions, and perform detailed operations, as shown in Figure 5-14.
Personal center; modify personal information on the personal information page by filling in the sales account number, gender, mobile phone, sales name, age, address, etc.; as shown in Figure 5-15.
Customer management: In the customer management page, you can perform detailed operations on the index, customer number, customer name, contact information, vehicle brand, car purchase method, delivery time, insurance period, etc.; as shown in Figure 5-16.
Vehicle information management; on the vehicle information management page, you can perform detailed and sales operations on the index, vehicle number, vehicle brand, number of seats, gear shifting method, quantity, selling price, supplier, vehicle pictures, etc.; as shown in Figure 5-17 shown.
5.3 Maintenance worker function module
When a maintenance technician logs in to the 4S shop vehicle system, he can view the homepage, personal center, customer management, supplier information management, insurance company management, material information management, vehicle maintenance management and other functions, and perform detailed operations, as shown in Figure 5-19.