ssm+mysql+Human resource management system graduation design based on SSM framework - with source code 060936

SSM Human Resource Management System

Summary

The rapid development of scientific and technological progress has caused great changes in people's daily life, and the rapid development of electronic information technology has made the application level of electronic information technology in various fields popularized and applied. The arrival of the information age has become an irresistible fashion trend, and the history of human development is entering a new era. In actual application, the working rules and development steps of the application software are used to construct the security scheme of the human resource management system using Java technology.

This design mainly realizes the human resource management system security solution integrating the advantages of humanization, high efficiency, and convenience, and completes functional modules such as home page, user management, department information, training information, salary information, and employee information. The system communicates with the server through the browser to realize data interaction and change. The system improves work efficiency and reduces errors and omissions in data storage through scientific management methods and convenient services. The human resource management system security solution uses the Java language and is developed using Java technology based on the MVVM model. It is written using the MyEclipse 2017 CI 10 compiler. In terms of data, it mainly uses Microsoft's MySQL relational database as the data storage medium, and cooperates with the front-end HTML +CSS technology completes the development of the system.

Keywords: security scheme; Java language; relational database; data storage

SSM human resource management system

Abstract

The rapid development of scientific and technological progress has caused great changes in people's daily life. The rapid development of electronic information technology has popularized and applied the application level of electronic information technology in various fields. The advent of the information age has become an irresistible fashion trend, and the history of human development is entering a new era. In practical application, according to the working rules and development steps of application software, Java technology is used to build the security scheme of human resource management system.

This design mainly realizes the human resource management system security scheme integrating the advantages of humanization, high efficiency and convenience, and completes the functional modules such as home page, user management, department information, training information, salary information and employee information. The system communicates with the server through the browser to realize the interaction and change of data. Through scientific management and convenient service, the system improves work efficiency and reduces errors and omissions in data storage. The security scheme of human resource management system uses Java language and Java technology based on MVVM mode. It is written with MyEclipse 2017 CI 10 compiler. In terms of data, Microsoft's MySQL relational database is mainly used as the data storage medium, and the system development is completed with the foreground HTML + CSS technology.

Key words: safety scheme; Java language; Relational database; data storage

Table of contents

Chapter 1 Introduction

1.1  Research Background

1.2  Development Status

1.3  Organizational structure of this paper

Chapter 2 Introduction to Related Technologies

2.1 SSM framework

2.2 Introduction to Java

2.3 MySQL database

2.4 B/S structure

2.5 MyEclipse Development Tools

2.6 Main functions of Vue.js

Chapter 3 System Analysis

3.1  Feasibility analysis

3.1.1  Technical Feasibility Analysis

3.1.2  Economic Feasibility Analysis

3.1.3  Operation Feasibility Analysis

3.2  Analysis of Functional Requirements

3.3  Analysis of non-functional requirements 7

3.4  Data Flow Analysis 7

Chapter 4 System Design 8

4.1  System architecture design 8

4.2  System function structure 8

4.3  Database design

4. 3 .1  Conceptual model

4. 3 .3  Data sheet

Chapter 5 System Implementation

5.1  Implementation of login module

5.2 Realization of administrator function module 1  9

5.3  Implementation of the administrator subsystem module

Chapter 6 System Testing 2 4

6.1  Test purpose 2 4

6.2  Test process 2 4

6.3  Test results 2 5

Chapter 7 Summary and Outlook 2 6

References 2 7

Thanks 2 9

  1. introduction
    1. Research Background

In order to improve the efficiency of employee management, reduce unnecessary expenses, and facilitate personnel management staff to fully grasp the basic situation of enterprise personnel results. Therefore, it is very important to design and develop a dedicated enterprise human resource management system. However, the specific design and implementation of the system will be carried out according to the personnel management situation of each enterprise. The development of the system must first understand the shortcomings of the existing system, and provide a more convenient solution for the development of a new system, so that the management personnel can improve the work efficiency in the daily management work process, and enable the enterprise resources to be allocated more effectively. Improve the daily management level of the enterprise.

According to the current actual situation of the enterprise, developers use the computer hardware equipment and software conditions owned by individuals to develop a complete set of enterprise human resource management system to realize some basic personnel information from the perspective of thinking, working thinking and working methods. Add, delete and modify. In order to reduce the burden of employee management personnel, we should fundamentally solve the problem of heavy workload and error-prone manual operation. At the same time, this is also the inevitable trend of future development in the field of employee management.

    1. development status

The development history of enterprise human resource management system can be traced back to the late 1960s. Since computer technology had already entered the practical stage at that time, and large enterprises were time-consuming, laborious and error-prone to manually calculate and pay salaries, in order to solve this contradiction, the first generation of enterprise human resource management system came into being. At that time, due to the limitations of technical conditions and requirements, there were very few users, and the system was at best a tool for automatic salary calculation, which contained neither non-financial information nor historical salary information, and almost no report generation. Function and salary data analysis function. However, its emergence has shown a bright prospect for personnel management, that is, using the high speed and automation of computers to replace the huge manual workload, using the high accuracy of computers to avoid manual errors and errors, and making large-scale centralized processing Large corporate payroll made possible.

The transformation of enterprise human resources management system appeared in the late 1990s. Due to the needs of market competition, how to attract and retain talents, stimulate the creativity of personnel, work responsibility and work enthusiasm have become important factors related to the rise and fall of enterprises, and talents have become one of the most important assets of enterprises. The "fair, fair, and reasonable" corporate management concept and the improvement of corporate management level have made the society have higher requirements for corporate human resource management systems; at the same time, due to the popularity of personal computers, database technology, client/server technology, especially The development of Internet/Intranet technology makes the emergence of the third-generation enterprise human resource management system inevitable. The characteristic of the third-generation enterprise human resources management system is that from the perspective of personnel management, almost all personnel-related data (such as salary and benefits, recruitment, personal career design, rewards and punishments, position management, performance management, etc.) , job descriptions, personal information and historical data) are managed together to form an integrated information source. Friendly user interface, powerful report generation tools, analysis tools and information sharing enable personnel managers to get rid of heavy daily work and concentrate on considering enterprise personnel planning and policies from a strategic point of view.

    1. Organization of this article

The first chapter is the introduction, the beginning of this article, some textual descriptions of the research background and research significance of this topic.

The second chapter studies the development techniques and development tools used in the security scheme of the human resource management system.

The third chapter is the system analysis part, including the description of the overall requirements of the system, the analysis of system requirements from a functional point of view, and the non-functional analysis of whether the system can be realized.

The fourth chapter is the system design part, an important part of this article, which provides the detailed design of the system architecture and the design description of some main functional modules.

The fifth chapter is the specific realization of the system, introducing the specific realization of each module of the system.

The sixth chapter tests and runs the system on the basis of the previous chapters.

Finally, the system is seriously summarized, so as to have a new prospect for the future.

  1. Related technology introduction
    1. SSM framework

Today's popular "SSM Combination Framework" is the abbreviation of Spring + SpringMVC + MyBatis, which has been sought after by many. Framework for web projects, usually simpler data sources. Spring belongs to a lightweight inversion of control framework (IoC), but it is also an surface-oriented container (AOP). SpringMVC is often used in the classification work mode of the controller, which is separated from the model object, and the role of the program object is processed with the ATM. This decoupling treatment makes it easier to personalize the entire system. MyBatis is a good sustainability framework that supports common SQL queries and allows data optimization for advanced mapping of stored procedures. Due to the high development cost of large-scale Java Web applications, it is difficult to maintain after development and some difficult problems to solve during the development process, and the "SSM Composition Framework" is adopted, which allows the establishment of business hierarchies and provides a good solution to this problem .

    1. Introduction to JAVA

Java mainly adopts CORBA technology and security model, which can protect data in Internet applications. It also provides comprehensive support for EJB (Enterprise JavaBeans), java servlet API, SSM (java server pages), and XML technology. JAVA language is an object-oriented language. It provides the most basic methods to complete specified tasks. Developers only need to know some concepts to write some applications. Java programs are relatively small, and their code can run on small machines. Java is a computer programming language with three main features of encapsulation, inheritance and polymorphism, widely used in enterprise web application development and mobile application development.

The difference between the Java language and general compilers and literal translation is that Java first converts the source code into bytecode, and then converts it into an executable file for the JVM, which can run on various JVMs. Therefore, its cross-platform characteristics are realized. While this made Java very slow in its early days, it has improved as Java has been developed.

    1. MySQL database

The advancement of science and technology has brought many conveniences to daily life: classroom projectors use virtual imaging technology, digital cameras use photoelectric detection technology, for example, the records of goods entering and leaving warehouses in supermarkets require an information warehouse. This information warehouse is the database, and this time the human resource management system security solution also needs the support of this technology.

The reason for using the MySQL software is that it can be accessed by multiple users, and there are Archives, etc. in it. It will classify the data first, and then store them in tables separately. Such special operations will improve the speed of the data management system itself, allowing the database to be used flexibly. The code of MySQL is public, and allows others to compile and upgrade it twice. This feature can reduce the cost of users, and form a good website system after matching with suitable software. Although it has shortcomings, it is the mainstream application object of users in all aspects [8].

    1. B/S structure

B/S (Browser/Server) is a more convenient architecture than its predecessor architecture. It uses the Web server to complete the data transfer and exchange. You only need to download the browser as the client, then the work will achieve the effect of "slimming", and there is no need to consider the problem of non-stop installation of software [9].

    1. MyEclipseDevelopment Tools

MyEclipse is developed by Genuitec, a very powerful JavaEE integrated development environment, including: complete coding, debugging, testing and publishing functions [10], full support for JSP, Spring, CSS, JavaScript, SpringMVC, HTML, JSF, Mybatis, SQL and other technologies. In terms of architecture, the features of MyEclipse can be divided into seven categories: JavaEE model; Web development tools, EJB development tools, JavaEE project deployment services, connectors for application servers, database services, and MyEclipse integration help [11].

For each of the above functional categories, there are corresponding functional parts in MyEclipse, and they are realized through a series of plug-ins. The modular structure of MyEclipse allows it to independently expand and upgrade any one of the modules without affecting other modules. The powerful MyEclipse application development platform is not only an Eclipse plug-in, but also a powerful integrated development environment for JavaEE [12].

    1.  Main functions of Vue.js

Vue.js is a progressive framework for building user interfaces. Unlike other heavyweight frameworks, Vue is designed with bottom-up incremental development. Vue's core library only focuses on the view layer, and is very easy to learn and integrate with other libraries or existing projects. On the other hand, Vue is fully capable of driving complex single-page applications developed with single-file components and libraries supported by the Vue ecosystem.

The goal of Vue.js is to enable responsive data binding and composed view components with the simplest API possible .

Vue.js itself is not a catch-all framework - it only focuses on the view layer. So it's very easy to learn, very easy to integrate with other libraries or existing projects. On the other hand, Vue.js can also power complex single-page applications when used with related tooling and supporting libraries.

  1. system analysis
    1. Feasibility Analysis

This design is based on the B/S mode, using Java and JSP technologies using MySQL database and Myeclipse. The overall feasibility is divided into the following three aspects.

      1. Technical Feasibility Analysis

The so-called technical feasibility refers to whether the functions planned in the early stage can be satisfied within a limited time. Whether there will be problems that cannot be solved in the development and design. Whether the completed project can be well applied, if there are shortcomings, whether there is great difficulty in later maintenance. After evaluating the system, it was determined that existing technology could achieve the goals. Using JSP technology to realize dynamic pages, embedding low-dependency design patterns, flexible databases, and stable servers, the operating efficiency of the entire system is greatly improved. It can be seen that achieving the goal at the technical level is not a nonsense.

      1. Economic Feasibility Analysis

Most of the tools used in the project are currently popular open source and free, so in the early stage of development, the funds used for the project will be greatly reduced, and the development of the software will not be affected by the funds during the project start-up period, so It is still economically feasible. Try to use the least cost to meet the needs of users. Save funds for labor costs and equipment costs. It will go further and further on the road of paperless and high efficiency.

      1. Operational Feasibility Analysis

The operation of this system to realize the function is very simple. The common configuration of ordinary computers can run this software, and as long as you have a rough understanding of the basic common sense of computer use, you can use this software smoothly. The computer has the ability to connect to the Internet and can access the system normally. It does not require the operator to have any superb ability. It only needs to understand the business process and operate correctly according to professional knowledge. Therefore, the security solution of the human resources management system is operational and feasible. sex.

    1. Functional Requirements Analysis

Before system development and design, you should make a preliminary idea of ​​the functions, know what sections the management system has, what functions each section has, whether the overall design meets the needs of users, and then conduct a detailed analysis and summary of the developed system functions , so as to design a complete system and implement it. Communication analysis of users and developers to achieve the best understanding and make the system function to the best.

The administrator use case diagram is shown below.

 

Figure 3-1 Administrator use case diagram

The employee use case diagram is shown below.

 

Figure 3-2 User use case diagram

After analyzing the requirements of the human resources management system security solution, the whole system is mainly divided into two parts: administrators and employees, and the branch functions of each module are different. Describe the function as follows:

Staff module:

Account login authentication.

Manage profile information, modify modifiable information items.

Employee training query, and at the same time view the history of training records.

Employee salary query, and at the same time check the history of existing salary records.

Admin module:

Maintain employees, review employee accounts, freeze employee login permissions, or delete employee accounts.

Publish announcements, and can destroy an announcement, update announcement data, fuzzy search announcement data, etc.

Manage employee training data.

    1. Non-Functional Requirements Analysis

There are many non-functional requirements of the system, such as performance requirements, maximum number of users that can be carried, stability, and usability requirements. The analysis of this system takes into account the requirement of ease of use, because the system is used by people, so it is necessary to fully consider the user experience from the user's point of view, so that the system is easy to understand, easy to use and easy to operate.

    1. Data Flow Analysis

The first-level data flow chart includes modules such as login, user function, and retrieval maintenance. The data used in the login module stores user account documents, and the storage required by the user function module is the data file of each user function module. The retrieval maintenance uses the above Data documents are retrieved by keywords.

The layer-by-layer data flow diagram of the system is shown in the figure below.

 

Figure 3-2 System data flow diagram (one layer)

  1. system design
    1. System architecture design

At present, the main data access method of the B/S system is: the user can enter the system through the browser page, and the system can automatically process the request sent by the user to the server. The processing request is carried out in the background of the system. Perform corresponding operations on the page, and you can see the processing results delivered by the server. The security scheme of the human resource management system is mainly divided into three layers of view-model-control architecture design. In the view layer, it mainly operates the data fed back and displayed from the server to the client. In the model layer, it mainly deals with related business logic, data integration, etc., and the final control layer is between the view and the model. It is to adjust the relationship between the two layers and finally implement the data transmission.

The system architecture diagram is shown in the figure below.

 

Figure 4-1 System architecture diagram

    1. System function structure

The purpose of system design is to analyze all the functional structures included in the system, and make preparations for developers to design, develop and implement the system. After the preliminary demand investigation, analysis and sorting, the determined overall demand mainly includes multiple modules, namely: user management, user management, department information, training information, salary information, employee information. The overall role of the system is divided into two parts, one is the employee, and the last is the administrator. The authority distribution is also obvious. In addition to browsing information, employees also have the ability to query and manage their own account information, and administrators are the highest authority owners.

The functional structure diagram of the system is shown in the figure below.

             

 

Figure 4-2 System function structure diagram

 

    1. Database Design
      1. conceptual model

For a system to be developed, ER diagrams allow others to understand the transactions of the system and the relationships between them faster and easier. According to the conclusions drawn in the system analysis stage, it is determined that there are multiple entities in the security scheme of the human resource management system, which are employee information, department information, training information, salary information, and employee information.

The overall ER diagram of the system is shown in the figure below.

 

      1. data sheet

The logical structure of the database is to describe the ER diagram in the database with specific fields. Use fields and data type descriptions to materialize object characteristics, and finally form a database table structure with certain logical relationships. Part of the data structure table required by the human resource management system security solution is shown in the following table.

ordinary_users

Field Name

type

length

not null

primary key

field description

ordinary_users_id

int

11

no

primary key

common user ID

user_name

varchar

64

yes

username

full_name

varchar

64

yes

Name

gender

varchar

64

yes

gender

age

varchar

64

yes

age

examine_state

varchar

16

no

Approval Status

recommend

int

11

no

Intelligent Recommendation

user_id

int

11

no

User ID

create_time

datetime

0

no

creation time

update_time

timestamp

0

no

update time

department_information

Field Name

type

length

not null

primary key

field description

department_information_id

int

11

no

primary key

Department Information ID

department_name

varchar

64

yes

Department name

department_cover

varchar

255

yes

department cover

office_address

varchar

64

yes

office address

scope_of_responsibility

varchar

64

yes

Responsibility

minister_name

varchar

64

yes

minister name

contact_number

varchar

64

yes

contact number

recommend

int

11

no

Intelligent Recommendation

create_time

datetime

0

no

creation time

update_time

timestamp

0

no

update time

employee_information

Field Name

type

length

not null

primary key

field description

employee_information_id

int

11

no

primary key

employee information ID

employee_number

int

11

no

employee ID

employee_name

varchar

64

yes

employee's name

employee_gender

varchar

64

yes

employee gender

employee_age

varchar

64

yes

employee age

employee_department

varchar

64

yes

employee department

employee_position

varchar

64

yes

staff position

entry_date

date

0

yes

Entry date

recommend

int

11

no

Intelligent Recommendation

create_time

datetime

0

no

creation time

update_time

timestamp

0

no

update time

ordinary_users

Field Name

type

length

not null

primary key

field description

ordinary_users_id

int

11

no

primary key

common user ID

employee_number

varchar

64

no

employee ID

employee_name

varchar

64

yes

employee's name

employee_gender

varchar

64

yes

employee gender

employee_age

varchar

64

yes

employee age

examine_state

varchar

16

no

Approval Status

recommend

int

11

no

Intelligent Recommendation

user_id

int

11

no

User ID

create_time

datetime

0

no

creation time

update_time

timestamp

0

no

update time

salary_information

Field Name

type

length

not null

primary key

field description

salary_information_id

int

11

no

primary key

Salary Information ID

employee_number

int

11

no

employee ID

employee_name

varchar

64

yes

employee's name

employee_department

varchar

64

yes

employee department

basic_salary

int

11

yes

base salary

bonus

int

11

yes

bonus

fine

int

11

yes

fine

net_salary

varchar

64

yes

actual salary

recommend

int

11

no

Intelligent Recommendation

create_time

datetime

0

no

creation time

update_time

timestamp

0

no

update time

training_information

Field Name

type

length

not null

primary key

field description

training_information_id

int

11

no

primary key

Training Information ID

training_name

varchar

64

yes

training name

training_date

date

0

yes

training date

training_address

varchar

64

yes

Training address

training_host

varchar

64

yes

training moderator

remarks

varchar

64

yes

Remark

training_content

longtext

0

yes

training content

recommend

int

11

no

Intelligent Recommendation

create_time

datetime

0

no

creation time

update_time

timestamp

0

no

update time

upload

Field Name

type

length

not null

primary key

field description

upload_id

int

11

no

primary key

Upload ID

name

varchar

64

yes

file name

path

varchar

255

yes

access path

file

varchar

255

yes

file path

display

varchar

255

yes

display order

father_id

int

11

yes

Parent ID

dir

varchar

255

yes

folder

type

varchar

32

yes

file type

  1. System implementation
    1. 登录模块的实现

系统的登录窗口是用户的入口,用户只有在登录成功后才可以进入访问。通过在登录提交表单,后台处理判断是否为合法用户,进行页面跳转,进入系统中去。

登录合法性判断过程:用户输入账号和密码后,系统首先确定输入输入数据合法性,然后在login.jsp页面发送登录请求,调用src下的mainctrl类的dopost方法来验证。

用户登录模块的IPO如下所示:

输入:用户名和密码。

处理:

1)检测用户输入的账号、密码是否正确及在数据库已对应存在。

2)从数据库中提取记录,并储存在本地的session中(timeout默认=30min)。

3)根据用户名,将其显示在系统首页上。

输出:是否成功的信息。

登录流程图如下所示。

 

图5-1登录流程图       

系统登录界面如下所示。

 

图5-2系统登录界面

用户登录的逻辑代码如下。

  /**

     * 登录

     * @param data

     * @param httpServletRequest

     * @return

     */

    @PostMapping("login")

    public Map<String, Object> login(@RequestBody Map<String, String> data, HttpServletRequest httpServletRequest) {

        log.info("[执行登录接口]");

        String username = data.get("username");

        String email = data.get("email");

        String phone = data.get("phone");

        String password = data.get("password");

        List resultList = null;

        QueryWrapper wrapper = new QueryWrapper<User>();

        Map<String, String> map = new HashMap<>();

        if(username != null && "".equals(username) == false){

            map.put("username", username);

            resultList = service.selectBaseList(service.select(map, new HashMap<>()));

        }

        else if(email != null && "".equals(email) == false){

            map.put("email", email);

            resultList = service.selectBaseList(service.select(map, new HashMap<>()));

        }

        else if(phone != null && "".equals(phone) == false){

            map.put("phone", phone);

            resultList = service.selectBaseList(service.select(map, new HashMap<>()));

        }else{

            return error(30000, "账号或密码不能为空");

        }

        if (resultList == null || password == null) {

            return error(30000, "账号或密码不能为空");

        }

        //判断是否有这个用户

        if (resultList.size()<=0){

            return error(30000,"用户不存在");

        }

        User byUsername = (User) resultList.get(0);

        Map<String, String> groupMap = new HashMap<>();

        groupMap.put("name",byUsername.getUserGroup());

        List groupList = userGroupService.selectBaseList(userGroupService.select(groupMap, new HashMap<>()));

        if (groupList.size()<1){

            return error(30000,"用户组不存在");

        }

        UserGroup userGroup = (UserGroup) groupList.get(0);

        //查询用户审核状态

        if (!StringUtils.isEmpty(userGroup.getSourceTable())){

            String res = service.selectExamineState(userGroup.getSourceTable(),byUsername.getUserId());

            if (res==null){

                return error(30000,"用户不存在");

            }

            if (!res.equals("已通过")){

                return error(30000,"该用户审核未通过");

            }

        }

        //查询用户状态

        if (byUsername.getState()!=1){

            return error(30000,"用户非可用状态,不能登录");

        }

        String md5password = service.encryption(password);

        if (byUsername.getPassword().equals(md5password)) {

            // 存储Token到数据库

            AccessToken accessToken = new AccessToken();

            accessToken.setToken(UUID.randomUUID().toString().replaceAll("-", ""));

            accessToken.setUser_id(byUsername.getUserId());

            tokenService.save(accessToken);

            // 返回用户信息

            JSONObject user = JSONObject.parseObject(JSONObject.toJSONString(byUsername));

            user.put("token", accessToken.getToken());

            JSONObject ret = new JSONObject();

            ret.put("obj",user);

            return success(ret);

        } else {

            return error(30000, "账号或密码不正确");

        }

}

    public String select(Map<String,String> query,Map<String,String> config){

        StringBuffer sql = new StringBuffer("select ");

        sql.append(config.get(FindConfig.FIELD) == null || "".equals(config.get(FindConfig.FIELD)) ? "*" : config.get(FindConfig.FIELD)).append(" ");

        sql.append("from ").append("`").append(table).append("`").append(toWhereSql(query, "0".equals(config.get(FindConfig.LIKE))));

        if (config.get(FindConfig.GROUP_BY) != null && !"".equals(config.get(FindConfig.GROUP_BY))){

            sql.append("group by ").append(config.get(FindConfig.GROUP_BY)).append(" ");

        }

        if (config.get(FindConfig.ORDER_BY) != null && !"".equals(config.get(FindConfig.ORDER_BY))){

            sql.append("order by ").append(config.get(FindConfig.ORDER_BY)).append(" ");

        }

        if (config.get(FindConfig.PAGE) != null && !"".equals(config.get(FindConfig.PAGE))){

            int page = config.get(FindConfig.PAGE) != null && !"".equals(config.get(FindConfig.PAGE)) ? Integer.parseInt(config.get(FindConfig.PAGE)) : 1;

            int limit = config.get(FindConfig.SIZE) != null && !"".equals(config.get(FindConfig.SIZE)) ? Integer.parseInt(config.get(FindConfig.SIZE)) : 10;

            sql.append(" limit ").append( (page-1)*limit ).append(" , ").append(limit);

        }

        log.info("[{}] - 查询操作,sql: {}",table,sql);

        return sql.toString();

}

    public List selectBaseList(String select) {

        List<Map<String,Object>> mapList = baseMapper.selectBaseList(select);

        List<E> list = new ArrayList<>();

        for (Map<String,Object> map:mapList) {

            list.add(JSON.parseObject(JSON.toJSONString(map),eClass));

        }

        return list;

}

    1. 管理员功能模块

系统呈现出一种简洁大方的首页:界面简约、鳞次栉比,用户能轻车熟路的使用。出于对系统使用群体广泛的顾虑,应有良好性能的后台。

如下图所示为系统的首页界面。

 

图5-3系统首页界面

其中载入前台页面的主要代码如下。

<mapper namespace="com.project.demo.dao.base.BaseMapper">

    <select id="selectBaseList" resultType="java.util.LinkedHashMap">

        ${select}

    </select>

    <select id="selectBaseCount" resultType="Integer">

        ${count}

    </select>

    <select id="selectBaseOne" resultType="Object">

        ${select}

    </select>

    <update id="updateBaseSql">

        ${sql}

    </update>

    <delete id="deleteBaseSql">

        ${sql}

    </delete>

</mapper>

管理员登录进入人力资源管理系统可以查看管理员:首页、用户管理、部门信息、培训信息、薪资信息、员工信息管理等内容,如图5-4所示。

 

图5-4管理员信息界面图

用户管理,在用户管理可以查看用户账号、姓名、头像、联系电话、邮箱等信息,并可根据需要进行修改或删除操作,如图5-5所示。

 

图5-5企业管理界面图

部门信息管理,在部门信息列表可以查看部门名称、部门封面、办公地址、负责范围、部长名称、联系电话等信息,并可根据需要进行修改或删除操作,如图5-6所示。

图5-5部门信息管理界面图

 

薪资管理,在薪资管理列表可以查看员工编号、员工姓名、员工性别、员工年龄、员工部门、员工职位、等信息,如图5-6所示。

图5-6薪酬管理界面图

 

培训信息管理,在培训信息列表可以查看培训名称、员工、培训地点、培训时间、培训内容等信息,并可根据需要进行修改或删除操作,如图5-7所示。

 

图5-7培训信息管理界面图

    1. 用户功能模块

用户登录进入人力资源管理系统可以查看首页、部门信息、培训信息、薪资信息、员工信息等内容,如图5-8所示。

 

图5-8员工功能界面图

个人中心,在个人信息页面通过填写用户名、用户组、状态、昵称、联系电话、邮箱等内容,并可根据需要对个人信息信息进行修改,如图5-9所示。

 

                                                          图5-9个人中心界面图

员工信息管理,在员工信息列表可以查看员工编号、员工姓名、员工性别、员工年龄、员工部门、员工职位、入职日期等信息,如图5-10所示。

 

                                                       图5-10员工信息管理界面图

  1. 统测试
    1. 测试目的

在对该系统进行完详细设计和编码之后,就要对人力资源管理系统安全方案的程序进行测试,检测程序是否运行无误,反复进行测试和修改,使之最后成为完整的软件,满足用户的需求,实现预期的功能。

    1. 测试过程

在软件的测试过程中,通常测试人员需要针对不同的功能模块设计多种测试用例。通过测试用例能够及时发现代码业务逻辑上是否与真实的业务逻辑相对应,及时发现代码上或逻辑上的缺陷,以此来来完善系统,提高软件产品的质量,使软件具有良好的用户体验。

登录测试用例表如下所示。

表6-1登录测试用例

测试性能

用户或操作员登录系统

用例目的

测试用户或操作员登录系统时功能是否正常

前提条件

进入用户登录页面或操作员登录页面

输入条件

预期输出

实际情况

各项信息不予填写,直接点击登陆按钮

不允许登录,提示填写账号相关信息

一致

填写错误的登录名或密码后点击登录系统

提示用户名或密码错误,要求重新填写进行登录

一致

填写与验证码信息不一致的信息

系统显示出提示信息,表明验证码错误,要求重新填写

一致

员工培训测试用例表如下所示。

表6-2员工培训测试用例

测试性能

用户进行员工培训的操作

用例目的

测试用户进行员工培训操作时,该功能是否正常

前提条件

用户进入员工详情页,该员工能够被培训

输入条件

预期输出

实际情况

对着某员工点击“培训”按钮

界面跳转至培训界面

一致

在培训界面,输入必填项,点击“提交”按钮

提示“培训成功”,并返回上一级界面

一致

在培训界面,填写培训表单的时候未输入完整,点击“提交”按钮

提示“培训失败”

一致

员工管理测试用例表如下所示。

表6-3员工管理测试用例

测试性能

员工相关信息管理功能

用例目的

测试系统操作者对员工相关信息进行管理的功能是否正常

前提条件

登录系统进入相关管理页面

输入条件

预期输出

实际情况

进入员工管理界面,点击“录入”按钮,填写所有必填项,点击提交

提示“录入成功”,并返回查询界面

一致

进入员工管理界面,点击“录入”按钮,未填写一个或者多个必填项,点击提交

提示“录入失败”,请填写必填项

一致

进入员工管理界面,选择要修改的一条数据,点击该条数据后面的“修改”按钮 

节目跳转至修改界面

一致

在修改界面,修改可修改项后,点击“提交”按钮

提示“修改成功”,并返回查询界面

一致

进入员工管理界面,点击某条数据后面的删除按钮

提示“是否要删除该数据”,如果用户点击“确定”按钮,则成功删除该条数据,并提示“删除成功”,之后返回查询界面

一致

    1. 测试结果

经过对此系统的测试,得出该系统足以满足用户日常需求,在功能项目和操作等方面也能满足操作员对于其他用户的管理。但是,还有很多功能有待添加,这个系统仅能满足大部分的需求,还需要对此系统的功能更进一步的完善,这样使用起来才能更加的完美。

  1. 总结与展望

通过人力资源管理系统安全方案的开发,本人巩固了之前学过的知识,如今将平时所学到的知识融合在设计中,在设计过程中,做了很多的准备,首先,在数据库系统的设计过程中,尤其是在数据库的工作原理、工作特点,对其深刻的讨论,与此同时,对于小型站点来说,最好服务器的选择,其次,利用所学的知识点分析所做的系统,并在此基础上设计。

目前本系统已经上线,正在试运行阶段,用户反馈良好,基本完成用户所需,试运行过程中没有出现阻断性问题,有一些不足和小问题也及时予以修正,系统上线后,为了保证数据的安全性,对系统进行了备份操作,系统备份是每两个月备份一次,数据库备份为每周备份一次,系统部署在租赁的云平台服务器中。

本次系统上线成功后,得到了用户的高度认可,但是在功能上和性能上还需做进一步的研究处理,使其有更高的性能和更好的用户体验。

系统在以后的升级过程中,需要解决一系列用户所提出的问题,例如打印过程中如何避免浏览器的兼容性问题,大量用户访问时,如何保持较高的响应速度,在系统今后的升级过程中将着重解决这些安全性问题。

参考文献

[1]徐佩.新时期计算机软件开发技术的应用及发展趋势[J].农家参谋,2019(08):167.

[2]张帅,崔婀娜,魏立波.互联网+健康在线服务平台的设计与实现[J].科技创新与应用,2019(10):91-92.

[3]谷利国,陈存田,张甲瑞.基于B/S模式的人事教育信息管理系统的分析与设计[J].电脑知识与技术,2019,15(10):58-59.

[4]胥新政,强毅.基于JSP的常用金属材料标准检索平台开发设计[J].制造业自动化,2019,41(03):41-43+69.

[5]王祖维,南淮耀,张英.“互联网+”视域下的高校学生公寓管理系统设计与实现——以沈阳师范大学为例[J].现代商贸工业,2019,40(08):187-188.

[6]廖明华,齐攀.学生职业能力测评管理系统的设计与实现[J].广东交通职业技术学院学报,2019,18(01):48-52.

[7]李冬冬,刘华明,毕学慧,王秀友.旧衣申领系统的设计与实现[J].电脑知识与技术,2019,15(08):47-50.

[8]李庆年.“互联网+”视域下的人才招聘管理系统设计与实现[J].国际公关,2019(03):164-165.

[9]刘婷,彭焕峰,邵淑婷.基于云平台的高校监考管理系统[J].电脑知识与技术,2019,15(07):91-92.

[10]赵丙秀.基于百度AI平台的Web人脸注册和登录系统的实现[J].电脑知识与技术,2019,15(07):114-115.

[11]戴昭颖,尹涛.钢铁行业成本预算系统开发应用实践[J].电子技术与软件工程,2019(04):29-30.

[12]曹灿,刘志刚.基于SSH和Layui的工程科学前沿与实践系统[J].工业控制计算机,2019,32(02):91-92+96.

[13]谢路.基于Web的考务管理系统设计与实现[J].福建电脑,2019,35(01):136-137.

[14]张继东.MySQL数据库基于JSP的访问技术[J/OL].电子技术与软件工程,2017,(15):169(2017-08-03).

[15]韩思凡.Web开发中的JSP与HTML的基础应用[J].科学技术创新,2020(14):71-72.

[16]NastitiAndini,DaehaKim,JongAhnChun.Operationalsoilmoisturemodelingusingamulti-stageapproachbasedonthegeneralizedcomplementaryprinciple[J].AgriculturalWaterManagement,2020,231.

[17]A.D.Titisari,D.Phillips,I.W.Warmada,Hartono,A.Idrus.40Ar/39ArgeochronologyofthePongkorlowsulfidationepithermalgoldmineralisation,WestJava,Indonesia[J].OreGeologyReviews,2020,119.

[18]FranciscoOrtin,OscarRodriguez-Prieto,NicolasPascual,MiguelGarcia.HeterogeneoustreestructureclassificationtolabelJavaprogrammersaccordingtotheirexpertiselevel[J].FutureGenerationComputerSystems,2020,105.

[19]SatyaKrismatama,IndahRiyantini,IwangGumilar,LantunParadhitaDewanti.SelectivityofFishingGearforScomberomorusguttatus(Bloch&Schneider,1801)CommoditiesinPangandaranFishingGround,WestJava[J].AsianJournalofFisheriesandAquaticResearch,2020.

[20]ZhongXiangfu,PlaAlbert,RaynerSimon.Jasmine:aJavapipelineforisomiRcharacterizationinmiRNA-Seqdata[J].Bioinformatics,2020,36(6).

thank you

With the completion of the design, the college career is coming to an end. The time in college is the time I cherish the most. I have learned a lot and grown a lot during the time in college. Every memory during this time is engraved in my mind. Thanks to the students who studied and grew up together, and the teachers who taught me during the growth process, I am very grateful for your company.

First of all, I would like to thank my instructor. The completion of the design is inseparable from a series of guidance from the teacher. During the completion of the graduation project, the teacher gave many pertinent suggestions. It is precisely because of the teacher's meticulous work attitude that my design can be successfully completed.

Finally, I would like to thank every teacher who taught me during my college career. You have taught me a wealth of knowledge and taught me how to deal with and solve problems when I encounter them. Thank you for your help and support.

Like+Favorite+Follow → private message to receive the source code and database

Guess you like

Origin blog.csdn.net/weixin_61498557/article/details/131473039