Design and implementation of self-parking and picking up cars in parking lot based on WeChat applet (paper + program design source code + database file)

With the rapid development of economy and the increasing level of technology, people’s life rhythm is getting faster and faster. The development and use of WeChat mini programs that are ready to go has become more and more frequent. Many businesses and enterprises have established Your own WeChat applet. However, in life, with the emergence of more and more private cars, traffic jams have actually slowed people down. Old parking lots, manual charging methods, and currently developing online payment methods by scanning codes can also cause vehicle stalls and sometimes cause traffic jams in the parking lot. This article describes the general content of the WeChat applet for self-parking and picking up cars in parking lots. Through the research of this article, a self-service parking and picking up system based on the WeChat applet platform has been developed to reduce the pauses when vehicles enter and exit, and at the same time reduce manual charging belts. The coming cost and burden can improve or replace the existing parking system on the market.
Wechat applet ; self-service; parking and picking up; Design And Implementation Of Wechat Applet For Parking Self Service
With the rapid development of economy and the rising level of science and technology, people's life rhythm is also getting faster and faster. The development and use of wechat small program is more and more frequent. Many businesses and enterprises have established their own wechat small program . However, in life, with the emergence of more and more private cars, the traffic congestion makes people slow down. The old parking lot, the manual charging form and the developing online payment form of scanning code will also cause the vehicles to stop, and sometimes cause the traffic jam in the parking lot. This paper describes the general content of wechat app for self-service parking and pick-up in parking lot. Through the research of this paper, a self-service parking and pick-up system based on wechat app platform is developed,which can reduce the pause of vehicles in and out, and also reduce the cost and burden of manual charging, so as to improve or replace the existing parking system in the market.
Key words: wechat app; self service parking and picking up

Abstract I
Abstract II
Chapter 1 Introduction 5
1.1 Background analysis 5
1.2 Current situation analysis 5
1.3 Development trend 5
1.3.1 Foreign development trend 5
1.3.2 Domestic development trend 6
1.4 Proposed solution 6
Chapter 2 System development environment and technology introduction 8
2.1 WeChat Mini Program 8
2.2 Mini Program File Framework 8
2.3 Java 8
2.4 MySQL 9
Chapter 3 System Analysis 10
3.1 System Analysis 10
3.2 Demand Analysis 10
3.3 Application Scenario Analysis 11
3.4 System Role Analysis 11
3.5 System and Data Analysis 12
Fourth Chapter System Feasibility 13
4.1 Security Feasibility 13
4.2 Legal Feasibility 13
4.2.1 Legal Requirements 13
4.2.2 Related Contents of Regulations 13
4.3 Technical Economy and Cost Analysis 14
Chapter 5 System Design 15
5.1 System Function Design 15
5.2 System Function Module Figure 15
5.3 Process design 16
5.3.1 User module 16
5.3.2 Administrator module 16
5.4 Use Case Diagram Design 16
5.5 Business Flow Diagram 17
5.6 Database Design 20
5.6.1 Data Flow Diagram 20
5.6.2 Database Main Class Diagram 21
5.6.3 Data Dictionary 22
Chapter VI System Implementation 24
6.1 Function Description 24
6.1.1 Front Office Function Description 24
6.1.2 Background function description 24
6.2 Function realization 24
6.2.1 Parking reservation interface 25
6.2.2 Parking reservation interface 26
6.2.3 Parking lot interface 26
Chapter 7 System test 28
7.1 Importance of test 28
7.2 Test method 28
7.3 Actual test 29
7.3.1 User license plate information registration 29
7.3.2 Reservation storage 30
7.3.3 Self-service pickup 31
7.4 Code section 32
7.4.1 Vehicle information entry 32
7.4.2 Reservation parking 32
7.4.3 Self-service pickup 33
7.5 Chapter Summary 34
Chapter 8 Future Prospects 35
8.2 Development History 35
8.2 System Insufficiency 35
8.3 Follow-up Plans 36
8.4 Personal Growth 36
References 37
Thanks 38

Chapter 1 Introduction
1.1 Background analysis
Urban public transportation is an important part of urban transportation, and its emergence and development must be related to the formation, rise and fall of cities. The development of urban public transportation should be adapted to the different development periods and scales of the city. Otherwise, urban transportation problems such as "vehicle congestion and environmental degradation" will arise at the historic moment. [1]
In recent years, China's national economy has developed rapidly, and the main means of transportation in every home has gradually become a private car. However, the increase in private cars means that people need more parking lots to park their cars in the parking lot. The manual recording method, the labor cost and efficiency problems brought by people are bothering people. Once the person responsible for recording is absent or is Improper or untimely manual operation will cause road congestion and congestion. In order to avoid the labor cost caused by the parking lot and the slow manual operation, automation and intelligence can effectively alleviate the traffic problems in the parking lot. The WeChat self-parking and picking system can effectively solve these problems.
1.2 Analysis of the status quo
With the development of science and technology and the progress of management methods, more and more people have higher and higher requirements for the intelligent management of vehicle parking in communities, shopping malls and other places. The previous manual charging method is no longer suitable for the faster and faster pace of life in modern times. The current technology cannot achieve parking fees without manual intervention. Manual intervention often produces expected errors. , Combining manual operation and automated operation can make it easier to get our ideal goals.
1.3 Development Trends
1.3.1 Foreign Development Trends
In foreign countries, some developed countries began to carry out parking lot system management and induced parking system research in the 1970s. On the one hand, it is in land use and development on the other hand. To save labor costs and reduce the time people spend parking, developed countries promote the use of the systems they have developed in their major cities. On the one hand, they increase the production of the automobile industry and drive the economy of their cities. On the other hand, the establishment of corresponding infrastructure It also makes the city develop. The parking lot management system of the future does not only need to
The parking lot has been improved to improve the user experience, taking into account the usage of different users. It is also necessary to ensure the normal operation of the parking lot and to ensure that the parking lot is charged for revenue.
Take China’s neighboring countries as an example. Japan relies on wireless communication and other high-tech electronic technology to charge, which can realize all operations of automatic non-stop toll collection. The use of this system can not only alleviate the congestion caused by parking fees, but also realize cashlessness, facilitate drivers, and reduce operating costs and cash losses. This system is the Automatic Toll Collection System (ETC), which has been used in major toll stations around the Japanese capital since 1999. This system has been used in major toll stations in the Tokyo metropolitan area such as Toyo Highway since 1999. [2] Since 2010, my country has gradually used ETC channels to facilitate the use of drivers; in this case, can parking lots also use similar technologies to make people's lifestyles more convenient?
1.3.2 Domestic development trend
. The development of computer technology in our country is relatively slow. Compared with foreign parking lot fees, China's technology and management model are relatively backward. Nowadays, the domestic parking lot license plate recognition system is developing very rapidly, and the market demand The diversity of the license plate recognition system affects the development of the license plate recognition system and, with the increase of the user population, the problems are gradually increasing.
At present, many cities in China have encountered the problem of parking difficulties. With the gradual shortage of land resources in the future, people will have more and more vehicles to travel, and this problem will become more and more serious. The development direction of urban parking lots in the future will definitely follow. With the development in the direction of centralization and large-scale, the number of free parking spaces in future parking lots and a more accurate and rationalized parking plan will become an important issue for vehicle area guidance in urban parking lots in the future. [3] In order to bid farewell to the slow and difficult parking problems, and to alleviate traffic pressure, many domestic IT companies are vigorously improving the parking lot license plate recognition system. The use of parking lot license plate recognition systems can improve people's parking and parking. time.
1.4 Proposed solution
The technical development direction of the parking lot management system in the future is bound to be intelligent and networked. On the one hand, intelligent equipment and comprehensive management software are used to simplify or replace labor, reduce labor labor and economic costs, and the process of vehicle entry and exit, on-site monitoring of the parking lot, and charging process for entering and exiting the parking lot will gradually be unmanned. On the other hand, the ultimate goal of the parking lot management system is to realize the understanding of multiple parking spaces in a relatively wide area through network management, reserve parking spaces in advance, and finally realize random parking. [4]
At present, most of the parking fee management methods on the market in China are manual toll and license plate recognition, and there are more or less problems. Therefore, the coordinated development of dynamic and static traffic (such as the coordination of parking facility capacity and road facility capacity, dynamic traffic operation and vehicle parking coordination, regional congestion charging and parking facility charging coordination, etc.) is the focus of future parking traffic research. [5] This system is a
WeChat applet for self-parking and picking up cars in parking lots , which aims to solve the existing problems in parking lots on the market. Or it can be more perfect by combining with the existing parking system on the market.

Chapter 2 System Development Environment and Technology Introduction
2.1 WeChat Mini Program
WeChat Mini Program officially describes the Mini Program as an application that can be used without downloading and installing. The fact is exactly the same. It realizes the product concept of ready-to-use and ready-to-use products. Users can open the WeChat applet by scanning or searching. There is no need to worry about the waste of mobile phone space and memory caused by installing too many applications. "Ubiquitous, available at any time, no need to install or uninstall." Will be the trend of future application development. [6] The essence of small programs is to make users feel convenient everywhere. It has also expanded its business methods, including various shopping malls, catering businesses, and sales businesses. WeChat applets are everywhere but intangible. [7]
2.2 Mini Program File Framework
The WeChat Mini Program we usually use is generally divided into three parts: index.js is the logic processing code, mainly used to define the data of the page; index.wxml is the layout file, mainly used for the page The overall structure design; index.wxss is a style sheet, which determines how various components should be displayed in the end. App.js app.js is the script code of the applet, in which developers can monitor and process the life cycle functions of the applet, declare global variables, and call the rich API provided by MINA, such as the local data synchronization storage and synchronization in this example Read. app.wxss is a general style sheet for the entire applet. Developers can directly use the style rules declared in app.wxss on the class attribute of page components. Can quickly develop high-performance, high-scalability network communication applications. [8] App.js is the first international conference on advanced algorithms and control engineering for applet to release script code. Developers can monitor and process applet life cycle functions, declare global variables, and call MINA's rich APIs. [9]
2.3 Java
Java programming language is a computer programming language evolved on the basis of C++. It has won people's favor with its good openness and compatibility. Nowadays, in the field of computer software development, the Java programming language is the programming language of choice for many software engineers. [10]
2.4 MySQL
From various small forums and portals on the Internet to Taobao e-commerce applications, MySQL databases can be seen everywhere. With the advantages of its open source community and the design of a plug-in storage engine, MySQL has become the best choice for all applications with smaller data scales. [11]

Chapter 3 System Analysis
3.1 System Analysis
This section focuses on the analysis of the needs and possibilities in the system, compares and analyzes the same types of products currently on the market, considers the existing problems in the current system, and proposes solutions and requirements.
3.2 Demand analysis
Any smart product currently on the market can completely replace human operations. Even the most advanced artificial intelligence cannot completely replace human thinking, let alone think independently as a human, or conform to human behavior. charactermatic. When studying similar intelligent management systems, not only the automation of system functions must be considered, but also the error factors caused by manual intervention. Combining manual operation with automatic operation makes it easier to achieve our ideal goals.
The current license plate recognition system on the market uses automatic license plate recognition algorithm, through the combination of external equipment and internal algorithm, calculates the time when the vehicle enters and exits the parking lot, captures the driving process of the vehicle through external equipment, and transmits the image to the system for algorithm Detection and image processing, followed by license plate recognition. If the vehicle needs to enter and exit the parking lot, it must be captured by an external device, and then through system analysis, the license plate features imported and exported are displayed and input into the system. This is just a process of scanning the license plate of a parking lot. After that, the cost incurred during the parking lot of the vehicle is calculated and the fee is paid.
In the link before payment, most of the systems on the market can now achieve a relatively perfect operating environment and algorithmic calculations. However, there will be more or less mistakes or waste of labor costs in the payment process. A few years ago, mobile phone online payment methods were not so popular. Cash payment and manual charging methods often caused a waste of time and made the parking lot. Exports have become congested. In recent years, with the rise of mobile payment, QR code payment has saved a lot of time, but there is more or less a waste of time.
The WeChat self-service parking and picking applet can better replace the QR code payment or manual operation part. The WeChat applet platform connects to the parking lot background database, so that the owner can automatically pick up the car and pay automatically, reducing the error factor caused by manual intervention. At least, or even further, "scan face payment" is formed, which completely liberates the payment pause for parking lot entry and exit.
3.3 Application scenario analysis
The preliminary design of this system is divided into user interface and administrator interface. Users do not need to register to use this system on the WeChat Mini Program page. The user needs to authorize the login and payment authorization for the WeChat Mini Program. The WeChat Mini Program system backend will be connected with the parking lot vehicle identification system backend. The parking lot system will enter the reserved vehicle into the system database. After the parking lot recognizes the vehicle, it will complete operating. The administrator system can query and manage vehicle information and user information on the WeChat applet interface.
The user usage scenario is as follows:
WeChat applet authorizes login.
1. After successfully logging in, register the vehicle information on the WeChat applet interface and make an appointment for the parking lot you are going to enter.
2. Wait for the appointment to succeed. (The background is completed, and the reservation information is entered into the parking lot license plate recognition system.)
3. Enter the parking lot and complete the vehicle license plate information recognition at the entrance.
4. Drive into the parking lot and complete the operation.
5. Before driving out of the parking lot, pick up the vehicle. (Improvements will be omitted in the future stage.)
6. After the parking lot is recognized, the WeChat applet platform will automatically pay the fee and the vehicle will leave the parking lot.
The driving out function part can be further improved, and the WeChat applet self-service pick-up can be omitted. Through the parking lot vehicle identification system, after successfully identifying the vehicle information, the WeChat applet background automatic payment is completed.
The administrator usage scenarios are as follows:
1. Log in to the background platform.
2. After logging in successfully, manage system information. Including but not limited to, vehicle information query, user information query.
3. When an error occurs in the system, manual intervention is performed for service.
3.4 Analysis of System Roles
The system can be divided into multiple roles based on the level of operation authority; the authority management scopes corresponding to different roles are different.
The roles of the system are mainly divided into administrators and users, and their operation authority is gradually reduced. The system administrator has the background management authority and can manage the system to the maximum extent, and can query, add, delete and modify vehicle information; The system locates, makes an appointment, and picks up the car.
The main task of the administrator is to maintain and process the internal information of the system. Its main responsibilities are as follows:
1. User information management, responsible for the maintenance of basic user information.
2. Vehicle management, responsible for the basic management of vehicles entering and leaving the warehouse.
3.5 System and data analysis
This WeChat applet is designed to combine the parking lot vehicle identification system and the self-parking and picking WeChat applet to form a complete system. Normally, the data between the WeChat applet and the parking lot identification system is not interoperable. Only by connecting two independent systems with interfaces can they access data each other, and by correctly connecting software products and external components, can a complete system be obtained. Therefore, we need an external interface that can correctly represent high-level abstractions. Before connecting interface data and external components, we need to describe them completely and define their data. As long as the product has different parts, there will be different external interfaces corresponding to it.
Chapter 4 System Feasibility
4.1 Security Feasibility
Compared with the traditional APP client, the applet avoids many attacks against the APP client to a certain extent. The traditional APP client has relatively complex code and relatively large system. All the code and data are concentrated in one APP client, and some system vulnerabilities often appear. On the WeChat applet platform, the realization of some functions is mainly provided by WeChat. Various interfaces, such as map positioning, payment, etc. Developers only need to call the corresponding interface to implement the function. This makes some attacks against traditional APP clients useless.
4.2 Legal feasibility
4.2.1 Legal requirements
Regarding the self-parking and picking up of cars in the parking lot, the WeChat applet mainly involves functional modules, map positioning, mobile payment, etc. According to the "Regulations on Map Management", Internet map services shall comply with the regulations, and the following content must not be displayed on the map:
  (1) Endangering national unity, sovereignty and territorial integrity;
  (2) Endangering national security and harming national honor and interests;
  (3) ) It is a state secret;
  (4) It affects ethnic unity and violates ethnic customs and customs;
  (5) Other content that cannot be expressed as required by laws and regulations.
WeChat applet map positioning is implemented by the Tencent map interface provided by the WeChat platform, and strictly abides by the content of national laws and regulations.
4.2.2 Related content of
the regulations The map positioning function used by this system strictly abides by national laws and regulations. According to Article 32 to 41 of the "Map Management Regulations", the summary is as follows:

  1. The state encourages and supports Internet product map service units to develop and utilize geographic information and provide value-added services. And the government at or above the county level will give preferential policies to the industry and supervise and manage it.
  2. Internet map service units must obtain corresponding map drawing qualification certificates before they can provide functions such as positioning and information uploading. The publication of Internet maps shall be reviewed and approved by the publication administrative department of the State Council in accordance with the law.
  3. The map data server of the Internet map service unit shall be assumed to be in China and have data security measures. It is supervised and managed by departments at or above the county level.
  4. Internet map service units shall collect user personal information with the user’s consent, and shall not disclose, tamper with, sell or illegally provide users’ personal information to others. And there are safeguards to ensure the safety of users' personal information.
  5. Internet map service units must not record or store content that cannot be expressed as required by the state. If any violations are found, records must be kept and reported to departments at or above the county level.
  6. No unit or individual may upload content that is prohibited by the state.
  7. Internet map service units shall use maps approved in accordance with the law, strengthen the verification and proofreading of new map content, and file with relevant departments for the record in accordance with national regulations.
  8. Information involving state secrets and commercial secrets shall be handled confidentially by Internet map service entities.
  9. Internet map service units need to strengthen the construction of industry credit systems and improve service levels.
  10. Internet map service units must strictly abide by the relevant content of these regulations.
    4.3 Technical economy and cost analysis
  11. Economic feasibility: The system is independently developed, and the cost is almost zero, without any economic costs, and it is economically feasible.
  12. Market feasibility: The system can be combined with the existing parking fee management model, plays a perfect role, and can be perfectly integrated into the market.
  13. Technical feasibility: This system is a small program for self-parking and car pickup developed on the basis of the WeChat small program. The development threshold of small programs is relatively low, not as difficult as APP, and can meet the needs of simple basic applications.

Chapter 5 System Design
5.1 System Function Design
The content of this chapter is mainly based on the main design basis of the use case model in the system analysis, and on this basis, the main part of the activity diagram in the system is realized.
5.2 System function module diagram The
system function diagram mainly introduces the two major modules of the WeChat applet system for self-parking and picking up cars in the parking lot, and the functions and sub-functions under the modules, as shown in Figure 5.2.

Insert picture description here

The screenshots of part of the system are as follows:

Insert picture description here

Insert picture description here

Insert picture description here

Design and implementation of WeChat mini program for self-parking and picking up of cars in parking lot (paper + program design source code + database file): Please click """ for the download address