Design and implementation of the Yijiawang fresh food cloud order retail system applet based on WeChat (paper + source code)_kaic


Design and implementation of Yijiawang fresh food cloud order retail system based on WeChat applet Abstract
With the increasingly in-depth and extensive application of information technology in management, the implementation of management information systems has gradually matured technically. This article introduces the entire development process of Yijiawang Fresh Food Cloud Order Retail System. By analyzing the shortcomings of Yijiawang Fresh Cloud Order Retail System management, a computer management solution for Yijiawang Fresh Cloud Order Retail System was created. The article introduces the system analysis part of Yijiawang Fresh Cloud Order Retail System, including feasibility analysis, etc. The system design part mainly introduces the system function design and database design.
This is the administrator and user of Yijiawang Fresh Cloud Order Retail System. Administrator functions include personal center, user management, product classification management, product information management, order evaluation management, system management, and order management. Users can register, log in, purchase goods and other operations. Therefore it has certain practicality.
The backend of this site uses Java's SSM framework for backend management and development. You can log in on the browser to manage backend data. MySQL is used as the local database, and the WeChat applet uses WeChat developer tools to fully ensure the stability of the system. The system has the characteristics of clear interface, simple operation and complete functions, making the management of Yijiawang Fresh Cloud Order Retail System systematic and standardized.

关键词:亿家旺生鲜云订单零售系统;SSM框架;MYSQL数据库
Abstract
With the more and more in-depth and extensive application of information technology in management, the implementation of management information system has gradually matured in technology. This paper introduces the whole development process of yijiawang fresh order retail system. Through the analysis of the deficiencies of the management of the cloud order retail system of yijiawang fresh food, this paper creates a computer management scheme of the cloud order retail system of yijiawang fresh food. This paper introduces the system analysis part of yijiawang fresh order retail system, including feasibility analysis, etc. the system design part mainly introduces the system function design and database design.
Benyijiawang fresh cloud order retail system administrator and user. Administrator functions include personal center, user management, commodity classification management, commodity information management, order evaluation management, system management and order management. Users can register, login, purchase goods and other operations. So it has certain practicability.
This site uses Java SSM framework for background management and development. You can log in to the browser to manage the background data. MySQL is the local database, and wechat applet uses wechat developer tools to fully ensure the stability of the system. The system has the characteristics of clear interface, simple operation and complete functions, which makes the management of yijiawang fresh order retail system systematic and standardized.
Keywords:Yijiawang fresh cloud order retail system; SSM framework; Mysql database

Contents
1 System overview
1.1 Research background
1.2 Research purpose
1.3 System design ideas
2 Related technologies
2.1 WeChat applet
2.2 MYSQL database
2.3 uni-app
2.4 Introduction to SSM framework
3 System
analysis 3.1 Feasibility analysis
3.1.1 Technical feasibility
3.1.2 Economic feasibility 3.1.3
Operational feasibility
3.2 System performance analysis
3.2.1 System security
3.2.2 Data integrity
3.3 System interface analysis
3.4 System process and logic
4 System outline design
4.1 Overview
4.2 System structure
4.3. Database design
4.3.1 Database entities
4.3.2 Database design Table
5 system detailed implementation
5.1 Implementation of administrator module
5.1.1 User information management
5.1.2 Product classification management
5.1.3 Dishes information management
5.1.4 Order information management
5.2 Implementation of mini program user module
5.2.1 Home
5.2.2 My
5.2.3 Favorite or place an order
6 System Test
6.1 Concept and significance
6.2 Characteristics
6.3 Importance
6.4 Testing methods
6.5 Functional testing
6.6 Usability testing
6.7 Performance testing
6.8 Test analysis
6.9 Test result analysis
Conclusion
Acknowledgments
References

1 System Overview
1.1 Research Background
Nowadays, the Internet is developing rapidly and the network is spread all over the world. The domestic mobile information field is unique. News released through WeChat can be quickly and conveniently spread to every corner of the world, and the information that can be spread on the Internet is also very wide, such as Text, pictures, sounds, videos, etc. Therefore, these various benefits have made the Internet the main way for information dissemination. All kinds of information in society are trying their best to spread through the Internet, and the Internet has an increasing impact on society.
Therefore, the development of a suitable Yijiawang Fresh Food Cloud Order Retail System can facilitate management of the Yijiawang Fresh Food Cloud Order Retail System and improve information management efficiency and query efficiency. Users can use the WeChat applet on their mobile phones It is more convenient to order food and it is conducive to better serving people.
1.2 Research Purpose
With the rapid development of Internet technology and the advent of the Internet era, network information will also change today's society. All walks of life are also slowly converging towards standardization and networking in terms of daily business operations and management. The degree of informatization of Yijiawang's fresh food cloud order retail system is reflected in the application of the Internet and information technology to operations and management, and the replacement of traditional manual work with modern tools. Undoubtedly, the use of network information management makes information management more advanced, more efficient, more scientific, and information exchange faster.
For the previous management of Yijiawang Fresh Cloud Order Retail System, most of them were managed using traditional manual methods, which resulted in low management efficiency and high error frequency. Moreover, over time, the accumulated data information is not easy to save, which will cause many problems for query, update and maintenance. There are also great hidden dangers in data handover. If electronic storage is adopted, it will bring great improvements and bring great convenience to users' inquiries. Therefore, it is urgent to design a Yijiawang fresh food cloud order retail system, which can improve the level of information management.
1.3 System design ideas
A successful website should clearly define the purpose of building the website, determine the functions of the website, determine the scale of the website, investment costs, and conduct necessary market analysis, etc. Only detailed planning can avoid many problems that occur during website construction and ensure that website construction can proceed smoothly. At the same time, a large-scale computer website system must have a correct design guiding ideology, and form a complete network architecture through reasonable selection of data structure, network structure, operating system and development environment, in order to give full play to the advantages of computer information management. Based on the actual needs of netizens in real life, this system is designed according to the following principles.
1. Effectiveness: In fact, effectiveness here includes two aspects: usefulness and usability. Usefulness refers to the potential of a site to meet user needs, while usability refers to the ability to achieve specific goals through the operation of the site. It can be seen that a site is not a good site if it does not function properly or is poorly designed. A usable site should be highly efficient, easy to learn, and satisfying in achieving user goals without making mistakes.
2. High reliability: A practical website must be reliable at the same time. This design can ensure the reliability and fault tolerance of the website through reasonable and advanced network design and optimized selection of software and hardware.
3. High security: In the design, various security measures provided by network software and hardware will be fully utilized to ensure that users share resources and fully consider the requirements for disaster recovery, backup, and recovery of system and data resources. Provides powerful database backup tools for the system. The security of critical data can be guaranteed. Operation permission levels, set different roles to ensure the operation permissions of each step, can be set by the administrator.
4. Advancedness: Adopt the most advanced development technology in the world, use JSP development technology, and MYSQL as the website back-end database. The use of these technologies reduces future system operating costs and improves system stability and ease of maintenance.
5. Adopt standard technology: All designs of this website follow current international standards to improve the openness of the system.
6. Balance between appearance and technology: The system adopts a Web-style interface design, which is friendly, beautiful, easy to use, easy to learn and use. The key issue in website design is the balance between appearance and technology. A website that looks bad is annoying. The site may work well but fail to motivate users. On the contrary, if the appearance is very expressive but the technology is limited, users will be very disappointed. A clear and continuous relationship needs to be determined between appearance and technology, that is, appearance is related to the intention of the site, and different types of websites are treated differently.

2 Related Technologies
2.1 WeChat Mini Program
Mini program is a new open capability that allows developers to quickly develop a mini program. Mini programs can be easily accessed and disseminated within WeChat, while providing an excellent user experience. In particular, embracing the WeChat ecosystem has made WeChat mini programs even more powerful and developed rapidly.
2.2 MYSQL database
MySQL is a true multi-user, multi-threaded SQL database server. It is a relational database management system based on SQL client/server model. Its advantages include powerful functions, simple use, convenient management, high security and reliability, fast running speed, multi-threading, cross-platform, complete networking, and stability. etc., which is very suitable for the development of database backends for Web sites or other application software. In addition, users can write programs that access MySQL databases in many languages. As one of the products of the open source movement, the MySQL relational database management system is becoming more and more popular and its application scope is becoming wider and wider. Speed ​​and ease of use make MySQL particularly suitable for the development of database backends for Web sites or application software.
MYSQL database has the following characteristics:
1. Used and tested in C and C++ to ensure the portability and flexibility of the source code compiler.
2. Supports multiple operating systems: AIX, FreeBSD, HP-UX, Linux and Mac OS, Novell's Netware, OpenBSD systems, OS/2, Solaris, Windows, etc.
3. Provides APIs for different programming languages. Programming languages ​​such as C, C++, Python, Java, Perl, PHP, Eiffel, Ruby and Tcl.
4. And the CPU resources used to support multi-threading.
5. The algorithm optimizes query SQL and effectively improves search speed.
6. Clients and servers on the network can be used to program any independent programming environment. There are also Chinese, GB2312, BIG5, Japanese writing, general funds, used to support multiple languages, and can be embedded in data tables and other software shift_jis access columns Can be used as a name.
7. TCP/IP, ODBC and JDBC databases and provide connections to others.
8. Management of management tools, control and optimization of database operations.
9. Tens of millions of records can be stored in a large database.
2.3 uni-app
uni-app is a framework that uses Vue.js to develop all front-end applications. Developers write a set of codes that can be published to iOS, Android, Web (responsive), and various small programs (WeChat/Alipay/ Baidu/Toutiao/QQ/DingTalk/Taobao), Quick App and other platforms.
DCloud has 8 million developers, millions of applications, 1.2 billion mobile monthly active users, and thousands of uni-app plug-ins.
With uni-app in hand, you don’t have to worry about anything. Even if it is not cross-terminal, uni-app is a better small program development framework, a better App cross-platform framework, and a more convenient H5 development framework. No matter what kind of project your leader arranges, you can deliver it quickly without changing your development thinking or changing your development habits.

2.4 Introduction to SSM framework
SSM framework is the abbreviation of Spring+Spring MVC+MyBatis. This is the current mainstream Java EE enterprise-level framework after SSH and is suitable for building various large-scale enterprise-level application systems.
1. Introduction to
Spring Spring is an open source framework. Spring is a lightweight Java development framework that emerged in 2003. It is derived from some of the concepts and prototypes expounded by Rod Johnson in his book Expert One-On-One J2EE Development and Design. Come. It was created to solve the complexities of enterprise application development. Spring uses basic JavaBeans to accomplish things that were previously only possible with EJBs. However, Spring's uses are not limited to server-side development. Any Java application can benefit from Spring in terms of simplicity, testability, and loose coupling. Simply put, Spring is a lightweight Inversion of Control (IoC) and Aspect-Oriented (AOP) container framework.
A. What is Inversion of Control (IOC)?
IOC: Inversion of control is also called dependency injection. The factory pattern is used to hand over the object to the container for management. You only need to configure the corresponding bean in the spring configuration file and set the relevant attributes to let the spring container generate instance objects and management objects of the class. When the spring container starts, spring will initialize all the beans you configure in the configuration file, and then when you need to call it, it will assign the beans it has initialized to the class you need to call these beans (assuming The class name is A), and the allocation method is to call the setter method of A to inject, without the need for you to new these beans in A.
B. What is aspect-oriented (AOP)?
First of all, it needs to be explained that AOP is just a feature of Spring. It is a programming idea like OOP, not a certain technology. AOP can be said to be a supplement and improvement to OOP. OOP introduces concepts such as encapsulation, inheritance, and polymorphism to establish an object hierarchy to simulate a collection of common behaviors. When we need to introduce public behavior to dispersed objects, OOP is powerless. In other words, OOP allows you to define relationships from top to bottom, but it is not suitable for defining relationships from left to right. For example, the logging function. Logging code tends to be spread horizontally across all object hierarchies, having nothing to do with the core functionality of the objects it's spread to. In OOP design, it leads to a large amount of code duplication, which is not conducive to the reuse of various modules. Encapsulate the cross-cutting business logic in the program (such as security, logs, transactions, etc.) into an aspect, and then inject it into the target object (specific business logic).
The technology to implement AOP is mainly divided into two categories: one is to use dynamic proxy technology to decorate the message by intercepting the message to replace the execution of the original object behavior; the other is to use static weaving to introduce A specific syntax creates "aspects" so that the compiler can weave in code about the "aspects" during compilation.
2. Introduction to Spring MVC
Spring MVC is a follow-up product of the Spring Framework and has been integrated into Spring Web Flow. The Spring features it natively supports make development very simple and standardized. Spring MVC separates the roles of controllers, model objects, dispatchers, and handler objects, making them easier to customize.
3. Introduction to MyBatis
MyBatis was originally an open source project iBatis of Apache. In 2010, the project was moved from Apache Software Foundation to Google Code and renamed MyBatis. MyBatis is a Java-based persistence layer framework. The persistence layer framework provided by iBATIS includes SQL Maps and Data Access Objects (DAO). MyBatis eliminates almost all JDBC code and manual setting of parameters and retrieval of result sets. MyBatis uses simple XML or annotations for configuration and original mapping, mapping interfaces and Java POJOs (Plain Old Java Objects, ordinary Java objects) into records in the database. It can be understood that MyBatis is a framework used to help you manage data additions, deletions, modifications and queries.

Guess you like

Origin blog.csdn.net/weixin_39563171/article/details/133102869