(Source code attached) SSM Unity Village Party Member Home Management System Computer Completion 12788

Table of contents

Summary

1Introduction _

1.1 Research background and significance

1.2 Development status

1.3 Research methods

1. 4 Paper structure and chapter arrangement

2 Analysis of the management system 

2.1 Feasibility analysis

2.2 System process analysis

2.2.1 Data flow

3.3.2Business process

2.3 System function analysis

2.3.1 Data addition process

2.3.2 Data modification process

2.3. 3 Data deletion process

2.4 System use case analysis

2.5 Summary of this chapter

3 Overall design of the management system of the Party Members’ Home of Unity Village

3.1 System architecture design

3.2 System function module design

3.2.1 Overall functional module design

3.2.2 User module design

3.2.3 Comment management module design

3.2.4 Design of punch-in information management module

3.2. 5 Party member management module design

3.3 Database design

3.3.1 Database conceptual structure design

3.3.2 Database logical structure design

3.4 Summary of this chapter

4 Detailed design and implementation of the management system of the Party Members’ Home of Tuanjie Village 

4.1 User function module

4.1.1 Front page interface

4.1.2 System user registration interface

4.1.3 System user login interface 22

4.1.4 My account interface

4.1.5 Communication forum interface

4.1.6 Activity details interface

4.3 Administrator function module

4.3.1 Carousel chart management interface

4.3.2 System user management interface

4.3.3 Resource management interface

4.3.4 Module management interface

5 system test 30

5.1 Purpose of system testing 30

5.2 System test case 30

5.3 System test results 30

Conclusion 31

References 32

Acknowledgments  

Summary

With the advent of the Internet trend, all walks of life are considering using the Internet to promote themselves. The best way is to establish their own Internet system and maintain and manage it. In actual application, the working rules and development steps of the software are applied, and SSM technology is used to build the management system of the Party Members' Home of Unity Village.

This design mainly implements a management system for the Party members' home of Unity Village that integrates the advantages of humanization, high efficiency, convenience, etc., and completes system user management, activity center, activity registration, party meeting notification, party member management, check-in information, distribution tasks, and completion Functional modules such as tasks and transfer applications. The system communicates with the server through the browser to realize data interaction and changes. Just use a computer and move your fingers to operate the system and realize data communication management. The design process of the entire system fully considers issues such as data security, stability and reliability, and the operation process is simple. This system improves work efficiency and reduces errors and omissions in data storage through scientific management methods and convenient services.

The management system of the Party Member's Home in Tuanjie Village uses Java language, is developed using SSM technology based on the MVVM model, and is written using the Visual Studio compiler. In terms of data, Microsoft's MySQL relational database is mainly used as the data storage medium, in conjunction with the front-end HTML+CSS. Technical completion system development.

Keywords : SSM technology; MYSQL; Unity Village Party Member Home Management System

Abstract

With the advent of the Internet trend, all walks of life are considering using the Internet to promote themselves. The best way is to establish their own Internet systems, and maintain and manage them. In practical application, the working rules and development steps of the application software adopt SSM technology to build the management system of the Tuanjie Village Party Member's Home.

This design mainly realizes the management system of Tuanjie Village Party Member's Home, which integrates the advantages of humanization, efficiency and convenience, and completes the system user management, activity center, activity registration, party meeting notice, party member management, clock in information, task distribution, task completion, transfer application and other functional modules. The system communicates with the server through the browser to realize data interaction and change. With a computer, you can operate the system by moving your finger to achieve data communication management. The design process of the whole system fully considers the security, stability and reliability of data, and the operation process is simple. The system improves work efficiency and reduces errors and omissions in data storage through scientific management and convenient services.

The management system of Tuanjie Village Party Member's Home uses Java language, adopts SSM technology based on MVVM mode for development, and uses Visual Studio compiler for compilation. 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 to complete the system development.

Keywords: SSM technology; MYSQL; Management System of Tuanjie Village Party Member's Home

1Introduction _

1.1 Research background and significance

With the rapid development of social economy, the people's demand for spiritual culture is getting higher and higher. In order to better meet the people's growing spiritual needs and strengthen party building and spiritual civilization, we must attach great importance to the ideological and political work of grassroots party organizations and effectively strengthen the party's organizational leadership and service support capabilities in rural areas. To this end, we must further strengthen the management awareness of party members and establish a scientific and efficient party building working mechanism to adapt to the new situation and the requirements of rural grassroots party organization building under new circumstances. Therefore, it is necessary to develop a party member home management system that is suitable for the actual situation of the Unity Village branch to improve the quality of the party branch team, enhance its cohesion and combat effectiveness, and thereby promote the healthy development of various undertakings in the Unity Village.

1.2 Development status

With the continuous deepening of rural reform and the gradual establishment and improvement of the socialist market economic system, new situations and new problems have emerged in my country's rural areas. Under this situation, how to strengthen the party's leadership over village-level organization building work, give full play to the vanguard and exemplary role of the party members, and promote the role of grassroots party organizations as fighting fortresses is an important issue that needs to be solved urgently before us. To this end, in accordance with the requirements of the "Three Represents" thought, combined with the current reality of rural grassroots party building, and in order to adapt to the needs of rural economic development and comprehensively promote the scientific process of party building, the Unity Village Branch officially launched the party-based party building program in November 2003. The project construction of the "United Village Party Member Home GIS Information Management System", with the branch secretary as the main body and integrating party affairs management, party member education and training and other functions, has achieved remarkable results. At present, the system has been put into operation and has been networked with the information systems of higher-level agencies and township party committees. Effectively improve team cohesion and combat effectiveness. It has effectively promoted the overall improvement of the level of party building at the grassroots level in rural areas of our county. Received high praise from superior leadership departments. It has been widely praised by all walks of life.

1.3 Research methods

First, through engine search or relevant literature, we learned about the background of the system development and the significance of designing the system, and collected user demand information. Secondly, in terms of development tools, it was finally decided to use the Java platform to design and develop this system, with MySQL as the tool for designing the database. That is, Java language is used to implement the user interface and is connected with the database to achieve complete communication functions. After that, the general functional modules of the system are designed. It is mainly analyzed from the perspective of convenience for system users and system administrators to clarify the functions that the system should have. The final step is to test the system, discover existing problems and find solutions through use case testing. Utilize the existing development platform, combine the knowledge you have learned, and complete the design with the guidance of the teacher to ensure the usability and practicality of the system.

1.4 Paper structure and chapter arrangement

The paper will be organized hierarchically. In addition to the abstract, acknowledgments, and literature references, the main text will also analyze the website requirements, describe the general design and implemented functions, and finally list some debugging records. The main structure of the paper is as follows:

Chapter 1: Introduction. The first chapter mainly introduces the background of the project research, the current situation of system development and the research content and main work of this article.

Chapter 2: System requirements analysis. Chapter 2 mainly conducts demand analysis from the aspects of users and functions of the system.

Chapter 3: System Design. Chapter 3 mainly carries out functional design of the system framework, system function modules and database.

Chapter 4: System implementation. Chapter 4 mainly introduces the system framework construction and the implementation of the system interface.

Chapter 5: System Testing. Chapter 5 mainly tests some interfaces of the system and tests the main functions.

Chapter 6: Summary.

2 Analysis of the Management System of Party Members’ Home of Unity Village

System analysis is a prerequisite for developing a project. Through system analysis, the basic needs of the main users of the system can be well understood, and this is also the reason for the development of the project. Then, a feasibility analysis is performed on the system development, which usually includes technical feasibility, economic feasibility, etc. The feasibility analysis is also an analysis from the overall perspective of the project. Then the specific requirements of the project are analyzed. The analysis method is generally implemented through the user's use case diagram. The following is a detailed introduction.

2.1 Feasibility analysis

(1) Economic feasibility:

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 funds during the project startup period, so It is still economically feasible. Try to meet the needs of users with the least amount of money. Save money on labor costs and equipment costs. We will go further and further on the road of paperlessness and high efficiency.

So there is no problem with economic feasibility.

(2) Operational feasibility:

The design of this project refers to several cases of website development under this mode, analyzes their operation interfaces, and combines many cases to highlight people-oriented simplified operations, so people with basic computer knowledge can operate this project.

Therefore, there is no problem with operational feasibility.

(3) Technical feasibility:

Technical feasibility refers to the feasibility of building a framework, as well as the system's adaptability to technological upgrading when better technologies emerge, and the development time and cost ratio.

Existing Java technology can cater to the construction of all e-commerce systems. When developing this management system for the Party Members' Home of Unity Village, I used Java+MYSQL to run the overall program.

In summary, there is no problem with the technical feasibility.

(4) Legal feasibility:

From a developer's perspective, Java and MYSQL are open source and free online, and there will be no legal disputes regarding intellectual property rights.

From a user perspective, as long as contraband is no longer sold on the system, treaties and agreements are made with the system, and illegal payments are eliminated.

In summary, there is no problem with the legal feasibility.

2.2 System process analysis

The business process uses some specific symbols and lines to demonstrate the user's process when using the system. When performing system analysis, the business process can help developers better understand the business, discover errors, and improve the system.

2.2.1 Data addition process

After the user successfully logs in to the system , he or she can add data. The number of the added data is specific and generated by the system. The user cannot fill it in at will. Except for the number, the user fills in other added information by himself. The filled-in information is verified by the system and is legal. If it passes, it will show that the data has been added successfully. If it is passed, it will not be added successfully. Figure 2-1 shows the process of adding data.

Figure 2-1 Data addition flow chart

2.2.2 Data modification process

The process of data modification is similar to the process of data addition described above, as shown in Figure 2-2 .

Figure 2-2 Data modification flow chart

2.2.3 Data deletion process

If there is some useless data in the system , the relevant managers can also delete the data. Figure 2-3 is the flow chart for data deletion.

Figure 2-3 Data deletion flow chart

2.3 System function analysis

2.3.1 Functional analysis

According to the roles of the Tuanjie Village Party Member Home Management System, I divided it into three parts: the system user management module, the branch user management module and the administrator management module.

System user management module:

(1) User registration and login: System users register as system users and log in to the Tuanjie Village Party Member Home Management System; users add, delete, modify and check personal information, such as personal information and password changes.

(3) Announcement Message : We will see the " Announcement Message " menu on the home page navigation bar . After we click to enter, we will see the announcement information released by all administrators in the background;

(4) Communication Forum : On the homepage navigation bar, we will see the " Communication Forum " menu. After we click to enter, we will see the forum information posted by all administrators in the background, and we can edit the forum information we like. Collect , if you want to find this forum information faster next time , you can also collect and comment;

(5) Activity Center : On the homepage navigation bar, we will see the " Activity Center " menu. After we click to enter, we will see all the activity information released by the administrator in the background. We select the activity center that we want to know about. For information , you can sign up + like + collect ;

(6) My Favorites: Under "My" you can view and manage "My Favorites" information, view your favorites, and delete the favorites if you don't like them;

(6) My Account: When the user clicks the "My" button in the upper right corner, a submenu will appear. Click "My Account" to set personal information and password for logging in to the system;

(7) Personal Center: When the user clicks the "My" button in the upper right corner, he will enter the corresponding backend for information management;

Administrator management module:

(1) Login: The administrator's account is directly set in the data table and does not require registration;

(2) Announcement Management: When you click the " Announcement Management" menu, the bulletin board submenu will appear, and you can add, delete, modify, and check this module;

(3) System user management: When you click the "User Management" menu, three submenus will appear: Administrator + System User + Branch User . You can add, delete, modify and check these three

(4) Resource management: When you click the " Resource Management" menu, the two submenus of current affairs news + news classification list will appear , and you can add, delete, modify and check current affairs news ;

( 5 ) Communication management: When you click the " Communication Management" menu, the two submenus of communication forum + forum classification list will appear, and you can add, delete, modify and check the communication forum ;

( 6 ) Module management: When you click the " Module " menu, eight submenus will appear , including event registration + activity center + party meeting notification + party member management + check-in information + dispatching tasks + completing tasks + transfer application , which can Add, delete, modify and check party member information , manage and control activity centers and transfer applications submitted by system users , and implement review and management of activity registration and check-in information management submitted by system users ;

2.3.2 Non-functional analysis

The non-functional requirements of the Tuanjie Village Party Member's Home Management System include the security, reliability, performance, scalability, etc. of the Tuanjie Village Party Member's Home Management System. The details can be expressed in the following 3-1 table:

Table 3-1 Non-functional requirements table for the management system of the Party Members Home of Unity Village

safety

It mainly refers to the installation of the database of the Tuanjie Village Party Member Home Management System. The use of the database and the setting of passwords must comply with the standards.

reliability

Reliability means that the Unity Village Party Member’s Home Management System can be installed and operated according to the user’s instructions. After testing, the reliability is over 90%.

performance

Performance is a necessary condition for the Unity Village Party Member Home Management System to occupy the market, so it is best to have good performance.

Scalability

For example, the database reserves multiple attributes, such as the use of interfaces, to ensure the non-functional requirements of the system.

Ease of use

Users only need to follow the page display content of the Tuanjie Village Party Member Home Management System and operate.

maintainability

The maintainability of the development of the management system of the Party Members' Home of Unity Village is very important. After testing, there is no problem with the maintainability.

2.4 System use case analysis

Through the analysis of 2.3 functions, the use case diagram of the Tuanjie Village Party Member’s Home Management System is drawn:

An example of system user role is shown in Figure 2-3.

Figure 2-3 Use case diagram of user roles in the Tuanjie Village Party Member’s Home Management System

The administrator on the web background management maintains all data information in the entire Unity Village Party Member Home Management System. An example of the administrator role is shown in Figure 2-4.

Figure 2-4 Use case diagram of the role of administrator in the Tuanjie Village Party Member Home Management System

2.5 Summary of this chapter

This chapter mainly determines the functions to be realized by the entire Tuanjie Village Party Members’ Home Management System through feasibility analysis, process analysis, functional requirements analysis, and system use case analysis. At the same time, it also provides standards for code implementation and testing of the Unity Village Party Member Home Management System.

3 Overall design of the management system of the Party Members’ Home of Unity Village

The main content discussed in this chapter includes the functional module design and database system design of the Tuanjie Village Party Members’ Home Management System.

3.1 System architecture design

This Tuanjie Village Party Member Home Management System is divided into three layers in structure: presentation layer (UI), business logic layer (BLL) and data layer (DL).

Figure 3-1 Architecture design diagram of the management system of Tuanjie Village Party Members’ Home

Presentation layer (UI): Also known as the UI layer, it mainly completes the UI interaction function of this Tuanjie Village Party Member's Home Management System. A good UI can improve the user experience and enhance the user's use of this Tuanjie Village Party Member's Home Management System. time comfort. The UI interface design must also adapt to different versions of the Unity Village Party Member Home Management System and different size resolutions to achieve good compatibility. The UI interaction function requirements are reasonable, and users must obtain consistent interaction results when performing interactive operations. This requires the presentation layer to be well connected with the business logic layer.

Business Logic Layer (BLL): Mainly completes the data processing function of this Tuanjie Village Party Member Home Management System. The data transmitted by the user from the presentation layer is processed by the business logic layer and delivered to the data layer. The data read by the system from the data layer is processed by the business logic layer and delivered to the presentation layer.

Data layer (DL): Since the data of the Tuanjie Village Party Member Home Management System is placed in the mysql database on the server side, the parts that belong to the service layer can be directly integrated into the business logic layer, so there is only the database in the data layer, and the rest Mainly completes the data storage and management functions of the Tuanjie Village Party Member Home Management System.

3.2 System function module design

3.2.1 Overall functional module design

In the previous chapter, the functional requirements and non-functional requirements of the system were mainly analyzed, and the use cases in the Tuanjie Village Party Member's Home Management System were analyzed based on the requirements. Then the next step is to start designing the architecture, main functions and database of the Tuanjie Village Party Member Home Management System. The Tuanjie Village Party Member's Home Management System is derived based on the demand analysis in the previous chapter. Its overall design module diagram is shown in Figure 3-2.

Figure 3-2 Functional module diagram of Tuanjie Village Party Member’s Home Management System

3.2.2 User module design

The backend manager can add, delete, modify and check the users registered in the frontend. The user module structure diagram is as follows:

Figure 3-3 System user module structure diagram

3.2.3 Comment management module design

The Unity Village Party Member's Home Management System is an open platform for communication. System users can communicate on the platform to increase the interaction between users. But at the same time, in order to better standardize the content of messages and give administrators the function of deleting inappropriate comments, a comment management module needs to be specially designed. The specific structure diagram is as follows:

Figure 3-4 Structure diagram of comment module

3.2.4 Design of punch-in information management module

The Tuanjie Village Party Member's Home Management System needs to store a lot of check-in information. Its module functional structure, the specific structure diagram is as follows:

Figure 3-5 Structural diagram of the punch-in information module

3.2.5 Party member management module design

One of the most important functions of the Tuanjie Village Party Member Home Management System is party member information query. Its module function structure is as follows:

Figure 3-6 Structure diagram of party member management module

3.3 Database design

Database design generally includes three major processes: demand analysis, conceptual model design, and database table creation. The demand analysis has been explained in the previous chapter, and the conceptual model design has two parts: conceptual model and logical structure design.

3.3.1 Database conceptual structure design

The following is the main ER entity relationship diagram of the main database tables in the entire Tuanjie Village Party Member Home Management System.

Figure 3-6 General ER relationship diagram of Tuanjie Village Party Member Home Management System

According to the total ER diagram of the database of the Tuanjie Village Party Member's Home Management System, it can be concluded that the Tuanjie Village Party Member's Home Management System requires many ER diagrams. Here are some main database ER model diagrams.

Figure 3-7 System user ER relationship diagram

Figure 3-8 Transfer application ER relationship diagram

Figure 3-9 Check-in information ER relationship diagram

Figure 3-10 Party member management ER relationship diagram

3.3.2 Database logical structure design

From the total ER relationship diagram in the Tuanjie Village Party Member Home Management System in the previous section, it can be concluded that a total of many data tables need to be created. Here I mainly list several major database table structure designs.

transfer_application表:

name

type

length

not null

primary key

Comment

transfer_application_id

int

11

yes

yes

Transfer request ID

user_no

int

11

no

no

user ID

user_name

varchar

64

no

no

username

submission_time

datetime

0

no

no

Submission time

original_branch

int

11

no

no

Original branch

transfer_to

int

11

no

no

transfer to

reason_for_transfer

text

0

no

no

Reason for transfer

party_member_files

varchar

255

no

no

Party member files

examine_state

varchar

16

yes

no

Approval Status

examine_reply

varchar

16

no

no

moderation reply

recommend

int

11

yes

no

Intelligent Recommendation

create_time

datetime

0

yes

no

creation time

update_time

timestamp

0

yes

no

Update time

system_user table:

name

type

length

not null

primary key

Comment

system_user_id

int

11

yes

yes

System user ID

user_no

varchar

64

no

no

user ID

user_name

varchar

64

no

no

username

gender

varchar

64

no

no

gender

examine_state

varchar

16

yes

no

Approval Status

recommend

int

11

yes

no

Intelligent Recommendation

user_id

int

11

yes

no

User ID

create_time

datetime

0

yes

no

creation time

update_time

timestamp

0

yes

no

Update time

punch_in_information表:

name

type

length

not null

primary key

Comment

punch_in_information_id

int

11

yes

yes

Check-in information ID

file_no

varchar

64

no

no

File number

branch_no

int

11

no

no

Branch number

branch_name

varchar

64

no

no

Branch name

user_no

int

11

no

no

user ID

user_name

varchar

64

no

no

username

examine_state

varchar

16

yes

no

Approval Status

examine_reply

varchar

16

no

no

moderation reply

recommend

int

11

yes

no

Intelligent Recommendation

user_id

int

11

yes

no

User ID

create_time

datetime

0

yes

no

creation time

update_time

timestamp

0

yes

no

Update time

party_member_management table:

name

type

length

not null

primary key

Comment

party_member_management_id

int

11

yes

yes

Party member management ID

file_no

varchar

64

no

no

File number

branch_no

int

11

no

no

Branch number

branch_name

varchar

64

no

no

Branch name

user_no

int

11

no

no

user ID

joining_date

date

0

no

no

Joining date

party_member_documents

varchar

255

no

no

Party member documents

recommend

int

11

yes

no

Intelligent Recommendation

limit_times

int

8

yes

no

Limit the number of times

limit_type

tinyint

2

yes

no

Limit type

create_time

datetime

0

yes

no

creation time

update_time

timestamp

0

yes

no

Update time

notice_of_the_party_committee表:

name

type

length

not null

primary key

Comment

notice_of_the_party_committee_id

int

11

yes

yes

Party meeting notification ID

meeting_name

varchar

64

no

no

Conference Name

branch_no

int

11

no

no

Branch number

branch_name

varchar

64

no

no

Branch name

user_no

int

11

no

no

user ID

parliamentary_documentation

varchar

255

no

no

meeting documents

examine_state

varchar

16

yes

no

Approval Status

examine_reply

varchar

16

no

no

moderation reply

recommend

int

11

yes

no

Intelligent Recommendation

create_time

datetime

0

yes

no

creation time

update_time

timestamp

0

yes

no

Update time

complete_the_task表:

名称

类型

长度

不是null

主键

注释

complete_the_task_id

int

11

完成任务ID

task_no

varchar

64

任务编号

task_name

varchar

64

任务名称

branch_no

int

11

支部编号

branch_name

varchar

64

支部名称

user_no

int

11

用户编号

complete_file

varchar

255

完成文件

examine_state

varchar

16

审核状态

examine_reply

varchar

16

审核回复

recommend

int

11

智能推荐

create_time

datetime

0

创建时间

update_time

timestamp

0

更新时间

activity_registratio表:

名称

类型

长度

不是null

主键

注释

activity_registration_id

int

11

活动报名ID

activity_name

varchar

64

活动名称

activity_no

varchar

64

活动编号

venue

varchar

64

活动地点

activity_time

varchar

64

活动时间

branch_no

int

11

支部编号

branch_name

varchar

64

支部名称

user_no

int

11

用户编号

user_name

varchar

64

用户姓名

examine_state

varchar

16

审核状态

examine_reply

varchar

16

审核回复

recommend

int

11

智能推荐

user_id

int

11

用户ID

create_time

datetime

0

创建时间

update_time

timestamp

0

更新时间

branch_users表:

名称

类型

长度

不是null

主键

注释

branch_users_id

int

11

支部用户ID

branch_no

varchar

64

支部编号

branch_name

varchar

64

支部名称

examine_state

varchar

16

审核状态

recommend

int

11

智能推荐

user_id

int

11

用户ID

create_time

datetime

0

创建时间

update_time

timestamp

0

更新时间

dispatch_tasks表:

名称

类型

长度

不是null

主键

注释

dispatch_tasks_id

int

11

派发任务ID

task_no

varchar

64

任务编号

task_name

varchar

64

任务名称

branch_no

int

11

支部编号

branch_name

varchar

64

支部名称

user_no

int

11

用户编号

task_file

varchar

255

任务文件

examine_state

varchar

16

审核状态

recommend

int

11

智能推荐

create_time

datetime

0

创建时间

update_time

timestamp

0

更新时间

3.4本章小结

整个团结村党员之家管理系统的需求分析主要对系统总体架构以及功能模块的设计,通过建立E-R模型和数据库逻辑系统设计完成了数据库系统设计。

4 团结村党员之家管理系统详细设计与实现

团结村党员之家管理系统的详细设计与实现主要是根据前面的团结村党员之家管理系统的需求分析和团结村党员之家管理系统的总体设计来设计页面并实现业务逻辑。主要从团结村党员之家管理系统界面实现、业务逻辑实现这两部分进行介绍。

4.1用户功能模块

4.1.1 前台首页界面

当进入团结村党员之家管理系统的时候,首先映入眼帘的是系统的导航栏,下面是轮播图以及系统内容,其主界面展示如下图4-1所示。

图4-1 前台首页界面图

4.1.2 系统用户注册界面

不是团结村党员之家管理系统中正式系统用户的是可以在线进行注册的,如果你没有本团结村党员之家管理系统的账号的话,添加“注册”,当填写上自己的账号+密码+确认密码+昵称+邮箱+手机号等后再点击“注册”按钮后将会先验证输入的有没有空数据,再次验证密码和确认密码是否是一样的,最后验证输入的账户名和数据库表中已经注册的账户名是否重复,只有都验证没问题后即可系统用户注册成功。其用系统用户注册界面展示如下图4-2所示。

图4-2 前台系统用户注册界面图

注册逻辑关键代码如下所示。

/**

     * 注册

     * @return

     */

    @PostMapping("register")

    public Map<String, Object> signUp(HttpServletRequest request) throws IOException {

        // 查询用户

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

        Map<String,Object> map = service.readBody(request.getReader());

        query.put("username",String.valueOf(map.get("username")));

        List list = service.selectBaseList(service.select(query, new HashMap<>()));

        if (list.size()>0){

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

        }

        map.put("password",service.encryption(String.valueOf(map.get("password"))));

        service.insert(map);

        return success(1);

}

    public Map<String,Object> readBody(BufferedReader reader){

        BufferedReader br = null;

        StringBuilder sb = new StringBuilder("");

        try{

            br = reader;

            String str;

            while ((str = br.readLine()) != null){

                sb.append(str);

            }

            br.close();

            String json = sb.toString();

            return JSONObject.parseObject(json, Map.class);

        }catch (IOException e){

            e.printStackTrace();

        }finally{

            if (null != br){

                try{

                    br.close();

                }catch (IOException e){

                    e.printStackTrace();

                }

            }

        }

        return null;

    }

    public void insert(Map<String,Object> body){

        E entity = JSON.parseObject(JSON.toJSONString(body),eClass);

        baseMapper.insert(entity);

        log.info("[{}] - 插入操作:{}",entity);

}

4.1.3 系统用户登录界面

团结村党员之家管理系统中的前台上注册后的系统用户是可以通过自己的账户名和密码进行登录的,当系统用户输入完整的自己的账户名和密码信息并点击“登录”按钮后,将会首先验证输入的有没有空数据,再次验证输入的账户名+密码和数据库中当前保存的用户信息是否一致,只有在一致后将会登录成功并自动跳转到团结村党员之家管理系统的首页中;否则将会提示相应错误信息,系统用户登录界面如下图4-3所示。

图4-3系统用户登录界面图

登录系统主要代码如下。

/**

     * 登录

     * @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;

}

4.1.4我的账户界面

当用户点击“我的收藏”链接后就进入自己收藏的新闻的界面展示,界面如下图4-4所示。

图4-4我的账户界面图

4.1.5 交流论坛界面

用户在点击导航栏上面的交流论坛后,就可以搜索查看论坛信息,用户根据自己的喜好可以进行交流,交流论坛界面如下图4-5所示。

图4-5交流论坛界面图

4.1.6 活动详情界面

当访客点击了任意活动中心后将会进入该活动中心的详情界面,可以了解到该活动中心的活动名称、活动编号、活动地点、活动时间、支部编号、支部名称等,同时可以对该活动中心进行报名+点赞+收藏,活动详情展示页面如图4-6所示。

图4-6 活动详情界面图

4.2管理员功能模块

4.2.1 轮播图管理界面

团结村党员之家管理系统中的管理人员在“轮播图管理”这一菜单中是可以对前台显示的轮播图进行管控。界面如下图4-7所示。

图4-7轮播图管理界面图

轮播图管理关键代码如下所示。

@RequestMapping(value = "/del")

    @Transactional

    public Map<String, Object> del(HttpServletRequest request) {

        service.delete(service.readQuery(request), service.readConfig(request));

        return success(1);

}

4.2.2 系统用户管理界面

团结村党员之家管理系统中的管理人员是可以对前台注册的系统用户、支部用户进行管理的,也可以对管理员进行管控。界面如下图4-8所示。

图4-8系统用户管理界面图

用户管理关键代码如下所示。

/**

 * 用户组:用于用户前端身份和鉴权(UserGroup)表实体类

 *

 * @author xxx

 *@since 202X-XX-XX

 */

@TableName("user_group")

@Data

@EqualsAndHashCode(callSuper = false)

public class UserGroup implements Serializable {

    private static final long serialVersionUID = 968356951391304707L;

    /**

     * 用户组ID:[0,8388607]

     */

    @TableId(value = "group_id", type = IdType.AUTO)

    private Integer groupId;

    /**

     * 显示顺序:[0,1000]

     */

    @TableField(value = "display")

    private Integer display;

    /**

     * 名称:[0,16]

     */

    @TableField(value = "name")

    private String name;

    /**

     * 描述:[0,255]描述该用户组的特点或权限范围

     */

    @TableField(value = "description")

    private String description;

    /**

     * 来源表:

     */

    @TableField(value = "source_table")

    private String sourceTable;

    /**

     * 来源字段:

     */

    @TableField(value = "source_field")

    private String sourceField;

    /**

     * 注册位置:

     */

    @TableField(value = "register")

    private String register;

    /**

     * 创建时间:

     */

    @TableField(value = "create_time")

    private Timestamp createTime;

    /**

     * 更新时间:

     */

    @TableField(value = "update_time")

    private Timestamp updateTime;

}

    /**

     * 所在用户组:[0,32767]决定用户身份和权限

     */

    @TableField(value = "user_group")

private String userGroup;

/**

 * 用户组:用于用户前端身份和鉴权(UserGroup)表控制层

 *

 */

@RestController

@RequestMapping("user_group")

public class UserGroupController extends BaseController<UserGroup, UserGroupService> {

    /**

     * 服务对象

     */

    @Autowired

    public UserGroupController(UserGroupService service) {

        setService(service);

    }

}

4.2.3 资源管理界面

团结村党员之家管理系统中的管理人员在“资源管理”这一菜单中是可以对团结村党员之家管理系统内的时政新闻、新闻分类列表进行维护和管理的,界面如下图4-9所示。

图4-9资源管理界面图

资源管理关键代码如下所示。

@PostMapping("/set")

@Transactional

    public Map<String, Object> set(HttpServletRequest request) throws IOException {

        service.update(service.readQuery(request), service.readConfig(request), service.readBody(request.getReader()));

        return success(1);

}

4.2.4 模块管理界面

团结村党员之家管理系统中的管理人员在“模块管理”这一菜单下是可以对团结村党员之家管理系统内的活动中心、活动报名、党员管理、党会通知、打卡信息、派发任务、完成任务、转移申请进行管控的,其管理界面如下图4-10所示。

图4-10模块管理界面图

 模块管理关键代码如下所示。

@RequestMapping("/get_list")

    public Map<String, Object> getList(HttpServletRequest request) {

        Map<String, Object> map = service.selectToPage(service.readQuery(request), service.readConfig(request));

        return success(map);

    }

5系统测试

5.1系统测试的目的

系统开发到了最后一个阶段那就是系统测试,系统测试对软件的开发其实是非常有必要的。因为没什么系统一经开发出来就可能会尽善尽美,再厉害的系统开发工程师也会在系统开发的时候出现纰漏,系统测试能够较好的改正一些bug,为后期系统的维护性提供很好的支持。通过系统测试,开发人员也可以建立自己对系统的信心,为后期的系统版本的跟新提供支持。

5.2 系统测试用例

系统测试包括:用户登录功能测试、党员展示功能测试、党员添加、党员搜索、密码修改功能测试,如表5-1、5-2、5-3、5-4、5-5所示:

用户登录功能测试:

表5-1 用户登录功能测试表

用例名称

用户登录系统

目的

测试用户通过正确的用户名和密码可否登录功能

前提

未登录的情况下

测试流程

1) 进入登录页面

2) 输入正确的用户名和密码

预期结果

用户名和密码正确的时候,跳转到登录成功界面,反之则显示错误信息,提示重新输入

实际结果

实际结果与预期结果一致

党员查看功能测试:

表5-2 党员查看功能测试表

用例名称

党员查看

目的

测试党员查看功能

前提

用户登录

测试流程

点击党员列表

预期结果

可以查看到所有党员信息

实际结果

实际结果与预期结果一致

管理员添加党员界面测试:

表5-3 管理员添加党员界面测试表

用例名称

党员发布测试用例

目的

测试党员发布功能

前提

系统用户正常登录情况下

测试流程

1)员工点击党员信息管理就,然后点击添加后并填写信息。

2)点击进行提交。

预期结果

提交以后,页面首页会显示新的党员信息 

实际结果

实际结果与预期结果一致

党员搜索功能测试:

表5-4党员搜索功能测试表

用例名称

党员搜索测试

目的

测试党员搜索功能

前提

测试流程

1)在搜索框填入搜索关键字。

2)点击搜索按钮。

预期结果

页面显示包含有搜索关键字的党员

实际结果

实际结果与预期结果一致

密码修改功能测试:

表5-5 密码修改功能测试表

用例名称

密码修改测试用例

目的

测试管理员密码修改功能

前提

管理员用户正常登录情况下

测试流程

1)管理员密码修改并完成填写。

2)点击进行提交。

预期结果

使用新的密码可以登录

实际结果

实际结果与预期结果一致

5.3 系统测试结果

通过编写团结村党员之家管理系统的测试用例,已经检测完毕用户登录模块、党员查看模块、党员添加模块、党员搜索模块、密码修改功能测试,通过这5大模块为团结村党员之家管理系统的后期推广运营提供了强力的技术支撑。

结论

至此,团结村党员之家管理系统已经结束,在开发前做了许多的准备,在本系统的设计和开发过程中阅览和学习了许多文献资料,从中我也收获了很多宝贵的方法和设计思路,对系统的开发也起到了很重要的作用,系统的开发技术选用的都是自己比较熟悉的,比如Web、Java技术、MYSQL,这些技术都是在以前的学习中学到了,其中许多的设计思路和方法都是在以前不断地学习中摸索出来的经验,其实对于我们来说工作量还是比较大的,但是正是由于之前的积累与准备,才能顺利的完成这个项目,由此看来,积累经验跟做好准备是十分重要的事情。

当然在该系统的设计与实现的过程中也离不开老师以及同学们的帮助,正是因为他们的指导与帮助,我才能够成功的在预期内完成了这个系统。同时在这个过程当中我也收获了很多东西,此系统也有需要改进的地方,但是由于专业知识的浅薄,并不能做到十分完美,希望以后有机会可以让其真正的投入到使用之中。

参考文献

[1]杨一帆.服务于MySQL数据库的在线监测系统设计[J].自动化技术与应用,2022,41(10):179-182.DOI:10.20033/j.1003-7241.(2022)10-0179-04.

[2]王棋.基于SSM框架的网上摄影系统设计与实现[J].电子质量,2022(10):89-93.

[3]谢霜.基于Java技术的网络管理体系结构的应用[J].网络安全技术与应用,2022(10):14-15.

[4]苏婉怡,揣小龙,赵国松,王煜尧.基于Java技术的考试系统关键点研究[J].无线互联科技,2022,19(18):58-60.

[5]杨玉莲.基于SSM框架的智能煤质化验室综合管理系统[J].煤矿现代化,2022,31(05):100-104+109.DOI:10.13606/j.cnki.37-1205/td.2022.05.005.

[6]林佳一.混合式教学在高职MySQL数据库课程的实践研究[J].电脑知识与技术,2022,18(26):133-135.DOI:10.14004/j.cnki.ckt.2022.1737.

[7]林金莲.基于Vue.js的高校党员干部管理系统设计与实现[J].鄂州大学学报,2022,29(04):104-105+112.DOI:10.16732/j.cnki.jeu.2022.04.036.

[8]左希斌,罗雄鹰,高文静,徐涛,张晓鸣,沈玉华,时华胜,罗松,张浩,赵莲. 把初心落在行动上 把使命担在肩膀上[N]. 中国应急管理报,2022-06-22(001).DOI:10.28046/n.cnki.ncaqs.2022.001986.

[9]成永常.发展学生党员的管理系统设计与实现[J].福建电脑,2022,38(05):91-94.DOI:10.16707/j.cnki.fjpc.2022.05.022.

[10].学史力行在行动 党员一线担使命——应急管理系统党员奋战在一线活动掠影[J].中国应急管理,2021(07):98.

[11]杨曲波, 高校党员积分管理系统(简称:党员积分管理)V0.1. 湖北省,武汉东湖学院,2021-07-14.

[12]朱辉, 审计 党员数码积分管理系统. 曹明权 主编,十堰年鉴,长江出版社,2020,346,年鉴.DOI:10.41081/y.cnki.yoefh.2021.001093.

[13]苏静,许天琪,吴江红,陈少波,郝霞,何畅. 一种党员管理系统设计方法[P]. 天津市:CN111967704A,2020-11-20.

[14]. Design and Implementation of ERP System Based on SSM Framework[J]. ,2020,440(5).

[15]Ping Wanxin,Chen Yuankun,Hou Xiaoyan. Design of Campus Bicycle Rental Management System Based on SSM Framework[J]. Journal of Physics: Conference Series,2019,1314.

[16]伍定鹏. 望谟县党员管理系统的研究与分析[D].云南大学,2018.

致  谢

逝者如斯夫,不舍昼夜。转眼间,大系统用户系统用户活便已经接近尾声,人面对着离别与结束,总是充满着不舍与茫然,我亦如此,仍记得那年秋天,我迫不及待的提前一天到了学校,面对学校巍峨的大门,我心里充满了期待:这里,就是我新生活的起点吗?那天,阳光明媚,学校的欢迎仪式很热烈,我面对着一个个对着我微笑的同学,仿佛一缕缕阳光透过胸口照进了我心里,同时,在那天我认识可爱的室友,我们携手共同度过了这难忘的两年。如今,我望着这篇论文的致谢,不禁又要问自己:现在,我们就要说再见了吗?

感慨莫名,不知所言。遥想当初刚来学校的时候,心里总是想着工科学校会过于板正,会缺乏一些柔情,当时心里甚至有一点点排斥,但是随着我对学校的慢慢认识与了解,我才认识到了她的美丽,她的柔情,并且慢慢的喜欢上了这个校园,但是时间太快了,快到我还没有好好体会她的美丽便要离开了,但是她带给我的回忆,永远不会离开我,也许真正离开那天我的眼里会满含泪水,我不是因为难过,我只是想将她的样子映在我的泪水里,刻在我的心里。最后,感谢我的老师们,是你们教授了我们知识与做人的道理;感谢我的室友们,是你们陪伴了我如此之久;感谢每位关心与支持我的人。

少年,追风赶月莫停留,平荒尽处是春山。

请关注点赞+私信博主,免费领取项目源码
 

Guess you like

Origin blog.csdn.net/ID3461074420/article/details/132733850