Design and implementation of Java-based supermarket management (with source code address)

Summary

In view of the problems of low management efficiency and high error rate in traditional management of small supermarkets, a supermarket purchase, sales and inventory management system was developed and designed. The system uses Java as the development language, idea as the development platform, and MySQL as the backend database. System functions include purchase management, sales management, inventory management and basic data management, etc. The system roles can be divided into administrators and ordinary employees. Administrators have operating rights over all functions of the system, and employee permissions are granted by the administrator. Experimental results show that the system can quickly and effectively store purchase and sales information, change the traditional management method, reduce the workload of managers, improve management efficiency, and provides a decision-making analysis function, which can provide reference for managers to make sales decisions and purchase plans, so that The management of small supermarkets is more intelligent and convenient.
Keywords: data analysis; JAVA; supermarket management; MySQL

1. Introduction

(1) Background of topic selection

At present, the distribution of the three levels of informatization in my country's retail industry is basically clear: in high-end enterprises, the core structural system of purchase, sale and inventory is basically functioning normally. The main problems faced are deep mining and processing of data and high integration of financial business systems. . Ensure the unity and stability of systems and data based on corporate mergers, acquisitions and reorganization; in mid-range enterprises, decentralized operations are changing to centralized management, and the core structure system of purchase, sale and inventory is changing from decentralized single store management and sales accounting to chain management and purchase price accounting. Transition; in low-end enterprises, which have just set foot in and shifted to the chain retail industry, their understanding of informatization is at a superficial level, and the construction of business processes and information systems requires a period of exploration, understanding and gradual process. The entire retail industry has gradually come to a consensus on informatization: informatization is a necessary means for enterprises to develop sustainably and enhance their core competitiveness. Supermarkets in my country were formed in the early 1990s and have now become an important form of my country's retail industry, playing an important role in the development of the national economy. With the rapid development of supermarkets, their operation and management have become more and more complex. The early salesperson station at the counter can no longer meet the current sales development, so there is an urgent need to introduce new management technologies. The supermarket format has various advantages, but under the current situation, it still has some backward aspects common to retail companies, such as the inability to effectively manage each commodity, slow collection and settlement, prone to business errors, and unsuitable for commodity price adjustments. , Inventory efficiency is low, and in the daily management of supermarkets, decision-making on the purchase, sale, and storage of goods is based on experience and lacks real-time analysis functions. The requirements of managers for timely transmission of data are never met. With the rapid development of Suzhe Supermarket, its operation and management have become more and more complex, the amount of data that needs to be processed daily has gradually increased, and there are more and more intermediate links in business operations. The original manual management can no longer cope with this complexity. market. To this end, during the topic selection process, I chose the topic of supermarket management system design, relying on modern computer information processing technology to manage supermarkets, thus saving a lot of manpower and material resources, improving the working conditions of employees, and reducing labor intensity. And it can quickly reflect the purchase, sales, storage and other status of goods and analyze various feedback information, allowing managers to quickly make corresponding decisions in response to market changes and speed up the efficiency of supermarket operation and management.

(2) The significance of topic selection

Through the development of supermarket management system, staff can perform their own duties. Different users will have certain differences in permissions, and then let them all enter different interfaces, so that you can do your own work alone. , but all the information is in the back-end system, and there will be better management of the entire personnel. Depending on where a person is located, the information they can see is different, but all the information can be summarized together and ultimately play a relevant role. It can make the management of the entire supermarket personnel more convenient and allow everyone to do their job well. After the development of the supermarket management system, it truly has the function of data analysis. It can analyze the products purchased by different members and the corresponding types. At the same time, it can analyze the shipping and purchasing aspects of the supermarket and make statistics on big data. , and also has specific analysis functions that allow us to be well aware of some sales conditions in the entire supermarket, and in the process of selecting sources of goods in the future, we can truly consider the needs of our members and avoid making choices. Those products that no one needs and are not recognized enough can achieve better management and future development of the entire supermarket based on big data and other aspects. In the process of developing the supermarket management system, it is necessary to truly realize the statistical function of daily data, including daily sales volume, and specifically, the remaining goods in the warehouse. These aspects must be counted, and then we will make statistics according to some corresponding After using the data, making comprehensive judgments, and selecting more suitable goods in a timely manner, it will be good for us. The statistical work on daily data allows us to be well aware of the operation of the entire supermarket and the situation of goods in all aspects, and do a good job in management in a scientific and effective way, so that we will have better results. Lots of protection.

2. Related technologies

(1) Java language

Java is an object-oriented programming language that can write cross-platform application software. It is the general name of Java programming language and Java platform. Java technology has excellent security, efficiency, versatility and platform portability. Its main technical features are as follows: Security: One of the main methods for Java to defend against malicious code is the storage allocation model. Many large-scale enterprise-level project development will choose to use Java. It is portable: and Java does not depend on the platform, so programs written in Java can be applied to any operating system.

(2) B/S architecture

B/S (Browser/Server) architecture is also called browser/server architecture. As the network is developing rapidly, the function of B/S structure is becoming more and more powerful. This structure can improve system performance by designing and effectively reducing resource costs, thanks to its ability to carry out distributed processing of information.

(3) JSP technology

JSP is the abbreviation of Java Server Pages. Embedding Java code in HTML code to implement functions that require dynamic operations in web pages is essentially an embedded scripting language. JSP is first executed on the server and then forms a unique HTML file that can be browsed and transmitted on the Internet.

3. Demand analysis

(1) Functional requirements analysis

This system is developed using a top-down approach. The functional modules mainly include the following parts: purchase management module, inventory management module, sales management module, employee management module and system module. The specific functions are as follows:
Purchase management: The function is to manage supplier information, formulate purchase plans according to supermarket conditions, implement product procurement, and conduct purchase inquiries.
Inventory management: Its function is to carry out supermarket internal coding and storage of purchased products, product classification and other activities, and at the same time conduct shipment management and inventory statistics according to the sales list.
Sales management: Its function is to provide general sales management and be able to query sales details and print sales reports.
Personnel management: Its function is to manage supermarket employee and supplier information, including query, update, etc.

(2) System functional structure

The function of the system is to enable the entire system to basically realize the management functions of supermarkets such as purchasing, selling, and stocking, etc. It allows supermarket managers to understand the operating conditions of the supermarket more intuitively and make corresponding business decisions. This system includes four major modules, namely personnel management module, sales management module, purchase management module and inventory management module. The functions of each module are as follows:
Personnel management module functions
Realize the query and update of employee information, including adding, deleting, and modifying functions; < a i=3> Realize the query and update of supplier information, including adding, deleting and modifying functions. Sales management module function Realizes the query of sales information and the inventory of product sales information. Purchasing management module function Realize the query and update of purchasing information, including adding, deleting and modifying functions. Inventory management module function Realizes the query and update of product information, including adding, deleting, and modifying functions; Realizes inventory information Query and update, including adding, deleting, and modifying functions.







4. System design

(1) Login module design

Users need to register an account first to log in to the system. When registering, users need to fill in their identity information, including name, ID number, etc., in the box. In order to prevent others from stealing the user's identity information or maliciously logging in to the account, they must fill in a random verification code. After registration, users can fill in their account and password in the box and then use the system.

(2) Customer information management module design

This module manages the customers of this supermarket, mainly including the management of suppliers and buyers. In this module, you can add customer information. Click the 'Add Customer' button, and a pop-up window for filling in customer information will pop up. Fill in the customer's number, name, phone number, address, and contact person into the pop-up window. If there is any missing information, If you fill in the information, it will prompt that the information has failed to be added and you will be reminded to supplement the information. After filling in all the information and clicking OK, the customer's information will be added to the system successfully. If the system does not update customer information in time due to network and other factors, you can click the 'Refresh' button to refresh the page until the newly added customer information is displayed on the page. Customer information can also be modified in this module. If the customer's identity changes, or the phone number and other information changes, you can click the 'Modify Customer Information' button in this module, select the part to be modified, and fill in the changed information. Click the 'Confirm' button and the customer information will be modified successfully. If a customer cancels cooperation with this supermarket, they can click the 'Delete Customer Information' button. After confirming that they are the customer, click the 'Confirm' button and the customer information will be deleted successfully.

(3) Design of employee information management module

This module is to manage the employees of this supermarket. Employee information can be added in this module. Click the 'Add Employee' button, and a pop-up window for filling in employee information will pop up. Fill in the employee's number, employee name, mobile phone number, address, remarks, and role into the pop-up window truthfully. The remark information is mainly used to remind the system administrator of the work tasks of each employee. Role information is used to remind administrators of the employee's identity. This module can also modify employee information, because it is inevitable that employees' phone numbers will change, or their home addresses will change. Therefore, this module must have the function of modifying employee information. You cannot simply add employee information and then modify it. . In this module, the operation of modifying employee information is very simple. Just click 'Modify Employee Information', fill in the changed employee information, and then click the 'Confirm' button. The employee's information will be modified successfully. If an employee quits, In this case, you can click the 'Delete Employee' button to confirm the employee to be deleted, click the 'Confirm Delete' button, and the employee information will be deleted successfully.

(4) Product information management module design

This module can manage the products of this supermarket. In this module, you can view the product information in this supermarket, including product number, product name, product specifications, reference price, quantity upper limit, and quantity offline. At the same time, this module can also add product information. Click the 'Add Product' button, and a pop-up window for filling in product information will pop up. Fill in the product number, product name, product specifications, reference price, quantity limit, and quantity offline into the pop-up window, and enter the important information of the product. Check it again, and after confirming it is correct, click the 'Confirm' button to add product information successfully. Because the price of the product is not fixed, this module must meet the function of modifying the product. For modifying product information, you can click the 'Modify Product Information' button, and a pop-up window for modifying product information will appear. Fill in the product price, quantity and other information truthfully into the pop-up window according to the actual situation, and click the 'Confirm' button. , the product information is modified successfully and will be displayed in this system. If a product is no longer in the supermarket and you need to delete the product, you can click the 'Delete Product' button to determine the product to be deleted, click the 'Confirm' button, and the product will be successfully deleted in the system.

(5) Warehouse information management module design

This function is to manage the warehouse information in this system, mainly including the addition, modification and deletion of warehouses, outbound management and inbound management. In this module, click ‘Add Warehouse’, and a pop-up window will appear to fill in the basic information of the warehouse, including warehouse number, warehouse name, warehouse description, and warehouse description refers to the items stored in this warehouse. After filling in the information accurately into the pop-up window, click the 'Confirm' button, and the information in this warehouse will be added successfully. If the update is not timely, you can click the refresh button to refresh the information in time. If there is warehouse information that needs to be modified, you can click the 'Modify Warehouse Information' button, and a pop-up window for modifying the warehouse information will pop up. Fill in the correct information into the pop-up window. After confirming that it is correct, click the Confirm button, and the warehouse information will be modified successfully. . If a warehouse is sold or cannot be used, the warehouse information must be deleted in the system. Then you can click the 'Delete Warehouse' button to select the warehouse to be deleted, and click the 'Confirm Delete' button to delete the warehouse information from deleted from the system. This module can also manage incoming and outgoing information. For warehousing information management, you can view the product's warehousing number, customer name, product name, warehouse name, warehousing product unit price, warehousing product quantity, warehousing type, person in charge, warehousing mark, warehousing date, production Date and other information, you can comprehensively view the warehousing information. If you need to add warehousing information, you can click the 'Add warehousing information' button, and a pop-up window for adding warehousing information will pop up. Add the warehousing number, customer name, product Name, warehouse name, unit price of warehousing products, quantity of warehousing products, warehousing type, person in charge, warehousing mark, warehousing date, and production date are filled in in the pop-up window. After confirming that they are correct, click the 'Confirm' button. The warehousing information will be added successfully. This module can also manage outbound and outbound information. For outbound information management, you can view the outbound number, customer name, product name, warehouse name, outbound product unit price, outbound product quantity, outbound type, person in charge, outbound mark, outbound date, production Date and other information, you can comprehensively view the outbound information. If you need to add outbound information, you can click the 'Add outbound information' button, and a pop-up window for adding outbound information will pop up. Add the outbound number, customer name, product Fill in the name, warehouse name, unit price of outbound products, quantity of outbound products, outbound type, person in charge, outbound mark, outbound date, and production date into the pop-up window. After confirming that it is correct, click the 'Confirm' button. The outbound information will be added successfully.

5. System implementation

(1) Login module implementation

Administrators and users need to log in before using the system. They must enter the correct account and password to log in. The login implementation is shown in Figure 5-1.
Insert image description here

Figure 5-1 Login implementation renderings

(2) Implementation of employee information management

In this module, administrators can manage employee information. The rendering of the employee information management module is shown in Figure 5-2.
Insert image description here

Figure 5-2 Employee information management

(3) Implementation of customer information management

The purpose of this module is to enable administrators to manage customer information in a unified manner. The rendering of the customer information management module is shown in Figure 5-3.
Insert image description here

Figure 5-3 Customer information management renderings

(4) Implementation of product information management

The purpose of this module is to enable administrators to manage product information in a unified and detailed manner. The implementation of product information management is shown in Figure 5-4.
Insert image description here

Figure 5-4 Implementation of product information management

(5) Implementation of warehouse information management

The administrator clicks Warehouse Information Management to manage the system's warehouse information. Warehouse information management is shown in Figure 5-5.
Insert image description here

Figure 5-5 Warehouse management module renderings

in conclusion

Supermarket management systems are increasingly used in today's society. It provides supermarket managers with new technical support. By implementing management operations, managers facilitate the storage of supermarket-related data and reduce the workload generated by computer maintenance. . At present, supermarket management has received more and more attention, and in-depth research has been conducted on it. However, because the test environment is relatively simple and the system is not perfect, further inspection is needed. The relevant operating technologies used in the supermarket management system rely heavily on the operating system. At the same time, Microsoft's operating system is constantly launching new versions. The operating system version will also have a corresponding impact on the monitoring function, so we also need to Different version updates are tested accordingly. The supermarket management system was developed from the needs of supermarket management. Further in-depth research on supermarket management technology will be more conducive to its development. We should follow the design requirements of the supermarket management system, constantly innovate the design ideas of the supermarket management system, and optimize the supermarket. Management system related technologies, which will play a positive role in promoting the development of domestic supermarket management systems.

Source code network disk link address
Link: https://pan.baidu.com/s/1HI-FpiznI-s-CGt6-ZSxzg?pwd=d360
Extraction code: d360

JAVA completion help, guidance, source code sharing, debugging and deployment

Insert image description here

Guess you like

Origin blog.csdn.net/a1g45/article/details/131046482