(Source code attached) springboot online bookstore applet computer completion 38707

Table of contents

Summary

1 Introduction

1.1 Research background and significance

1.2 Research status at home and abroad

1.3 Contents of system development

1.4 Paper structure and chapter arrangement

1. 5 Mini Program Framework and Directory Structure Introduction

2 Online bookstore mini program system analysis 

2.1 Feasibility analysis

2.1.1 Technical feasibility analysis

2.1.2 Economic feasibility analysis

2.1.3 Operation feasibility analysis

2.2 System function analysis

2.2.1 Functional analysis

2.2.2 Non-functional analysis

2.3 System use case analysis

3.4 Summary of this chapter

3 Overall design of online bookstore mini program

3.1 System architecture design

3.2 System module design

3.3 Database design

3.3.1 Database conceptual structure design

3.3.2 Database logical structure design

3.4 Summary of this chapter

4 Detailed design and implementation of the online bookstore applet 

4.1 User function module

4.2 Administrator function module

5 system test

5.1 System test cases

5.2 System test results

in conclusion

references

Acknowledgments  

Summary

Since the birth of mini programs, they have been greatly sought after by developers. It is a new open capability that can be easily obtained and disseminated in WeChat and has an excellent user experience. This design aims to encourage all people to read, discover and read good books thoroughly, provide the latest book information, expand and cultivate readers' reading hobbies, and provide a communication and learning platform for bookworms.

This article conducts research and analysis on the online bookstore applet, and then develops and designs the online bookstore applet to solve the problem. The main functional modules of the online bookstore mini program include: mall management (book mall, category list, order list) resource management (book information, information category list) system user (administrator, member user) and other functional modules, adopting the design of this system The front-end view interface is completed with Java development language. The system function design adopts MySQL as the main storage unit of background data. The Springboot framework is used for system development to realize all functions of this system. This report first analyzes the background, role, and significance of the research, laying the foundation for the rationality of the research work. Analyzing various requirements and technical issues of the online bookstore mini-program, proving the necessity and technical feasibility of the system, and then giving a basic introduction to the technical software and design ideas that need to be used to design the system, and finally implementing the online bookstore mini-program. Program and deployment runs use it.

Keywords : Java; MYSQL; online bookstore

Abstract

Since the birth of the small program, it has been greatly sought after by the majority of developers. It is a new open ability, which can be easily accessed and disseminated in WeChat, and has excellent user experience. The purpose of this design is to advocate that the whole people read, find and read good books thoroughly, provide the latest book information, expand and cultivate readers' reading interests, and provide a communication and learning platform for bookworms.

This paper studies and analyzes the online bookstore applet, and then develops and designs the online bookstore applet to solve the problem. The main functional modules of the online bookstore applet include: mall management (book mall, classification list, order list) resource management (book information, information classification list) system user (administrator, member user) and other functional modules, which are completed by selecting the Java development language for the front-end view interface of the system design, and the system functional design takes MySQL as the main storage unit of the background data, The system is developed using the Springboot framework, and all the functions of the system are realized. This report first analyzes the background, role and significance of the research, laying a foundation for the rationality of the research work. Based on the analysis of various requirements and technical problems of the online bookstore applet, the necessity and technical feasibility of the system are proved, and then the technical software and design ideas needed to design the system are introduced. Finally, the online bookstore applet and the department run and use it are realized.

Keywords: Java; MYSQL; Online Bookstore

1 Introduction

1.1 Research background and significance

Since its launch in the second half of 2016, WeChat mini programs have still received unanimous praise from the majority of WeChat users until today. Compared with traditional APPs, mini programs still have bright future prospects. For today's booming economy, especially for small and medium-sized Internet companies, WeChat mini programs will reduce R&D expenses and cycles and improve development efficiency. After several years of development, mini programs have continued to grow and mature, and have been making bold attempts in new fields.

Mini programs depend on WeChat, which has a vast user base. Based on the advantages and characteristics of mini programs, mini programs will eventually have an extremely large user base. In today's society, the economy is booming and the pace of life is accelerating. People spend less time reading and less time reading and communicating. But if people want to make progress and improve themselves, they have to study. Nowadays, most people like to read and are willing to squeeze in time to read. Whether it is novels or literary works, online reading seems to be a new trend. The developers took a fancy to this user demand and aimed to serve the majority of online bookworms, determined to develop an online bookstore mini program based on the WeChat mini program and give them a better user experience.

1.2 Research status at home and abroad

In China, because the Internet entered China relatively late, domestic bookstores are the only channel for buying and reading books in everyone's traditional concept. However, with the entry of the Internet into China and its rapid popularity in the country, everyone's concepts have also changed. , began to recognize the existence of online bookstores, and began to purchase and read books online, and this trend has not slowed down. To this day, people are more inclined to purchase books online. However, most of the ways to buy books online are by downloading mobile APPs and shopping on a specific mobile APP, such as Taobao, Dangdang and other software. But in recent years, a new way of shopping has emerged, which is shopping on WeChat, that is, buying books through the WeChat applet in WeChat. Although this method is not yet popular, it is better than shopping in a bookstore in the traditional sense. Shopping has certain advantages even over buying books through mobile apps. So now many mobile apps have begun to develop their own WeChat mini-programs, through which you can log in to your own software for shopping.

In foreign countries, the Internet developed relatively early, and people accepted shopping online earlier. Therefore, people also feel that buying books online is also very common. There are also many business companies abroad. Many of them buy books and enter to other pages to complete a perfect transition. However, because there are not many people using WeChat abroad, most bookstore systems based on WeChat mini programs are developed domestically. of.

1.3 Contents of system development

(1) First, determine the topic, determine the system to be built, and conduct a preliminary systematic confirmation of the background of the system and some of the problems currently faced.

(2) After the system is confirmed, the technology used in system development is confirmed based on the system development needs. The Springboot framework is used for the development of the online bookstore applet and the database is built and developed. The technology used is confirmed for technical analysis. Whether the technology used can complete the implementation of the system.

(3) Determine the technology used by the system, confirm online the user roles divided by the system, and determine the functional modules to be designed based on the user role division. The design of the online bookstore mini-program is mainly divided into administrator and user roles, and the platform Users are mainly targeted at users. After logging in, they can carry out book information and book purchases at any time according to their own needs. For platform management staff, they can process and operate online information according to their own content. Administrators can obtain the details of all users. Data information and be processed and solved as soon as possible according to needs.

(4) After the functional modules of the system are confirmed, the program and interface are designed. After the design is completed, tests are conducted to determine whether the program is perfect. For system testing, different users are required to edit and submit different content, and use different The testing method finds out the loopholes in the program and solves the loopholes in the program online. If there are no problems with the test system, the system can be uploaded for formal operation.

1. 4 Paper structure and chapter arrangement

This article is divided into six chapters, and the chapters are arranged as follows:

Chapter 1: Introduction. The first chapter mainly introduces the background significance of the subject research, the current domestic related research status and technology, and the research content and main work of this article.

Chapter 2: System requirements analysis. Chapter 3 mainly conducts demand analysis from the aspects of users and functions of the system.

Chapter 3: System Design. Chapter 4 mainly carries out functional design of the system framework, system function modules and database.

Chapter 4: System implementation. Chapter 5 mainly introduces the system framework construction and the implementation of the system interface.

Chapter 5: System Testing. Chapter 6 mainly tests some interfaces of the system and tests the main functions.

Chapter 6: Summary.

1.5 Introduction to the applet framework and directory structure

The entire applet framework system is divided into two parts: the logic layer and the view layer . The goal of the mini program development framework is to allow developers to develop services with native mini program experience in WeChat in the simplest and most efficient way possible. The mini program provides data transmission and event systems between the view layer and the logic layer, and provides its own view layer and logic layer framework, allowing developers to focus on data and logic. At the core of the framework is a reactive data binding system that makes it very simple to keep data in sync with views. If data is modified in the logic layer, corresponding updates will be made in the view layer. The framework provides a set of basic components, which come with WeChat-style styles and special logic. Developers can create powerful WeChat mini programs by combining basic components.

2 Analysis of the online bookstore mini program system

This chapter summarizes the feasibility analysis, functional analysis and use case analysis of the online bookstore applet.

2.1 Feasibility analysis

2.1.1 Technical feasibility analysis

After analyzing the real needs of the online bookstore applet, the roles required by the online bookstore applet were divided into Figures 2-1 and 2-2 below.

From the perspective of development tools, since the online bookstore applet is developed based on Java, it can be developed with all the development tools currently on the market. These powerful development tools can bring great convenience to me in designing the graduation design.

From the perspective of the technology of the online bookstore applet, it is not troublesome for me to develop an online bookstore applet. The development of the online bookstore applet can be simply divided into front-end module development, back-end module development and database development. Most of the technical difficulties have been used when I was in school, and there are many technical points on the Internet that I can learn from. The web backend management is developed using Java, and the database uses mysql. Therefore, it saves me a lot of redundant code in developing the online bookstore applet, which brings great convenience to my writing project.

2.1.2 Economic feasibility analysis

Judging from the development cost of the online bookstore applet, I completed the design and development of the online bookstore applet myself, and there were no other costs.

Judging from the maintenance cost of the online bookstore applet, the development of the online bookstore applet follows a complete set of coding standards, and the structural design of the online bookstore applet is very flexible and follows the principle of high cohesion and low coupling, so it is easy to maintain and Iterative development.

After the online bookstore mini program is launched, I will investigate based on real needs in the early stage of the launch and develop a set of appropriate usage fees for the use of the online bookstore mini program I developed. After the system is running stably, I will extend the promotion scope to other communities. They can register and use my online bookstore applet by themselves. They only need to pay a small deposit, and I will introduce advertising investment and self-operated business to them.

Based on the above analysis, the economic benefits brought by the online bookstore mini-program will bring great benefits. And with my promotion, the market for using the online bookstore applet I developed will become larger and larger. Therefore, from an economic perspective, it is feasible to develop an online bookstore mini program.

2.1.3 Operation feasibility analysis

The main service targets of the online bookstore applet are people who need to borrow books. Generally speaking, the use of the online bookstore applet is relatively simple. Generally, there are no difficulties in operation. The managers of the online bookstore applet need to use the online bookstore applet. You have a certain understanding of the bookstore applet, such as order list, book mall, book information and other operations. If you don't know how to do it, you can just get some simple training.

2.2 System function analysis

2.2.1 Functional analysis

I divided the online bookstore applet into two parts: the user management module and the administrator module.

Front-end user management module:

(1) User registration and login: The user registers as an official user and logs in to the online bookstore applet; the user adds, deletes, modifies and checks personal information, such as personal information and password changes.

(2) Users view news information: Users view information and can like and comment.

(3) My collection: Users can view their past collections of books and remove their favorites.

(4) Announcement information: Users can click the "Announcement Information" column to jump to the announcement information list and view the announcement information.

(5) Book mall: In the book mall, users can search and click on a book to view the details of the book and add it to the shopping cart or purchase it immediately.

(6) Orders: Users can view paid order list information.

(7) Shopping cart: Users can view the details of books added to the shopping cart.

Backend administrator management module:

(1) Carousel chart management: Administrators can add, delete, modify and check the system carousel chart.

(2) Member users: Administrators can control the registered user information on the front desk and manage the administrator's information at the same time.

(3) Announcement information management: Administrators can publish the latest announcement information of the system.

(4) Information classification management: Administrators can classify and manage information information.

(5) Book information: Administrators can maintain and manage book information.

(6) Book mall: The administrator performs addition and other maintenance management on the book mall.

(7) Order list: The administrator can manage the user's order information.

(8) Classification list: The steward can classify and manage books.

2.2.2 Non-functional analysis

The non-functional requirements of the online bookstore applet include the security, reliability, performance, scalability, etc. of the online bookstore applet. The details can be expressed in the following 3-1 table:

Table 3-1 Non-functional requirements table for online bookstore mini program

safety

Mainly refers to the installation of the online bookstore applet database, the use of the database and the setting of passwords must comply with standards.

reliability

Reliability means that the online bookstore applet can install and operate according to the user's instructions. After testing, the reliability is over 90%.

performance

Performance is a necessary condition for the online bookstore applet to occupy the market, so it is best to have good performance.

Scalability

For example, the database reserves multiple attributes, such as the use of interfaces, to ensure the non-functional requirements of the system.

Ease of use

Users only need to follow the content displayed on the page of the online bookstore applet, and that's it.

maintainability

The maintainability of the online bookstore applet development is very important. After testing, there is no problem with the maintainability.

2.3 System use case analysis

The complete UML use case diagrams of the online bookstore applet are Figure 2-1 and Figure 2-2 respectively. Include users as well as administrators on participants. User role use cases on the front desk include users who have registered as our members, user login, announcement information, book mall, news information, orders, shopping carts, basic information (personal information, password modification, collection), user role use cases are shown in the figure As shown in 2-1.

Figure 2-1 Use case diagram of online bookstore applet user role

The administrator on the web background management maintains all data information in the entire online bookstore applet. The administrator can perform login, carousel image management, announcement information management, administrator, member user, resource management (book information, information classification list ), mall management (book mall, category list, order list). An example of the administrator role is shown in Figure 2-2.

Figure 2-2 Online Bookstore Mini Program Administrator Role Use Case Diagram

3.4 Summary of this chapter

This chapter mainly determines the functions to be realized by the entire online bookstore applet through feasibility analysis, functional requirements analysis, and system use case analysis. At the same time, it also provides standards for code implementation and testing of online bookstore mini-programs.

3 Overall design of online bookstore mini program

The main contents discussed in this chapter include the functional module design and database system design of the online bookstore applet.

3.1 System architecture design

This online bookstore applet is architecturally divided into three layers: presentation layer (UI), business logic layer (BLL) and data layer (DL).

Figure 3-1 Online bookstore applet system architecture design diagram

Presentation layer (UI): Also known as the UI layer, it mainly completes the UI interaction function of this online bookstore applet. A good UI can improve the user experience and enhance the user's comfort when using this online bookstore applet. The UI interface design must also adapt to different versions of the online bookstore applet and different size resolutions to achieve good compatibility. The UI interaction function requirements are reasonable, and users must obtain consistent interaction results when performing interactive operations. This requires the presentation layer to be well connected with the business logic layer.

Business Logic Layer (BLL): Mainly completes the data processing function of this online bookstore applet. The data transmitted by the user from the presentation layer is processed by the business logic layer and delivered to the data layer. The data read by the system from the data layer is processed by the business logic layer and delivered to the presentation layer.

Data layer (DL): Since the data of this online bookstore applet is placed in the mysql database on the server side, the parts that belong to the service layer can be directly integrated into the business logic layer. Therefore, there is only the database in the data layer, which mainly completes this task. Data storage and management functions of the online bookstore applet.

3.2 System module design

In the previous chapter, the functional requirements and non-functional requirements of the system were mainly analyzed, and the use cases in this online bookstore applet were analyzed based on the requirements. Then the next step is to start designing the architecture, main functions and database of this online bookstore applet. The online bookstore applet is derived based on the demand analysis in the previous chapter, and its overall design module diagram is shown in Figure 3-2.

Figure 3-2 Function module diagram of the online bookstore mini program

3.3 Database design

Database design generally includes three major processes: demand analysis, conceptual model design, and database table creation. The demand analysis has been explained in the previous chapter, and the conceptual model design has two parts: conceptual model and logical structure design.

3.3.1 Database conceptual structure design

The following is the ER entity relationship diagram of the main database tables in the entire online bookstore applet.

Figure 3-2 Total ER relationship diagram of the online bookstore mini program

3.3.2 Database logical structure design

From the total ER relationship diagram in the online bookstore applet in the previous section, it can be concluded that a total of many data tables need to be created. Here I mainly list several major database table structure designs.

Table access_token (login access duration)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

token_id

int

10

0

N

Y

Temporary access badge ID

2

token

varchar

64

0

Y

N

temporary access badge

3

info

text

65535

0

Y

N

4

maxage

int

10

0

N

N

2

Maximum lifespan: Default 2 hours

5

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Creation time:

6

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time:

7

user_id

int

10

0

N

N

0

user ID:

Table address (shipping address:)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

address_id

int

10

0

N

Y

Shipping address:

2

name

varchar

32

0

Y

N

Name:

3

phone

varchar

13

0

Y

N

cell phone:

4

postcode

varchar

8

0

Y

N

post code:

5

address

varchar

255

0

N

N

address:

6

user_id

mediumint

8

0

N

N

User ID: [0,8388607] User obtains other user-related data

7

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Creation time:

8

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time:

9

default

bit

1

0

N

N

0

Default judgment

Table article (article: article for content management system)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

article_id

mediumint

8

0

N

Y

Article id: [0,8388607]

2

title

varchar

125

0

N

Y

Title: [0,125] is used in the title tag of articles and html

3

type

varchar

64

0

N

N

0

Article classification: [0,1000] is used to search for articles of the specified type

4

hits

int

10

0

N

N

0

Number of clicks: [0,1000000000] Number of people who visited this article

5

praise_len

int

10

0

N

N

0

Number of likes

6

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Creation time:

7

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time:

8

source

varchar

255

0

Y

N

Source: [0,255] Source of article

9

url

varchar

255

0

Y

N

Source address: [0,255] used to jump to the website where the article was published

10

tag

varchar

255

0

Y

N

Tag: [0,255] is used to mark the relevant content of the article. Multiple tags are separated by spaces.

11

content

longtext

2147483647

0

Y

N

Text: the main content of the article

12

img

varchar

255

0

Y

N

cover picture

13

description

text

65535

0

Y

N

Article description

Table article_type (article classification)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

type_id

smallint

5

0

N

Y

Category ID: [0,10000]

2

display

smallint

5

0

N

N

100

Display order: [0,1000] determines the order in which categories are displayed.

3

name

varchar

16

0

N

N

Category name: [2,16]

4

father_id

smallint

5

0

N

N

0

Parent category ID: [0,32767]

5

description

varchar

255

0

Y

N

Description: [0,255] describes the role of this classification

6

icon

text

65535

0

Y

N

Category icon:

7

url

varchar

255

0

Y

N

External link address: [0,255] If this category jumps to other websites, set it on the URL

8

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Creation time:

9

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time:

Table auth (user rights management)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

auth_id

int

10

0

N

Y

Authorization ID:

2

user_group

varchar

64

0

Y

N

user group:

3

mod_name

varchar

64

0

Y

N

Module name:

4

table_name

varchar

64

0

Y

N

Table Name:

5

page_title

varchar

255

0

Y

N

page title:

6

path

varchar

255

0

Y

N

Routing path:

7

position

varchar

32

0

Y

N

Location:

8

mode

varchar

32

0

N

N

_blank

Jump method:

9

add

tinyint

3

0

N

N

1

Is it possible to add:

10

of the

tinyint

3

0

N

N

1

Can it be deleted:

11

set

tinyint

3

0

N

N

1

Whether it can be modified:

12

get

tinyint

3

0

N

N

1

Is it possible to view:

13

field_add

text

65535

0

Y

N

Add fields:

14

field_set

text

65535

0

Y

N

Modify fields:

15

field_get

text

65535

0

Y

N

Query fields:

16

table_nav_name

varchar

500

0

Y

N

Cross-table navigation name:

17

table_nav

varchar

500

0

Y

N

Cross-table navigation:

18

option

text

65535

0

Y

N

Configuration:

19

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Creation time:

20

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time:

Table book_mall (book mall)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

book_mall_id

int

10

0

N

Y

Book Mall ID

2

book_name

varchar

64

0

Y

N

book title

3

book_author

varchar

64

0

Y

N

book author

4

press

varchar

64

0

Y

N

the publisher

5

recommend

int

10

0

N

N

0

Intelligent Recommendation

6

cart_title

varchar

125

0

Y

N

Title: [0,125] used in tags of product html

7

cart_img

text

65535

0

Y

N

Cover image: used to display on the product list page

8

cart_description

varchar

255

0

Y

N

Description: [0,255] is used for product specification description

9

cart_price_ago

double

8

2

N

N

0.00

Original price: [1]

10

cart_price

double

8

2

N

N

0.00

Selling price: [1]

11

cart_inventory

int

10

0

N

N

0

Commodity stocks

12

cart_type

varchar

64

0

N

N

uncategorized

Categories:

13

cart_content

longtext

2147483647

0

Y

N

Text: the main content of the product

14

cart_img_1

text

65535

0

Y

N

Main picture 1:

15

cart_img_2

text

65535

0

Y

N

Main picture 2:

16

cart_img_3

text

65535

0

Y

N

Main picture 3:

17

cart_img_4

text

65535

0

Y

N

Main picture 4:

18

cart_img_5

text

65535

0

Y

N

Main picture 5:

19

create_time

datetime

19

0

N

N

CURRENT_TIMESTAMP

creation time

20

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time

table cart (shopping cart)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

cart_id

int

10

0

N

Y

Shopping cart ID:

2

title

varchar

64

0

Y

N

title:

3

img

varchar

255

0

N

N

0

picture:

4

user_id

int

10

0

N

N

0

User ID:

5

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Creation time:

6

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time:

7

state

int

10

0

N

N

0

Status: In use, expired

8

price

double

9

2

N

N

0.00

unit price:

9

price_ago

double

9

2

N

N

0.00

Original price:

10

price_count

double

11

2

N

N

0.00

Total price:

11

num

int

10

0

N

N

1

quantity:

12

goods_id

mediumint

8

0

N

N

Product id: [0,8388607]

13

type

varchar

64

0

N

N

uncategorized

Categories:

14

description

varchar

255

0

Y

N

Description: [0,255] is used for product specification description

Table comment (comment)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

comment_id

int

10

0

N

Y

Comment ID:

2

user_id

int

10

0

N

N

0

Commenter ID:

3

reply_to_id

int

10

0

N

N

0

Reply comment ID: empty is 0

4

content

longtext

2147483647

0

Y

N

content:

5

nickname

varchar

255

0

Y

N

Nick name:

6

avatar

varchar

255

0

Y

N

Avatar address: [0,255]

7

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Creation time:

8

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time:

9

source_table

varchar

255

0

Y

N

Source table:

10

source_field

varchar

255

0

Y

N

Source field:

11

source_id

int

10

0

N

N

0

Source ID:

Table goods (product information)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

goods_id

mediumint

8

0

N

Y

Product id: [0,8388607]

2

title

varchar

125

0

Y

N

Title: [0,125] is used in the <title> tag of products and html

3

img

text

65535

0

Y

N

Cover image: used to display on the product list page

4

description

varchar

255

0

Y

N

Description: [0,255] is used for product specification description

5

price_ago

double

8

2

N

N

0.00

Original price: [1]

6

price

double

8

2

N

N

0.00

Selling price: [1]

7

sales

int

10

0

N

N

0

Sales volume: [0,1000000000]

8

inventory

int

10

0

N

N

0

Commodity stocks

9

type

varchar

64

0

N

N

Categories:

10

hits

int

10

0

N

N

0

Number of clicks: [0,1000000000] Number of people who visited this product

11

content

longtext

2147483647

0

Y

N

Text: the main content of the product

12

img_1

text

65535

0

Y

N

Main picture 1:

13

img_2

text

65535

0

Y

N

Main picture 2:

14

img_3

text

65535

0

Y

N

Main picture 3:

15

img_4

text

65535

0

Y

N

Main picture 4:

16

img_5

text

65535

0

Y

N

Main picture 5:

17

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Creation time:

18

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time:

19

customize_field

text

65535

0

Y

N

Custom fields

20

source_table

varchar

255

0

Y

N

Source table:

21

source_field

varchar

255

0

Y

N

Source field:

22

source_id

int

10

0

N

N

0

Source ID:

23

user_id

int

10

0

Y

N

0

add a person

Table goods_type (goods type)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

type_id

int

10

0

N

Y

Product category ID:

2

father_id

smallint

5

0

N

N

0

Parent category ID: [0,32767]

3

name

varchar

255

0

Y

N

product name:

4

desc

varchar

255

0

Y

N

describe:

5

icon

varchar

255

0

Y

N

icon:

6

source_table

varchar

255

0

Y

N

Source table:

7

source_field

varchar

255

0

Y

N

Source field:

8

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Creation time:

9

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time:

Table hits (user clicks)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

hits_id

int

10

0

N

Y

Like ID:

2

user_id

int

10

0

N

N

0

Liked by:

3

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Creation time:

4

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time:

5

source_table

varchar

255

0

Y

N

Source table:

6

source_field

varchar

255

0

Y

N

Source field:

7

source_id

int

10

0

N

N

0

Source ID:

Table member_users (member users)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

member_users_id

int

10

0

N

Y

Member user ID

2

member_name

varchar

64

0

Y

N

Member's name

3

member_gender

varchar

64

0

Y

N

Member gender

4

examine_state

varchar

16

0

N

N

passed

Approval Status

5

recommend

int

10

0

N

N

0

Intelligent Recommendation

6

user_id

int

10

0

N

N

0

User ID

7

create_time

datetime

19

0

N

N

CURRENT_TIMESTAMP

creation time

8

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time

Notice (announcement)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

notice_id

mediumint

8

0

N

Y

Announcement id:

2

title

varchar

125

0

N

N

title:

3

content

longtext

2147483647

0

Y

N

text:

4

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Creation time:

5

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time:

Table order (order)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

order_id

int

10

0

N

Y

Order ID:

2

order_number

varchar

64

0

Y

N

order number:

3

goods_id

mediumint

8

0

N

N

Product id: [0,8388607]

4

title

varchar

32

0

Y

N

Product title:

5

img

varchar

255

0

Y

N

product picture:

6

price

double

10

2

N

N

0.00

price:

7

price_ago

double

10

2

N

N

0.00

Original price:

8

num

int

10

0

N

N

1

quantity:

9

price_count

double

8

2

N

N

0.00

Total price:

10

norms

varchar

255

0

Y

N

Specification:

11

type

varchar

64

0

N

N

uncategorized

Categories:

12

contact_name

varchar

32

0

Y

N

Contact name:

13

contact_email

varchar

125

0

Y

N

Contact email:

14

contact_phone

varchar

11

0

Y

N

Contact mobile phone:

15

contact_address

varchar

255

0

Y

N

Recipient address:

16

postal_code

varchar

9

0

Y

N

postal code:

17

user_id

int

10

0

N

N

0

Buyer ID:

18

merchant_id

mediumint

8

0

N

N

0

商家ID:

19

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

创建时间:

20

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

更新时间:

21

description

varchar

255

0

Y

N

描述:[0,255]用于产品规格描述

22

state

varchar

16

0

N

N

待付款

订单状态:待付款,待发货,待签收,已签收,待退款,已退款,已拒绝,已完成

表praise (点赞)

编号

名称

数据类型

长度

小数位

允许空值

主键

默认值

说明

1

praise_id

int

10

0

N

Y

点赞ID:

2

user_id

int

10

0

N

N

0

点赞人:

3

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

创建时间:

4

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

更新时间:

5

source_table

varchar

255

0

Y

N

来源表:

6

source_field

varchar

255

0

Y

N

来源字段:

7

source_id

int

10

0

N

N

0

来源ID:

8

status

bit

1

0

N

N

1

点赞状态:1为点赞,0已取消

表slides (轮播图)

编号

名称

数据类型

长度

小数位

允许空值

主键

默认值

说明

1

slides_id

int

10

0

N

Y

轮播图ID:

2

title

varchar

64

0

Y

N

标题:

3

content

varchar

255

0

Y

N

内容:

4

url

varchar

255

0

Y

N

链接:

5

img

varchar

255

0

Y

N

轮播图:

6

hits

int

10

0

N

N

0

点击量:

7

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

创建时间:

8

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

更新时间:

表upload (文件上传)

编号

名称

数据类型

长度

小数位

允许空值

主键

默认值

说明

1

upload_id

int

10

0

N

Y

上传ID

2

name

varchar

64

0

Y

N

文件名

3

path

varchar

255

0

Y

N

访问路径

4

file

varchar

255

0

Y

N

文件路径

5

display

varchar

255

0

Y

N

显示顺序

6

father_id

int

10

0

Y

N

0

父级ID

7

dir

varchar

255

0

Y

N

文件夹

8

type

varchar

32

0

Y

N

文件类型

表user (用户账户:用于保存用户登录信息)

编号

名称

数据类型

长度

小数位

允许空值

主键

默认值

说明

1

user_id

mediumint

8

0

N

Y

用户ID:[0,8388607]用户获取其他与用户相关的数据

2

state

smallint

5

0

N

N

1

账户状态:[0,10](1可用|2异常|3已冻结|4已注销)

3

user_group

varchar

32

0

Y

N

所在用户组:[0,32767]决定用户身份和权限

4

login_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

上次登录时间:

5

phone

varchar

11

0

Y

N

手机号码:[0,11]用户的手机号码,用于找回密码时或登录时

6

phone_state

smallint

5

0

N

N

0

手机认证:[0,1](0未认证|1审核中|2已认证)

7

username

varchar

16

0

N

N

用户名:[0,16]用户登录时所用的账户名称

8

nickname

varchar

16

0

Y

N

昵称:[0,16]

9

password

varchar

64

0

N

N

密码:[0,32]用户登录所需的密码,由6-16位数字或英文组成

10

email

varchar

64

0

Y

N

邮箱:[0,64]用户的邮箱,用于找回密码时或登录时

11

email_state

smallint

5

0

N

N

0

邮箱认证:[0,1](0未认证|1审核中|2已认证)

12

avatar

varchar

255

0

Y

N

头像地址:[0,255]

13

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

创建时间:

表user_group (用户组:用于用户前端身份和鉴权)

编号

名称

数据类型

长度

小数位

允许空值

主键

默认值

说明

1

group_id

mediumint

8

0

N

Y

用户组ID:[0,8388607]

2

display

smallint

5

0

N

N

100

显示顺序:[0,1000]

3

name

varchar

16

0

N

N

名称:[0,16]

4

description

varchar

255

0

Y

N

描述:[0,255]描述该用户组的特点或权限范围

5

source_table

varchar

255

0

Y

N

来源表:

6

source_field

varchar

255

0

Y

N

来源字段:

7

source_id

int

10

0

N

N

0

来源ID:

8

register

smallint

5

0

Y

N

0

注册位置:

9

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

创建时间:

10

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

更新时间:

3.4本章小结

整个网上书城小程序的需求分析主要对系统总体架构以及功能模块的设计,通过建立E-R模型和数据库逻辑系统设计完成了数据库系统设计。

4 网上书城小程序详细设计与实现

网上书城小程序的详细设计与实现主要是根据前面的网上书城小程序的需求分析和网上书城小程序的总体设计来设计页面并实现业务逻辑。主要从网上书城小程序界面实现、业务逻辑实现这两部分进行介绍。

4.1用户功能模块

4.1.1 前台首页界面

在网上书城小程序的前台首页界面上采用了上+中+下的方式来布局界面,最右上角是登录+注册这+搜索这三个链接,下面依次是导航栏+轮播图以及下面的网站公告,下面依次是推荐的新闻资讯展示,其主界面展示如下图4-1所示。

图4-1 前台首页界面图

4.1.2 用户注册界面

不是网上书城小程序中正式用户的是可以在线进行注册的,当填写上自己的账号+设置密码+确认密码+昵称+邮箱+手机号+身份后+用户名再点击“注册”按钮后将会先验证输入的有没有空数据,再次验证密码和确认密码是否是一样的,最后验证输入的账户名和数据库表中已经注册的账户名是否重复,只有都验证没问题后即可用户注册成功。其用用户注册界面展示如下图4-2所示。

图4-2 前台用户注册界面图

4.1.3 用户登录界面

网上书城小程序中的前台上注册后的用户是可以通过自己的账户名和密码进行登录的,当用户输入完整的自己的账户名和密码信息并点击“登录”按钮后,将会首先验证输入的有没有空数据,再次验证输入的账户名+密码和数据库中当前保存的用户信息是否一致,只有在一致后将会登录成功并自动跳转到网上书城小程序的首页中;否则将会提示相应错误信息,用户登录界面如下图4-3所示。

图4-3用户登录界面图

4.1.4搜索书籍界面

在网上书城小程序首页上的搜索框中输入自己想要快速检索的书籍的关键词并点击“搜索”按钮后将会输入的关键词进行和数据库中保存的书籍信息进行模糊匹配,并将检索到最匹配的书籍信息显示出来。搜索书籍界面如下图7所示。

图4-4搜索书籍界面图

4.1.5 新闻资讯界面

当访客点击网上书城小程序中导航栏上的“新闻资讯”后将会进入到该“新闻资讯”列表的界面,然后选择想要看的新闻资讯,点击进入到详细界面,可对喜欢的资讯进行收藏、点赞、发表评论等操作,新闻资讯界面如下图4-5所示。

图4-5新闻资讯界面图

4.1.6 订单界面

当访客点击了订单界面后将会进入查看已付款和未付款订单详情,可以进行订单删除等操作,订单页面如图4-6所示。

图4-6 订单界面图

4.1.7 收货地址管理界面

用户可以在此界面编辑自己的收货地址,并可设置为默认地址操作。收货地址管理界面如下图4-7所示。

图4-7 收货地址管理界面图

4.1.8 购物车界面

用户可以在“ 购物车”界面查看加购的书籍详情,可进行支付、删除等操作, 购物车界面如下图4-8所示。

图4-8 购物车界面图

      

图4-8 支付界面图

4.2管理员功能模块

4.2.1 会员用户界面

网上书城小程序中的管理人员是可以对前台注册的用户进行管理。会员用户界面如下图4-9所示。

图4-9添加会员用户界面图

4.2.2公告信息管理界面

网上书城小程序中的管理人员是可以发布公告信息,公告信息管理界面如下图4-10所示。

图4-10公告信息管理界面图

4.2.3 资源管理界面

网上书城小程序中的管理人员是可以对网上书城小程序内的不同资讯的分类下的资讯信息进行维护和管理的,资源管理界面如下图4-11所示。

图4-11资源管理界面图

4.2.4分类列表管理界面

网上书城小程序中的管理人员是可以对网上书城小程序内的书籍信息进行分类等。分类列表管理界面如下图4-12所示。

图4-12分类列表管理界面图

4.2.5书籍商城管理界面

网上书城小程序中的管理人员可以对书籍信息进行添加、删除等操作管理的。书籍商城管理界面如下图4-13所示。

图4-13书籍商城界面图

5系统测试

5.1 系统测试用例

系统测试包括:用户登录功能测试、用户注册功能测试、共享图书展示功能测试、共享图书添加功能测试,如表5-1、5-2、5-3、5-4所示:

用户登录功能测试:

表5-1 用户登录功能测试表

测试名称

测试功能

操作

操作过程

预期结果

测试结果

用户登录模块测试

正确输入用户信息,用户成功登录

输入用户的信息

1.在密码框输入用户密码。2.点击登录

跳转到首页

正确

用户注册功能测试:

表5-2 用户登录功能测试表

测试名称

测试功能

操作

操作过程

预期结果

测试结果

用户注册模块测试

正确输入用户星系,完成用户注册

输入用户的基本信息

在注册页面填写用户相应的信息,然后点击“注册”按钮。

提示成功并跳转到登录界面

正确

用户注册模块测试

用户注册失败

用户两次输入密码不一致

用户在注册页面填写信息时输入两个不一致的密码然后点击“注册”按钮。

注册失败提示两次密码输入不一致

正确

分类列表界面测试:

表5-3 分类列表界面测试表

测试名称

测试功能

操作

操作过程

预期结果

测试结果

分类列表功能模块测试

分类列表正常的显示

浏览分类列表

在后台首页选择一个书籍分类进入分类列表,然后选择一个书籍

进入该分类的详细信息界面

正确

添加书籍商城功能测试:

表5-4 添加书籍商城功能测试表

测试名称

测试功能

操作

操作过程

预期结果

测试结果

管理员添加书籍功能测试

添加书籍成功的情况

输入新书籍的基本信息

后台选择“发布书籍”选项,然后填写新书籍基本信息点击“添加”按钮

新书籍添加成功

正确

管理员添加书籍功能测试

添加书籍失败的情况

输入书籍基本信息不完全

后台选择“发布书籍”选项,然后不完全填写书籍信息,点击“添加”按钮。

对应信息框后出现提示请输入XXXX信息

正确

管理员添加书籍功能测试

添加书籍失败的情况

管理员在价格框输入非数字字符

后台选择“发布书籍”选项然后再输入非数字字符,点击“添加”按钮。

添加失败,提示“分享者信息添加!”

正确

5.2 系统测试结果

通过编写网上书城小程序的测试用例,已经检测完毕用户登录模块、用户注册模块、分类列表模块、书籍商城模块功能测试,通过这4大模块为网上书城小程序的后期推广运营提供了强力的技术支撑。

结论

至此,网上书城小程序已经结束,在开发前做了许多的准备,在本系统的设计和开发过程中阅览和学习了许多文献资料,从中我也收获了很多宝贵的方法和设计思路,对系统的开发也起到了很重要的作用,系统的开发技术选用的都是自己比较熟悉的,比如Web、Java技术、MYSQL,这些技术都是在以前的学习中学到了,其中许多的设计思路和方法都是在以前不断地学习中摸索出来的经验,其实对于我们来说工作量还是比较大的,但是正是由于之前的积累与准备,才能顺利的完成这个项目,由此看来,积累经验跟做好准备是十分重要的事情。

当然在该系统的设计与实现的过程中也离不开老师以及同学们的帮助,正是因为他们的指导与帮助,我才能够成功的在预期内完成了这个系统。同时在这个过程当中我也收获了很多东西,此系统也有需要改进的地方,但是由于专业知识的浅薄,并不能做到十分完美,希望以后有机会可以让其真正的投入到使用之中。

参考文献

[1]Yu Yang. Design and Implementation of Student Information Management System Based on Springboot[J]. Advances in Computer, Signals and Systems,2022,6(6).

[2]李乐.Java语言应用研究[J].智慧中国,2022(09):80-81.

[3]贺斌.计算机软件开发中JAVA语言的应用研究[J].中国设备工程,2022(11):247-249.

[4]杨宇,徐万明.基于Springboot微信小程序用户管理系统设计[J].电脑与电信,2022(03):63-67.DOI:10.15966/j.cnki.dnydx.2022.03.023.

[5]Siyi Liu. Explore Java Language and Android Mobile Software Development[J]. International Journal of Frontiers in Engineering Technology,2021,3.0(2.0).

[6]Guanhong Chen,Jiangming Xu. Design and implementation of efficient Learning platform based on SpringBoot Framework[J]. Journal of Electronics and Information Science,2020,6(1).

[7]Kevin Kline. The Java Language Extension for SQL Server Is Now Open Source[J]. Database Trends and Applications,2020,34(4).

[8]邓明杨,李忠雄.基于JAVA Web技术的网上书城的设计与实现[J].计算机产品与流通,2020(05):159-160.

[9]荣先钊,林宇驰,张上.网上书城的设计与开发[J].福建电脑,2019,35(06):117-118.

[10]柴茜. 基于内容聚类的网上书城推荐算法研究[D].渤海大学,2019.

[11]廖昳. 我国网上书城的线下经营策略研究[D].河南大学,2018.

[12]孟冬青. 墨香网上书城系统的设计与实现[D].吉林大学,2016.

[13]张佳丽. 个性化推荐网上书城的研究与实现[D].长春工业大学,2015.

[14]蒋海昌. 网上书城系统设计与实现[D].电子科技大学,2013.

[15]韦吉文.网上书城数据库设计[J].信息与电脑(理论版),2013(06):132-133.

[16]卢红梅.网上书城系统的设计浅析[J].计算机光盘软件与应用,2013,16(05):262-263.

[17]费晓. 网上书城设计与实现[D].北京邮电大学,2010.

[18]章红雨. 吉林省店网上书城及音像大卖场开业[N]. 中国新闻出版报,2006-05-09(002).

[19]Ming-Jun Zhang. Application of ID3 Algorithm in Customer Management about Online Bookstore[P]. Proceedings of the 2016 3rd International Conference on Mechatronics and Information Technology,2016.

[20]Patrawadee Tanawongsuwan. Adjective Roles in Estimating a Product Rating in a Product Review[P]. Proceedings of the 2016 International Conference on Communications, Information Management and Network Security,2016.

致  谢

网上书城小程序的完成,标志着我即将结束在XXX大学的校园生活并跨入社会。在即将毕业的此刻,我想对所有帮助过我的师长、同学和亲人表达我发自内心的谢意。

感谢学校这个大家庭,在这里我们总能找到自己的归属。学校始终在向我们传达着温暖和关怀,接纳和包容我们的缺点。学校给我最大的感受便是要将自己的专业知识与实践相结合,而我也正在努力的成为学校所要求的应用型人才。

Thanks to all the teachers, the college has helped me move from ignorance to maturity step by step. Every teacher here has the greatest kindness and patience to educate us big children. Various activities organized by the college gave me the opportunity to exercise myself. It is these opportunities that made me a better myself and improved my abilities in all aspects.

Secondly, I would like to thank my thesis advisor. The reason why I am attracted to teachers is because of their friendship with students and their serious attitude towards work. From topic selection to topic development to thesis writing, the teacher has been giving careful guidance and will discuss solutions with us after pointing out existing problems.

Finally, I would like to express my gratitude to all the teachers who will participate in the review and defense of this paper.

Please follow and like + privately message the blogger to receive the project source code for free

Guess you like

Origin blog.csdn.net/ID3461074420/article/details/134686367