Design and Realization of SSM University Campus Charity Auction Website Graduation Project - Attached Source Code 250910

Table of contents

Summary

1 Introduction

1.1 Research background and significance

1.2 Research Status

1.3 Paper Structure and Chapter Arrangement

2 Systematic Analysis of University Campus Charity Auction Websites 

2.1 Feasibility analysis

2.2 System flow analysis

2.2.1 Data addition process

2.2.2 Data modification process _

2.2.3 Data deletion process _

2.3 System function analysis

2.3.1 Functional Analysis

2.3.2 Non-functional analysis

2.4 System use case analysis

2.5 Summary of this chapter

3 Overall Design of University Campus Charity Auction Website

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 Item 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 Realization of University Campus Charity Auction Website 

4.1 User Function Module

4.1.1 Front page interface

4.1.2 User registration interface

4.1.3 User login interface 22

4.1.4 Message board interface

4.1.5 My favorite interface

4.1.6 Charity Auction Details Interface

4.3 Administrator function module

4.3.1 Public management interface

4.3.2 User Management Interface

4.3.3 Tieba management interface

4.3.4 More management interfaces

5 System Test 31

5.1 Purpose of system testing 31

5.2 System test cases 31

5.3 System test results 32

Conclusion 33

References 34

thank you  

Summary

In the information society, there is a need for targeted information acquisition channels, but the expansion of channels is basically the direction that people are striving for. Due to the deviation in their perspective, people can often obtain different types of information, which is also the most difficult technology to overcome. topic. Aiming at the problems of university campus charity auction websites, research and analysis of university campus charity auction websites, and then develop and design university campus charity auction websites to solve the problems.

The main functional modules of the university campus charity auction website include user management, auction results, subject classification, item classification, charity auction, donated items, item auction, item auction record, charity auction record, charity publicity, and adopt an object-oriented development model for software The development and hardware installation can well meet the needs of actual use, and the corresponding software installation and program coding work has been improved. MySQL is used as the main storage unit for background data, and SSM framework, JAVA technology, and Ajax technology are used for The coding and development of the business system have realized all the functions of the system. This report first analyzes the background, function and significance of the research, laying the foundation for the rationality of the research work. Analyzed various needs and technical issues of the university campus charity auction website, proved the necessity and technical feasibility of the system, and then gave a basic introduction to the technical software and design ideas that need to be used in the design system, and finally realized the university campus Charity auction sites and deployments run using it.

Keywords : SSM technology; MYSQL; university campus charity auction website

Abstract

In the information society, there is a need for targeted information access, but the expansion of access is basically the direction of people's efforts. Due to the deviation of the perspective, people can often obtain different types of information, which is also the most difficult subject for technology to overcome. Aiming at the problems of university campus charity auction website, this paper studies and analyzes the university campus charity auction website, and then develops and designs the university campus charity auction website to solve the problems.

The main functional modules of the university campus charity auction website include user management, auction results, subject classification, item classification, charity auction, donated items, item auction, item auction record, charity auction record and charity publicity. The object-oriented development mode is adopted for software development and hardware erection, which can well meet the needs of practical use and improve the corresponding software erection and program coding, MySQL is used as the main storage unit of background data, and SSM framework, Java technology and Ajax technology are used to code and develop the business system, which realizes all the functions of the system. This report first analyzes the background, function and significance of the research, which lays a foundation for the rationality of the research work. This paper analyzes the various needs and technical problems of the university campus charity auction website, proves the necessity and technical feasibility of the system, then makes a basic introduction to the technical software and design ideas needed to design the system, and finally realizes the deployment and operation of the university campus charity auction website.

Keywords:SSM technology; MYSQL; University Campus charity auction website

1 Introduction

1.1 Research background and significance

 With the continuous development of China's higher education, the scale of colleges and universities continues to expand. In this process, the social influence of the university is increasing day by day, and the campus, as an important carrier of education and cultural communication, is becoming more and more important to promote it. Therefore, how to effectively combine the university spirit with the campus culture is one of the urgent problems to be solved in our country's universities. University campus charity auction refers to a mode of realizing university charity activities through network technology. At present, some domestic scholars have begun to pay attention to this field and have achieved certain results, but most of them focus on the theoretical level and lack of practical application. This article attempts to explore university campus charity auctions from the perspective of "Internet +", in order to enrich my country's charity theory, promote the healthy and sustainable development of charity, and then enhance my country's overall comprehensive competitiveness, which has high practical significance.

1.2 Research Status

At present, there are relatively few relevant literatures on university charity auctions in China. This paper uses the methods of literature review, questionnaire survey and case analysis to investigate and study some domestic colleges and universities' charity auction activities in recent years. The results show that: In the past five years, with the changes in the socio-economic environment and the improvement of people's living standards, it has become a common trend for college students to participate in philanthropy. However, at present, the academic community does not pay enough attention to this field, and the results are scattered and lack of systematic research results, which will affect the in-depth development of follow-up research work. Therefore, it is necessary to systematically sort out the situation of domestic university charity auctions to lay a solid theoretical foundation for further in-depth research in the future. At the same time, it can also provide reference for other institutions. In addition, this article adopts the method of literature research and comparative analysis, by consulting a large number of relevant literature and materials, combined with its own actual research results, and comprehensively summarizes the charity auction activities carried out by Chinese universities in the past five years from five aspects, in order to provide further insights for future scholars. The study provides some beneficial enlightenment, and then promotes the healthy and orderly development of Chinese philanthropy, and realizes the goal of a harmonious society.

1.3 Paper Structure and Chapter Arrangement

The thesis will be arranged in layers, except for the abstract acknowledgments and references, the main text will also analyze the requirements of the website, explain the general design and implemented functions, and finally list some commissioning records. The main structure of the thesis is as follows:

Chapter One Introduction. The first chapter mainly introduces the background of the subject research, the status quo of system development and the research content and main work of this paper.

Chapter Two: System Requirements Analysis. The second chapter mainly conducts demand analysis from the aspects of system users and functions.

Chapter Three: System Design. The third chapter mainly carries on the function design to the system frame, the system function module, the database.

Chapter Four: System Realization. The fourth chapter mainly introduces the construction of the system framework and the realization of the system interface.

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

Chapter Six: Summary.

2 Analysis of University Campus Charity Auction Websites

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. Further, feasibility analysis is carried out on system development, usually including technical feasibility, economic feasibility, etc. Feasibility analysis is also an analysis from the overall perspective of the project. Then it is to analyze the specific needs of the project, and the means of analysis are generally realized 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 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.

So there is no question of economic viability.

(2) Operation feasibility:

The design of this project refers to several development cases of websites under this mode, analyzes their operation interface, combines many cases together, and highlights the people-oriented and simplified operation, so people with basic computer knowledge can operate this project.

Therefore, there is no problem with operability.

(3) Technical feasibility:

Technical feasibility refers to the feasibility of building a framework, and the acceptability of system technology upgrades when better technologies emerge, and the ratio of development time to cost.

The existing Java technology can cater to the construction of all e-commerce systems. When developing this university campus charity auction website, I used Java+MYSQL to run the overall program.

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

(4) Legal feasibility:

From the perspective of developers, Java and MYSQL are open source and free online, and there will be no legal disputes in terms of intellectual property rights.

From the perspective of user use, as long as no contraband is sold on the system, a treaty agreement is made on the system, and illegal payments are eliminated.

In summary, there is no question of legal feasibility.

2.2 System flow analysis

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

2.2.1 Data addition process

After the user successfully logs in to the system , the operation of adding data can be realized. The number of adding data is specific and generated by the system, and the user cannot fill it in at will. Except for the number, the user can fill in other additional information by himself, and the filled information is verified by the system and verified to be legal. Passing shows that the data addition is successful. On the contrary, the addition is not successful. Figure 2-1 shows the process of adding data.

 

Figure 2-1 Flowchart of adding data

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 are some useless data in the system , the relevant management personnel can also delete these data. Figure 2-3 is the flow chart of data deletion.

 

Figure 2-3 Data deletion flow chart

2.3 System function analysis

2.3.1 Functional Analysis

According to the role of the university campus charity auction website, I divided it into two parts: the registered user management module and the administrator management module.

User management module:

(1) User registration and login: the user registers as a member and logs in to the university campus charity auction website; the user adds, deletes, modifies and checks personal information, such as personal information and password changes.

(3) Bulletin board: On the navigation bar of the homepage, we will see the menu of " Bulletin News ". After we click to enter, we will see the bulletin information released by all administrators in the background;

(4) Tieba : On the navigation bar of the homepage, we will see the menu " Tieba ". After we click to enter, we will see the content of all the postbars posted by the administrator in the background, and we can like the Tieba we like . If If you want to find this information faster next time, you can also bookmark and comment;

(5) Item Auction : On the homepage navigation bar, we will see the menu " Item Auction ". After we click to enter, we will see all the item information released by the administrator in the background . We choose to know the price of the auction Information , you can increase the price + comment ;

(6) My Favorites: Under "My", you can view and manage the "My Favorites" information, you can view the favorites, and you can also delete the favorite information;

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

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

Administrator management module:

(1) Login: The account of the administrator is directly set and generated in the data table, and no registration is required;

(2) Public point management: When you click on the " Public Management" menu, two sub-menus will appear, carousel map + bulletin board, and you can add, delete, modify and query these two modules;

(3) User management: When you click on the "User Management" menu, three sub-menus will appear: administrator + doctor user + ordinary user , and you can add, delete, modify and query these three

(4) System content management: When clicking on the " System Content Management" menu, two sub-menus will appear : post bar management + post bar classification , and at the same time, add, delete, modify and check the charity auctions displayed on the front desk ;

(5) System module management: When you click on the " System Module " menu, there will be auction results, theme classification, item classification, charity auction, donated items, item auction, item auction records, charity auction records, charity publicity, etc. Nine sub-menus, the administrator can add, delete, modify and query these nine modules;

2.3.2 Non-functional analysis

The non-functional requirements of the university campus charity auction website, such as the security, reliability, performance, and scalability of the university campus charity auction website. Specifically, it can be expressed in the following table 3-1:

Table 3- 1 Non-functional Requirements Table of University Campus Charity Auction Website

safety

It mainly refers to the installation of the database of the university campus charity auction website, the use of the database and the setting of the password must comply with the regulations.

reliability

Reliability means that the university campus charity auction website can install the user's instructions to operate. After testing, the reliability is more than 90%.

performance

Performance is a necessary condition for university campus charity auction websites to occupy the market, so the best performance is good.

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 university campus charity auction website to operate.

maintainability

The maintainability of the development of the university campus charity auction website 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 university campus charity auction website is obtained:

Figure 2-3 shows an example of a user role.

 

Figure 2-3 User role use case diagram of a charity auction website on a university campus

The administrator on the web background management maintains all the data information on the entire university campus charity auction website. Figure 2-4 shows an example of an administrator role.

 

figure 2-4University Campus Charity Auction Site Administrator Role Use Case Diagram

2.5 Summary of this chapter

This chapter mainly determines the functions to be realized by the entire university campus charity auction website through the feasibility analysis, process analysis, functional demand analysis, and system use case analysis of the university campus charity auction website. It also provides a standard for the code implementation and testing of charity auction websites on university campuses.

3 General Design of University Campus Charity Auction Website

This chapter mainly discusses the functional module design and database system design of the university campus charity auction website.

3.1 System architecture design

The campus charity auction website of this university is divided into three layers from the structure: presentation layer (UI), business logic layer (BLL) and data layer (DL).

                                

 

Figure 3-1 System Architecture Design of University Campus Charity Auction Website

 

Presentation layer (UI): Also known as the UI layer, it mainly completes the UI interaction function of the university campus charity auction website. A good UI can improve the user experience of users and enhance the comfort of users when using the university campus charity auction website . The UI interface design should also adapt to different versions of the university campus charity auction website and different resolutions to achieve good compatibility. The requirements for UI interaction functions are reasonable, and users must obtain consistent interaction results when performing interactive operations, which requires a good connection between the presentation layer and the business logic layer.

Business logic layer (BLL): It mainly completes the data processing function of the university campus charity auction website. The data transmitted by the user from the presentation layer is processed and delivered to the data layer through the business logic layer, and the data read by the system from the data layer is processed and delivered to the presentation layer through the business logic layer.

Data layer (DL): Since the data of the university’s campus charity auction website is placed in the mysql database on the server side, the part that belongs to the service layer can be directly integrated into the business logic layer, so there is only a database in the data layer, which mainly completes The data storage and management functions of this university campus charity auction website.

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 university campus charity auction website were analyzed according to the requirements. Then the next step is to start designing the architecture, main functions and database of the university campus charity auction website. The University Campus Charity Auction Website is based on the requirements analysis in the previous chapters, and its overall design module diagram is shown in Figure 3-2.

 

Figure 3-2 Functional module diagram of the university campus charity auction website

3.2.2 User module design

The background manager can add, delete, modify and check the users registered in the front desk. The structure diagram of the user module is as follows:

 

Figure 3-3 Structure Diagram of Member User Module

3.2.3 Comment management module design

The University Campus Charity Auction website is an open platform for communication. Member users can communicate on the platform to increase the interaction between users. But at the same time, in order to better regulate the content of the message and give the administrator the function of deleting inappropriate comments, it is necessary to design a message management module. The specific structure diagram is as follows:

 

Figure 3-4 Structure diagram of message module

3.2.4 Item management module design

The university campus charity auction website needs to store a lot of item auction information, and its module function structure, the specific structure diagram is as follows:

 

Figure 3-5 Structural Diagram of Item Auction Module

3.3 Database design

Database design generally includes three major processes: requirements analysis, conceptual model design, and database table establishment. Requirements analysis has been explained in the previous chapters, and conceptual model design has two parts: conceptual model and logical structure design.

3.3.1 Conceptual structure design of database

The following is the ER entity relationship diagram of the main database tables in the entire university campus charity auction website.

Figure 3-6 The overall ER relationship diagram of the university campus charity auction website

 

According to the database ER relationship diagram of the university campus charity auction website, it can be concluded that the university campus charity auction website needs many ER diagrams. Here are some main database ER model diagrams.

 

Figure 3-7 Registered user ER relationship diagram

 

Figure 3-8 Item Auction ER Relationship Diagram

 

Figure 3-9 Charity Publicity ER Relationship Diagram

 

Figure 3-10 ER relationship diagram of donated items

3.3.2 Database logical structure design

According to the total ER relationship diagram in the university campus charity auction website in the previous section, it is concluded that a lot of data tables need to be created. Here I mainly list several major database table structure designs.

subject_classification表:

name

type

length

not null

primary key

note

subject_classification_id

int

11

yes

yes

Subject Category ID

auction_theme

varchar

64

no

no

auction theme

recommend

int

11

yes

no

Intelligent Recommendation

create_time

datetime

0

yes

no

creation time

update_time

timestamp

0

yes

no

update time

item_classification table:

name

type

length

not null

primary key

note

item_classification_id

int

11

yes

yes

Item Category ID

item_type

varchar

64

no

no

item type

recommend

int

11

yes

no

Intelligent Recommendation

create_time

datetime

0

yes

no

creation time

update_time

timestamp

0

yes

no

update time

item_auction table:

name

type

length

not null

primary key

note

item_auction_id

int

11

yes

yes

Item Auction ID

auction_number

varchar

64

yes

no

auction number

auction_title

varchar

64

no

no

auction title

item_type

varchar

64

no

no

item type

item_cover

varchar

255

no

no

item cover

current_price

varchar

64

no

no

current price

each_price_increase

varchar

64

no

no

each markup

item_details

longtext

0

no

no

item details

hits

int

11

yes

no

hits

recommend

int

11

yes

no

Intelligent Recommendation

timer_title

varchar

64

no

no

timer title

timing_start_time

datetime

0

no

no

Timing start time

timing_end_time

datetime

0

no

no

Timing end time

create_time

datetime

0

yes

no

creation time

update_time

timestamp

0

yes

no

update time

donated_items表:

name

type

length

not null

primary key

note

donated_items_id

int

11

yes

yes

Donation Item ID

donor

int

11

no

no

Donors

item_name

varchar

64

no

no

Item Name

item_quantity

varchar

64

no

no

number of the stuffs

contact_number

varchar

64

no

no

contact number

donation_method

varchar

64

no

no

donation method

donation_time

date

0

no

no

donate time

examine_state

varchar

16

yes

no

Approval Status

examine_reply

varchar

16

no

no

review reply

recommend

int

11

yes

no

Intelligent Recommendation

create_time

datetime

0

yes

no

creation time

update_time

timestamp

0

yes

no

update time

charity_publicity table:

name

type

length

not null

primary key

note

charity_publicity_id

int

11

yes

yes

Charity Publicity ID

auction_number

varchar

64

no

no

auction number

auction_title

varchar

64

no

no

auction title

auction_theme

varchar

64

no

no

auction theme

auction_poster

varchar

255

no

no

auction poster

current_price

varchar

64

no

no

current price

donation_direction

varchar

64

no

no

Donation Direction

donation_certificate

varchar

255

no

no

proof of donation

hits

int

11

yes

no

hits

praise_len

int

11

yes

no

Likes

recommend

int

11

yes

no

Intelligent Recommendation

create_time

datetime

0

yes

no

creation time

update_time

timestamp

0

yes

no

update time

charity_fare_increase表:

name

type

length

not null

primary key

note

charity_fare_increase_id

int

11

yes

yes

Charity Markup ID

auction_number

varchar

64

no

no

auction number

auction_title

varchar

64

no

no

auction title

auction_theme

varchar

64

no

no

auction theme

bidder

int

11

no

no

bidder

each_price_increase

varchar

64

no

no

each markup

recommend

int

11

yes

no

Intelligent Recommendation

create_time

datetime

0

yes

no

creation time

update_time

timestamp

0

yes

no

update time

bidding_results表:

name

type

length

not null

primary key

note

bidding_results_id

int

11

yes

yes

Auction result ID

auction_number

varchar

64

no

no

auction number

auction_title

varchar

64

no

no

auction title

item_type

varchar

64

no

no

item type

bidder

int

11

no

no

bidder

final_price

varchar

64

no

no

final price

item_status

varchar

64

no

no

item status

pay_state

varchar

16

yes

no

Payment status

pay_type

varchar

16

no

no

Payment Types

recommend

int

11

yes

no

Intelligent Recommendation

create_time

datetime

0

yes

no

creation time

update_time

timestamp

0

yes

no

update time

auction_record table:

name

type

length

not null

primary key

note

auction_record_id

int

11

yes

yes

Auction Record ID

auction_number

varchar

64

no

no

auction number

auction_title

varchar

64

no

no

auction title

item_type

varchar

64

no

no

item type

bidder

int

11

no

no

bidder

each_price_increase

varchar

64

no

no

each markup

recommend

int

11

yes

no

Intelligent Recommendation

create_time

datetime

0

yes

no

creation time

update_time

timestamp

0

yes

no

update time

3.4 Summary of this chapter

The needs analysis of the entire university campus charity auction website mainly focuses on the design of the overall system architecture and functional modules. The database system design is completed by establishing the ER model and database logic system design.

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用户管理界面图

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

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.2.3 贴吧管理界面

大学校园慈善拍卖网站中管理人员是可以对大学校园慈善拍卖网站内的贴吧信息进行维护和管理的。贴吧界面如下图4-9所示。

 

图4-9贴吧界面图

4.2.4 更多管理界面

大学校园慈善拍卖网站中的管理人员在“更多管理”这一菜单下是可以对大学校园慈善拍卖网站内的竞拍结果、主题分类、物品分类、慈善拍卖、捐赠物品、物品拍卖、物品竞拍记录、慈善竞拍记录、慈善公示进行管控的,其管理界面如下图4-10所示。

 

                                                                 图4-10更多管理界面图

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]金珊珊.基于SSM框架的心血管外科护理信息自动管理系统设计[J].自动化技术与应用,2022,41(04):170-173.

[2]王春丽.基于SSM框架的会议管理信息系统设计与实现[J].电脑编程技巧与维护,2022(03):83-85.DOI:10.16184/j.cnki.comprg.2022.03.016.

[3]沈蓓昱, (十)老干部工作 王一玉画作慈善拍卖捐赠活动. 黄伟一 主编,杨浦年鉴,上海文化出版社,2020,66-67,年鉴.DOI:10.42753/y.cnki.yypnj.2021.000267.

[4]李莉,杨次洪, 民间文艺·收藏 慈善拍卖. 曾超群 主编,张家界年鉴,方志出版社,2020,324,年鉴.DOI:10.43202/y.cnki.yzjjn.2021.001418.

[5]刘汪洋,李宁. 一种应用于SSM框架的会话保持方法[P]. 山东省:CN113347235A,2021-09-03.

[6]傅倩莹, 虎门慈善会 慈善拍卖活动和启动公益项目. 王景民 主编,虎门年鉴,南方出版传媒广东人民出版社,2020,74,年鉴.DOI:10.39972/y.cnki.yhumy.2021.000248.

[7]马祥天. 基于SSM框架的通用图像分析工具设计与实现[D].电子科技大学,2021.DOI:10.27005/d.cnki.gdzku.2021.003552.

[8]高强.专业拍卖人 参与慈善事[J].中国拍卖,2020(06):32-33.

[9]Xiaojie Guo,Tingmei Wang*. Design and Implementation of Graduate Information Management System Based on SSM Framework[J]. Journal of Simulation,2020,8(2).

[10]本刊讯.慈善拍卖助力抗疫最后冲刺[J].中国拍卖,2020(04):18-19.

[11].中华慈善总会已接收“美善不息·全国书画名家抗击疫情主题创作慈善拍卖”捐赠善款[J].艺术品,2020(03):118.

[12]孔冰欣.艺术和公益的结合不再是慈善拍卖[J].决策探索(上),2020(02):49-52.

[13]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.

[14]朱宇.慈善拍卖 为孩子点亮一盏灯[J].中国拍卖,2019(09):50-51.

[15].贞观国际拍卖艺术慈善行首届慈善拍卖会及京港春季拍卖会新闻发布会在京举行[J].收藏家,2019(07):88.

[16]欧树英.跨界融合,中国进入专业慈善拍卖新阶段[J].中国社会组织,2018(09):54-55.

[17]徐磊,宗泳杉. 慈善拍卖为何屡曝“假慈善真捞钱”[N]. 北京商报,2017-07-07(A01).DOI:10.28036/n.cnki.nbjxd.2017.005045.

[18]Qi liang SUN. Design and Implementation of Personnel Management Information System Based on SSM[P]. Qi liang SUN,2021.

致  谢

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

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

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

点赞+收藏+关注 → 私信领取本源代码、数据库
 

Guess you like

Origin blog.csdn.net/weixin_61498557/article/details/131080467
Recommended