> 文档中心 > 基于SSM的高校学生宿舍报修管理系统

基于SSM的高校学生宿舍报修管理系统


项目背景

计算机作为高等学校主要的教学设备,为各个高校处理问题提高了效率.而目前高校的学生越来越多,学生宿舍就会出现各样格式的问题,且各个高校也意识到学生宿舍的优异性对学校及学生的重要性.然而截止到现在依旧有很多高校使用的是传统方法,也就是在宿管处报备,有宿管员进行纸质登记宿舍需要维修的地方,这样对记录数据十分不便,而且能保存的时间也不长.因此在教师的指导下开发了针对学生宿舍报修的系统.本论文主要介绍了利用B/S架构开发的学生宿舍报修系统,系统主要包含登录功能,学生管理功能,宿舍管理功能,报修功能,学生反馈等功能.本系统使用的数据库为MySQL数据库,而且使用了JSP,CSS,JavaScript等技术,以及以SSM为系统运行框架,通过运用Java编程语言编写,有效的运用网络报修管理系统,为学生提供了便利的报修方式,也为管理员处理更加快捷保留更加长久.
关键词: 宿舍管理 报修 SSM

功能截图

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

相关代码

数据库配置

jdbc.driverClassName=com.mysql.jdbc.Driverjdbc.url=jdbc:mysql://localhost:3306/repair?useSSL=false&useUnicode=true&characterEncoding=UTF-8jdbc.username=rootjdbc.password=123456

控制层(controller)

package gduf.swimming.repair.controller;import gduf.swimming.repair.service.FormService;import java.util.Map;import java.util.Map.Entry;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.servlet.ModelAndView;@Controller@RequestMapping("main")public class IndexController {@Autowiredprivate FormService formService;@RequestMapping("/admin")public ModelAndView adminView(ModelAndView mav) {Map<String, Object> map = formService.countForm();mav.addAllObjects(map);mav.setViewName("main");return mav;}@RequestMapping("/custom")public String customView() {return "custom";}}

业务层(Service)

package gduf.swimming.repair.service;import gduf.swimming.repair.model.User;public interface UserService {public User loginCheck(User user);public boolean register(User user);public User getUser(int uid);public int updateUser(User user);public int changePwd(User user);}

数据访问层(Dao)

package gduf.swimming.repair.dao;import gduf.swimming.repair.model.User;public interface UserDao {/** * 根据学号查找 *  * @param username * @return */public User findUserByName(int studentNum);/** * 注册操作 *  * @param user */public void register(User user);public User findUserById(int uid);public int update(User user);public int chagePwd(User user);}