Hunan characteristic agricultural product sales system APP/android-based agricultural product sales system/android-based shopping system

Summary

With the rapid development of information technology and network technology, mankind has entered a new information age, and traditional management technologies are no longer able to manage information efficiently and conveniently. In order to cater to the needs of the times and optimize management efficiency, various APPs have emerged as the times require. All walks of life have entered the era of information management. The sales of Hunan specialty agricultural products is one of the products of the changes in the information age.

Any APP must follow the basic process of system design, and this Hunan specialty agricultural product sales is no exception. It also needs to go through market research, demand analysis, outline design, detailed design, coding, and testing. Based on the Java language , it is designed and implemented with Hunan characteristics. Agricultural product marketing system . The APP is based on B/S, the so-called browser/server model, applies SSM framework and Android technology , and chooses MySQL as the backend database. The system mainly includes functional modules such as team information, suppliers, product information, order information, warehousing record management, inventory allocation, order invoices, etc.

This article first introduces the subject background and research status of the Hunan characteristic agricultural products sales system, and then follows the regular software development process. First, it selects an appropriate language and development platform for the system, develops modules and designs the database structure based on demand analysis, and then based on the overall function of the system . Module design draws the functional module diagram, flow chart and ER diagram of the system , designs the framework and writes code according to the designed framework to implement each functional module of the system. Finally, the initially completed system is tested, mainly functional testing, unit testing and performance testing. The test results show that the system can achieve the required functions and operates reasonably well without obvious shortcomings .

Keywords: Hunan specialty agricultural products sales system ; java language ; MySQL database ; SSM framework


Abstract

With the rapid development of information technology and network technology, mankind has entered a new information age. Traditional management technology has been unable to manage information efficiently and conveniently. In order to meet the needs of the times and optimize management efficiency, a variety of apps came into being. All walks of life have entered the era of information management. The sales of agricultural products with Hunan characteristics is one of the products of the transformation of the information age.

Any app should follow the basic process of system design. The sales of Hunan characteristic agricultural products is no exception. It also needs to go through the steps of market research, demand analysis, outline design, detailed design, coding and testing. The sales system of Hunan characteristic agricultural products is designed and implemented based on Java language. The app is based on B / s, the so-called browser / server mode, applies SSM framework and Android technology, and selects MySQL as the background database. The system mainly includes team information, supplier, product information, order information, warehousing record management, inventory transfer, order invoice and other functional modules.

This paper first introduces the subject background and research status of Hunan characteristic agricultural products sales system, and then follows the conventional software development process. Firstly, select the applicable language and development platform for the system, formulate the module and design the database structure according to the demand analysis, and then draw the function module diagram, flow chart and E-R diagram of the system according to the design of the overall function module of the system, Design the framework and write code according to the designed framework to realize each functional module of the system. Finally, test the preliminarily completed system, mainly including function test, unit test and performance test. The test results show that the system can achieve the required functions, and the operation condition is OK without obvious shortcomings

Key words: Hunan characteristic agricultural products sales system; Java language; Mysql database; SSM framework.

Table of contents

Abstract I

Abstract II

1 Introduction

1.1 Topic background 2

1.2 Current status of research on the topic 3

1.3 Preliminary design method and implementation plan 4

1.4 Research content of this article 5

2 System Development Environment 6

2.1 Introduction to Java language 7

2.2 B/S mode 8

2.3 MySQL environment configuration 9

2.4 Basic introduction to HBuilder X1  0

2. 5 SSM Framework1  1

3 System Analysis 12

3.1 System Feasibility Analysis 13

3.1.1 Economic feasibility14

3.1.2 Technical feasibility 15

3.1.3 Operational feasibility 16

3.2 Analysis of website status 17

3.3 Functional requirements analysis 18

3.4 System design rules and operating environment 19

3.5 System Process Analysis 20

3.5.1 Operation process 22

3.5.2 Add information process 23

3.5.3 Deletion of information process 24

4 System Design 25

4.1 Main functions of system design 26

4.2 Database Design 27

4.2.1 Database design specifications 28

4.2.2 ER diagram 29

4.2.3 Data sheet 30

5 System Implementation 31

5.1 User front-end function module 32

5. 2 Employee front-end function module 3   2

5. 3   Administrator backend function module 33

6 System Test 34

6.1 Functional Test 35

6.2 Usability Testing 36

6.3 Maintenance Test 37

6.4 Performance Test 38

6.5 Test result analysis 39

Conclusion 40

References 41

Acknowledgments

1 Introduction

1.1 Background of the topic

With the development of the Internet , computers have become an indispensable office tool in people's lives. Against this background, network technology has been applied to various aspects. In order to improve the efficiency of office life, network information technology has developed rapidly. Against this background, human society has entered a new information age. The sales of agricultural products have always been a major problem for merchants . As merchants continue to grow and product information continues to increase , many agricultural products sales require more people to maintain. At this time, finding effective and convenient methods for selling agricultural products with Hunan characteristics is a top priority. The increasingly mature computer information management technology has become the only choice to solve this problem. Nowadays, computer information management technology has long been able to handle the sales of Hunan specialty agricultural products . In fact, information management technology has penetrated into the information control management of various industries and plays a decisive role. With the continuous progress of modern socialism, many aspects are realized on the Internet, so the Internet has become the most direct, convenient and fast access point. 

Using the Hunan characteristic agricultural product sales system has many advantages over traditional agricultural product sales methods: first, it can greatly improve the retrieval of agricultural product sales information, and you can feedback the desired results within seconds by simply entering relevant information about agricultural product sales ; secondly, it can store a large number of online consultations Information, and at the same time , the security of Hunan specialty agricultural product sales information is higher guaranteed; compared with paper documents to manage Hunan specialty agricultural product sales information, the Hunan specialty agricultural product sales system saves space and human resources. These advantages greatly improve operational efficiency and save operating costs. Therefore, it is necessary to develop a sales system for Hunan specialty agricultural products to effectively manage product information . It not only improves the efficiency of the sales of Hunan specialty agricultural products , but also increases the security of user information, facilitates users to feedback information to the administrator in a timely manner, and increases the number of users, Interactive communication between employees and administrators can improve the intensity of user experience .

This system plans to use MySQL to design the database for the flexibility of the database structure, while the SSM framework and B/S architecture ensure high platform adaptability. This article mainly introduces the subject background of this system, the functions to be completed and the development process, and mainly explains the key points and design ideas of the system design.

1.2 Current status of research on the topic

Nowadays, more and more people are willing to choose a suitable management plan , but they are often limited by management experience. The Internet has emerged as a new network , and the network has entered people's lives. The Hunan characteristic agricultural product sales system undoubtedly provides users with a better platform . In the context of such a successful management model, it is not only convenient for administrators to manage , but also convenient for users to view team information, suppliers, product information, etc. Efficient and convenient management of the sales of Hunan specialty agricultural products has become a top priority to transform the management model and be compatible with the times.

The Hunan specialty agricultural products sales system provides users with a convenient way to view product information, order information, etc. anytime and anywhere . More importantly, it greatly simplifies the way of selling and managing information for Hunan specialty agricultural products . Compared with the traditional Hunan specialty agricultural product sales methods , such electronic information management is more concise and convenient and has unique advantages.

The Hunan specialty agricultural product sales system can not only greatly simplify the administrator's information management work , but also display the best aspects of Hunan specialty agricultural product sales to users on a digital flat network , and this APP front-end user can view employee information , announcement information, etc. The process is always more important than the result. Graduation project is the most colorful part of my college life . In this process, I not only learned more comprehensive book and practical knowledge, but also made me feel the deep love between classmates and teachers and students. This APP has become the most indispensable content for the sales of Hunan specialty agricultural products . Most APPs can already handle all kinds of information perfectly. However, in order to better suit the sales of agricultural products with Hunan characteristics , different users have different requirements. Personalization is also a very important point for APPs , so every merchant hopes to have a personalized one. Customized agricultural products sales system , but this also involves cost control issues. Currently, it is expensive to customize a system, but if there is such a Hunan characteristic agricultural product sales system, you can customize the pages and content according to your needs.It can greatly reduce expenses, but it may be difficult to achieve with current own technology, but it is possible to make the system re-designable. As the scale of businesses continues to expand, user information sharing has also become a trend. The development of the sales of Hunan specialty agricultural products also proves that APP management is constantly developing and progressing, various concepts are becoming more and more advanced, and the requirements for all aspects are becoming higher and higher. Users can view all kinds of information when entering the page. operation .

1.3 Preliminary design method and implementation plan

Software architecture plan: Since this system needs to be able to run on different devices, and the computer configuration requirements should be as low as possible, in order to achieve this requirement, the B/S structure has become the best choice . A system using the B /S structure can run on almost any computer. As long as the browser can work normally, the system can run normally. Moreover, later maintenance and secondary modifications are relatively easy and meet the requirements.

Operating system solution: Windows 10 operating system, which is the latest system launched by Microsoft. Most computers on the market currently use this system, and the system has complete functions and good compatibility. Development Tools: Choose Android . java development language .

1.4 Research content of this article

This article is mainly divided into seven chapters. The first part is the introduction , which mainly introduces the current development status of computer technology, the development stage of the sales of Hunan specialty agricultural products , analyzes the current disadvantages of the sales of Hunan specialty agricultural products , and the benefits of using information technology to manage the sales of Hunan specialty agricultural products .

The second part is an introduction to related technologies, which mainly introduces the development history of each technology, the current status of technological development, technical advantages and reasons for selecting this technology .

The third part is system analysis, which mainly analyzes the functions required for software design .

The fourth part is system design, which mainly carries out system architecture design, database design, etc.

The fifth part is the detailed design of the system.

The sixth part is system debugging and testing, using test methods to conduct feasibility testing, performance testing, system testing, etc.

The seventh part is summary and acknowledgment , which mainly summarizes the completion process and completion status of the program design, and expresses the center's thanks and wishes to the students and teachers who helped complete the design process .

2 System development environment

2. 1  Introduction to Java language

The Java language is a completely object-oriented programming language. The idea of ​​object-oriented programming language is to regard objectively existing things as a class of objects with states and behaviors, and then use abstract methods to find the common states and behaviors of the same class of objects to form a model - a class. Class is the core of Java programming language and the basic abstract unit of Java language. All things in the world are objects, and they can be abstracted into classes with states and behaviors. The main characteristics of the Java language are:
a) The Java language is typically object-oriented. It provides classes, which in turn provide object models. By using inheritance and polymorphic methods, code reuse can be achieved.
b) Java language is safe. The biggest problem to be solved in the contemporary network environment is security. Java has internal security measures to ensure the safety and integrity of the program.
c) The operation of Java language is platform independent. Java programs can run on any system as long as the Java operating system is installed.
d) Java language is multi-threaded.
e) Java language has memory management. Java can automatically manage memory, making good use of system resources and reducing waste .

2.2 B/S mode

The B/S structure is currently the most commonly used structural model. It can make system development simpler, easier to operate, and can also be maintained. When using this structure, you only need to install a database in your computer and some commonly used browsers. The browser will connect the information with the database, which can realize many functions. The B/S structure can be used directly, and the B/S structure greatly reduces the maintenance work during use. Based on B/S software, all databases are independent of each other, so they are very safe. Because based on the B/S structure, you can clearly see the business being processed by the system, and allow managers to make decisions in a timely manner , thus avoiding platform losses. The basic feature of the B/S structure is the centralized management model. After the user uses the system to generate data, the data can be stored in the system's database for future use, thus meeting all the user's needs .

Figure 2-1 Three-layer structure diagram of B/S mode

2. 3  MySQL environment configuration

(1) The data of this system uses MySQL, so MySQL must be installed in the specified directory. If you download a non-installed MySQL compressed package, just decompress it directly to the specified directory. Then click on the file C:\Program Files\MySQL\bin\winMySQLadmin.exe where C:\Program Files\MySQL is the MySQL installation directory. Enter the initial username and password of winMySQLadmin ( note: this is not the username and password in MySQL ). Don’t worry. After confirmation, a traffic light icon will appear in the task launch bar in the lower right corner. The red light means the service is stopped, and the green light means the service is stopped. If the service is normal, left-click the icon->winnt->install the service to install the service, and then left-click the icon->winnt->start the service to start the MySQL service.

(2) Modify the root password of the MySQL database. Use cmd to enter the command line mode and enter the following command:cd C:\Program Files\MySQL\binMySQLadmin -u root -p password 123Enter password: appears when you press Enter. This is to enter the original password. The password was empty when it was first installed, so just press Enter. At this time, the password of the account root in MySQL is changed to 123 and the installation is completed.

2.4 Basic introduction to HBuilder X 

1. The fastest development tools

Due to our geeky nature, HBuilder has also been built by us into the fastest front-end development tool, with innovations in code input methods, optimization of code blocks, integration of emmet, shortcut key syntax design, and mouse-less operation. . . These may not be of interest to low-end programmers, but we enjoy them. HBuilder has a slogan: for geeks, for lazy people, and for you.

2. Environmentally friendly and healthy theme design. Since our eyes are hurt when we face the screen every day, the green soft theme is designed to protect the visual health of developers.

3.App development and deployment

Of course, mobile App development is also an advantage of HBuilder. Functions such as run in device real-device debugging and packaging and distribution are not covered by ordinary HTML4 development tools. We believe that if we are just making a website, HTML4 is enough. It would be a waste of technology to make HTML5 without making an app. And cloud packaging also allows programmers who don’t have a Mac computer to develop iOS applications.

4. Capabilities - HTML5plus Runtime After talking about the tools in functional capabilities, let’s talk about capabilities. HTML5plus Runtime, referred to as 5+ Runtime, is an enhanced web engine running on mobile phones. In addition to supporting standard HTML5, it also supports more extended JS APIs, making the capabilities of JS not inferior to native ones. 5+ Runtime is built into HBuilder and is automatically mounted when the real machine is running and packaged.

5. There were phonegap/Cordova solutions in the industry before, but they had too few built-in js apis. Expanding the apis needed to be developed in native languages. What’s more fatal is that the performance of such solutions was insufficient.

6. 5+ Runtime solves the capability gap between HTML5 and native in three levels.

7. Commonly used APIs – HTML5plus is encapsulated into the cross-platform HTML5plus specification, and the specification is made public at www.HTML5plus.org, and no manufacturer’s private API is used.

8. Including QR code, shake, voice input, map, payment, sharing, file system, address book and other common APIs, which can be easily and simply written, and can be cross-platform .

2.5 SSM framework

The mainstream framework for developing information management systems is SSM (Spring + Spring MVC + MyBatis). The SSM framework web layer uses the Spring MVC framework to make it simple to transmit front-end and back-end data; for the business layer, the Spring framework is used as a lightweight control inversion ( IoC) and aspect-oriented (AOP) container framework; for related SQL operations, Mybatis is used as the persistence layer framework to encapsulate JDBC], making the underlying operations of the database transparent to developers.

3 System analysis

3.1 System feasibility analysis

3.1.1 Economic feasibility

Since this system is a graduation project system , and the system itself has some technical flaws, it cannot be directly used for commercial purposes. I just want to improve my academic level through the development of this system, without the need for additional expenses such as special servers. All creation and work processes can be realized only on a personal computer. Most of the software used is open source software, so the economic cost is not high and it can be easily implemented.

3.1.2 Technical feasibility

The development of this system uses Java as the development language for APP development . Android is chosen as the development tool . The B /S structure determines the compatibility and multi-user operability of this system. In addition, choosing MySql as the database not only improves data security but also guarantees it. improve the operability of data. 

3.1.3 Operational feasibility

This system uses Java as the development language , and the choice of B /S structure determines that operating this system requires only a small amount of resources and does not require too many hardware configurations. Currently, as long as the browser can run normally on the market All personal computers can run normally using this system.

In summary, the economic, technical, and operational conditions for the design and development of this system are all met. Therefore, system development has feasibility conditions.

3. 2 Analysis of website status

The number of users using the system directly determines the workload of user information managers. There is no doubt that the workload of website managers is larger and more cumbersome . Through preliminary research, the current user management status of the website is summarized as follows:

Lack of overall planning . If a website lacks comprehensiveness, systematicness, and integrity in information management, it will inevitably require a lot of manpower and material resources to plan and organize information. The introduction of information management methods will undoubtedly achieve the purpose of saving information management costs. It will not only reduce the waste of resources, but also make the sales information of Hunan specialty agricultural products well-organized, which will become a major advantage in market competition.

It is necessary to proceed step by step. You cannot eat hot tofu in a hurry. Nothing can be accomplished overnight. Even information APPs are the same. To make the system work at its maximum efficiency, you should do more research, listen to the opinions of tutors or classmates , and carry out necessary overall planning and organization. Purposefully design system functions and unite various departments to exert their subjective initiative.

(3) Information security measures are not in place

The right to privacy is sacred and inviolable. This is the right granted to us by the Constitution of the People's Republic of China. No one can infringe upon our legitimate rights and interests. However, there are great security risks in the management of network user information, and there are many cases of information leakage. Strengthening information security Measures are an inevitable part of the process of improving network information management.

 (4) Resources cannot be fully shared

Resource sharing is a major feature of the Internet. Without sharing, there would be no social interaction, and the Internet would lose its charm. If user information sharing can be achieved, it will undoubtedly be indispensable for the development of the website .

(5) The existing system has low scalability.

Nowadays, science and technology are developing rapidly, and what follows is technological updates, which will inevitably bring challenges to software updates. Therefore, the system must have good openness and scalability. In order not to lag behind the times, this is a must-have feature one .

Based on the above analysis, the Hunan characteristic agricultural product sales system should be realistic and effective. The collective performance is as follows: first, the system can organize and classify user information to prevent user information from being chaotic and difficult to sort; second, the system must be safe and stable, and cannot Leaking user information will cause privacy leaks, which will not only harm the interests of users but also damage the reputation of the website ; third, the system must have good openness, not only to facilitate regular maintenance and repair, but also to facilitate the timely addition of new functions to ensure the advanced era Fit. After detailed discussion and demonstration, the overall requirements of the system are determined .

3.3 Functional requirements analysis

System functional requirements analysis is based on software developers participating in market research, conducting detailed and careful thinking through communication among classmates , and then discussing and researching the functions required for preliminary system development . This is the first and crucial step in development. If you do not formulate the required modules for the system at this stage, it will cause unnecessary trouble in the future. Therefore, you must be serious and devote yourself to this step.

This system is developed using a top-down approach and basically positions the following functions:

This project requires the implementation of a Hunan characteristic agricultural product sales system . The system mainly includes administrator module, user module , and employee module function modules.

(1) The administrator use case diagram is as follows:

Guess you like

Origin blog.csdn.net/weixin_47958760/article/details/133501072