Note: Show part of the document content and system screenshots. If you need complete videos, codes, articles and installation and debugging environment, please send a private message to the up owner.
3.5 System functional structure
User functions:
- Register and log in to the website and upload personal information;
- Users can log in to the system to browse product information, purchase products and redeem points;
- You can view basic product information on the product details interface;
- Users can view product information of the same celebrities;
- On the shopping cart interface, you can see the products you have added to the shopping cart. Once you decide to purchase, you can make an order by paying;
- Users can view order details and order status on the order interface;
- Users can save their favorite items so they can find them later.
The backend administrator functions are as follows:
- The administrator enters the administrator login interface and enters the correct account number and password to log in;
- In the user management interface, you can see user account, password, gender, mobile phone number and other information, and you can also modify, delete and other operations on this information;
- Product type management, the administrator can add, delete, modify and check product types;
- Product information management interface, the administrator can add, delete, modify and check product information;
- Announcement management interface allows you to view and delete announcement content;
- In order management, you can see the order number, total price, quantity and other information;
- Carousel image management, you can view, modify and other operations on the carousel image.
3.6 System Structure Diagram
As shown in the figure below, the modules of the entire system are divided into user management and administrator management. The administrator part is subdivided into home page, personal center, product information management, user management, product cost management, system management, and order management. The user section includes home page, personal center, shopping cart, order management, and my collection management.
The overall functional structure of the system is shown in Figure 3.1:
3.7 Online supermarket system login process
As shown in the login module diagram below, enter the correct account number and password to log in whether it is the administrator login interface or the user management interface.
4.2 Data table design
The underlying logic of the operation of this system is to perform operations such as adding, deleting, modifying, and checking data in the database. It can be seen that the design of the database is a very important link. This online supermarket system analyzes the needs of merchants, users, and administrators, and analyzes the needs of the database. A targeted design was carried out. In order to facilitate data query, the online supermarket system created a data table in its database. These entity objects are the basic prototype of the data table structure that contains all data entities and attributes of the website. As shown in the following table:
Table 4.1 Users
Field Name |
type |
length |
Field description |
primary key |
default value |
id |
bigint |
primary key |
primary key |
||
addtime |
timestamp |
creation time |
CURRENT_TIMESTAMP |
||
yonghuzhanghao |
varchar |
200 |
user account |
||
mima |
varchar |
200 |
password |
||
yonghuxingming |
varchar |
200 |
username |
||
xingbie |
varchar |
200 |
gender |
||
nianling |
varchar |
200 |
age |
||
touxiang |
varchar |
200 |
avatar |
||
money |
float |
balance |
0 |
||
vip |
varchar |
200 |
Member or not |
no |
Table 4.2 Configuration file
Field Name |
type |
length |
Field description |
primary key |
default value |
id |
bigint |
primary key |
primary key |
||
name |
varchar |
100 |
Configuration parameter name |
||
value |
varchar |
100 |
Configuration parameter values |
Table 4.3 User table
Field Name |
type |
length |
Field description |
primary key |
default value |
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.4 Shopping cart table
Field Name |
type |
length |
Field description |
primary key |
default value |
id |
bigint |
primary key |
primary key |
||
addtime |
timestamp |
creation time |
CURRENT_TIMESTAMP |
||
tablename |
varchar |
200 |
Product table name |
shangpinxinxi |
|
userid |
bigint |
user id |
|||
goodid |
bigint |
Product id |
|||
goodname |
varchar |
200 |
product name |
||
picture |
varchar |
200 |
picture |
||
buynumber |
int |
Purchase quantity |
|||
price |
float |
unit price |
|||
discountprice |
float |
member price |
|||
shangjiazhanghao |
varchar |
200 |
Business Name |
Table 4.5 token table
Field Name |
type |
length |
Field description |
primary key |
default value |
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 |
Table 4.6 Address
Field Name |
type |
length |
Field description |
primary key |
default value |
addtime |
timestamp |
creation time |
CURRENT_TIMESTAMP |
||
userid |
bigint |
user id |
|||
address |
varchar |
200 |
address |
||
name |
varchar |
200 |
Receiver |
||
phone |
varchar |
200 |
Telephone |
||
isdefault |
varchar |
200 |
Whether to default address [yes/no] |
Table 4.7 Collection table
Field Name |
type |
length |
Field description |
primary key |
default value |
id |
bigint |
primary key |
primary key |
||
addtime |
timestamp |
creation time |
CURRENT_TIMESTAMP |
||
userid |
bigint |
user id |
|||
refid |
bigint |
Collection id |
|||
tablename |
varchar |
200 |
Table Name |
||
name |
varchar |
200 |
collection name |
||
picture |
varchar |
200 |
Collection pictures |
||
type |
varchar |
200 |
Type (1: Collection, 21: Like, 22: Dislike) |
1 |
|
inteltype |
varchar |
200 |
Recommended type |
Table 4.8 Product information
Field Name |
type |
length |
Field description |
primary key |
default value |
id |
bigint |
primary key |
primary key |
||
addtime |
timestamp |
creation time |
CURRENT_TIMESTAMP |
||
shangpinbianhao |
varchar |
200 |
Product Number |
||
shangpinmingcheng |
varchar |
200 |
product name |
||
pinpai |
varchar |
200 |
brand |
||
shangjiazhanghao |
varchar |
200 |
Merchant account |
||
dianpuming |
varchar |
200 |
Store name |
||
shangpinleibi |
varchar |
200 |
Product Category |
||
shangpintupian |
varchar |
200 |
product picture |
||
shangpinxiangqing |
longtext |
4294967295 |
product details |
||
price |
float |
price |
|||
vipprice |
float |
member price |
-1 |
4.3 Design of system homepage
This is the homepage of the online supermarket system, which requires a concise and clear interface, simple operation, and good compatibility. When designing the interface, priority should be given to standardized design, followed by improving the interface design. But when beautifying the interface, you should not increase the complexity of the operation. This page allows users to log in and provides a navigation bar to access each module.
The system homepage mainly includes homepage, product information, celebrity styles, personal center, announcement information, shopping cart and other contents. In addition, there is an index function based on product name; as shown in the figure:
As shown in Figure 4.8, enter the account number and password used during registration on the user login interface to log in.
4.6 System Function Test
The main module tests of the system are shown in Table 4.13:
Table 4.13 System main module test table
Function |
System login module test |
|
Purpose |
Test whether the login function in the system login module is valid |
|
Prerequisites |
User information has been stored in the data |
|
input/action |
Output results |
The actual situation |
Username: admin Password: 123 |
Able to log in to the system normally |
normal |
Username: admin Password: empty |
Unable to log in to the system and it says the password cannot be empty |
normal |
Username: empty Password: empty |
Unable to log in to the system and it says username and password cannot be empty |
normal |
Function |
Module testing of shopping cart functionality |
|
Purpose |
Test whether the shopping cart can add or delete items that the user wants to purchase |
|
Prerequisites |
A product has been selected for purchase |
|
input/action |
Output results |
The actual situation |
Select a product and click to purchase |
A product is added to the shopping cart |
normal |
Choose to continue purchasing the product first |
Jump to the home page to allow consumers to continue selecting products |
normal |
Delete items from shopping cart |
Click to delete the purchased item and you will be redirected to the interface where the shopping cart is empty. |
normal |
Function |
Testing of product management function module |
|
Purpose |
Test whether the addition, modification and deletion of product management are normal |
|
Prerequisites |
First, test new products |
|
input/action |
Output results |
The actual situation |
Enter the backend product management page |
Product list display |
normal |
Product addition |
Jump to the product information addition page, enter the data and put it into the goods table. |
normal |
Product modification |
Click product modification to jump to the product modification interface |
normal |
Product deletion |
Click the delete button after a product on the product list page to delete it. |
normal |
Table of contents
1.2 The purpose and significance of the research 1
1.3 Development status at home and abroad...................................... .2
1.4 Main work done in the paper 3
Chapter 2 Technical Introduction 4
2.3 MySQL environment configuration 4
2.4 Introduction to Java language 5
2.5 Technologies used in the system 5
Chapter 3 System Analysis and Design 6
3.2 Analysis of system functions 6
3.5 System functional structure 7
3.6 System Structure Diagram 8
3.7 Online supermarket system login process 9
Chapter 4 Project Design and System Testing 10
4.1 Database conceptual design 10
4.4Management staff performance model 20
4.5 User shopping process test
4.6 series functional ability test 23
Chapter 5 Conclusion and outlook