Project operation
Environment Configuration:
Jdk1.8 + Tomcat7.0 + Mysql + HBuilderX (Webstorm also works) + Eclispe (IntelliJ IDEA, Eclispe, MyEclispe, Sts are supported).
Project Technology:
java+ mybatis + Mavenetc. Composition, B / S model + Maven management and so on.
environmental needs
1. Running environment: preferably java jdk 1.8, we run on this platform. Other versions are also theoretically possible.
Environment: IDEA, Eclipse, Myeclipse can be. Recommended IDEA.
3.tomcatEnvironment: Tomcat ,, versions are available
4.softwareEnvironment:windows 7/8/10 1G RAM or more; or Mac OS;
5. whether the Maven project: No; check whether the source code directory contains; if it contains, it is a maven project, otherwise it is a non-maven project
6. Database:MySql Versions 5.7/8.0, etc. are available;
Bishop help, guidance, sharing of this source code, debugging deployment (see end of article)
system use case
The system has three main components with use cases such as Login, Administrator and Employee.
- Users in the login module use case include both administrators and employees.roles, respectively, can perform their corresponding identities to log in or unlog in and shut down the system. The use case diagram for the login module is shown in Figure 3-1.
3-1 User Login Use Case Diagram
(2) The user role in the user module is an employee, the employee mainly includes the home page, personal center, product information management, product in-stock management, product out-of-stock management, product sales management, notification information management and other functions, the user moduleuse case diagramAs shown in Figure 3-2.
Figure 3-2 Employee Use Case Diagram
(3) The user role in the administrator module is the administrator, the administrator can realize the website system management through the system pair, mainly including the homepage, personal center, staff management, product type management, product information management, product in-stock management, product out-of-stock management, product sales management, notification information management, administrator management and other functions. The use case diagram of the administrator module is shown in Figure 3-3.
Figure 3-3 Administrator Use Case Diagram
4 System Design
This chapter deals with several aspects of the overall system design, database design and so on in detail.
4.1 Overall system design
The overall design of the system is the design of the global issues related to the system, that is, the design of the system's total processing program, also known as the system outline design. It includes system planning and system function design.
Campus Supermarketpurchase and saleThere are two main types of users in the management system. They are the employee module and the administrator module, and the detailed plan is shown in Figure 4-1.
Figure 4-1 System Planning Diagram
1. Employee Registrationthing that has a material existence (as opposed a conceptual, virtual or online existence)
Employee RegistrationEntities includeEmployee's work number, password, employee's name, position, age, contact information, email, ID card, etc.Properties.Employee RegistrationThe entity diagram is shown in Figure 4-2:
Figure 4-2 Employee Enrollment Entity Diagram
2. Product Informationthing that has a material existence (as opposed a conceptual, virtual or online existence)
Product InformationhonestThe body includes commodity number, commodity name, commodity type, picture, quantity, price of snacks, origin, date of production, shelf life, time of purchase, etc.causality; the commodity information entity diagram is shown in Figure 4-3:
Figure 4-3Product Informationphysical drawing
3. notification messagething that has a material existence (as opposed a conceptual, virtual or online existence)
notification messageEntities includeNotification Title, Notification Type, Employee Work Number, Employee Name, Notification Timeand other attributes.notification messageThe entity diagram is shown in Figure 4-4:
Figure 4-4.notification messagephysical drawing
5.1 Functional page implementation
According to different functional modules, the implementation details of the key pages involved in the system are elaborated here, including the page function description, the page involved in the function analysis, the introduction and the interface display.
System LoginRun the system, first enter the login interface, fill in the corresponding "account" and "password" and user type according to the requirements of the login interface, click "Login" and then the system judges whether the filling is correct or not. Then the system judges whether the filling is correct or not, if it is correct, it will enter the corresponding interface, otherwise, it will give the requirement of registering the information first. The specific process is shown in Figure 5-1.
Figure 5-1 Login Flowchart
To log in, perform the system login operation by entering the account number, password, selecting the role and clicking Login, as shown in Figure 5-2.
Figure 5-2 Login Interface Diagram
Employee registration, in the employee registration page by filling out the employee work number, password, employee name, position, age, contact information, e-mail, ID card and other information to complete the registration operation, as shown in Figure 5-3.
Figure 5-3 Employee Registration Interface Diagram
5.2 Employee Function Module
Employees logging into the system can perform corresponding operations on the homepage, personal center, product information management, product in-stock management, product out-stock management, product sales management, notification information management and other functions, as shown in Figure 5-4.
Figure 5-4 Employee Function Interface Diagram
Personal Center, in the personal information page by filling in the employee's work number, employee name, gender, position, age, starting time, contact information, e-mail, ID card and other content and submit for personal information modification operations, as shown in Figure 5-5.
Figure 5-5 Personal Center Interface Diagram
Commodity information management, in the commodity information management page can be the commodity number, commodity name, commodity type, picture, quantity, snack price, origin, production date, shelf life, the time of purchase and other content such as inbound, outbound, retail, view, modify and delete operations, as shown in Figure 5-6.
Figure 5-6 Commodity Information Management Interface Diagram
Commodity Inventory Management, in the commodity inventory management page, you can view or delete the commodity number, commodity name, commodity type, picture, quantity, snack price, purchase price, place of origin, production date, shelf life, storage time, employee work number, employee name and other content, as shown in Figure 5-7.
Figure 5-7 Commodity Inventory Management Interface Diagram
Commodity out of stock management, in the commodity out of stock management page can be commodity number, commodity name, commodity type, picture, quantity, snack price, origin, production date, shelf life, out of stock time, the employee's work number, the employee's name and other content to view or delete the operation, as shown in Figure 5-8.
Figure 5-8 Commodity Outbound Management Interface Diagram
Commodity Sales Management, in the Commodity Sales Management page, you can view or delete the commodity number, commodity name, commodity type, picture, quantity, snack price, origin, production date, shelf life, selling time, employee work number, employee name, etc., as shown in Figure 5-9.
Figure 5-9 Product Sales Management Interface Diagram
5.3 Administrator Function Module
After logging into the system, the administrator can perform corresponding operations on the homepage, personal center, employee management, commodity type management, commodity information management, commodity in-stock management, commodity out-stock management, commodity sales management, notification information management, administrator management and other functions, as shown in Figure 5-10.
Figure 5-10 Administrator Function Interface Diagram
Employee Management, in the Employee Management page, you can notify, view, modify and delete the employee's work number, employee name, gender, position, age, starting time, contact information, e-mail, ID card and other content, as shown in Figure 5-11.
Figure 5-11 Employee Management Interface Diagram
Commodity Information Management, in the Commodity Information Management page, you can perform operations such as stocking, stocking, retailing, viewing, modifying, and deleting the content of the commodity number, commodity name, commodity type, picture, quantity, price of snacks, place of origin, date of production, shelf life, and time of stocking, etc., as shown in Figure 5-12.
Figure 5-12 Commodity Information Management Interface Diagram
Commodity Inventory Management, in the commodity inventory management page you can view, modify or delete the commodity number, commodity name, commodity type, picture, quantity, snack price, purchase price, place of origin, production date, shelf life, storage time, employee number, employee name and other content, as shown in Figure 5-13.
Figure 5-13 Commodity Inventory Management Interface Diagram
Commodity out of stock management, in the commodity out of stock management page you can view, modify or delete the commodity number, commodity name, commodity type, picture, quantity, snack price, origin, production date, shelf life, out of stock time, employee number, employee name and so on, as shown in Figure 5-14.
Figure 5-14 Commodity out of stock management interface diagram
Commodity Sales Management, in the Commodity Sales Management page, you can view, modify or delete the commodity number, commodity name, commodity type, picture, quantity, snack price, origin, production date, shelf life, selling time, employee work number, employee name, etc., as shown in Figure 5-15.
Figure 5-15 Product Sales Management Interface Diagram
You can view, modify, or delete the notification title, notification type, employee number, employee name, and notification time on the Notification Information Management page, as shown in Figure 5-16.
Figure 5-16 Notification Information Management Interface Diagram
Administrator Management, you can view, modify or delete the user name, password, role and other contents in the administrator management page, as shown in Figure 5-17.
Figure 5-17 Administrator Management Interface Diagram
JAVA Bijou help, guidance, source code sharing, debugging deployment