ssm+mysql smart classroom management system-computer graduation project source code 63375

Table of contents

Summary

1 Read

1.1Research background

1.2Research intention

1.3Features of system development technology

1.4ssm frame arrangement 

1.5论文结构YO書节安控

2 Smart Classroom Management SystemSystem Analysis

2.1 Possibility analysis

2.2 System flow analysis

2.2.1number of stepsadditionflow process

2.2.2Several Renovation Processes< /span>

2.2.3 number position decision flow process

2.3 System function analysis

2.3.1 Functionality analysis

2.3.2 Ineffectiveness analysis

2.4 System example analysis

2.5Chapter summary

3 Smart Classroom Management SystemOverall Design

3.1 System structure design

3.2 System function module design

3.2.1Overall functional module design

3.2.2User module design

3.2.3 Comment management module design

3.2.4 Classroom Management Module Design

3.3 ​​Database Design

3.3.1 Database conceptual structure design

3.3.2 Database logical structure design

3.4Chapter summary 20

4 Smart Classroom Management SystemDetailed Design and Implementation 21

4.1Useful function model 21

4.1.1 front surface 21

4.1.2 Useful interface 21

4.1.3Use interface 25

4.1.4Hot News Interface

4.1.5 My AccountInterface

4.1.6AC interface

4.1.7Classroom experience surface 

4.2 Administrator Function Module

4.2.1 climb interface

4.2.2System management interface  

4.2.3Resource management interface< /span> 0 3

4.2.4Model management interface< /span> 1 3

5迟统测试 32

5.1System testing purpose 32

5.2 System testing example 32

5.3 System results 33

结论 34

References 35

  

Summary

The rapid development of scientific and technological progress has caused tremendous changes in people's daily lives. The rapid development of electronic information technology has made the application level of electronic information technology in various fields popular and applied. The arrival of the information age has become an unstoppable 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 build a smart classroom management system using Java technology.

This design mainly implements a smart classroom management system that combines the advantages of humanization, high efficiency, convenience, etc., and completes the homepage, user management (administrator, system user) resource management (hot news, news classification list) communication management (communication forum, Forum classification list) module management (classroom information, reservation information, cancellation of reservations, message feedback) and other functional modules. The system communicates with the server through the browser to realize data interaction and changes. This system improves work efficiency and reduces errors and omissions in data storage through scientific management methods and convenient services. The smart classroom management system uses Java language and is developed using SSM technology based on the MVVM model. It is written using the Eclipse 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 Technical completion system development.

Keywords: ssm technology; MYSQL; smart classroom management system

Abstract

The rapid development of science and technology has caused great changes in people's daily life. The rapid development of electronic information technology has made the application level of electronic information technology in various fields popular 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 practical application, the working rules and development steps of the application software use Java technology to build a smart classroom management system.

This design mainly realizes the intelligent classroom management system that integrates the advantages of humanization, efficiency and convenience, and completes the home page, user management (administrator, system user), resource management (hot news, news classification list), communication management (communication forum, forum classification list), module management (classroom information, reservation information, cancellation of reservation, message feedback) and other functional modules. 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 and convenient services. The smart classroom management system uses Java language, adopts the SSM technology based on MVVM mode for development, and uses the Eclipse 2017 CI 10 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; Smart classroom management system

1 Read

1.1Research Background

The information construction of schools has entered a new era with "Internet + Education" as the main feature. The traditional classroom teaching model can no longer meet the needs of current social development. In order to promote teaching efficiency and improve teaching quality, teachers must effectively control and manage students' learning behaviors and status in the classroom, so that the entire teaching activities are more in line with the requirements of modern education concepts. Smart campus is the development trend of education in the future, and smart classroom, as an important part of smart campus, has also become one of the key contents of teaching reform in various universities. At present, most colleges and universities in my country have built and implemented smart classroom systems. However, due to various reasons, their application results are not ideal, and there are many problems that need to be solved urgently.

1.2 Research significance

 With the development of Internet technology, the era of big data has arrived. In this context, the traditional education model can no longer meet the requirements of modern society for talent cultivation. Smart classroom is a digital teaching platform built based on the network environment, which realizes information sharing and interaction between teachers and students, and between students and teaching resources in the teaching and learning process, improving the quality and efficiency of classroom teaching. At the same time, smart classrooms provide teachers with an intelligent learning support service system, allowing teachers to make more effective use of network resources, timely grasp the situation of learners and make corresponding adjustments, making it more conducive to teaching effectiveness. Therefore, it is of great significance to develop an efficient and practical smart classroom management system software.

1.3 Characteristics of system development technology

(1) The backend of the web background management in the smart classroom management system no longer uses the ancient jsp+javabean+servlet technology, but uses the current mainstream ssm framework, which reduces java configuration code and simplifies programming code. The current ssm framework It is also one of the frameworks chosen by many companies.

(2) The front-end of the web background management in the smart classroom management system uses a JavaScript framework, which can beautify the page design in conjunction with ajax[8] and jquery[9].

(3) Mysql5.7 is used as the database in the smart classroom management system, which has high execution efficiency.

1.4 Introduction to ssm framework

The SSM (Spring+SpringMVC+MyBatis) framework set is integrated by the two open source frameworks Spring and MyBatis (SpringMVC is part of Spring). It is often used as a framework for web projects with relatively simple data sources.

 Spring
Spring is like a big factory that assembles beans in the entire project. In the configuration file, you can specify the use of specific parameters to call the constructor of the entity class to instantiate the object. It can also be called the glue in the project.
The core idea of ​​Spring is IoC (Inversion of Control), which means that programmers no longer need to explicitly `new` an object, but let the Spring framework do it all for you.
 SpringMVC
SpringMVC intercepts user requests in the project. Its core Servlet, DispatcherServlet, assumes the responsibility of intermediary or front desk, and matches user requests to Controller through HandlerMapping. , the Controller is the operation performed specifically corresponding to the request. SpringMVC is equivalent to struts in the SSH framework.
 mybatis
Mybatis is an encapsulation of jdbc, which makes the underlying operations of the database transparent. The operations of mybatis are centered around a sqlSessionFactory instance. Mybatis is associated to the Mapper file of each entity class through the configuration file. The Mapper file is configured with the SQL statement mapping required for each class to the database. Every time you interact with the database, get a sqlSession through sqlSessionFactory, and then execute the sql command.

The page sends a request to the controller, the controller calls the business layer processing logic, the logic layer sends a request to the persistence layer, the persistence layer interacts with the database, and then returns the result to the business layer, the business layer sends the processing logic to the controller, and the controller then Call the view to display the data.

1.5 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 significance 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 smart classroom management system

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) Technical feasibility analysis

Smart Classroom Management System The mysql database is used for storage and development tools such as IDEA and Tomcat are used in development, which can bring a lot to our writing work. convenience. The system is developed using the SSM framework, which makes the system more scalable and maintainable, reduces Java configuration code, and simplifies programming code. Currently, the SSM framework is also one of the frameworks chosen by many enterprises.

(2) Economic feasibility analysis

In developmentSmart Classroom Management SystemThe development software used is like IDEA development tools, Tomcat8.0 server, MySQL5.7 database, Photoshop image processing software, etc., these are all open source and free. These environments have been systematically studied in schools, and they can be operated independently without any additional cost. Moreover, the system development tools can be directly downloaded from the Internet, so they are economical. aspect is feasible.

(3) Operation feasibility analysis

When designing this project, I referred to many successful cases of similar systems, systematically analyzed their operation interfaces and functions, and combined many cases together to highlight people-oriented and simplified operations, so people with basic computer knowledge can Operate this project. Therefore, there is no problem with operational 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 can add data. The number of added data is specific and generated by the system. The user cannot arbitrarily Fill in, except for the number, other added information is filled in by the user. The filled-in information is verified by the system. If the verification is legal, it will show that the data has been added successfully. Otherwise, the addition has not been successful. Figure2 -1 shows the process when 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 still a>These data can be deleted. Figure2-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 smart classroom management system, I divided it into two parts: the system user management module and the administrator management module.

User management module:

(1) User registration and login: The user registers as a user and logs in to the smart classroom management system; the user adds, deletes, modifies and checks personal information, such as personal information and password changes.

(2) View the homepage information of the smart classroom management system: The homepage information of the smart classroom management system includes the homepage, communication forum, announcement messages, hot news, classroom information, message feedback, my (my account, my collection, personal center) etc.

(3) Announcement messages: When the user clicks the "Announcement Message" menu button, all announcement messages released by the administrator in the background will be displayed, and the details can be viewed;

(4) Hot News: When the user clicks the "Hot News" menu button, all news information published by the administrator in the background will be displayed. You can view details, collect, like, comment, etc.;

(5) Communication forum: Users can view, publish and comment on user-submitted information under the communication forum menu.

(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) My Favorites: When the user clicks the "My" button in the upper right corner, a submenu will appear. Clicking "My Favorites" can collect and comment on hot news information;

(8) 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)SystemUser management: when clicked When selecting the menu "SystemUser Management", two administrator+system users will appear submenu, you can add, delete, modify and check these two modules;

(3)Resource Management: When clicking " ResourcesManage” menu will appearHot News + News Category ListThesetwo sub-menus can display the hot news

(4)ModuleManagement: When clicking " Module" menu will appear. Classroom information + reservation information + cancellation of reservation + message feedback a>, and implementsubmitted by users /span> for review and management;Leave feedbackclassroom information Manage and control submittedusers submenus, forFourThis

(5)AnnouncementsAdmin: Administrators can For the bulletin board displayed on the homepage of the Smart Classroom Management System and in the system Some announcements are posted to the system, allowing users to view system information in a timely manner and make reasonable arrangements.

(6)Communication Management: When clicking " CommunicationManagement” menu will appearCommunication Forum + Forum Category ListThesetwo submenus can be used to review the communication forum

2.3.2 Non-functional analysis

The non-functional requirements of the smart classroom management system include how safe, reliable, performance, and scalable the smart classroom management system is. The details can be expressed in the following 3-1 table:

Table3-1 Wisdom Classroom Management SystemNon Functional ability demand table

safety

Mainly refers to the installation of the smart classroom management system database, the use of the database and the setting of passwords must comply with standards.

reliability

Reliability means that the smart classroom management system can install and operate according to the user's instructions. After testing, the reliability is more than 90%.

performance

Performance is a necessary condition for smart classroom management systems 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 smart classroom management system and operate.

maintainability

The maintainability of smart classroom management system development is very important. After testing, there is no problem with maintainability.

2.4 Series example analysis

Through the analysis of 2.3 functions, the use case diagram of this smart classroom management system is obtained:

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

Figure 2-3 Smart classroom management system user role use case diagram

Administrators on the web background management maintain all data information in the entire smart classroom management system. An example of the administrator role is shown in Figure 2-4.

figure 2-4 Smart Classroom Management System Administrator Role Use Case Diagram

2.5 Summary of this chapter

This chapter mainly determines the functions to be realized by the entire smart classroom management system through feasibility analysis, process analysis, functional requirements analysis, and system use case analysis of the smart classroom management system. It also provides standards for code implementation and testing of smart classroom management systems.

3 Overall design of smart classroom management system

The main contents discussed in this chapter include the functional module design and database system design of the smart classroom management system.

3.1 System structure design

This smart classroom management system is divided into three layers in terms of architecture: presentation layer (UI), business logic layer (BLL) and data layer (DL).

Figure 3-1 Smart classroom management system architecture design diagram

Presentation layer (UI): Also known as the UI layer, it mainly completes the UI interaction function of this smart classroom management system. A good UI can improve the user experience and enhance the user's comfort when using this smart classroom management system. The UI interface design must also adapt to different versions of smart classroom management systems 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 smart classroom 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 this smart classroom 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, which mainly completes this Data storage and management functions of the smart classroom 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 this smart classroom management system were analyzed based on the requirements. Then the next step is to start designing the architecture, main functions and database of this smart classroom management system. The smart classroom 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-2Smart Classroom Management SystemFunctional module diagram

3.2.2 User module design

(1) User module structure diagram

Users of this website include administrators and system user modules. The functions of the two user modules are basically the same. The system user module has one more registration function than the administrator. Therefore, the structure diagram of the user module is used as an example for analysis, as shown below:

Figure 3-3 User module structure diagram

(2) Specific business logic of each structure

a. Query user information: The most basic query function is designed to query user information based on user ID. This function is mainly reflected in the administrator's user information query and the user's own information query.

b. Modify user information: Users can modify their basic information according to the situation, including name modification, password modification, avatar modification and other operations.

c. Add users: Users can obtain accounts by registering

d. Delete user information: Administrators do not have the right to delete information. At most, they can add users to the blacklist and prohibit users from logging in.

3.2.3 Comment management module design

(1)Comment module structure diagram

 The smart classroom management system is a public website for communication. Users can comment on the content on the website, such as communication centers, information, etc., to increase the interaction between users. But at the same time, in order to better standardize the content of comments 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

(2) Specific business logic of each structure

a. Query comments: The most basic query function is designed to query all comment information under the user based on the user ID.

b. Post comments: Student users can post their own comment information to the website according to the situation.

c. Delete comments: The administrator does not have the authority to modify the user's comment information, but can delete the user's entire comment.

3.2.4 Classroom Management Module Design

(1) Classroom management module structure diagram

 The smart classroom management system needs to store a lot of user classroom information. Users can view classroom information and make classroom reservations. Administrators can add, modify, delete classroom information, etc. The specific structure diagram is as follows:

Figure 3-5 Classroom Member Module Structure Diagram

(2) Specific business logic of each structure

a. Add classroom information: Administrators can add classroom information.

b. Modify classroom information: Administrators can modify classroom information.

c. Delete classroom information: Administrators can delete classroom information.

d. Classroom reservation: Users can view reservation information.

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 E-R entity relationship diagram of the main database tables in the entire smart classroom management system.

Figure 3-6 Overall E-R relationship diagram of smart classroom management system

According to the total E-R relationship diagram of the database of the smart classroom management system, it can be concluded that the smart classroom management system requires many E-R diagrams. Here are some main database E-R model diagrams.

Figure 3-7 System user E-R relationship diagram

Figure 3-8 Classroom information E-R relationship diagram

Figure 3-9 Reservation information E-R relationship diagram

Figure 3-10 Comment information E-R relationship diagram

3.3.2 Database logical structure design

From the total E-R relationship diagram in the smart classroom 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.

 (1)system_user The table contains system user registration information as shown in Table 3-1. It is mainly used for front-end users. Use it when logging into the smart classroom management system.

Table 3-1system_userSystem user information 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

The (2)message_feedback table is shown in Table 3-2. It is mainly used when system users submit message feedback and users view message information at the front desk. .

Table 3-2 `message_feedbackRugon response table

name

type

length

not null

primary key

Comment

message_feedback_id

int

11

yes

yes

Message feedback ID

user_no

int

11

no

no

user ID

user_name

varchar

64

no

no

username

feedback_content

text

0

no

no

Feedback content

message_date

date

0

no

no

Message date

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

The (3)classroom_information table is shown in Table 3-4. The main fields include display number, classroom name, classroom label, cover, Person in charge, classroom specifications, capacity, contact number, classroom details, etc.

Table 3-4 classroom_informationClassroom Information Table

name

type

length

not null

primary key

Comment

classroom_information_id

int

11

yes

yes

Classroom information ID

display_no

varchar

64

no

no

display number

classroom_name

varchar

64

no

no

Classroom name

classroom_label

varchar

64

no

no

Classroom Label

cover

varchar

255

no

no

cover

person_in_charge

varchar

64

no

no

principal

classroom_specifications

varchar

64

no

no

Classroom specifications

capacity

int

11

no

no

Capacity

contact_number

varchar

64

no

no

contact number

classroom_details

longtext

0

no

no

Classroom details

praise_len

int

11

yes

no

Number of likes

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

The (4)cancel_reservation table is shown in Table 3-5. The main fields include reservation number, display number, classroom name, and classroom specifications. , person in charge, contact number, user number, user name, number of reservations, etc.

Table 3-5 cancel_reservationCancel reservation information table

name

type

length

not null

primary key

Comment

cancel_reservation_id

int

11

yes

yes

Cancel reservation ID

appointment_no

varchar

64

yes

no

Reservation number

display_no

varchar

64

no

no

display number

classroom_name

varchar

64

no

no

Classroom name

classroom_specifications

varchar

64

no

no

Classroom specifications

person_in_charge

varchar

64

no

no

principal

contact_number

varchar

64

no

no

contact number

user_no

int

11

no

no

user ID

user_name

varchar

64

no

no

username

number_of_appointments

int

11

no

no

Number of reservations

recommend

int

11

yes

no

Intelligent Recommendation

create_time

datetime

0

yes

no

creation time

update_time

timestamp

0

yes

no

Update time

The (5)appointment_information_id table is shown in Table 3-6. The main fields include appointment number, display number, classroom name, and person in charge , classroom specifications, contact number, user number, user name, number of reservations, review status, review reply, etc.

Table 3-6 appointment_informationAppointment information table

name

type

length

not null

primary key

Comment

appointment_information_id

int

11

yes

yes

Reservation information ID

appointment_no

varchar

64

no

no

Reservation number

display_no

varchar

64

no

no

display number

classroom_name

varchar

64

no

no

Classroom name

person_in_charge

varchar

64

no

no

principal

classroom_specifications

varchar

64

no

no

Classroom specifications

contact_number

varchar

64

no

no

contact number

user_no

int

11

no

no

user ID

user_name

varchar

64

no

no

username

number_of_appointments

int

11

no

no

Number of reservations

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

The (6)comment table is shown in Table 3-7. The main fields include commenter ID, comment content ID, content, and nickname. , avatar address, etc.

Table 3-7commentExplanation information table

name

type

length

not null

primary key

Comment

comment_id

int

11

yes

yes

Comment ID

user_id

int

11

yes

no

Commenter ID

reply_to_id

int

11

yes

no

Reply to comment ID

content

longtext

0

no

no

content

nickname

varchar

255

no

no

Nick name

avatar

varchar

255

no

no

Avatar address

create_time

timestamp

0

yes

no

creation time

update_time

timestamp

0

yes

no

Update time

source_table

varchar

255

no

no

Source table

source_field

varchar

255

no

no

Source field

source_id

int

10

yes

no

Source ID

3.4 Main chapter summary

The demand analysis of the entire smart classroom management system mainly focused on the design of the overall system architecture and functional modules. The database system design was completed by establishing the E-R model and database logic system design.

4 Detailed design and implementation of smart classroom management system

 The detailed design and implementation of the smart classroom management system is mainly based on the previous demand analysis of the smart classroom management system and the overall design of the smart classroom management system to design the page and implement business logic. It is mainly introduced from the two parts of smart classroom management system interface implementation and business logic implementation.

4.1User function module

4.1.1 Previous stage interface

When entering the smart classroom management system, the first thing that comes into view is the navigation bar of the system. Below is the carousel chart and system content. The main interface is shown in Figure 4-1 below.

Figure 4-1 Front page interface diagram

4.1.2 User login interface

 Users who have registered at the front desk in the smart classroom management system can log in through their account name and password. When the user enters their complete account name and password information and clicks the "Login" button, the entered information will first be verified. If there is no empty data, verify again whether the entered account name + password is consistent with the user information currently saved in the database. Only if they are consistent will the login be successful and automatically jump to the homepage of the Smart Classroom Management System; otherwise, a corresponding error will be prompted Information, the user login interface is shown in Figure 4-2 below.

Figure 4-2 User login interface diagram

The login key code is as follows.

 /**

     * Log in

     * @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.3用户注册界面

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

图4-3用户注册界面图

注册关键代码如下所示。

/**

     * 注册

     * @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.4热点新闻界面

当访客点击智慧教室管理系统中导航栏上的“热点新闻”后将会进入到该“热点新闻”列表的界面,然后选择想要看的热点新闻,点击进入到详细界面,在详细界面可以收藏+赞+评论等操作,热点新闻界面如下图4-4所示。

图4-4热点新闻界面图

4.1.5 我的账户界面

当用户点击右上角“我的”这个按钮,会出现子菜单,点击“我的账户”可以对个人的资料以及登录系统的密码进行设置,我的账户界面如下图4-6所示。

图4-5我的账户界面图

4.1.6交流论坛界面

当访客点击智慧教室管理系统中导航栏上的“交流论坛”后将会进入到该“论坛”列表的界面,然后选择想要看的交流论坛,点击进入到详细界面,在详细界面可以收藏+点赞+评论等操作,交流论坛界面如下图4-6所示。

图4-6交流论坛界面图

4.1.7教室详情界面

当访客点击了任意教室信息后将会进入该教室的详情界面,可以了解到该教室信息的展示编号、教室名称、教室标签、负责人、教室规格、容纳人数、联系电话等,同时可以对该教师信息进行预约+收藏+点赞,教室详情展示页面如图4-7所示。

图4-7教室详情界面图

4.2管理员功能模块

4.2.1登录界面

管理员,教室在登录界面输入账号+密码,点击“登录”按钮,系统在用户数据库表中会对管理员,系统用户的账号进行匹配,账号+密码正确的话,就会登录到系统中各个用户的主管理界面,否则提示对应的信息,返回到登录的界面,如果管理人员忘记密码的话,点击“忘记密码”根据提示可以找回密码,然后再进行登录其主界面展示如下图4-8所示。

图4-8登录界面图

4.2.2 系统用户管理界面

用户管理模块包含了管理员、系统用户两个部分,管理员在后台都可以查看到用户的信息,但是只有管理员可以对用户进行增删改查操作;管理员可以对用户进行增删改查。这里以系统用户为例,界面如下图4-9所示。

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

4.2.3资源管理界面

 智慧教室管理系统中的管理人员在“资源管理”这一菜单中是可以对智慧教室管理系统内的热点新闻、新闻分类列表以及热点新闻信息、新闻分类列表进行维护和管理的,界面如下图4-10所示。

图4-10资源管理界面图

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

 @RequestMapping("/get_obj")

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

        List resultList = service.selectBaseList(service.select(service.readQuery(request), service.readConfig(request)));

        if (resultList.size() > 0) {

            JSONObject jsonObject = new JSONObject();

            jsonObject.put("obj",resultList.get(0));

            return success(jsonObject);

        } else {

            return success(null);

        }

}

4.2.4 模块管理界面

智慧教室管理系统中的管理人员在“模块管理”这一菜单下是可以对智慧教室管理系统内的教室信息、预约信息、取消预约、留言反馈进行管控的,其管理界面如下图4-11所示。

图4-11模块管理界面图

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、ssm技术、MYSQL,这些技术都是在以前的学习中学到了,其中许多的设计思路和方法都是在以前不断地学习中摸索出来的经验,其实对于我们来说工作量还是比较大的,但是正是由于之前的积累与准备,才能顺利的完成这个项目,由此看来,积累经验跟做好准备是十分重要的事情。

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

参考文献

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

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

[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]唐小玲.基于SSM框架的资质管理系统开发解析[J].科学技术创新,2022(26):80-83.

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

[8]欧阳桂秀.基于Java和MySQL的数据库管理系统的设计与实现[J].信息记录材料,2022,23(09):240-242.DOI:10.16009/j.cnki.cn13-1295/tq.2022.09.007.

[9]郭春霞.基于Java EE技术的软件框架设计[J].信息记录材料,2022,23(09):99-101.DOI:10.16009/j.cnki.cn13-1295/tq.2022.09.027.

[10]仓业金.基于Java的软件保护技术研究[J].电脑知识与技术,2022,18(23):29-30+52.DOI:10.14004/j.cnki.ckt.2022.1597.

[11]林烈青,冯广.基于数据中台的智慧教室融合管理系统[J].中国教育网络,2022(01):70-71.

[12]王凯,何秋生.智慧教室管理系统终端设计[J].实验技术与管理,2021,38(11):263-266.DOI:10.16791/j.cnki.sjg.2021.11.050.

[13]He Xinbin,Bai Yongbin,Yue Lisen,Wang Haixiao,Liu Yi. Design and Implementation of Information System Based on Java Technology Platform[J]. Journal of Physics: Conference Series,2021,2033(1).

[14]王宇.基于模糊逻辑的高校多媒体智慧教室管理系统设计[J].现代电子技术,2021,44(12):169-172.DOI:10.16652/j.issn.1004-373x.2021.12.036.

[15]李祥, 智慧教室终端控制管理系统V1.0. 重庆市,重庆爱科思智能科技有限公司,2021-06-15.

[16]吴东泉, 云网络智慧教室管理系统V1.0. 湖南省,张家界宇浩信息科技有限公司,2021-04-29.

[17]Qu Xiaona. Application of Java Technology in Dynamic Web Database Technology[J]. Journal of Physics: Conference Series,2021,1744(4).

[18]Xia Gao,Gao Xia,Xiong HongZhou,Xu Fangqin. Design and implementation of Wisdom classroom management system based on voice control[J]. Journal of Physics: Conference Series,2020,1651(1).

致  谢

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

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

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

免费领取项目源码,请关注❥点赞收藏并私信博主,谢谢~

Guess you like

Origin blog.csdn.net/vx2_Biye_Design/article/details/133883800