Design and implementation of Java-based enterprise management system (with source code network disk link)


The source code is open source and can be obtained by yourself. The link is at the end of the article.

Summary

With the globalization of the market and the increasing complexity of enterprises, enterprise management is facing more and more challenges and opportunities. In order to occupy a place in the market competition, enterprises need to continuously optimize management models and processes, improve organizational collaboration efficiency and employee work quality, and improve the quality and competitiveness of products and services. The enterprise management system is an integrated solution that can help enterprises achieve these goals.
This system is mainly developed and designed for enterprise management. Based on a full analysis of user needs, corresponding solutions are obtained. From database design to program writing, from software testing to system operation and maintenance, this system is designed in strict accordance with the relevant processes of software design.
This article first briefly introduces the development status and trends of enterprise management systems, and clarifies the purpose and significance of the topic selection for the graduation project description. Secondly, the system requirements are analyzed based on the general organizational structure and business processes of the current enterprise management system, and the detailed design process of the enterprise management system is discussed. This system uses Java as the development language and is implemented using MySQL database and HTML5.

Keywords: HTML5; Java; enterprise management; MySQL database

1. Introduction

(1) Research background

With the globalization of the market and the increasing complexity of enterprises, enterprise management is facing more and more challenges and opportunities. In order to occupy a place in the market competition, enterprises need to continuously optimize management models and processes, improve organizational collaboration efficiency and employee work quality, and improve the quality and competitiveness of products and services. The enterprise management system is an integrated solution that can help enterprises achieve these goals.
An enterprise management system refers to an integrated software system that can integrate various departments and business processes of an enterprise to achieve information sharing, resource sharing and work collaboration, and improve the production efficiency of the enterprise. , management quality and operational efficiency. The enterprise management system includes multiple modules such as human resources management system, financial management system, customer relationship management system, supply chain management system, and production management system, covering the entire business process and management system of the enterprise.
The development of enterprise management systems can be traced back to the late 1980s. At that time, MIS (Management Information System) was mainly used for the basic business processes and information management of enterprises, but due to its limitations in its application fields sex, gradually fading out of the market. With the rapid development of computer technology and the popularization of the Internet, ERP (Enterprise Resource Planning) systems have gradually become the mainstream of enterprise management systems. In recent years, with the rise of new technologies such as cloud computing and big data, the development of enterprise management systems has entered a new stage. In the future, enterprise management systems will continue to innovate and change, bringing more opportunities and challenges to enterprise management and development.

(2) Research significance

Enterprise management system is an information technology that can help enterprises achieve information integration, process optimization, data sharing and business collaboration, and improve the management efficiency and operational benefits of enterprises. For enterprises, the introduction of enterprise management systems has the following research significance:

  1. Improve business management efficiency. Enterprise management systems can automatically handle related businesses and reduce manual intervention, thereby improving management efficiency.
  2. Enhance enterprise competitiveness. Through the introduction of enterprise management systems, enterprises can share information, work collaboratively, improve operational efficiency and product quality, thereby improving corporate competitiveness.
  3. Optimize business management processes. The enterprise management system will collect, process and provide information in a timely manner to help enterprises optimize management processes and achieve process controllability and refined management.
  4. Promote the digital transformation of enterprises. Enterprise management system is an important means of enterprise digital transformation. By introducing enterprise management system, it can promote the digital transformation of enterprises and improve the informatization level of enterprises.
    Therefore, the introduction of enterprise management systems has important research significance for the development and competitiveness improvement of enterprises.

(3) Research status at home and abroad

Research on enterprise management systems abroad has a relatively mature development history. At present, research on foreign enterprise management systems mainly focuses on the following aspects:

  1. System architecture and technology: Study basic theories and methods such as the construction and design of enterprise management systems, system architecture, technology platforms and software engineering to improve the stability, security and scalability of enterprise management systems.
  2. Business process management: Study the design, optimization and management of each business process in the enterprise management system to improve enterprise management efficiency and reduce costs, and better adapt to the market environment and changes.
  3. Database and data management: Study the requirements, collection, storage, processing and analysis of data in enterprise management systems to improve the quality and value of data and provide effective support and guidance for enterprise decision-making.
  4. Performance management and evaluation: Study the methods, indicators and tools of performance management and evaluation in enterprise management systems to improve enterprise performance and competitiveness.
  5. Human resource management: Study the concepts, methods and tools of human resource management in enterprise management systems to improve the quality and ability of enterprise employees and enhance the competitiveness of enterprises.
    Generally speaking, the research on foreign enterprise management systems has formed a relatively mature theoretical system and practical experience, which provides reference and inspiration for the development of our country's enterprise management systems.
    The enterprise management system is one of the core information systems of the enterprise, which can effectively improve the management efficiency and competitiveness of the enterprise. Domestic research on enterprise management systems has made some progress.
  6. Wide range of research fields: Domestic research fields on enterprise management systems include enterprise management information system architecture, application services, system integration, etc.
  7. Scientific research institutions actively carry out research: Many domestic universities and scientific research institutions actively carry out research on enterprise management systems, and many relevant graduation project instructions have been published.

2. Related technologies

This chapter will briefly summarize some relevant knowledge used in this topic, including the introduction of HTML5 technology, introduction to Java language, and introduction to MySQL database.

(1) HTML5

HTML5 is the fifth and latest revision of Hypertext Markup Language (HTML). It is a markup language used to structure and present content on the World Wide Web. The purpose of developing HTML5 is to improve the language's ability to support multimedia, graphics and interactivity. HTML5 includes many features such as support for multimedia elements (audio and video), advanced form elements, canvas elements for drawing graphics, drag-and-drop functionality, and more . It also introduces new semantic tags that help define the structure of a web page, such as headers, footers, articles, sections, and navigation. One of the main advantages of HTML5 is its ability to run on different platforms and devices, including desktops, laptops, smartphones, and tablets. HTML5 is also compatible with different web browsers, including Chrome, Safari, Firefox, Edge, and Opera. HTML5 is supported by major web development tools and frameworks such as Bootstrap, AngularJS, React, and Vue.js, making it easier for developers to create and maintain web applications. Overall, HTML5 is an essential technology for creating modern, dynamic web applications that provide a better user experience.

(2) Java language

The Java language is an object-oriented programming language launched in 1995 by Sun Microsystems (now acquired by Oracle Corporation). The Java language can be applied to a variety of different platforms, including desktops, servers, and mobile devices, and is cross-platform, that is, the same Java program can run on different operating systems, such as Windows, Linux, etc.
The Java language was designed with security in mind. It provides a complete set of security mechanisms to prevent the execution of malicious code. Java also has a garbage collection mechanism that can automatically manage memory, avoiding problems caused by programmers' manual memory management and reducing the probability of program errors.
The Java language is a language that we have learned in college. It is an interpretive language. Due to the teacher's careful teaching, I am fairly familiar with the Java language. The Java language is an object-oriented high-level language. Although the Java language is somewhat complex, it is chosen as the underlying development language because of its good portability and ability to write relatively complex programs.

(3) MySQL database

MySQL database has strong compatibility, is a lightweight database, and is free, with no service to restore data. There are few MySQL management tools, and the installation of management tools sometimes requires the installation of additional packages (phpmyadmin, etc.), which is somewhat complex. Compared with other relational database management systems, MySQL files are securely stored.

3. Demand analysis

(1) System functional requirements analysis

analyzed the main functions required by the enterprise management system, and summarized and summarized the functions that need to be implemented in this design. The functional modules of the system are: user module and administrator module. By implementing the functions of the following modules, the system can operate normally.
1. User function module
Users can view the system’s company profile, product display, news center, customer cases and other information on the main page, allowing users to enter the system Can conveniently and comprehensively understand the company's business scope and strength.
2. Administrator function module
The functions of the administrator function module are divided into system management, system monitoring, article management, and product management. manage. It is specifically divided into the following modules;
Basic management module: Modify and delete system pictures, documents, videos, music, and other files. These files are displayed on the main front page. of.
System management module: 1. To manage administrators is to manage the administrators who can log in to the backend of this system, such as their account passwords and other information. If an administrator is dismissed or hired, then in In this module, you can modify your account, password, personal information and other information. 2. System menu management. All functions in the background have corresponding icons in the front desk. In this module, the icons of each function can be set, deleted or modified. 3. Department management, statistics can be made on all departments of the company and organized into this module. Organize all department information including testing department, product department, sales department, etc. into this module for unified management.
System monitoring module: You can view the time, host address, name, and online status of users who have logged in to the system. If there is unnecessary login information, it can be deleted in the background.
Article management module: Articles published in the background will be displayed in the front desk, so the function of article publishing must be very comprehensive. The article management module of this system mainly manages article information and sets its title. Abstract, introductory diagram, article type and other information.
Product management module: The products designed by the enterprise must be displayed in the front desk through the background description. This module uniformly manages the product name, profile picture, status and release time of the product.
Carousel chart management: Carousel chart can display the features of this function in a personalized way. This module can manage the pictures of carousels and manage the types of carousels to fully demonstrate the uniqueness of the enterprise.
Basic information configuration: corporate culture settings. This module can modify the company's profile content to fully demonstrate the corporate culture

(2) System non-functional requirements analysis

By analyzing and summarizing the non-functional requirements of this design, we summarized the performance requirements that this design needs to meet, the reliability requirements during program operation, and the program operating environment requirements. Ensure that the program can run successfully in the computer environment.
1. Hardware environment
(1) Processor: AMD A8.5550M or higher.
(2) Memory: Hard drive above 2GB.
(3) Space: 4GB or more.
(4) Graphics card: AMD Radeon HD 8570M or higher [6].
2. Software environment
(1) Operating system: Windows 10 (Home Edition).
(2) Development tools: MyEclipse 6.0.1.
(3) Database management system: SQL Server 2019.
(4) Web server: Apache Tomcat 6.0.
(5) Development language: Java.

4. System design

(1) Overall structure design of the system

This system adopts B/S architecture. MVC design pattern thinking. The overall design is divided into three levels.
The first layer: the user interface layer, its task is to display the page.
The second layer: the data logic layer, which is mainly responsible for the logical processing of data, the update of flight information, the implementation of the booking process and other operations related to ticket booking requirements.
The third layer: database layer, which performs CRUD operations on the database [7].

(2) System functional structure 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., into the box , in order to prevent others from stealing user identity information or maliciously logging in to the account, a random verification code must be filled in when registering the account. After registration, users can fill in their account and password in the box and then use the system. Passengers can purchase tickets on the page after logging in to their account.
2. Basic management module design
This module mainly manages the basic files of the system, including pictures, documents, music, videos and other files. When the administrator clicks to upload a file, he can select the file he wants to upload, and then click to confirm the upload to transfer the file to the system. When the administrator needs to delete certain files in the system, he can select the file to be deleted in this module, click the delete button, confirm the deletion, and then the file can be deleted.
3. System management module design
This module has three main functions, user management, system menu, and department management. User management can manage user information by selecting departments. For example, if a new member is added to the testing department, you can click the Add button in this module, fill in the name, username, password, select the department as the testing department, email, set the status to normal or disabled, and choose whether to be a super user. Role. After filling in the information, click Submit, and the person's information will be entered into the system. If there is a resigned employee in the product department and his information needs to be deleted in the system, you can click the delete button and confirm the deletion to delete this person's information from the system. If you want to change the password of employee Jacky Cheung, you can click Search, fill in "Jacky Cheung", and click the Password button to change this person's login password. The system menu can modify the menu information of this system, including icons, names, and addresses. You can add menus, delete menus, and modify menus. Department management can modify the sorting of departments. If a new small department is added to the test department, you can click "+" to fill in the new department information, confirm the addition, and the addition will be successful. If you cancel some departments, you can click "×" to delete the department from the system.
4. System monitoring module design
The main function of this module is to monitor the machines that log in to the system. In this module, all machine information logged into the system can be monitored, including the user name, host number, login time, last access time, and expiration time. Through the above information, the information of the person logging into the system can be accurately viewed, and more Helps maintain system security. And for each login record, there is a different login serial number. When counting login data, you can check it by the login serial number. And for the account logged into the system, our module may also check whether it is online. If it is online, "Online" will be displayed under the status function. If you are not online, "Offline" will be displayed under the status function. If you want to delete the access record, you can click "×" under the operation function to delete the login record you want to delete.
5. Article management module design
This module is mainly responsible for the management of article information. All article information on the front end can be managed uniformly in this module. The information of the article is mainly divided into title, abstract, cover image, article type, status, author, creation time, modification time, etc. When the administrator needs to publish an article, he can click the "Add" button and fill in the title, abstract, and content. For the content, he can choose bold font, underline, center alignment, etc. If he needs to upload an image, he can click "Select an image to upload" , then select the type of article, click Publish, and confirm the publication. Then the article will be published successfully and displayed on the front-end page, and the creation time will display the time of publication. If you need to delete some articles, you can select the articles you want to delete, click the "Delete" button, confirm the deletion, and the deletion will be successful. If you want to modify the article, you can click the modify button, modify the content to be modified, click to confirm the release, then the modification will be successful, and then the time of the modification will be displayed under the modification time function.
6. Product management module design
The main function of this module is to manage the product images displayed in the front section. The information of product pictures mainly includes ID number, product name, introduction, product picture, status, category, and creation time. If the administrator needs to add product pictures, he can click the "Add" button, fill in the product name and introduction, click "Select Picture Upload", select the picture of the product to be displayed and upload it, select the product category, click Publish, and confirm the release. Then the product image is published successfully, and the publishing time is displayed as the time when publishing is clicked. If you need to delete some products, you can select the product image to be deleted, click the "Delete" button, confirm the deletion, and the deletion will be successful. If you want to modify the product, you can click the modify button, modify the content to be modified, and click to confirm the release, then the modification will be successful.
7. Carousel chart management module design
This module is mainly used to manage the carousel chart on the system front-end page. The main information of the carousel chart is, ID , title, URL, carousel image, type name, status, creation time. If the administrator of this system needs to modify the published carousel image, he can click on the image to be modified and click the "Modify" button to modify the title, URL, and category name of the carousel image. If the image cannot be To meet the company's requirements for carousel images in the previous section, you can delete this image and replace it with another image. If this image needs to be temporarily unused rather than completely deleted, you can click "Disable" under the status function, and the image will temporarily disappear from the carousel page. When you know you need it to appear, click "Enable" again. Can reappear on the system front-end. The rendering of the carousel management module is shown in Figure 4.8.
8. Design of basic information configuration module
This module mainly manages the content of corporate culture, company profile, and business philosophy in the system front-end page. The content of these three parts can be modified on the original basis, but cannot be deleted, because these three parts are necessary for the company's external display and cannot be deleted. If the administrator wants to modify these three types of information, he can modify the name, author, source, and content as needed. After confirming that it is correct, click "Submit" to display the newly modified information to the front end of the system. The basic information configuration module flow chart is shown in Figure 4.9.

(3) Database design

1. System conceptual model design
The full name of E-R diagram is Entity Relationship Diagram, which is a method used to describe the conceptual model of relationships in the real world. It is used to represent entity types and attributes. A clear conceptual model can carry out database development and design more clearly, making system development more orderly. Generally speaking, conceptual design is about reducing user needs, modeling the information world, and creating hierarchical abstractions of the real world. The conceptual model E-R corresponding to each entity is shown in Figure 4-1.

Insert image description here

Figure 4-1 System E-R diagram

2. System logic model design
Based on the preliminary demand analysis of the enterprise management system, combined with the field data of the front-end page. Utilize the database DB design paradigm to reasonably carry out table structure design, table relationship design, data type design, and database Object object association design. A total of 3 tables are designed. The fields and meanings of each table are as follows: Cover drawing varchar(20) NOT NULL Summary menuid varchar(20) NOT NULL   Title roleid varchar(20) NOT NULL Number id int PK NOT NULL   Field name field indicates field type (length) Primary foreign key constraint remarks Table 3-2 Article information Table (authority) Address address varchar(20) Contact information phone varchar(20) Name realname varchar(20) Password Password varchar(20) NOT NULL Username name varchar(20) NOT NULL Number id int PK NOT NULL Field name field indicates field type (length) Primary and foreign key constraint remarks
Table 3-1 User information table (account) Creation time varchar(20) NOT NULL Table 3-3 Product information table ( product) Field name field indicates field type (length) Primary foreign key constraint remarks Number id int PK NOT NULL   Product name varchar(20) NOT NULL Product picture picture varchar(20) NOT NULL   Introduction varchar(20) NOT NULL State state varchar(20) NOT NULL Creation time varchar(20) NOT NULL






















5. System implementation

(1) Login module implementation

In this module, users and administrators can log in. The login effect is shown in Figure 5-1.

Insert image description here

Figure 5-1 Login implementation

(2) Implementation of basic management module

This module manages file information in the system. The rendering of the basic management module is shown in Figure 5-2. The main code is as follows.
package com.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org. springframework.stereotype.Service;
import com.mapper.EmployeeRoleMapper;
import com.service.EmployeeRoleService;
@Service< /span> } return employeeRoleMapper.add(id); public int add (int id) { @Override } return employeeRoleMapper.delete(id); public int delete(int id ) { @Override private EmployeeRoleMapper employeeRoleMapper; @Autowired
public class EmployeeRoleServiceImpl implements EmployeeRoleService{









Insert image description here

Figure 5-2 Basic management module renderings

(3) Implementation of system management module

This module conducts overall management of system users, menus, departments, and roles to realize the unification of enterprise management. The system management module renderings are shown in Figures 5-3, 5-4, and 5-5.

Insert image description here

Figure 5-3 System management module renderings

Insert image description here

Figure 5-4 System management module renderings

Insert image description here

Figure 5-5 System management module renderings

(4) System monitoring module implementation

This module implements real-time monitoring of users who log in to the system. The system monitoring module rendering is shown in Figure 5-6.
Insert image description here

Figure 5-6 System monitoring module renderings

(5) Implementation of article management module

The implementation of this module is mainly for the management of article information, including title, abstract, cover image, article type, and creation time information management. The rendering of the article management module is shown in Figure 5-7.
Insert image description here

Figure 5-7 Article management module renderings

(6) Implementation of product management module

This module implements information such as product name, product picture, introduction, status, creation time, etc. The product management module rendering is shown in Figure 5-8.
Insert image description here

Figure 5-8 Product management module renderings

6. System test

(1) System test plan

The test plan of this system is mainly functional testing. Test the main modules of the system. At the same time, problems that arise during the test should be collected and recorded, and problems that arise during the test should be analyzed and solved, and corresponding solutions should be formulated.

(2) Test cases

Test each module to see if it functions correctly and whether it can achieve the expected results.
1. User registration and login
Test expectation: Users can register and log in smoothly.
Test steps: Enter the registration page, click login after successful registration.
Test results: User registration is successful and user login is successful.
Table 6-1 Registration and login test form
Operation process expected results Actual results
Fill in the information and register successfully The administrator clicks Delete and selects the file to be deleted. The file is deleted successfully The administrator clicks the upload file button and clicks Confirm that the administrator uploaded successfully Operation process expected results Actual results Table 6-2 Upload file test table Test result: Administrator uploaded and deleted successfully. Test steps: Click Upload in the basic management module to delete the file. Test expectations: Administrators can upload and delete successful files in basic management . 2. Upload and delete files
Account login Account login is successful







in conclusion

This article describes the process of the enterprise management system from analysis to completion to testing. I believe that the development of this system in the post-epidemic era will bring huge business opportunities, because people’s lives in the post-epidemic era are already on track. , started normal life, and small and medium-sized enterprises are gradually getting on the right track, so the development of this system is suitable for the contemporary situation. During the development of this system and the writing of this graduation project description, I encountered various problems. But I did not choose to give up, but faced the difficulties head-on and solved them one by one.

Source code network disk link address
Link: https://pan.baidu.com/s/1HBZOQLrdkKwhLVWPODpLNg?pwd=rmlb
Extraction code: rmlb
The source code is open source and can be picked up by yourself, and remote deployment is available

Guess you like

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