经典毕业设计:基于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治理理念的导入,将信息化建设战略目标与大学发展战略目标紧密结合,通过校级信息化建设统一规划,完善基础设施建设,打造高效数据交换平台、建立多种保障机制等一系列手段,全方位进行数字化管理与服务,将信息技术真正转化为学校优秀资源。

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

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

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

编程千纸鹤

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值