经典毕业设计:基于SSM实现高校后勤报修系统

本文涉及的产品
云数据库 RDS MySQL,集群系列 2核4GB
推荐场景:
搭建个人博客
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
云数据库 RDS MySQL,高可用系列 2核4GB
简介: 经典毕业设计:基于SSM实现高校后勤报修系统

项目编号:BS-XX-125

一,项目简介

  本文主要就是围绕高校设施报修进行研发,系统使用SSM框架开发实现,使用Maven来管理项目中的依赖,同时使用了Spring框架、Mybatis框架和SpringMvc框架技术。在前端开发方面采用了Jquery+Ajax技术以及Bootstrap框架,实现了学校各项设施报修、维修以及各种信息后台管理的功能。本系统简单易懂,用户操作使用方便。另外本系统的架构在整体设计上利用常见的三层开发模式,同时为了解耦合,也使用到了Mvc设计模式,这个主要是为了实现前端页面代码的分离。数据存储方面则是用到了MySql5.7数据库。主要流程也是考虑到了交互的方面,基本符合交互式标准原则,前端的内容发送到后端,短时间内会得到很准确的反应,既考虑了系统的严肃性,同时也兼顾了用户的体验感受。

本系统基于SSM实现后勤报修管理功能,前端采用DIV+CSS布局处理,采用异步请求AJAX发送请求和接受消息,数据库采用MYSQL,开发工具使用IDEA或ECLIPSE,提供基于MAVEN和非MAVEN两种版本供使用。

主要包含三个角色:

  1. 管理员角色:znz /  123456  主要可以管理用户信息,报修分配维修人员,发布公告,维修类型管理,个人资料修改等功能
  2. 普通用户:20210909/ 123456  主要可以进行宿舍问题报修,查询报修记录,对报修结果进行评价,查看公告,修改个人资料等功能
  3. 维护人员:WX001/ 123456  主要可以查看分配的维护记录,对维护的结果进行处理,维护个人记录等相关功能

二,环境介绍

语言环境:Java:  jdk1.8

数据库:Mysql: mysql5.7

应用服务器:Tomcat:  tomcat8.5.31

开发工具:IDEA或eclipse

后台开发技术:SSM

前台开发技术:JSP+Jquery+Css+Javaweb

三,系统展示

下面展示一下系统的功能

管理员用户功能

系统用户管理

维修工人管理:可以对维修工人排班

学生管理

维修模块管理

维修分类管理

公告管理

报修单管理:给报修单分配工人

维修结果查询

维修评价查询

维修工人排班

维修工人登陆后的操作功能

学生登陆后的主要功能

四,核心代码展示

package com.controller;
import java.io.File;
import java.io.IOException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.io.PrintWriter;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.entity.Allusers;
//import com.chengxusheji.po.News;
import com.server.AllusersServer;
import com.util.PageBean;
import net.sf.json.JSONObject;
@Controller
public class AllusersController {
  @Resource
  private AllusersServer allusersService;
//  
   @RequestMapping("showAllusers.do")
   public String showAllusers(int id,ModelMap map,HttpSession session){
   /*  Map<String,Object> bmap=new HashMap<String,Object>();
     bmap.put("uid", id);*/
    // map.put("blist", allusersService.getAll(bmap));
     map.put("allusers", allusersService.getById(id));
     return "read";
   }
  @RequestMapping("addAllusers.do")
  public String addAllusers(HttpServletRequest request,Allusers allusers,HttpSession session){
    Timestamp time=new Timestamp(System.currentTimeMillis());
    //Users u=(Users)session.getAttribute("user");
    /*if(u==null||u.equals("")){
      return "redirect:showIndex.do";
    }else{*/
      //bbs.setUid(u.getId());
      /*bbs.setPubtime(time.toString());
      bbs.setIsdel("1");*/
        allusers.setAddtime(time.toString().substring(0, 19));
      allusersService.add(allusers);
      return "redirect:allusersList.do";
    /*}*/
  }
//  处理编辑
  @RequestMapping("doUpdateAllusers.do")
  public String doUpdateAllusers(int id,ModelMap map,Allusers allusers){
    allusers=allusersService.getById(id);
    map.put("allusers", allusers);
    return "allusers_updt";
  }
//  
  @RequestMapping("updateAllusers.do")
  public String updateAllusers(int id,ModelMap map,Allusers allusers){
    allusersService.update(allusers);
    return "redirect:allusersList.do";
  }
//  所有List
//  @RequestMapping("allusersList.do")
//  public String allusersList(ModelMap map,HttpSession session){
//    map.put("list", allusersService.getAll(null));
//    map.put("clist", allusersService.getAll(null));
//    return "allusers";
//  }
//  分页查询
  @RequestMapping("allusersList.do")
  public String goodList(@RequestParam(value="page",required=false)String page,
      ModelMap map,HttpSession session,Allusers allusers, String username, String pwd, String cx){
    /*if(session.getAttribute("user")==null){
      return "login";
    }*/
    if(page==null||page.equals("")){
      page="1";
    }
    PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
    Map<String, Object> pmap=new HashMap<String,Object>();
    pmap.put("pageno", pageBean.getStart());
    pmap.put("pageSize", 15);
    Map<String, Object> bmap=new HashMap<String, Object>();
    Map<String,Object> cmap=new HashMap<String,Object>();
    /*pmap.put("uid",  ((Users)session.getAttribute("user")).getId());
    bmap.put("uid", ((Users)session.getAttribute("user")).getId());*/
    if(username==null||username.equals("")){pmap.put("username", null);cmap.put("username", null);}else{pmap.put("username", username);cmap.put("username", username);}
    if(pwd==null||pwd.equals("")){pmap.put("pwd", null);cmap.put("pwd", null);}else{pmap.put("pwd", pwd);cmap.put("pwd", pwd);}
    if(cx==null||cx.equals("")){pmap.put("cx", null);cmap.put("cx", null);}else{pmap.put("cx", cx);cmap.put("cx", cx);}
    int total=allusersService.getCount(bmap);
    pageBean.setTotal(total);
    List<Allusers> list=allusersService.getByPage(pmap);
    map.put("page", pageBean);
    map.put("list", list);
    session.setAttribute("p", 1);
    return "allusers_list";
  }
//   分页模糊查询
  @RequestMapping("vagueAllusersList.do")
  public String vagueAllusersList(@RequestParam(value="page",required=false)String page,
      ModelMap map,HttpSession session){
    if(page==null||page.equals("")){
      page="1";
    }
    PageBean pageBean=new PageBean(Integer.parseInt(page),PageBean.PAGESIZE);
    Map<String, Object> pmap=new HashMap<String,Object>();
    pmap.put("pageno", pageBean.getStart());
    pmap.put("pageSize", pageBean.getPageSize());
    Map<String, Object> bmap=new HashMap<String, Object>();
    /*pmap.put("uid",  ((Users)session.getAttribute("user")).getId());
    bmap.put("uid",  ((Users)session.getAttribute("user")).getId());*/
    int total=allusersService.getCount(bmap);
    pageBean.setTotal(total);
    List<Allusers> list=allusersService.getByPage(pmap);
    map.put("page", pageBean);
    map.put("list", list);
    session.setAttribute("p", 2);
    return "queryallusers";
  }
  @RequestMapping("deleteAllusers.do")
  public String deleteAllusers(int id){
    allusersService.delete(id);
    return "redirect:allusersList.do";
  }
  @RequestMapping("quchongAllusers.do")
  public void quchongAllusers(Allusers allusers,HttpServletResponse response){
       Map<String,Object> map=new HashMap<String,Object>();
       map.put("username", allusers.getUsername());
       System.out.println("username==="+allusers.getUsername());
       System.out.println("username222==="+allusersService.quchongAllusers(map));
       JSONObject obj=new JSONObject();
       if(allusersService.quchongAllusers(map)!=null){
         obj.put("info", "ng");
         }else{
           obj.put("info", "username可以用!");
         }
       response.setContentType("text/html;charset=utf-8");
       PrintWriter out=null;
       try {
      out=response.getWriter();
      out.print(obj);
      out.flush();
    } catch (IOException e) {
      e.printStackTrace();
    }finally{
      out.close();
    }
  }
  @RequestMapping("Alluserslogin.do")
  public String checkAllusersLogin(Allusers allusers, HttpSession session) {
    Map<String,Object> u=new HashMap<String,Object>();
    System.out.println("name===" + allusers.getUsername());
    u.put("username",allusers.getUsername());
    //u.put("utype", "用户");
    //Md5.MD5HexEncode(user.getPassword())
    u.put("pwd",allusers.getPwd());
    allusers = allusersService.allusersLogin(u);
    if (allusers != null) {
      session.setAttribute("username", allusers);
      System.out.println("username=" + allusers);
      session.removeAttribute("suc");
      return "redirect:index.do";
    } else {
      System.out.println("usernafwfwwme=");
      session.setAttribute("suc", "登录失败!用户名或密码错误!");
      return "login";
    }
  }
}
package com.controller;
import java.io.File;
import java.io.IOException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.io.PrintWriter;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.entity.Baoxiudan;
import com.server.BaoxiudanServer;
import com.util.PageBean;
import net.sf.json.JSONObject;
import com.util.db;
import java.sql.SQLException;
import java.sql.*;
@Controller
public class BaoxiudanController {
  @Resource
  private BaoxiudanServer baoxiudanService;
  @RequestMapping("addBaoxiudan.do")
  public String addBaoxiudan(HttpServletRequest request,Baoxiudan baoxiudan,HttpSession session) throws SQLException{
    Timestamp time=new Timestamp(System.currentTimeMillis());
    baoxiudan.setAddtime(time.toString().substring(0, 19));
    baoxiudanService.add(baoxiudan);
    session.setAttribute("backxx", "添加成功");
    session.setAttribute("backurl", request.getHeader("Referer"));
    //session.setAttribute("backurl", "baoxiudanList.do");
    return "redirect:postback.jsp";
    //return "redirect:baoxiudanList.do";
  }
//  处理编辑
  @RequestMapping("doUpdateBaoxiudan.do")
  public String doUpdateBaoxiudan(int id,ModelMap map,Baoxiudan baoxiudan){
    baoxiudan=baoxiudanService.getById(id);
    map.put("baoxiudan", baoxiudan);
    return "baoxiudan_updt";
  }
  @RequestMapping("doUpdateBaoxiudanlb.do")
  public String doUpdateBaoxiudanlb(int id,ModelMap map,Baoxiudan baoxiudan){
    baoxiudan=baoxiudanService.getById(id);
    map.put("baoxiudan", baoxiudan);
    return "baoxiudan_updtlb";
  }
@RequestMapping("updateBaoxiudanlb.do")
  public String updateBaoxiudanlb(int id,ModelMap map,Baoxiudan baoxiudan){
    baoxiudanService.updatelb(baoxiudan);
    return "redirect:baoxiudanList.do";
  }
//  后台详细
  @RequestMapping("baoxiudanDetail.do")
  public String baoxiudanDetail(int id,ModelMap map,Baoxiudan baoxiudan){
    baoxiudan=baoxiudanService.getById(id);
    map.put("baoxiudan", baoxiudan);
    return "baoxiudan_detail";
  }
//  前台详细
  @RequestMapping("bxdDetail.do")
  public String bxdDetail(int id,ModelMap map,Baoxiudan baoxiudan){
    baoxiudan=baoxiudanService.getById(id);
    map.put("baoxiudan", baoxiudan);
    return "baoxiudandetail";
  }
//  
  @RequestMapping("updateBaoxiudan.do")
  public String updateBaoxiudan(int id,ModelMap map,Baoxiudan baoxiudan,HttpServletRequest request,HttpSession session){
    baoxiudanService.update(baoxiudan);
    session.setAttribute("backxx", "修改成功");
    session.setAttribute("backurl", request.getHeader("Referer"));
    return "redirect:postback.jsp";
    //String url = request.getHeader("Referer");
    //return "redirect:"+url;
    //return "redirect:baoxiudanList.do";
  }
//  分页查询
  @RequestMapping("baoxiudanList.do")
  public String baoxiudanList(@RequestParam(value="page",required=false)String page,
      ModelMap map,HttpSession session,Baoxiudan baoxiudan, String xuehao, String xueshengxingming, String lianxidianhua, String xiaoqu, String louhao, String sushehao, String weixiuleibie, String suoshumokuai, String baoxiuneirong, String guzhangtupian, String zhuangtai, String issh){
    if(page==null||page.equals("")){
      page="1";
    }
    PageBean pageBean=new PageBean(Integer.parseInt(page), 8);
    Map<String, Object> pmap=new HashMap<String,Object>();
    pmap.put("pageno", pageBean.getStart());
    pmap.put("pageSize", 8);
    if(xuehao==null||xuehao.equals("")){pmap.put("xuehao", null);}else{pmap.put("xuehao", xuehao);}
    if(xueshengxingming==null||xueshengxingming.equals("")){pmap.put("xueshengxingming", null);}else{pmap.put("xueshengxingming", xueshengxingming);}
    if(lianxidianhua==null||lianxidianhua.equals("")){pmap.put("lianxidianhua", null);}else{pmap.put("lianxidianhua", lianxidianhua);}
    if(xiaoqu==null||xiaoqu.equals("")){pmap.put("xiaoqu", null);}else{pmap.put("xiaoqu", xiaoqu);}
    if(louhao==null||louhao.equals("")){pmap.put("louhao", null);}else{pmap.put("louhao", louhao);}
    if(sushehao==null||sushehao.equals("")){pmap.put("sushehao", null);}else{pmap.put("sushehao", sushehao);}
    if(weixiuleibie==null||weixiuleibie.equals("")){pmap.put("weixiuleibie", null);}else{pmap.put("weixiuleibie", weixiuleibie);}
    if(suoshumokuai==null||suoshumokuai.equals("")){pmap.put("suoshumokuai", null);}else{pmap.put("suoshumokuai", suoshumokuai);}
    if(baoxiuneirong==null||baoxiuneirong.equals("")){pmap.put("baoxiuneirong", null);}else{pmap.put("baoxiuneirong", baoxiuneirong);}
    if(guzhangtupian==null||guzhangtupian.equals("")){pmap.put("guzhangtupian", null);}else{pmap.put("guzhangtupian", guzhangtupian);}
    if(zhuangtai==null||zhuangtai.equals("")){pmap.put("zhuangtai", null);}else{pmap.put("zhuangtai", zhuangtai);}
    int total=baoxiudanService.getCount(pmap);
    pageBean.setTotal(total);
    List<Baoxiudan> list=baoxiudanService.getByPage(pmap);
    map.put("page", pageBean);
    map.put("list", list);
    session.setAttribute("p", 1);
    return "baoxiudan_list";
  }
  @RequestMapping("baoxiudan_yanben1.do")
  public String baoxiudan_yanben1(@RequestParam(value="page",required=false)String page,
      ModelMap map,HttpSession session,Baoxiudan baoxiudan, String xuehao, String xueshengxingming, String lianxidianhua, String xiaoqu, String louhao, String sushehao, String weixiuleibie, String suoshumokuai, String baoxiuneirong, String guzhangtupian, String zhuangtai, String issh){
    if(page==null||page.equals("")){
      page="1";
    }
    PageBean pageBean=new PageBean(Integer.parseInt(page), 8);
    Map<String, Object> pmap=new HashMap<String,Object>();
    pmap.put("pageno", pageBean.getStart());
    pmap.put("pageSize", 8);
    if(xuehao==null||xuehao.equals("")){pmap.put("xuehao", null);}else{pmap.put("xuehao", xuehao);}
    if(xueshengxingming==null||xueshengxingming.equals("")){pmap.put("xueshengxingming", null);}else{pmap.put("xueshengxingming", xueshengxingming);}
    if(lianxidianhua==null||lianxidianhua.equals("")){pmap.put("lianxidianhua", null);}else{pmap.put("lianxidianhua", lianxidianhua);}
    if(xiaoqu==null||xiaoqu.equals("")){pmap.put("xiaoqu", null);}else{pmap.put("xiaoqu", xiaoqu);}
    if(louhao==null||louhao.equals("")){pmap.put("louhao", null);}else{pmap.put("louhao", louhao);}
    if(sushehao==null||sushehao.equals("")){pmap.put("sushehao", null);}else{pmap.put("sushehao", sushehao);}
    if(weixiuleibie==null||weixiuleibie.equals("")){pmap.put("weixiuleibie", null);}else{pmap.put("weixiuleibie", weixiuleibie);}
    if(suoshumokuai==null||suoshumokuai.equals("")){pmap.put("suoshumokuai", null);}else{pmap.put("suoshumokuai", suoshumokuai);}
    if(baoxiuneirong==null||baoxiuneirong.equals("")){pmap.put("baoxiuneirong", null);}else{pmap.put("baoxiuneirong", baoxiuneirong);}
    if(guzhangtupian==null||guzhangtupian.equals("")){pmap.put("guzhangtupian", null);}else{pmap.put("guzhangtupian", guzhangtupian);}
    if(zhuangtai==null||zhuangtai.equals("")){pmap.put("zhuangtai", null);}else{pmap.put("zhuangtai", zhuangtai);}
    int total=baoxiudanService.getCount(pmap);
    pageBean.setTotal(total);
    List<Baoxiudan> list=baoxiudanService.getByPage(pmap);
    map.put("page", pageBean);
    map.put("list", list);
    session.setAttribute("p", 1);
    return "baoxiudan_yanben1";
  }
  @RequestMapping("baoxiudan_yanben2.do")
  public String baoxiudan_yanben2(@RequestParam(value="page",required=false)String page,
      ModelMap map,HttpSession session,Baoxiudan baoxiudan, String xuehao, String xueshengxingming, String lianxidianhua, String xiaoqu, String louhao, String sushehao, String weixiuleibie, String suoshumokuai, String baoxiuneirong, String guzhangtupian, String zhuangtai, String issh){
    if(page==null||page.equals("")){
      page="1";
    }
    PageBean pageBean=new PageBean(Integer.parseInt(page), 8);
    Map<String, Object> pmap=new HashMap<String,Object>();
    pmap.put("pageno", pageBean.getStart());
    pmap.put("pageSize", 8);
    if(xuehao==null||xuehao.equals("")){pmap.put("xuehao", null);}else{pmap.put("xuehao", xuehao);}
    if(xueshengxingming==null||xueshengxingming.equals("")){pmap.put("xueshengxingming", null);}else{pmap.put("xueshengxingming", xueshengxingming);}
    if(lianxidianhua==null||lianxidianhua.equals("")){pmap.put("lianxidianhua", null);}else{pmap.put("lianxidianhua", lianxidianhua);}
    if(xiaoqu==null||xiaoqu.equals("")){pmap.put("xiaoqu", null);}else{pmap.put("xiaoqu", xiaoqu);}
    if(louhao==null||louhao.equals("")){pmap.put("louhao", null);}else{pmap.put("louhao", louhao);}
    if(sushehao==null||sushehao.equals("")){pmap.put("sushehao", null);}else{pmap.put("sushehao", sushehao);}
    if(weixiuleibie==null||weixiuleibie.equals("")){pmap.put("weixiuleibie", null);}else{pmap.put("weixiuleibie", weixiuleibie);}
    if(suoshumokuai==null||suoshumokuai.equals("")){pmap.put("suoshumokuai", null);}else{pmap.put("suoshumokuai", suoshumokuai);}
    if(baoxiuneirong==null||baoxiuneirong.equals("")){pmap.put("baoxiuneirong", null);}else{pmap.put("baoxiuneirong", baoxiuneirong);}
    if(guzhangtupian==null||guzhangtupian.equals("")){pmap.put("guzhangtupian", null);}else{pmap.put("guzhangtupian", guzhangtupian);}
    if(zhuangtai==null||zhuangtai.equals("")){pmap.put("zhuangtai", null);}else{pmap.put("zhuangtai", zhuangtai);}
    int total=baoxiudanService.getCount(pmap);
    pageBean.setTotal(total);
    List<Baoxiudan> list=baoxiudanService.getByPage(pmap);
    map.put("page", pageBean);
    map.put("list", list);
    session.setAttribute("p", 1);
    return "baoxiudan_yanben2";
  }
  @RequestMapping("baoxiudan_yanben3.do")
  public String baoxiudan_yanben3(@RequestParam(value="page",required=false)String page,
      ModelMap map,HttpSession session,Baoxiudan baoxiudan, String xuehao, String xueshengxingming, String lianxidianhua, String xiaoqu, String louhao, String sushehao, String weixiuleibie, String suoshumokuai, String baoxiuneirong, String guzhangtupian, String zhuangtai, String issh){
    if(page==null||page.equals("")){
      page="1";
    }
    PageBean pageBean=new PageBean(Integer.parseInt(page), 8);
    Map<String, Object> pmap=new HashMap<String,Object>();
    pmap.put("pageno", pageBean.getStart());
    pmap.put("pageSize", 8);
    if(xuehao==null||xuehao.equals("")){pmap.put("xuehao", null);}else{pmap.put("xuehao", xuehao);}
    if(xueshengxingming==null||xueshengxingming.equals("")){pmap.put("xueshengxingming", null);}else{pmap.put("xueshengxingming", xueshengxingming);}
    if(lianxidianhua==null||lianxidianhua.equals("")){pmap.put("lianxidianhua", null);}else{pmap.put("lianxidianhua", lianxidianhua);}
    if(xiaoqu==null||xiaoqu.equals("")){pmap.put("xiaoqu", null);}else{pmap.put("xiaoqu", xiaoqu);}
    if(louhao==null||louhao.equals("")){pmap.put("louhao", null);}else{pmap.put("louhao", louhao);}
    if(sushehao==null||sushehao.equals("")){pmap.put("sushehao", null);}else{pmap.put("sushehao", sushehao);}
    if(weixiuleibie==null||weixiuleibie.equals("")){pmap.put("weixiuleibie", null);}else{pmap.put("weixiuleibie", weixiuleibie);}
    if(suoshumokuai==null||suoshumokuai.equals("")){pmap.put("suoshumokuai", null);}else{pmap.put("suoshumokuai", suoshumokuai);}
    if(baoxiuneirong==null||baoxiuneirong.equals("")){pmap.put("baoxiuneirong", null);}else{pmap.put("baoxiuneirong", baoxiuneirong);}
    if(guzhangtupian==null||guzhangtupian.equals("")){pmap.put("guzhangtupian", null);}else{pmap.put("guzhangtupian", guzhangtupian);}
    if(zhuangtai==null||zhuangtai.equals("")){pmap.put("zhuangtai", null);}else{pmap.put("zhuangtai", zhuangtai);}
    int total=baoxiudanService.getCount(pmap);
    pageBean.setTotal(total);
    List<Baoxiudan> list=baoxiudanService.getByPage(pmap);
    map.put("page", pageBean);
    map.put("list", list);
    session.setAttribute("p", 1);
    return "baoxiudan_yanben3";
  }
  @RequestMapping("baoxiudan_yanben4.do")
  public String baoxiudan_yanben4(@RequestParam(value="page",required=false)String page,
      ModelMap map,HttpSession session,Baoxiudan baoxiudan, String xuehao, String xueshengxingming, String lianxidianhua, String xiaoqu, String louhao, String sushehao, String weixiuleibie, String suoshumokuai, String baoxiuneirong, String guzhangtupian, String zhuangtai, String issh){
    if(page==null||page.equals("")){
      page="1";
    }
    PageBean pageBean=new PageBean(Integer.parseInt(page), 8);
    Map<String, Object> pmap=new HashMap<String,Object>();
    pmap.put("pageno", pageBean.getStart());
    pmap.put("pageSize", 8);
    if(xuehao==null||xuehao.equals("")){pmap.put("xuehao", null);}else{pmap.put("xuehao", xuehao);}
    if(xueshengxingming==null||xueshengxingming.equals("")){pmap.put("xueshengxingming", null);}else{pmap.put("xueshengxingming", xueshengxingming);}
    if(lianxidianhua==null||lianxidianhua.equals("")){pmap.put("lianxidianhua", null);}else{pmap.put("lianxidianhua", lianxidianhua);}
    if(xiaoqu==null||xiaoqu.equals("")){pmap.put("xiaoqu", null);}else{pmap.put("xiaoqu", xiaoqu);}
    if(louhao==null||louhao.equals("")){pmap.put("louhao", null);}else{pmap.put("louhao", louhao);}
    if(sushehao==null||sushehao.equals("")){pmap.put("sushehao", null);}else{pmap.put("sushehao", sushehao);}
    if(weixiuleibie==null||weixiuleibie.equals("")){pmap.put("weixiuleibie", null);}else{pmap.put("weixiuleibie", weixiuleibie);}
    if(suoshumokuai==null||suoshumokuai.equals("")){pmap.put("suoshumokuai", null);}else{pmap.put("suoshumokuai", suoshumokuai);}
    if(baoxiuneirong==null||baoxiuneirong.equals("")){pmap.put("baoxiuneirong", null);}else{pmap.put("baoxiuneirong", baoxiuneirong);}
    if(guzhangtupian==null||guzhangtupian.equals("")){pmap.put("guzhangtupian", null);}else{pmap.put("guzhangtupian", guzhangtupian);}
    if(zhuangtai==null||zhuangtai.equals("")){pmap.put("zhuangtai", null);}else{pmap.put("zhuangtai", zhuangtai);}
    int total=baoxiudanService.getCount(pmap);
    pageBean.setTotal(total);
    List<Baoxiudan> list=baoxiudanService.getByPage(pmap);
    map.put("page", pageBean);
    map.put("list", list);
    session.setAttribute("p", 1);
    return "baoxiudan_yanben4";
  }
  @RequestMapping("baoxiudan_yanben5.do")
  public String baoxiudan_yanben5(@RequestParam(value="page",required=false)String page,
      ModelMap map,HttpSession session,Baoxiudan baoxiudan, String xuehao, String xueshengxingming, String lianxidianhua, String xiaoqu, String louhao, String sushehao, String weixiuleibie, String suoshumokuai, String baoxiuneirong, String guzhangtupian, String zhuangtai, String issh){
    if(page==null||page.equals("")){
      page="1";
    }
    PageBean pageBean=new PageBean(Integer.parseInt(page), 8);
    Map<String, Object> pmap=new HashMap<String,Object>();
    pmap.put("pageno", pageBean.getStart());
    pmap.put("pageSize", 8);
    if(xuehao==null||xuehao.equals("")){pmap.put("xuehao", null);}else{pmap.put("xuehao", xuehao);}
    if(xueshengxingming==null||xueshengxingming.equals("")){pmap.put("xueshengxingming", null);}else{pmap.put("xueshengxingming", xueshengxingming);}
    if(lianxidianhua==null||lianxidianhua.equals("")){pmap.put("lianxidianhua", null);}else{pmap.put("lianxidianhua", lianxidianhua);}
    if(xiaoqu==null||xiaoqu.equals("")){pmap.put("xiaoqu", null);}else{pmap.put("xiaoqu", xiaoqu);}
    if(louhao==null||louhao.equals("")){pmap.put("louhao", null);}else{pmap.put("louhao", louhao);}
    if(sushehao==null||sushehao.equals("")){pmap.put("sushehao", null);}else{pmap.put("sushehao", sushehao);}
    if(weixiuleibie==null||weixiuleibie.equals("")){pmap.put("weixiuleibie", null);}else{pmap.put("weixiuleibie", weixiuleibie);}
    if(suoshumokuai==null||suoshumokuai.equals("")){pmap.put("suoshumokuai", null);}else{pmap.put("suoshumokuai", suoshumokuai);}
    if(baoxiuneirong==null||baoxiuneirong.equals("")){pmap.put("baoxiuneirong", null);}else{pmap.put("baoxiuneirong", baoxiuneirong);}
    if(guzhangtupian==null||guzhangtupian.equals("")){pmap.put("guzhangtupian", null);}else{pmap.put("guzhangtupian", guzhangtupian);}
    if(zhuangtai==null||zhuangtai.equals("")){pmap.put("zhuangtai", null);}else{pmap.put("zhuangtai", zhuangtai);}
    int total=baoxiudanService.getCount(pmap);
    pageBean.setTotal(total);
    List<Baoxiudan> list=baoxiudanService.getByPage(pmap);
    map.put("page", pageBean);
    map.put("list", list);
    session.setAttribute("p", 1);
    return "baoxiudan_yanben5";
  }
  @RequestMapping("baoxiudanList2.do")
  public String baoxiudanList2(@RequestParam(value="page",required=false)String page,
      ModelMap map,HttpSession session,Baoxiudan baoxiudan, String xuehao, String xueshengxingming, String lianxidianhua, String xiaoqu, String louhao, String sushehao, String weixiuleibie, String suoshumokuai, String baoxiuneirong, String guzhangtupian, String zhuangtai, String issh,HttpServletRequest request){
    /*if(session.getAttribute("user")==null){
      return "login";
    }*/
    if(page==null||page.equals("")){
      page="1";
    }
    PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
    Map<String, Object> pmap=new HashMap<String,Object>();
    pmap.put("pageno", pageBean.getStart());
    pmap.put("pageSize", 15);
    pmap.put("xuehao", (String)request.getSession().getAttribute("username"));
    if(xueshengxingming==null||xueshengxingming.equals("")){pmap.put("xueshengxingming", null);}else{pmap.put("xueshengxingming", xueshengxingming);}
    if(lianxidianhua==null||lianxidianhua.equals("")){pmap.put("lianxidianhua", null);}else{pmap.put("lianxidianhua", lianxidianhua);}
    if(xiaoqu==null||xiaoqu.equals("")){pmap.put("xiaoqu", null);}else{pmap.put("xiaoqu", xiaoqu);}
    if(louhao==null||louhao.equals("")){pmap.put("louhao", null);}else{pmap.put("louhao", louhao);}
    if(sushehao==null||sushehao.equals("")){pmap.put("sushehao", null);}else{pmap.put("sushehao", sushehao);}
    if(weixiuleibie==null||weixiuleibie.equals("")){pmap.put("weixiuleibie", null);}else{pmap.put("weixiuleibie", weixiuleibie);}
    if(suoshumokuai==null||suoshumokuai.equals("")){pmap.put("suoshumokuai", null);}else{pmap.put("suoshumokuai", suoshumokuai);}
    if(baoxiuneirong==null||baoxiuneirong.equals("")){pmap.put("baoxiuneirong", null);}else{pmap.put("baoxiuneirong", baoxiuneirong);}
    if(guzhangtupian==null||guzhangtupian.equals("")){pmap.put("guzhangtupian", null);}else{pmap.put("guzhangtupian", guzhangtupian);}
    if(zhuangtai==null||zhuangtai.equals("")){pmap.put("zhuangtai", null);}else{pmap.put("zhuangtai", zhuangtai);}
    int total=baoxiudanService.getCount(pmap);
    pageBean.setTotal(total);
    List<Baoxiudan> list=baoxiudanService.getByPage(pmap);
    map.put("page", pageBean);
    map.put("list", list);
    session.setAttribute("p", 1);
    return "baoxiudan_list2";
  }
  @RequestMapping("bxdList.do")
  public String bxdList(@RequestParam(value="page",required=false)String page,
      ModelMap map,HttpSession session,Baoxiudan baoxiudan, String xuehao, String xueshengxingming, String lianxidianhua, String xiaoqu, String louhao, String sushehao, String weixiuleibie, String suoshumokuai, String baoxiuneirong, String guzhangtupian, String zhuangtai, String issh){
    if(page==null||page.equals("")){
      page="1";
    }
    PageBean pageBean=new PageBean(Integer.parseInt(page), 8);
    Map<String, Object> pmap=new HashMap<String,Object>();
    pmap.put("pageno", pageBean.getStart());
    pmap.put("pageSize", 8);
    if(xuehao==null||xuehao.equals("")){pmap.put("xuehao", null);}else{pmap.put("xuehao", xuehao);}
    if(xueshengxingming==null||xueshengxingming.equals("")){pmap.put("xueshengxingming", null);}else{pmap.put("xueshengxingming", xueshengxingming);}
    if(lianxidianhua==null||lianxidianhua.equals("")){pmap.put("lianxidianhua", null);}else{pmap.put("lianxidianhua", lianxidianhua);}
    if(xiaoqu==null||xiaoqu.equals("")){pmap.put("xiaoqu", null);}else{pmap.put("xiaoqu", xiaoqu);}
    if(louhao==null||louhao.equals("")){pmap.put("louhao", null);}else{pmap.put("louhao", louhao);}
    if(sushehao==null||sushehao.equals("")){pmap.put("sushehao", null);}else{pmap.put("sushehao", sushehao);}
    if(weixiuleibie==null||weixiuleibie.equals("")){pmap.put("weixiuleibie", null);}else{pmap.put("weixiuleibie", weixiuleibie);}
    if(suoshumokuai==null||suoshumokuai.equals("")){pmap.put("suoshumokuai", null);}else{pmap.put("suoshumokuai", suoshumokuai);}
    if(baoxiuneirong==null||baoxiuneirong.equals("")){pmap.put("baoxiuneirong", null);}else{pmap.put("baoxiuneirong", baoxiuneirong);}
    if(guzhangtupian==null||guzhangtupian.equals("")){pmap.put("guzhangtupian", null);}else{pmap.put("guzhangtupian", guzhangtupian);}
    if(zhuangtai==null||zhuangtai.equals("")){pmap.put("zhuangtai", null);}else{pmap.put("zhuangtai", zhuangtai);}
    int total=baoxiudanService.getCount(pmap);
    pageBean.setTotal(total);
    List<Baoxiudan> list=baoxiudanService.getByPage(pmap);
    map.put("page", pageBean);
    map.put("list", list);
    session.setAttribute("p", 1);
    return "baoxiudanlist";
  }
  @RequestMapping("bxdListtp.do")
  public String bxdListtp(@RequestParam(value="page",required=false)String page,
      ModelMap map,HttpSession session,Baoxiudan baoxiudan, String xuehao, String xueshengxingming, String lianxidianhua, String xiaoqu, String louhao, String sushehao, String weixiuleibie, String suoshumokuai, String baoxiuneirong, String guzhangtupian, String zhuangtai, String issh){
    if(page==null||page.equals("")){
      page="1";
    }
    PageBean pageBean=new PageBean(Integer.parseInt(page), 8);
    Map<String, Object> pmap=new HashMap<String,Object>();
    pmap.put("pageno", pageBean.getStart());
    pmap.put("pageSize", 8);
    if(xuehao==null||xuehao.equals("")){pmap.put("xuehao", null);}else{pmap.put("xuehao", xuehao);}
    if(xueshengxingming==null||xueshengxingming.equals("")){pmap.put("xueshengxingming", null);}else{pmap.put("xueshengxingming", xueshengxingming);}
    if(lianxidianhua==null||lianxidianhua.equals("")){pmap.put("lianxidianhua", null);}else{pmap.put("lianxidianhua", lianxidianhua);}
    if(xiaoqu==null||xiaoqu.equals("")){pmap.put("xiaoqu", null);}else{pmap.put("xiaoqu", xiaoqu);}
    if(louhao==null||louhao.equals("")){pmap.put("louhao", null);}else{pmap.put("louhao", louhao);}
    if(sushehao==null||sushehao.equals("")){pmap.put("sushehao", null);}else{pmap.put("sushehao", sushehao);}
    if(weixiuleibie==null||weixiuleibie.equals("")){pmap.put("weixiuleibie", null);}else{pmap.put("weixiuleibie", weixiuleibie);}
    if(suoshumokuai==null||suoshumokuai.equals("")){pmap.put("suoshumokuai", null);}else{pmap.put("suoshumokuai", suoshumokuai);}
    if(baoxiuneirong==null||baoxiuneirong.equals("")){pmap.put("baoxiuneirong", null);}else{pmap.put("baoxiuneirong", baoxiuneirong);}
    if(guzhangtupian==null||guzhangtupian.equals("")){pmap.put("guzhangtupian", null);}else{pmap.put("guzhangtupian", guzhangtupian);}
    if(zhuangtai==null||zhuangtai.equals("")){pmap.put("zhuangtai", null);}else{pmap.put("zhuangtai", zhuangtai);}
    int total=baoxiudanService.getCount(pmap);
    pageBean.setTotal(total);
    List<Baoxiudan> list=baoxiudanService.getByPage(pmap);
    map.put("page", pageBean);
    map.put("list", list);
    session.setAttribute("p", 1);
    return "baoxiudanlisttp";
  }
  @RequestMapping("deleteBaoxiudan.do")
  public String deleteBaoxiudan(int id,HttpServletRequest request){
    baoxiudanService.delete(id);
    String url = request.getHeader("Referer");
    return "redirect:"+url;
    //return "redirect:baoxiudanList.do";
  }
}

五,项目总结

在信息化发展的近20年来,中国国内高校的信息化建设速度可以说是迅速发展,无论在教学还是科研和行政管理等方面都起着非常重要的支撑作用。信息化成为高校生存环境中不可或缺的一部分,并成为推动高校变革和发展的强大杠杆和重要战略资源。美国等发达地区高校通过 IT治理理念的导入,将信息化建设战略目标与大学发展战略目标紧密结合,通过校级信息化建设统一规划,完善基础设施建设,打造高效数据交换平台、建立多种保障机制等一系列手段,全方位进行数字化管理与服务,将信息技术真正转化为学校优秀资源。

随着高校的发展建设,基础设施越来越丰富,对各项设施的维修报修就显得十分繁琐,如何利用信息化建设手段,来提升这些设施的维管效率,就是本系统所要解决的问题。

本系统所研发的主要目的就是为了解决厦门理工学院在本校的相关教学设施、住宿设施、生活设施等方面的报修难,维修难的问题。在以往的管理流程上,主要通过打报修电话来预约安排工人上门进行事故的处理和更换。这种方式有几个弊端:一是报修维修单据全是人工管理,处理效率低下;二是数据没有沉淀,不利于后期报修数据的统计和查询;三是无法有效查阅维修结果,对维修工人进行跟踪评价。

而这些问题通过信息化系统的建设可以有效的避免和解决。报修通过报修系统进行上报,管理员将报修单分配给相关工人进行处理,工人维修后拍照并更新维修状态,报修人查看维修情况并给以确认或要求返工,然后可以在线对维修成果进行评价,这整个流程中的数据都在系统中进行沉淀,非常方便利于后期的数据维护。

相关实践学习
如何在云端创建MySQL数据库
开始实验后,系统会自动创建一台自建MySQL的 源数据库 ECS 实例和一台 目标数据库 RDS。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
4月前
|
Java 数据库连接 Maven
手把手教你如何搭建SSM框架、图书商城系统案例
这篇文章是关于如何搭建SSM框架以及实现一个图书商城系统的详细教程,包括了项目的配置文件整合、依赖管理、项目结构和运行效果展示,并提供了GitHub源码链接。
手把手教你如何搭建SSM框架、图书商城系统案例
|
3月前
|
Java 应用服务中间件 数据库连接
ssm项目整合,简单的用户管理系统
文章介绍了一个使用SSM框架(Spring、SpringMVC、MyBatis)构建的简单用户管理系统的整合过程,包括项目搭建、数据库配置、各层代码实现以及视图展示。
ssm项目整合,简单的用户管理系统
|
3月前
|
XML Java 数据库连接
如何搭建SSM框架、图书商城系统
这是一份详尽的《Spring + SpringMVC + Mybatis 整合指南》,作者耗时良久整理出约五万字的内容,现已经全部笔记公开。此文档详细地介绍了如何搭建与整合SSM框架,具体步骤包括创建Maven项目、添加web骨架、配置pom文件以及整合Spring、SpringMVC和Mybatis等。无论是对初学者还是有一定基础的开发者来说,都是很好的学习资源。此外,作者还提供了项目源码的GitHub链接,方便读者实践。虽然当前主流推荐学习SpringBoot,但了解SSM框架仍然是不可或缺的基础。
46 0
|
4月前
|
SQL Java 应用服务中间件
使用SSM搭建图书商城管理系统(完整过程介绍、售后服务哈哈哈)
这篇文章是关于如何使用SSM框架搭建图书商城管理系统的教程,包括完整过程介绍、常见问题解答和售后服务,提供了项目地址、运行环境配置、效果图展示以及运行代码的步骤。
使用SSM搭建图书商城管理系统(完整过程介绍、售后服务哈哈哈)
|
6月前
|
搜索推荐 JavaScript Java
计算机Java项目|基于SSM的个性化商铺系统
计算机Java项目|基于SSM的个性化商铺系统
|
6月前
|
前端开发 JavaScript Java
计算机Java项目|SSM智能仓储系统
计算机Java项目|SSM智能仓储系统
|
6月前
|
Java 物联网 Maven
基于SSM+layui【爱车汽车租赁管理系统】附源码+论文
基于SSM+layui【爱车汽车租赁管理系统】附源码+论文
92 1
基于SSM+layui【爱车汽车租赁管理系统】附源码+论文
|
5月前
|
存储 关系型数据库 测试技术
基于ssm+vue的校园驿站管理系统+(源码+部署说明+演示视频+源码介绍)(2)
基于ssm+vue的校园驿站管理系统+(源码+部署说明+演示视频+源码介绍)
78 1
|
6月前
|
前端开发
杨校老师之基于SSM开发的校园点餐配送系统
杨校老师之基于SSM开发的校园点餐配送系统
65 0
杨校老师之基于SSM开发的校园点餐配送系统
|
6月前
|
小程序 前端开发 测试技术
微信小程序|ssm基于微信小程序的高校课堂教学管理系统
微信小程序|ssm基于微信小程序的高校课堂教学管理系统