├── .gitignore ├── .idea ├── .gitignore ├── encodings.xml ├── compiler.xml ├── misc.xml └── inspectionProfiles │ └── Project_Default.xml ├── WEB-INF ├── classes │ ├── META-INF │ │ └── DormitoryManagementSystem.kotlin_module │ ├── com │ │ └── lzy │ │ │ ├── domain │ │ │ ├── Dorm.class │ │ │ ├── Admin.class │ │ │ ├── DormRoom.class │ │ │ ├── Effects.class │ │ │ ├── PageBean.class │ │ │ ├── Student.class │ │ │ ├── Visitor.class │ │ │ ├── FaceResult.class │ │ │ ├── ResoutInfo.class │ │ │ ├── SuperAdmin.class │ │ │ └── Announcement.class │ │ │ ├── dao │ │ │ ├── IAdminDao.class │ │ │ ├── IStudentDao.class │ │ │ ├── ISuperAdminDao.class │ │ │ └── IAnnouncementDao.class │ │ │ ├── controller │ │ │ ├── Face2.class │ │ │ ├── test.class │ │ │ ├── AdminController.class │ │ │ ├── ExitController.class │ │ │ ├── FaceController.class │ │ │ ├── LoginController.class │ │ │ ├── MainController.class │ │ │ ├── SuperController.class │ │ │ ├── StudentController.class │ │ │ └── AnnouncementController.class │ │ │ ├── service │ │ │ ├── IAdminService.class │ │ │ ├── IStudentService.class │ │ │ ├── ISuperAdminService.class │ │ │ ├── IAnnouncementService.class │ │ │ └── impl │ │ │ │ ├── AdminServiceImpl.class │ │ │ │ ├── StudentServiceImpl.class │ │ │ │ ├── AnnouncementServiceImpl.class │ │ │ │ └── SuperAdminServiceImpl.class │ │ │ └── interceptor │ │ │ └── LoginInterceptor.class │ ├── SqlMaoConfig.xml │ ├── springmvc.xml │ └── applicationContext.xml ├── jsp │ ├── welcome.jsp │ ├── annolook.jsp │ ├── head.jsp │ ├── stu_effect_insert.jsp │ ├── adm_info.jsp │ ├── adm_upload.jsp │ ├── stu_info.jsp │ ├── adm_visitor.jsp │ ├── super_anno_insert.jsp │ ├── super_update.jsp │ ├── super_adm_insert.jsp │ ├── stu_effect.jsp │ ├── adm_update.jsp │ ├── adm_stu_update.jsp │ ├── super_stu_insert.jsp │ ├── super_adm_update.jsp │ └── super_stu_update.jsp └── web.xml ├── DormitoryManagementSystem.iml ├── weisheng └── weisheng.jpg ├── README.md ├── src ├── main │ ├── webapp │ │ ├── images │ │ │ ├── 2.jpg │ │ │ ├── 3.jpg │ │ │ ├── 11.jpg │ │ │ ├── top.jpg │ │ │ ├── weisheng.png │ │ │ └── welcome.jpg │ │ ├── photos │ │ │ ├── 2.jpg │ │ │ ├── 3.jpg │ │ │ ├── 10.jpg │ │ │ ├── top.jpg │ │ │ └── 162146140109.jpg │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ │ ├── js │ │ │ └── npm.js │ │ ├── WEB-INF │ │ │ ├── jsp │ │ │ │ ├── welcome.jsp │ │ │ │ ├── annolook.jsp │ │ │ │ ├── head.jsp │ │ │ │ ├── stu_effect_insert.jsp │ │ │ │ ├── adm_info.jsp │ │ │ │ ├── adm_upload.jsp │ │ │ │ ├── stu_info.jsp │ │ │ │ ├── adm_visitor.jsp │ │ │ │ ├── super_anno_insert.jsp │ │ │ │ ├── super_update.jsp │ │ │ │ ├── super_adm_insert.jsp │ │ │ │ ├── stu_effect.jsp │ │ │ │ ├── adm_update.jsp │ │ │ │ ├── adm_stu_update.jsp │ │ │ │ ├── super_stu_insert.jsp │ │ │ │ ├── super_adm_update.jsp │ │ │ │ └── super_stu_update.jsp │ │ │ └── web.xml │ │ ├── css │ │ │ └── login.css │ │ ├── index.jsp │ │ └── login.jsp │ ├── java │ │ └── com │ │ │ └── lzy │ │ │ ├── service │ │ │ ├── ISuperAdminService.java │ │ │ ├── IAnnouncementService.java │ │ │ ├── IAdminService.java │ │ │ ├── impl │ │ │ │ ├── SuperAdminServiceImpl.java │ │ │ │ ├── AnnouncementServiceImpl.java │ │ │ │ ├── AdminServiceImpl.java │ │ │ │ └── StudentServiceImpl.java │ │ │ └── IStudentService.java │ │ │ ├── dao │ │ │ ├── ISuperAdminDao.java │ │ │ ├── IAnnouncementDao.java │ │ │ ├── IAdminDao.java │ │ │ └── IStudentDao.java │ │ │ ├── controller │ │ │ ├── ExitController.java │ │ │ ├── Face2.java │ │ │ ├── SuperController.java │ │ │ ├── AnnouncementController.java │ │ │ └── MainController.java │ │ │ ├── domain │ │ │ ├── Effects.java │ │ │ ├── Dorm.java │ │ │ ├── ResoutInfo.java │ │ │ ├── Visitor.java │ │ │ ├── FaceResult.java │ │ │ ├── SuperAdmin.java │ │ │ ├── DormRoom.java │ │ │ ├── Announcement.java │ │ │ ├── Admin.java │ │ │ ├── PageBean.java │ │ │ └── Student.java │ │ │ └── interceptor │ │ │ └── LoginInterceptor.java │ └── resources │ │ ├── SqlMaoConfig.xml │ │ ├── springmvc.xml │ │ └── applicationContext.xml └── test │ └── java │ └── com │ └── lzy │ └── Test1.java ├── fonts ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.ttf ├── glyphicons-halflings-regular.woff └── glyphicons-halflings-regular.woff2 ├── js └── npm.js ├── css └── login.css ├── index.jsp └── login.jsp /.gitignore: -------------------------------------------------------------------------------- 1 | # Project exclude paths 2 | /out/ 3 | /target/ -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /workspace.xml -------------------------------------------------------------------------------- /WEB-INF/classes/META-INF/DormitoryManagementSystem.kotlin_module: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /DormitoryManagementSystem.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /weisheng/weisheng.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/weisheng/weisheng.jpg -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DormitoryManagementSystem 2 | 实现人脸识别门禁的宿舍管理系统 3 | 使用Opencv中的特征脸算法实现人脸识别 4 | 前端使用Bootstrap框架 5 | 后端使用SSM 6 | 数据库MySQL 7 | -------------------------------------------------------------------------------- /src/main/webapp/images/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/src/main/webapp/images/2.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/src/main/webapp/images/3.jpg -------------------------------------------------------------------------------- /src/main/webapp/photos/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/src/main/webapp/photos/2.jpg -------------------------------------------------------------------------------- /src/main/webapp/photos/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/src/main/webapp/photos/3.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/src/main/webapp/images/11.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/top.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/src/main/webapp/images/top.jpg -------------------------------------------------------------------------------- /src/main/webapp/photos/10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/src/main/webapp/photos/10.jpg -------------------------------------------------------------------------------- /src/main/webapp/photos/top.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/src/main/webapp/photos/top.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/weisheng.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/src/main/webapp/images/weisheng.png -------------------------------------------------------------------------------- /src/main/webapp/images/welcome.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/src/main/webapp/images/welcome.jpg -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/domain/Dorm.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/domain/Dorm.class -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/main/webapp/photos/162146140109.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/src/main/webapp/photos/162146140109.jpg -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/dao/IAdminDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/dao/IAdminDao.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/domain/Admin.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/domain/Admin.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/controller/Face2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/controller/Face2.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/controller/test.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/controller/test.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/dao/IStudentDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/dao/IStudentDao.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/domain/DormRoom.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/domain/DormRoom.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/domain/Effects.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/domain/Effects.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/domain/PageBean.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/domain/PageBean.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/domain/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/domain/Student.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/domain/Visitor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/domain/Visitor.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/dao/ISuperAdminDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/dao/ISuperAdminDao.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/domain/FaceResult.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/domain/FaceResult.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/domain/ResoutInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/domain/ResoutInfo.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/domain/SuperAdmin.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/domain/SuperAdmin.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/dao/IAnnouncementDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/dao/IAnnouncementDao.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/domain/Announcement.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/domain/Announcement.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/service/IAdminService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/service/IAdminService.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/service/IStudentService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/service/IStudentService.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/controller/AdminController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/controller/AdminController.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/controller/ExitController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/controller/ExitController.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/controller/FaceController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/controller/FaceController.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/controller/LoginController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/controller/LoginController.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/controller/MainController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/controller/MainController.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/controller/SuperController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/controller/SuperController.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/service/ISuperAdminService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/service/ISuperAdminService.class -------------------------------------------------------------------------------- /src/main/webapp/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/src/main/webapp/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/webapp/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/src/main/webapp/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/webapp/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/src/main/webapp/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/webapp/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/src/main/webapp/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/controller/StudentController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/controller/StudentController.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/interceptor/LoginInterceptor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/interceptor/LoginInterceptor.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/service/IAnnouncementService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/service/IAnnouncementService.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/service/impl/AdminServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/service/impl/AdminServiceImpl.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/service/impl/StudentServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/service/impl/StudentServiceImpl.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/controller/AnnouncementController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/controller/AnnouncementController.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/service/impl/AnnouncementServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/service/impl/AnnouncementServiceImpl.class -------------------------------------------------------------------------------- /WEB-INF/classes/com/lzy/service/impl/SuperAdminServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liziyangAnswer/DormitoryManagementSystem/HEAD/WEB-INF/classes/com/lzy/service/impl/SuperAdminServiceImpl.class -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/service/ISuperAdminService.java: -------------------------------------------------------------------------------- 1 | package com.lzy.service; 2 | 3 | 4 | import com.lzy.domain.SuperAdmin; 5 | 6 | /** 7 | * @author Answer 8 | * @description 9 | * @date 2020/05/05 10 | */ 11 | public interface ISuperAdminService { 12 | SuperAdmin findById(SuperAdmin superAdmin); 13 | void update(SuperAdmin superAdmin); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/service/IAnnouncementService.java: -------------------------------------------------------------------------------- 1 | package com.lzy.service; 2 | 3 | import com.lzy.domain.Announcement; 4 | import com.lzy.domain.PageBean; 5 | 6 | /** 7 | * @author Answer 8 | * @description 9 | * @date 2020/05/09 10 | */ 11 | public interface IAnnouncementService { 12 | void insert(Announcement announcement); 13 | 14 | PageBean findUserByPage(String currentPage, String rows, String title, String author); 15 | 16 | Announcement findById(Announcement announcement); 17 | } 18 | -------------------------------------------------------------------------------- /js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /WEB-INF/jsp/welcome.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/4/13 0013 5 | Time: 15:06 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %> 9 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 10 | 11 | 12 | 欢迎 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/main/webapp/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/welcome.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/4/13 0013 5 | Time: 15:06 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %> 9 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 10 | 11 | 12 | 欢迎 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /css/login.css: -------------------------------------------------------------------------------- 1 | .login-form { 2 | position: absolute; 3 | top: 50%; 4 | -webkit-transform: translateY(-50%); 5 | -moz-transform: translateY(-50%); 6 | -ms-transform: translateY(-50%); 7 | -o-transform: translateY(-50%); 8 | transform: translateY(-50%); 9 | min-height: 300px; 10 | height: auto; 11 | 12 | border-radius:10px; 13 | display: flex; 14 | display: -webkit-flex; 15 | justify-content: center; 16 | align-items:center; 17 | } 18 | .login-form-bg{ 19 | background: rgba(7, 0, 255, 0.5); 20 | } 21 | .flex{ 22 | flex: auto; 23 | } 24 | .btn-size{ 25 | width: 239px; 26 | } 27 | 28 | 29 | -------------------------------------------------------------------------------- /src/main/webapp/css/login.css: -------------------------------------------------------------------------------- 1 | .login-form { 2 | position: absolute; 3 | top: 50%; 4 | -webkit-transform: translateY(-50%); 5 | -moz-transform: translateY(-50%); 6 | -ms-transform: translateY(-50%); 7 | -o-transform: translateY(-50%); 8 | transform: translateY(-50%); 9 | min-height: 300px; 10 | height: auto; 11 | 12 | border-radius:10px; 13 | display: flex; 14 | display: -webkit-flex; 15 | justify-content: center; 16 | align-items:center; 17 | } 18 | .login-form-bg{ 19 | background: rgba(7, 0, 255, 0.5); 20 | } 21 | .flex{ 22 | flex: auto; 23 | } 24 | .btn-size{ 25 | width: 239px; 26 | } 27 | 28 | 29 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/dao/ISuperAdminDao.java: -------------------------------------------------------------------------------- 1 | package com.lzy.dao; 2 | 3 | import com.lzy.domain.Admin; 4 | import com.lzy.domain.SuperAdmin; 5 | import org.apache.ibatis.annotations.Select; 6 | import org.apache.ibatis.annotations.Update; 7 | import org.springframework.stereotype.Repository; 8 | 9 | /** 10 | * @author Answer 11 | * @description 12 | * @date 2020/05/05 13 | */ 14 | @Repository 15 | public interface ISuperAdminDao { 16 | @Select("select * from sup_adm where id = #{id} and password = #{password}") 17 | SuperAdmin findById(SuperAdmin superAdmin); 18 | @Update("update sup_adm set name=#{name},tel=#{tel},position=#{position},password=#{password} where id=#{id}") 19 | void update(SuperAdmin superAdmin); 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/controller/ExitController.java: -------------------------------------------------------------------------------- 1 | package com.lzy.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import java.io.IOException; 9 | 10 | /** 11 | * @author Answer 12 | * @description 13 | * @date 2020/04/11 14 | */ 15 | @Controller 16 | public class ExitController { 17 | @RequestMapping("/exit") 18 | public void exit(HttpServletRequest request, HttpServletResponse response) throws IOException { 19 | request.getSession().invalidate(); 20 | response.sendRedirect(request.getContextPath()+"/login.jsp"); 21 | 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/domain/Effects.java: -------------------------------------------------------------------------------- 1 | package com.lzy.domain; 2 | 3 | import java.io.Serializable; 4 | /** 5 | * @author Answer 6 | * @description 个人物品实体类 7 | * @date 2020/04/04 8 | */ 9 | public class Effects implements Serializable { 10 | private int id; 11 | private String name; 12 | private String sno; 13 | 14 | public int getId() { 15 | return id; 16 | } 17 | 18 | public void setId(int id) { 19 | this.id = id; 20 | } 21 | 22 | public String getName() { 23 | return name; 24 | } 25 | 26 | public void setName(String name) { 27 | this.name = name; 28 | } 29 | 30 | public String getSno() { 31 | return sno; 32 | } 33 | 34 | public void setSno(String sno) { 35 | this.sno = sno; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/service/IAdminService.java: -------------------------------------------------------------------------------- 1 | package com.lzy.service; 2 | 3 | import com.lzy.domain.Admin; 4 | import com.lzy.domain.PageBean; 5 | import com.lzy.domain.Student; 6 | import com.lzy.domain.Visitor; 7 | 8 | /** 9 | * @author Answer 10 | * @description 11 | * @date 2020/04/09 12 | */ 13 | public interface IAdminService { 14 | Admin findById(Admin admin); 15 | 16 | void insert(Admin admin); 17 | 18 | PageBean findUserByPage(String currentPage, String rows, String name, String roomid); 19 | 20 | Admin find(Admin admin); 21 | 22 | void update(Admin admin); 23 | 24 | void delete(String sno); 25 | 26 | void visitor(Visitor visitor); 27 | 28 | PageBean findVisitorByPage(String currentPage, String rows, String name, String roomid); 29 | 30 | void visitorDelete(int visitorid); 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/domain/Dorm.java: -------------------------------------------------------------------------------- 1 | package com.lzy.domain; 2 | 3 | import java.io.Serializable; 4 | /** 5 | * @author Answer 6 | * @description 宿舍楼实体类 7 | * @date 2020/04/04 8 | */ 9 | public class Dorm implements Serializable { 10 | private int dormid; 11 | private String dormname; 12 | private int rooms; 13 | 14 | public int getDormid() { 15 | return dormid; 16 | } 17 | 18 | public void setDormid(int dormid) { 19 | this.dormid = dormid; 20 | } 21 | 22 | public String getDormname() { 23 | return dormname; 24 | } 25 | 26 | public void setDormname(String dormname) { 27 | this.dormname = dormname; 28 | } 29 | 30 | public int getRooms() { 31 | return rooms; 32 | } 33 | 34 | public void setRooms(int rooms) { 35 | this.rooms = rooms; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /WEB-INF/classes/SqlMaoConfig.xml: -------------------------------------------------------------------------------- 1 | 20 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/service/impl/SuperAdminServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.lzy.service.impl; 2 | 3 | import com.lzy.dao.ISuperAdminDao; 4 | import com.lzy.domain.SuperAdmin; 5 | import com.lzy.service.ISuperAdminService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * @author Answer 11 | * @description 12 | * @date 2020/05/05 13 | */ 14 | @Service("superAdminService") 15 | public class SuperAdminServiceImpl implements ISuperAdminService { 16 | @Autowired 17 | private ISuperAdminDao superAdminDao; 18 | @Override 19 | public SuperAdmin findById(SuperAdmin superAdmin) { 20 | return superAdminDao.findById(superAdmin); 21 | 22 | } 23 | @Override 24 | public void update(SuperAdmin superAdmin) { 25 | superAdminDao.update(superAdmin); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/resources/SqlMaoConfig.xml: -------------------------------------------------------------------------------- 1 | 20 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/domain/ResoutInfo.java: -------------------------------------------------------------------------------- 1 | package com.lzy.domain; 2 | 3 | import org.springframework.stereotype.Component; 4 | 5 | /** 6 | * @author Answer 7 | * @description 8 | * @date 2020/04/09 9 | */ 10 | @Component 11 | public class ResoutInfo { 12 | private Boolean flag; 13 | private String error_msg; 14 | private Object data; 15 | private Integer status; 16 | 17 | public Boolean getFlag() { 18 | return flag; 19 | } 20 | 21 | public void setFlag(Boolean flag) { 22 | this.flag = flag; 23 | } 24 | 25 | public String getError_msg() { 26 | return error_msg; 27 | } 28 | 29 | public void setError_msg(String error_msg) { 30 | this.error_msg = error_msg; 31 | } 32 | 33 | public Object getData() { 34 | return data; 35 | } 36 | 37 | public void setData(Object data) { 38 | this.data = data; 39 | } 40 | 41 | public Integer getStatus() { 42 | return status; 43 | } 44 | 45 | public void setStatus(Integer status) { 46 | this.status = status; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/domain/Visitor.java: -------------------------------------------------------------------------------- 1 | package com.lzy.domain; 2 | 3 | /** 4 | * @author Answer 5 | * @description 6 | * @date 2020/05/10 7 | */ 8 | public class Visitor { 9 | private String name; 10 | private String tel; 11 | private int id; 12 | private String date; 13 | private String roomid; 14 | 15 | public String getName() { 16 | return name; 17 | } 18 | 19 | public void setName(String name) { 20 | this.name = name; 21 | } 22 | 23 | public String getTel() { 24 | return tel; 25 | } 26 | 27 | public void setTel(String tel) { 28 | this.tel = tel; 29 | } 30 | 31 | public int getId() { 32 | return id; 33 | } 34 | 35 | public void setId(int id) { 36 | this.id = id; 37 | } 38 | 39 | public String getDate() { 40 | return date; 41 | } 42 | 43 | public void setDate(String date) { 44 | this.date = date; 45 | } 46 | 47 | public String getRoomid() { 48 | return roomid; 49 | } 50 | 51 | public void setRoomid(String roomid) { 52 | this.roomid = roomid; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/controller/Face2.java: -------------------------------------------------------------------------------- 1 | package com.lzy.controller; 2 | 3 | import java.io.File; 4 | import java.util.ArrayList; 5 | 6 | /** 7 | * @author Answer 8 | * @description 9 | * @date 2020/05/11 10 | */ 11 | public class Face2 { 12 | ArrayList arrayList = new ArrayList<>(); 13 | 14 | 15 | 16 | /** 17 | * 读取库中所有图片 18 | * @param file 19 | * @return 20 | */ 21 | public ArrayList getFile(File file){ 22 | 23 | if (file.isFile()) { 24 | System.out.println("这是一个文件"); // 判断给定目录是否是一个合法的目录,如果不是,输出提示 25 | } else { 26 | File[] fileLists = file.listFiles(); // 如果是目录,获取该目录下的内容集合 27 | 28 | for (int i = 0; i < fileLists.length; i++) { // 循环遍历这个集合内容 29 | if (fileLists[i].isFile()) 30 | //arrayList.add(fileLists[i]);//将图片存入集合 31 | arrayList.add(fileLists[i]); 32 | if (fileLists[i].isDirectory()) { //判断元素是不是一个目录 33 | getFile(fileLists[i]); //如果是目录,继续调用本方法来输出其子目录 34 | } 35 | } 36 | 37 | 38 | } 39 | return arrayList; 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/domain/FaceResult.java: -------------------------------------------------------------------------------- 1 | package com.lzy.domain; 2 | 3 | /** 4 | * @author Answer 5 | * @description 6 | * @date 2020/05/10 7 | */ 8 | public class FaceResult { 9 | private String msg; 10 | private Boolean flag; 11 | private String name; 12 | private String roomId; 13 | private String inRoom; 14 | 15 | public String getMsg() { 16 | return msg; 17 | } 18 | 19 | public void setMsg(String msg) { 20 | this.msg = msg; 21 | } 22 | 23 | public Boolean getFlag() { 24 | return flag; 25 | } 26 | 27 | public void setFlag(Boolean flag) { 28 | this.flag = flag; 29 | } 30 | 31 | public String getName() { 32 | return name; 33 | } 34 | 35 | public void setName(String name) { 36 | this.name = name; 37 | } 38 | 39 | public String getRoomId() { 40 | return roomId; 41 | } 42 | 43 | public void setRoomId(String roomId) { 44 | this.roomId = roomId; 45 | } 46 | 47 | public String getInRoom() { 48 | return inRoom; 49 | } 50 | 51 | public void setInRoom(String inRoom) { 52 | this.inRoom = inRoom; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/domain/SuperAdmin.java: -------------------------------------------------------------------------------- 1 | package com.lzy.domain; 2 | 3 | /** 4 | * @author Answer 5 | * @description 6 | * @date 2020/05/05 7 | */ 8 | public class SuperAdmin { 9 | private String id; 10 | private String password; 11 | private String name; 12 | private String tel; 13 | private String position; 14 | 15 | public String getId() { 16 | return id; 17 | } 18 | 19 | public void setId(String id) { 20 | this.id = id; 21 | } 22 | 23 | public String getPassword() { 24 | return password; 25 | } 26 | 27 | public void setPassword(String password) { 28 | this.password = password; 29 | } 30 | 31 | public String getName() { 32 | return name; 33 | } 34 | 35 | public void setName(String name) { 36 | this.name = name; 37 | } 38 | 39 | public String getPosition() { 40 | return position; 41 | } 42 | 43 | public void setPosition(String position) { 44 | this.position = position; 45 | } 46 | 47 | public String getTel() { 48 | return tel; 49 | } 50 | 51 | public void setTel(String tel) { 52 | this.tel = tel; 53 | } 54 | 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/domain/DormRoom.java: -------------------------------------------------------------------------------- 1 | package com.lzy.domain; 2 | 3 | import java.io.Serializable; 4 | /** 5 | * @author Answer 6 | * @description 宿舍房间实体类 7 | * @date 2020/04/04 8 | */ 9 | public class DormRoom implements Serializable { 10 | private int roomid; 11 | private String roomname; 12 | private int beds; 13 | private int stunum; 14 | private int dormid; 15 | 16 | public int getRoomid() { 17 | return roomid; 18 | } 19 | 20 | public void setRoomid(int roomid) { 21 | this.roomid = roomid; 22 | } 23 | 24 | public String getRoomname() { 25 | return roomname; 26 | } 27 | 28 | public void setRoomname(String roomname) { 29 | this.roomname = roomname; 30 | } 31 | 32 | public int getBeds() { 33 | return beds; 34 | } 35 | 36 | public void setBeds(int beds) { 37 | this.beds = beds; 38 | } 39 | 40 | public int getStunum() { 41 | return stunum; 42 | } 43 | 44 | public void setStunum(int stunum) { 45 | this.stunum = stunum; 46 | } 47 | 48 | public int getDormid() { 49 | return dormid; 50 | } 51 | 52 | public void setDormid(int dormid) { 53 | this.dormid = dormid; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/service/IStudentService.java: -------------------------------------------------------------------------------- 1 | package com.lzy.service; 2 | 3 | import com.lzy.domain.Effects; 4 | import com.lzy.domain.PageBean; 5 | import com.lzy.domain.Student; 6 | 7 | /** 8 | * @author Answer 9 | * @description 操作学生信息的业务层接口 10 | * @date 2020/04/04 11 | */ 12 | public interface IStudentService { 13 | /** 14 | * 根据id查询学生信息 15 | * @param student 16 | * @return 17 | */ 18 | Student findById(Student student); 19 | 20 | 21 | /** 22 | *保存学生信息 23 | * @param student 24 | */ 25 | void insert(Student student); 26 | 27 | /** 28 | * 分页查询方法 29 | * @param 30 | * @param _currentPage 31 | * @param _rows 32 | * @param 33 | * @return 34 | */ 35 | PageBean findUserByPage(String _currentPage, String _rows, String name,String roomid); 36 | 37 | Student find(Student student); 38 | 39 | void update(Student student); 40 | void delete(String sno); 41 | 42 | void photo(String phtotpath); 43 | 44 | 45 | PageBean findEffectByPage(String currentPage, String rows, String sno); 46 | 47 | void effectDelete(int effectid); 48 | 49 | void effectInsert(Effects effects); 50 | 51 | Student findByPhoto(String photopath); 52 | } 53 | -------------------------------------------------------------------------------- /WEB-INF/jsp/annolook.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/10 0010 5 | Time: 1:04 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 公告 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 |
${annobyid.title}
21 |
22 |
23 |

${annobyid.title}


24 |

${annobyid.author}-----${annobyid.position}


25 | ${annobyid.body} 26 |
27 |
28 |
29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/annolook.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/10 0010 5 | Time: 1:04 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 公告 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 |
${annobyid.title}
21 |
22 |
23 |

${annobyid.title}


24 |

${annobyid.author}-----${annobyid.position}


25 | ${annobyid.body} 26 |
27 |
28 |
29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/interceptor/LoginInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.lzy.interceptor; 2 | 3 | import com.lzy.domain.Student; 4 | import org.springframework.web.servlet.HandlerInterceptor; 5 | 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import javax.servlet.http.HttpSession; 9 | 10 | /** 11 | * @author Answer 12 | * @description 13 | * @date 2020/04/11 14 | */ 15 | public class LoginInterceptor implements HandlerInterceptor { 16 | 17 | 18 | 19 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response) throws Exception { 20 | System.out.println("进入拦截器-----------------------"); 21 | //获取session 22 | HttpSession session = request.getSession(); 23 | Object o = session.getAttribute("user"); 24 | //判断session中是否有用户数据,如果有,则返回true,继续向下执行 25 | if (o != null) { 26 | System.out.println("有用户数据"); 27 | return true; 28 | } 29 | //不符合条件的给出提示信息,并转发到登录页面 30 | request.setAttribute("msg", "您还没有登录,请先登录!"); 31 | System.out.println("重定向登录页"); 32 | response.sendRedirect(request.getContextPath()+"/login.html"); 33 | 34 | return false; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/controller/SuperController.java: -------------------------------------------------------------------------------- 1 | package com.lzy.controller; 2 | 3 | import com.lzy.domain.PageBean; 4 | import com.lzy.domain.Student; 5 | import com.lzy.domain.SuperAdmin; 6 | import com.lzy.service.IStudentService; 7 | import com.lzy.service.ISuperAdminService; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Controller; 10 | import org.springframework.web.bind.annotation.RequestMapping; 11 | 12 | import javax.servlet.ServletException; 13 | import javax.servlet.http.HttpServletRequest; 14 | import javax.servlet.http.HttpServletResponse; 15 | import java.io.IOException; 16 | import java.util.Map; 17 | 18 | /** 19 | * @author Answer 20 | * @description 21 | * @date 2020/05/08 22 | */ 23 | @Controller 24 | @RequestMapping("/super") 25 | public class SuperController { 26 | @Autowired 27 | private ISuperAdminService superAdminService; 28 | @RequestMapping("/update") 29 | public String update(HttpServletRequest request, HttpServletResponse response,SuperAdmin superAdmin) throws ServletException, IOException { 30 | 31 | SuperAdmin user = (SuperAdmin) request.getSession().getAttribute("user"); 32 | String id = user.getId(); 33 | superAdmin.setId(id); 34 | superAdminService.update(superAdmin); 35 | return "super_update"; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/domain/Announcement.java: -------------------------------------------------------------------------------- 1 | package com.lzy.domain; 2 | 3 | /** 4 | * @author Answer 5 | * @description 6 | * @date 2020/05/09 7 | */ 8 | public class Announcement { 9 | private String title; 10 | private String date; 11 | private String author; 12 | private String body; 13 | private String position; 14 | private int id; 15 | 16 | public int getId() { 17 | return id; 18 | } 19 | 20 | public void setId(int id) { 21 | this.id = id; 22 | } 23 | 24 | public String getTitle() { 25 | return title; 26 | } 27 | 28 | public void setTitle(String title) { 29 | this.title = title; 30 | } 31 | 32 | public String getDate() { 33 | return date; 34 | } 35 | 36 | public void setDate(String date) { 37 | this.date = date; 38 | } 39 | 40 | public String getAuthor() { 41 | return author; 42 | } 43 | 44 | public void setAuthor(String author) { 45 | this.author = author; 46 | } 47 | 48 | public String getBody() { 49 | return body; 50 | } 51 | 52 | public void setBody(String body) { 53 | this.body = body; 54 | } 55 | 56 | public String getPosition() { 57 | return position; 58 | } 59 | 60 | public void setPosition(String position) { 61 | this.position = position; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/domain/Admin.java: -------------------------------------------------------------------------------- 1 | package com.lzy.domain; 2 | 3 | /** 4 | * @author Answer 5 | * @description 宿管 6 | * @date 2020/04/09 7 | */ 8 | public class Admin { 9 | private String sno; 10 | private String password; 11 | private String roomid; 12 | private String inroom; 13 | private String photo; 14 | private String tel; 15 | private String name; 16 | 17 | public String getSno() { 18 | return sno; 19 | } 20 | 21 | public void setSno(String sno) { 22 | this.sno = sno; 23 | } 24 | 25 | public String getPassword() { 26 | return password; 27 | } 28 | 29 | public void setPassword(String password) { 30 | this.password = password; 31 | } 32 | 33 | public String getRoomid() { 34 | return roomid; 35 | } 36 | 37 | public void setRoomid(String roomid) { 38 | this.roomid = roomid; 39 | } 40 | 41 | public String getInroom() { 42 | return inroom; 43 | } 44 | 45 | public void setInroom(String inroom) { 46 | this.inroom = inroom; 47 | } 48 | 49 | public String getPhoto() { 50 | return photo; 51 | } 52 | 53 | public void setPhoto(String photo) { 54 | this.photo = photo; 55 | } 56 | 57 | public String getTel() { 58 | return tel; 59 | } 60 | 61 | public void setTel(String tel) { 62 | this.tel = tel; 63 | } 64 | 65 | public String getName() { 66 | return name; 67 | } 68 | 69 | public void setName(String name) { 70 | this.name = name; 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/domain/PageBean.java: -------------------------------------------------------------------------------- 1 | package com.lzy.domain; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * @author Answer 7 | * @description 8 | * @date 2020/05/05 9 | */ 10 | public class PageBean { 11 | private int currentPage;//当前页 12 | private int rows;//每页显示条数 13 | private int totalCounts;//总条数 14 | private int totalPages;//总页数 15 | private List list;//页中数据 16 | 17 | public int getCurrentPage() { 18 | return currentPage; 19 | } 20 | 21 | public void setCurrentPage(int currentPage) { 22 | this.currentPage = currentPage; 23 | } 24 | 25 | public int getRows() { 26 | return rows; 27 | } 28 | 29 | public void setRows(int rows) { 30 | this.rows = rows; 31 | } 32 | 33 | public int getTotalCounts() { 34 | return totalCounts; 35 | } 36 | 37 | public void setTotalCounts(int totalCounts) { 38 | this.totalCounts = totalCounts; 39 | } 40 | 41 | public int getTotalPages() { 42 | return totalPages; 43 | } 44 | 45 | public void setTotalPages(int totalPages) { 46 | this.totalPages = totalPages; 47 | } 48 | 49 | public List getList() { 50 | return list; 51 | } 52 | 53 | public void setList(List list) { 54 | this.list = list; 55 | } 56 | 57 | @Override 58 | public String toString() { 59 | return "PageBean{" + 60 | "currentPage=" + currentPage + 61 | ", rows=" + rows + 62 | ", totalCounts=" + totalCounts + 63 | ", totalPages=" + totalPages + 64 | ", list=" + list + 65 | '}'; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /WEB-INF/jsp/head.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/4/8 0008 5 | Time: 13:35 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %> 9 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 10 | 11 | 12 | head 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 |
23 | 24 |       用户:${user.name}   25 | 26 | 27 |       请登录   28 | 29 | 30 |
31 |
32 | 33 |   退出     34 |
35 |
36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/head.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/4/8 0008 5 | Time: 13:35 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %> 9 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 10 | 11 | 12 | head 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 |
23 | 24 |       用户:${user.name}   25 | 26 | 27 |       请登录   28 | 29 | 30 |
31 |
32 | 33 |   退出     34 |
35 |
36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/dao/IAnnouncementDao.java: -------------------------------------------------------------------------------- 1 | package com.lzy.dao; 2 | 3 | import com.lzy.domain.Announcement; 4 | import com.lzy.domain.Student; 5 | import org.apache.ibatis.annotations.Insert; 6 | import org.apache.ibatis.annotations.Param; 7 | import org.apache.ibatis.annotations.Select; 8 | import org.springframework.stereotype.Repository; 9 | 10 | import java.util.List; 11 | 12 | /** 13 | * @author Answer 14 | * @description 15 | * @date 2020/05/09 16 | */ 17 | @Repository 18 | public interface IAnnouncementDao { 19 | @Insert("insert into announcement (title,date,author,position,body) values (#{title},#{date},#{author},#{position},#{body})") 20 | void insert(Announcement announcement); 21 | @Select("") 30 | int findAll(@Param("title") String title, @Param("author") String author); 31 | @Select("") 41 | List findByPage(@Param("start") int start, @Param("rows") int rows, @Param("title") String title, @Param("author") String author); 42 | @Select("select * from announcement where id = #{id}") 43 | Announcement findById(Announcement announcement); 44 | } 45 | -------------------------------------------------------------------------------- /WEB-INF/jsp/stu_effect_insert.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/6 0006 5 | Time: 1:52 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 添加个人物品 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
添加个人物品
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 34 | 35 | 36 | 37 |
29 |
30 | 31 | 32 |
33 |
38 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/stu_effect_insert.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/6 0006 5 | Time: 1:52 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 添加个人物品 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
添加个人物品
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 34 | 35 | 36 | 37 |
29 |
30 | 31 | 32 |
33 |
38 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/service/impl/AnnouncementServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.lzy.service.impl; 2 | 3 | import com.lzy.dao.IAnnouncementDao; 4 | import com.lzy.domain.Announcement; 5 | import com.lzy.domain.PageBean; 6 | import com.lzy.domain.Student; 7 | import com.lzy.service.IAnnouncementService; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Service; 10 | 11 | import java.util.List; 12 | 13 | /** 14 | * @author Answer 15 | * @description 16 | * @date 2020/05/09 17 | */ 18 | @Service("announcementService") 19 | public class AnnouncementServiceImpl implements IAnnouncementService { 20 | @Autowired 21 | private IAnnouncementDao announcementDao; 22 | @Override 23 | public void insert(Announcement announcement) { 24 | announcementDao.insert(announcement); 25 | } 26 | 27 | @Override 28 | public PageBean findUserByPage(String _currentPage, String _rows, String title, String author) { 29 | int currentPage = Integer.parseInt(_currentPage); 30 | System.out.println("开始查总数"); 31 | int total = announcementDao.findAll(title,author); 32 | System.out.println("查询到的总数"+total); 33 | int rows = Integer.parseInt(_rows); 34 | int totalPages = total % rows == 0 ? total/rows : total/rows + 1; 35 | if(currentPage<=1 || currentPage>totalPages) 36 | currentPage = 1; 37 | PageBean pb = new PageBean<>(); 38 | pb.setCurrentPage(currentPage); 39 | pb.setRows(rows); 40 | 41 | pb.setTotalCounts(total); 42 | 43 | pb.setTotalPages(totalPages); 44 | int start = (currentPage - 1)*rows; 45 | List list = announcementDao.findByPage(start,rows,title,author); 46 | pb.setList(list); 47 | return pb; 48 | } 49 | 50 | @Override 51 | public Announcement findById(Announcement announcement) { 52 | Announcement byId = announcementDao.findById(announcement); 53 | return byId; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /WEB-INF/jsp/adm_info.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/4/9 0009 5 | Time: 22:17 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %> 9 | 10 | 11 | 个人信息 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
个人信息
20 |
21 |
22 | 23 | 24 | 40 | 44 | 45 | 46 |
25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
姓名:${user.name}
电话:${user.tel}
宿舍:${user.roomid}
39 |
41 | 42 | 43 |
47 |
48 |
49 |
50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/adm_info.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/4/9 0009 5 | Time: 22:17 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %> 9 | 10 | 11 | 个人信息 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
个人信息
20 |
21 |
22 | 23 | 24 | 40 | 44 | 45 | 46 |
25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
姓名:${user.name}
电话:${user.tel}
宿舍:${user.roomid}
39 |
41 | 42 | 43 |
47 |
48 |
49 |
50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /WEB-INF/classes/springmvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /src/main/resources/springmvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /WEB-INF/jsp/adm_upload.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/5 0005 5 | Time: 23:11 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 上传卫生情况 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
上传卫生情况
20 |
21 |
22 |
23 | 24 | 25 | 31 | 32 | 33 |
26 | 请上传图片,图片将展示在系统主页面 27 |
28 | 29 | 30 |
34 | 35 |
36 |
37 |
38 |
39 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/adm_upload.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/5 0005 5 | Time: 23:11 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 上传卫生情况 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
上传卫生情况
20 |
21 |
22 |
23 | 24 | 25 | 31 | 32 | 33 |
26 | 请上传图片,图片将展示在系统主页面 27 |
28 | 29 | 30 |
34 | 35 |
36 |
37 |
38 |
39 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /WEB-INF/jsp/stu_info.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/4/8 0008 5 | Time: 17:42 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %> 9 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 10 | 11 | 12 | 个人信息 13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 |
个人信息
21 |
22 |
23 | 24 | 25 | 57 | 61 | 62 | 63 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 |
姓名:${user.name}
学号:${user.sno}
性别:${user.gender}
电话:${user.tel}
宿舍:${user.roomid}
学院:${user.college}
班级:${user.clase}
56 |
58 | 59 | 60 |
64 |
65 |
66 |
67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/stu_info.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/4/8 0008 5 | Time: 17:42 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %> 9 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 10 | 11 | 12 | 个人信息 13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 |
个人信息
21 |
22 |
23 | 24 | 25 | 57 | 61 | 62 | 63 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 |
姓名:${user.name}
学号:${user.sno}
性别:${user.gender}
电话:${user.tel}
宿舍:${user.roomid}
学院:${user.college}
班级:${user.clase}
56 |
58 | 59 | 60 |
64 |
65 |
66 |
67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /WEB-INF/classes/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /src/main/resources/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /WEB-INF/jsp/adm_visitor.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/5 0005 5 | Time: 21:16 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 访客登记 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
来访人员登记
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 47 | 48 | 49 | 50 |
29 |
30 | 31 | 32 |
33 |
34 | 35 | 36 |


37 |
38 | 39 | 40 |
41 |
42 | 43 | 44 |


45 | 46 |
51 | 52 |
53 |
54 |
55 |
56 | 57 | 58 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/adm_visitor.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/5 0005 5 | Time: 21:16 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 访客登记 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
来访人员登记
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 47 | 48 | 49 | 50 |
29 |
30 | 31 | 32 |
33 |
34 | 35 | 36 |


37 |
38 | 39 | 40 |
41 |
42 | 43 | 44 |


45 | 46 |
51 | 52 |
53 |
54 |
55 |
56 | 57 | 58 | -------------------------------------------------------------------------------- /WEB-INF/jsp/super_anno_insert.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/6 0006 5 | Time: 10:20 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 新建公告 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
新建公告
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 50 | 51 | 52 | 53 |
29 |
30 | 31 | 32 |
33 |
34 | 35 | 36 |


37 |
38 | 39 | 40 |
41 |
42 | 43 | 44 |
45 |

46 |
47 | 48 |
49 |
54 | 55 |
56 |
57 |
58 |
59 | 60 | 61 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/super_anno_insert.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/6 0006 5 | Time: 10:20 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 新建公告 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
新建公告
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 50 | 51 | 52 | 53 |
29 |
30 | 31 | 32 |
33 |
34 | 35 | 36 |


37 |
38 | 39 | 40 |
41 |
42 | 43 | 44 |
45 |

46 |
47 | 48 |
49 |
54 | 55 |
56 |
57 |
58 |
59 | 60 | 61 | -------------------------------------------------------------------------------- /src/test/java/com/lzy/Test1.java: -------------------------------------------------------------------------------- 1 | package com.lzy; 2 | 3 | import com.lzy.dao.IStudentDao; 4 | import com.lzy.domain.Student; 5 | import com.lzy.service.IStudentService; 6 | import org.apache.ibatis.io.Resources; 7 | import org.apache.ibatis.session.SqlSession; 8 | import org.apache.ibatis.session.SqlSessionFactory; 9 | import org.apache.ibatis.session.SqlSessionFactoryBuilder; 10 | import org.junit.Test; 11 | import org.springframework.beans.factory.annotation.Autowired; 12 | import org.springframework.context.ApplicationContext; 13 | import org.springframework.context.support.ClassPathXmlApplicationContext; 14 | 15 | import java.io.File; 16 | import java.io.IOException; 17 | import java.io.InputStream; 18 | import java.util.HashMap; 19 | import java.util.List; 20 | import java.util.Map; 21 | 22 | 23 | /** 24 | * @author Answer 25 | * @description 26 | * @date 2020/04/04 27 | */ 28 | 29 | public class Test1 { 30 | /* @Autowired 31 | private IStudentDao studentDao; 32 | @Test 33 | public void test(){ 34 | Map map = new HashMap(); 35 | map.put("name","李子杨"); 36 | map.put("roomid","澄园2号205"); 37 | int all = studentDao.findAll(map); 38 | System.out.println(all); 39 | 40 | }*/ 41 | /* @Test 42 | public void test1(){ 43 | ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml"); 44 | IStudentService studentService = (IStudentService) ac.getBean("studentService"); 45 | Student student = studentService.findById("162146140109"); 46 | System.out.println(student); 47 | 48 | } 49 | 50 | @Test 51 | public void test2() throws IOException { 52 | InputStream resourceAsFile = Resources.getResourceAsStream("SqlMaoConfig.xml"); 53 | SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(resourceAsFile); 54 | SqlSession session = sqlSessionFactory.openSession(); 55 | IStudentDao studentDao = session.getMapper(IStudentDao.class); 56 | List list = studentDao.findAll(); 57 | for (Student student : list) { 58 | System.out.println(student); 59 | } 60 | } 61 | @Test 62 | public void test3() throws IOException { 63 | InputStream resourceAsFile = Resources.getResourceAsStream("SqlMaoConfig.xml"); 64 | SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(resourceAsFile); 65 | SqlSession session = sqlSessionFactory.openSession(); 66 | IStudentDao studentDao = session.getMapper(IStudentDao.class); 67 | Student student = new Student(); 68 | student.setSno("162146140101"); 69 | student.setName("邓雷"); 70 | student.setPassword("123456"); 71 | student.setClase("软件工程161401"); 72 | student.setCollege("信息工程"); 73 | student.setMajor("软件工程"); 74 | student.setRoomid(205); 75 | student.setTel("18361555187"); 76 | studentDao.saveStudent(student); 77 | session.commit(); 78 | session.close(); 79 | resourceAsFile.close(); 80 | }*/ 81 | 82 | 83 | } 84 | -------------------------------------------------------------------------------- /index.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/4/4 0004 5 | Time: 22:15 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 10 | 11 | 12 | 13 | 14 | 15 | 16 | 21 | Title 22 | 23 | 24 | 25 | 26 | 27 |
28 |
29 |
30 |

今日卫生情况

31 |
32 |
33 | 34 |
35 | s 36 |
37 |
38 | 39 | 40 | 41 | 44 | 47 | 50 | 53 | 56 | 59 | 60 | 61 | 62 | 63 | 66 | 67 | 70 | 73 | 76 | 79 | 82 | 83 | 84 | 85 |
42 | 编号 43 | 45 | 公告名称 46 | 48 | 发布时间 49 | 51 | 发布人 52 | 54 | 身份 55 | 57 | 查看 58 |
64 | ${s.count} 65 | 68 | ${announcement.title} 69 | 71 | ${announcement.date} 72 | 74 | ${announcement.author} 75 | 77 | ${announcement.position} 78 | 80 | 81 |
86 |
87 |
88 | 89 | 90 | -------------------------------------------------------------------------------- /src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/4/4 0004 5 | Time: 22:15 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 10 | 11 | 12 | 13 | 14 | 15 | 16 | 21 | Title 22 | 23 | 24 | 25 | 26 | 27 |
28 |
29 |
30 |

今日卫生情况

31 |
32 |
33 | 34 |
35 | s 36 |
37 |
38 | 39 | 40 | 41 | 44 | 47 | 50 | 53 | 56 | 59 | 60 | 61 | 62 | 63 | 66 | 67 | 70 | 73 | 76 | 79 | 82 | 83 | 84 | 85 |
42 | 编号 43 | 45 | 公告名称 46 | 48 | 发布时间 49 | 51 | 发布人 52 | 54 | 身份 55 | 57 | 查看 58 |
64 | ${s.count} 65 | 68 | ${announcement.title} 69 | 71 | ${announcement.date} 72 | 74 | ${announcement.author} 75 | 77 | ${announcement.position} 78 | 80 | 81 |
86 |
87 |
88 | 89 | 90 | -------------------------------------------------------------------------------- /WEB-INF/jsp/super_update.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/6 0006 5 | Time: 0:13 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 12 | 13 | 14 | 15 | 个人信息修改 16 | 17 | 18 | 19 |
20 |
个人信息修改
21 |
22 |
23 |
24 | 25 | 26 | 27 | 28 | 29 | 48 | 53 | 54 | 55 |
30 |
31 | 32 | 33 |
34 |
35 | 36 | 37 |


38 |
39 | 40 | 41 |
42 |
43 | 44 | 45 |


46 | 47 |
49 | <%-- 50 | 51 | --%> 52 |
56 | 57 |
58 |
59 |
60 |
61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /login.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/4/13 0013 5 | Time: 14:56 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %> 9 | 10 | 11 | 宿舍管理系统登录 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 36 | 37 |
38 | 64 | 65 |
66 | 67 | 68 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/super_update.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/6 0006 5 | Time: 0:13 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 12 | 13 | 14 | 15 | 个人信息修改 16 | 17 | 18 | 19 |
20 |
个人信息修改
21 |
22 |
23 |
24 | 25 | 26 | 27 | 28 | 29 | 48 | 53 | 54 | 55 |
30 |
31 | 32 | 33 |
34 |
35 | 36 | 37 |


38 |
39 | 40 | 41 |
42 |
43 | 44 | 45 |


46 | 47 |
49 | <%-- 50 | 51 | --%> 52 |
56 | 57 |
58 |
59 |
60 |
61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/controller/AnnouncementController.java: -------------------------------------------------------------------------------- 1 | package com.lzy.controller; 2 | 3 | import com.lzy.domain.Announcement; 4 | import com.lzy.domain.PageBean; 5 | import com.lzy.domain.Student; 6 | import com.lzy.service.IAnnouncementService; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Controller; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | 11 | import javax.servlet.ServletException; 12 | import javax.servlet.http.HttpServletRequest; 13 | import javax.servlet.http.HttpServletResponse; 14 | import java.io.IOException; 15 | 16 | /** 17 | * @author Answer 18 | * @description 19 | * @date 2020/05/09 20 | */ 21 | @Controller 22 | @RequestMapping("/anno") 23 | public class AnnouncementController { 24 | @Autowired 25 | private IAnnouncementService announcementService; 26 | @RequestMapping("/insert") 27 | public void insert(Announcement announcement,HttpServletResponse response,HttpServletRequest request) throws IOException { 28 | announcementService.insert(announcement); 29 | response.sendRedirect(request.getContextPath()+"/anno/findAnnoByPage"); 30 | 31 | } 32 | @RequestMapping("/findAnnoByPage") 33 | public String findAnnoByPage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 34 | String title = request.getParameter("title"); 35 | String author = request.getParameter("author"); 36 | String currentPage = request.getParameter("currentPage"); 37 | request.setAttribute("title",title); 38 | request.setAttribute("author",author); 39 | if(currentPage==null || "".equals(currentPage)){ 40 | currentPage="1"; 41 | } 42 | 43 | String rows = request.getParameter("rows"); 44 | if(rows==null || "".equals(rows)){ 45 | rows="8"; 46 | } 47 | 48 | 49 | 50 | 51 | PageBean annoByPage = announcementService.findUserByPage(currentPage, rows,title,author); 52 | // System.out.println(userByPage); 53 | request.setAttribute("pb",annoByPage); 54 | return "super_anno"; 55 | 56 | 57 | } 58 | @RequestMapping("/findAnno") 59 | public void findAnno(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 60 | String title = request.getParameter("title"); 61 | String author = request.getParameter("author"); 62 | String currentPage = request.getParameter("currentPage"); 63 | request.setAttribute("title",title); 64 | request.setAttribute("author",author); 65 | if(currentPage==null || "".equals(currentPage)){ 66 | currentPage="1"; 67 | } 68 | 69 | String rows = request.getParameter("rows"); 70 | if(rows==null || "".equals(rows)){ 71 | rows="8"; 72 | } 73 | 74 | 75 | 76 | 77 | PageBean annoByPage = announcementService.findUserByPage(currentPage, rows,title,author); 78 | // System.out.println(userByPage); 79 | request.setAttribute("pb",annoByPage); 80 | request.getRequestDispatcher("/index.jsp").forward(request,response); 81 | 82 | 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /src/main/webapp/login.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/4/13 0013 5 | Time: 14:56 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %> 9 | 10 | 11 | 宿舍管理系统登录 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 36 | 37 |
38 | 64 | 65 |
66 | 67 | 68 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 66 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/dao/IAdminDao.java: -------------------------------------------------------------------------------- 1 | package com.lzy.dao; 2 | 3 | import com.lzy.domain.Admin; 4 | import com.lzy.domain.Student; 5 | import com.lzy.domain.Visitor; 6 | import org.apache.ibatis.annotations.*; 7 | import org.springframework.stereotype.Repository; 8 | 9 | import java.util.List; 10 | 11 | /** 12 | * @author Answer 13 | * @description 14 | * @date 2020/04/09 15 | */ 16 | @Repository 17 | public interface IAdminDao { 18 | @Select("select * from admin_info where sno = #{sno} and password = #{password}") 19 | Admin findById(Admin admin); 20 | @Insert("insert into admin_info (sno,name,password,tel,roomid,inroom,photo) values (#{sno},#{name},#{password},#{tel},#{roomid},#{inroom},#{photo})") 21 | void insert(Admin admin); 22 | 23 | @Select("") 32 | int findAll(@Param("name") String name, @Param("roomid") String roomid); 33 | 34 | @Select("") 44 | List findByPage(@Param("start") int start, @Param("rows") int rows, @Param("name") String name, @Param("roomid") String roomid); 45 | 46 | @Select("select * from admin_info where sno = #{sno}") 47 | Admin find(Admin admin); 48 | @Update("update admin_info set name=#{name},tel=#{tel},roomid=#{roomid},photo=#{photo} where sno=#{sno}") 49 | void update(Admin admin); 50 | @Delete("delete from admin_info where sno = #{sno}") 51 | void delete(String sno); 52 | @Insert("insert into visitor_info (name,tel,roomid,date) values (#{name},#{tel},#{roomid},#{date})") 53 | void visitor(Visitor visitor); 54 | 55 | 56 | 57 | 58 | @Select("") 68 | List findVisitorByPage(@Param("start") int start, @Param("rows") int rows, @Param("name") String name, @Param("roomid") String roomid); 69 | @Select("") 78 | int findVisitorAll(@Param("name") String name, @Param("roomid") String roomid); 79 | @Delete("delete from visitor_info where id = #{visitorid}") 80 | void visitorDelete(int visitorid); 81 | } 82 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/dao/IStudentDao.java: -------------------------------------------------------------------------------- 1 | package com.lzy.dao; 2 | 3 | import com.lzy.domain.Effects; 4 | import com.lzy.domain.Student; 5 | import org.apache.ibatis.annotations.*; 6 | import org.springframework.stereotype.Repository; 7 | 8 | import java.util.List; 9 | import java.util.Map; 10 | 11 | /** 12 | * @author Answer 13 | * @description 操作学生信息的持久层接口 14 | * @date 2020/04/04 15 | */ 16 | @Repository 17 | public interface IStudentDao { 18 | /** 19 | *查询所有学生信息 20 | * @return 21 | * @param 22 | */ 23 | @Select("") 32 | int findAll(@Param("name") String name, @Param("roomid") String roomid); 33 | 34 | /** 35 | * 根据id查询学生信息登录 36 | * @return 37 | */ 38 | @Select("select * from stu_info where sno = #{sno} and password = #{password}") 39 | Student findById(Student student); 40 | @Select("select * from stu_info where sno = #{sno}") 41 | Student find(Student student); 42 | 43 | /** 44 | *保存学生信息 45 | * @param student 46 | */ 47 | @Insert("insert into stu_info (sno,name,password,tel,roomid,inroom,college,major,clase,gender,photo) values (#{sno},#{name},#{password},#{tel},#{roomid},#{inroom},#{college},#{major},#{clase},#{gender},#{photo})") 48 | void insert(Student student); 49 | 50 | /** 51 | * 分页查找 52 | * @param 53 | * @param start 54 | * @param rows 55 | * @param 56 | * @return 57 | */ 58 | @Select("") 68 | List findByPage(@Param("start") int start, @Param("rows") int rows, @Param("name") String name,@Param("roomid") String roomid); 69 | 70 | /** 71 | * 修改信息 72 | * @param student 73 | * @return 74 | */ 75 | @Update("update stu_info set name=#{name},tel=#{tel},gender=#{gender},roomid=#{roomid},college=#{college},clase=#{clase},photo=#{photo} where sno=#{sno}") 76 | void update(Student student); 77 | @Delete("delete from stu_info where sno = #{sno}") 78 | void delete(String sno); 79 | @Update("update stu_info set photo=#{photopath} where sno=#{sno}") 80 | void photo(String phtotpath); 81 | 82 | 83 | 84 | @Select("select count(*) from effects_info where sno = #{sno} ") 85 | int findEffectAll(String sno); 86 | @Select("select * from effects_info where sno = #{sno} limit ${start},${rows}" ) 87 | List findEffectByPage(@Param("start") int start, @Param("rows") int rows, @Param("sno") String sno); 88 | @Delete("delete from effects_info where id = #{effectid}") 89 | void effectDelete(int effectid); 90 | @Insert("insert into effects_info (sno,name) values (#{sno},#{name})") 91 | void effectInsert(Effects effects); 92 | @Select("select * from stu_info where photo = #{photopath} ") 93 | Student findByPhoto(String photopath); 94 | } 95 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/service/impl/AdminServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.lzy.service.impl; 2 | 3 | import com.lzy.dao.IAdminDao; 4 | import com.lzy.domain.Admin; 5 | import com.lzy.domain.PageBean; 6 | import com.lzy.domain.Student; 7 | import com.lzy.domain.Visitor; 8 | import com.lzy.service.IAdminService; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.stereotype.Service; 11 | 12 | import java.util.List; 13 | 14 | /** 15 | * @author Answer 16 | * @description 17 | * @date 2020/04/09 18 | */ 19 | @Service("adminService") 20 | public class AdminServiceImpl implements IAdminService { 21 | @Autowired 22 | private IAdminDao adminDao; 23 | @Override 24 | public Admin findById(Admin admin) { 25 | Admin adm = adminDao.findById(admin); 26 | return adm; 27 | } 28 | 29 | @Override 30 | public void insert(Admin admin) { 31 | adminDao.insert(admin); 32 | } 33 | 34 | @Override 35 | public PageBean findUserByPage(String _currentPage, String _rows, String name, String roomid) { 36 | int currentPage = Integer.parseInt(_currentPage); 37 | System.out.println("开始查总数"); 38 | int total = adminDao.findAll(name,roomid); 39 | System.out.println("查询到的总数"+total); 40 | int rows = Integer.parseInt(_rows); 41 | int totalPages = total % rows == 0 ? total/rows : total/rows + 1; 42 | if(currentPage<=1 || currentPage>totalPages) 43 | currentPage = 1; 44 | PageBean pb = new PageBean<>(); 45 | pb.setCurrentPage(currentPage); 46 | pb.setRows(rows); 47 | 48 | pb.setTotalCounts(total); 49 | 50 | pb.setTotalPages(totalPages); 51 | int start = (currentPage - 1)*rows; 52 | List list = adminDao.findByPage(start,rows,name,roomid); 53 | pb.setList(list); 54 | return pb; 55 | } 56 | 57 | @Override 58 | public Admin find(Admin admin) { 59 | Admin admin1 = adminDao.find(admin); 60 | return admin1; 61 | } 62 | 63 | @Override 64 | public void update(Admin admin) { 65 | adminDao.update(admin); 66 | } 67 | 68 | @Override 69 | public void delete(String sno) { 70 | adminDao.delete(sno); 71 | } 72 | 73 | @Override 74 | public void visitor(Visitor visitor) { 75 | adminDao.visitor(visitor); 76 | } 77 | 78 | @Override 79 | public PageBean findVisitorByPage(String _currentPage, String _rows, String name, String roomid) { 80 | int currentPage = Integer.parseInt(_currentPage); 81 | System.out.println("开始查总数"); 82 | int total = adminDao.findVisitorAll(name,roomid); 83 | System.out.println("查询到的总数"+total); 84 | int rows = Integer.parseInt(_rows); 85 | int totalPages = total % rows == 0 ? total/rows : total/rows + 1; 86 | if(currentPage<=1 || currentPage>totalPages) 87 | currentPage = 1; 88 | PageBean pb = new PageBean<>(); 89 | pb.setCurrentPage(currentPage); 90 | pb.setRows(rows); 91 | 92 | pb.setTotalCounts(total); 93 | 94 | pb.setTotalPages(totalPages); 95 | int start = (currentPage - 1)*rows; 96 | List list = adminDao.findVisitorByPage(start,rows,name,roomid); 97 | pb.setList(list); 98 | return pb; 99 | } 100 | 101 | @Override 102 | public void visitorDelete(int visitorid) { 103 | adminDao.visitorDelete(visitorid); 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 12 | 13 | / 14 | 15 | Archetype Created Web Application 16 | 17 | 18 | contextConfigLocation 19 | classpath:applicationContext.xml 20 | 21 | 22 | 23 | characterEncodingFilter 24 | org.springframework.web.filter.CharacterEncodingFilter 25 | 26 | encoding 27 | UTF-8 28 | 29 | 30 | 31 | characterEncodingFilter 32 | /* 33 | 34 | 35 | 36 | org.springframework.web.context.ContextLoaderListener 37 | 38 | 39 | 40 | default 41 | *.html 42 | 43 | 44 | default 45 | *.js 46 | 47 | 48 | default 49 | *.css 50 | 51 | 52 | default 53 | /images/* 54 | 55 | 56 | default 57 | /photos/* 58 | 59 | 60 | 61 | 62 | 63 | info 64 | /WEB-INF/jsp/info.jsp 65 | 66 | 67 | info 68 | /info 69 | 70 | 87 | 88 | 89 | 90 | 91 | 92 | dispatcherServlet 93 | org.springframework.web.servlet.DispatcherServlet 94 | 95 | 96 | contextConfigLocation 97 | classpath:springmvc.xml 98 | 99 | 1 100 | 101 | 102 | dispatcherServlet 103 | / 104 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 12 | 13 | / 14 | 15 | Archetype Created Web Application 16 | 17 | 18 | contextConfigLocation 19 | classpath:applicationContext.xml 20 | 21 | 22 | 23 | characterEncodingFilter 24 | org.springframework.web.filter.CharacterEncodingFilter 25 | 26 | encoding 27 | UTF-8 28 | 29 | 30 | 31 | characterEncodingFilter 32 | /* 33 | 34 | 35 | 36 | org.springframework.web.context.ContextLoaderListener 37 | 38 | 39 | 40 | default 41 | *.html 42 | 43 | 44 | default 45 | *.js 46 | 47 | 48 | default 49 | *.css 50 | 51 | 52 | default 53 | /images/* 54 | 55 | 56 | default 57 | /photos/* 58 | 59 | 60 | 61 | 62 | 63 | info 64 | /WEB-INF/jsp/info.jsp 65 | 66 | 67 | info 68 | /info 69 | 70 | 87 | 88 | 89 | 90 | 91 | 92 | dispatcherServlet 93 | org.springframework.web.servlet.DispatcherServlet 94 | 95 | 96 | contextConfigLocation 97 | classpath:springmvc.xml 98 | 99 | 1 100 | 101 | 102 | dispatcherServlet 103 | / 104 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/domain/Student.java: -------------------------------------------------------------------------------- 1 | package com.lzy.domain; 2 | 3 | import java.io.Serializable; 4 | /** 5 | * @author Answer 6 | * @description 学生信息实体类 7 | * @date 2020/04/04 8 | */ 9 | public class Student implements Serializable { 10 | private String sno; 11 | private String name; 12 | private String password; 13 | private String tel; 14 | private String roomid; 15 | private String inroom; 16 | private String college; 17 | private String major; 18 | private String clase; 19 | private String gender; 20 | private String photo; 21 | 22 | public Student() { 23 | 24 | } 25 | 26 | public Student(String sno, String name, String password, String tel, String roomid, String inroom, String college, String major, String clase, String gender, String photo) { 27 | this.sno = sno; 28 | this.name = name; 29 | this.password = password; 30 | this.tel = tel; 31 | this.roomid = roomid; 32 | this.inroom = inroom; 33 | this.college = college; 34 | this.major = major; 35 | this.clase = clase; 36 | this.gender = gender; 37 | this.photo = photo; 38 | } 39 | 40 | public String getSno() { 41 | return sno; 42 | } 43 | 44 | public void setSno(String sno) { 45 | this.sno = sno; 46 | } 47 | 48 | public String getName() { 49 | return name; 50 | } 51 | 52 | public void setName(String name) { 53 | this.name = name; 54 | } 55 | 56 | public String getPassword() { 57 | return password; 58 | } 59 | 60 | public void setPassword(String password) { 61 | this.password = password; 62 | } 63 | 64 | public String getTel() { 65 | return tel; 66 | } 67 | 68 | public void setTel(String tel) { 69 | this.tel = tel; 70 | } 71 | 72 | public String getRoomid() { 73 | return roomid; 74 | } 75 | 76 | public void setRoomid(String roomid) { 77 | this.roomid = roomid; 78 | } 79 | 80 | public String getInroom() { 81 | return inroom; 82 | } 83 | 84 | public void setInroom(String inroom) { 85 | this.inroom = inroom; 86 | } 87 | 88 | public String getCollege() { 89 | return college; 90 | } 91 | 92 | public void setCollege(String college) { 93 | this.college = college; 94 | } 95 | 96 | public String getMajor() { 97 | return major; 98 | } 99 | 100 | public void setMajor(String major) { 101 | this.major = major; 102 | } 103 | 104 | public String getClase() { 105 | return clase; 106 | } 107 | 108 | public void setClase(String clase) { 109 | this.clase = clase; 110 | } 111 | 112 | public String getGender() { 113 | return gender; 114 | } 115 | 116 | public void setGender(String gender) { 117 | this.gender = gender; 118 | } 119 | 120 | public String getPhoto() { 121 | return photo; 122 | } 123 | 124 | public void setPhoto(String photo) { 125 | this.photo = photo; 126 | } 127 | 128 | @Override 129 | public String toString() { 130 | return "Student{" + 131 | "sno='" + sno + '\'' + 132 | ", name='" + name + '\'' + 133 | ", password='" + password + '\'' + 134 | ", tel='" + tel + '\'' + 135 | ", roomid='" + roomid + '\'' + 136 | ", inroom='" + inroom + '\'' + 137 | ", college='" + college + '\'' + 138 | ", major='" + major + '\'' + 139 | ", clase='" + clase + '\'' + 140 | ", gender='" + gender + '\'' + 141 | ", photo='" + photo + '\'' + 142 | '}'; 143 | } 144 | } 145 | -------------------------------------------------------------------------------- /WEB-INF/jsp/super_adm_insert.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/6 0006 5 | Time: 0:14 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 添加宿管 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
添加宿管
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 51 | 52 | 53 | 54 |
29 |
30 | 31 | 32 |
33 |
34 | 35 | 36 |


37 |
38 | 39 | 40 |
41 |
42 | 43 | 44 |
45 |
46 |
47 | 48 |


49 | 50 |
55 | 56 |
57 |
58 |
59 |
60 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/super_adm_insert.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/6 0006 5 | Time: 0:14 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 添加宿管 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
添加宿管
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 51 | 52 | 53 | 54 |
29 |
30 | 31 | 32 |
33 |
34 | 35 | 36 |


37 |
38 | 39 | 40 |
41 |
42 | 43 | 44 |
45 |
46 |
47 | 48 |


49 | 50 |
55 | 56 |
57 |
58 |
59 |
60 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/service/impl/StudentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.lzy.service.impl; 2 | 3 | import com.lzy.dao.IStudentDao; 4 | import com.lzy.domain.Effects; 5 | import com.lzy.domain.PageBean; 6 | import com.lzy.domain.Student; 7 | import com.lzy.service.IStudentService; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Service; 10 | 11 | import java.util.List; 12 | 13 | /** 14 | * @author Answer 15 | * @description 操作学生信息业务层实现类 16 | * @date 2020/04/04 17 | */ 18 | @Service("studentService") 19 | public class StudentServiceImpl implements IStudentService { 20 | @Autowired 21 | private IStudentDao studentDao; 22 | 23 | @Override 24 | public Student findById(Student student) { 25 | return studentDao.findById(student); 26 | } 27 | 28 | 29 | 30 | @Override 31 | public PageBean findUserByPage(String _currentPage, String _rows, String name,String roomid) { 32 | int currentPage = Integer.parseInt(_currentPage); 33 | System.out.println("开始查总数"); 34 | int total = studentDao.findAll(name,roomid); 35 | System.out.println("查询到的总数"+total); 36 | int rows = Integer.parseInt(_rows); 37 | int totalPages = total % rows == 0 ? total/rows : total/rows + 1; 38 | if(currentPage<=1 || currentPage>totalPages) 39 | currentPage = 1; 40 | PageBean pb = new PageBean<>(); 41 | pb.setCurrentPage(currentPage); 42 | pb.setRows(rows); 43 | 44 | pb.setTotalCounts(total); 45 | 46 | pb.setTotalPages(totalPages); 47 | int start = (currentPage - 1)*rows; 48 | List list = studentDao.findByPage(start,rows,name,roomid); 49 | pb.setList(list); 50 | return pb; 51 | } 52 | 53 | @Override 54 | public Student find(Student student) { 55 | Student student1 = studentDao.find(student); 56 | return student1; 57 | } 58 | 59 | @Override 60 | public void update(Student student) { 61 | studentDao.update(student); 62 | 63 | 64 | } 65 | 66 | @Override 67 | public void delete(String sno) { 68 | studentDao.delete(sno); 69 | } 70 | 71 | @Override 72 | public void photo(String phtotpath) { 73 | studentDao.photo(phtotpath); 74 | } 75 | 76 | @Override 77 | public PageBean findEffectByPage(String _currentPage, String _rows, String sno) { 78 | int currentPage = Integer.parseInt(_currentPage); 79 | System.out.println("开始查总数"); 80 | int total = studentDao.findEffectAll(sno); 81 | System.out.println("查询到的总数"+total); 82 | int rows = Integer.parseInt(_rows); 83 | int totalPages = total % rows == 0 ? total/rows : total/rows + 1; 84 | if(currentPage<=1 || currentPage>totalPages) 85 | currentPage = 1; 86 | PageBean pb = new PageBean<>(); 87 | pb.setCurrentPage(currentPage); 88 | pb.setRows(rows); 89 | 90 | pb.setTotalCounts(total); 91 | 92 | pb.setTotalPages(totalPages); 93 | int start = (currentPage - 1)*rows; 94 | List list = studentDao.findEffectByPage(start,rows,sno); 95 | pb.setList(list); 96 | return pb; 97 | } 98 | 99 | @Override 100 | public void effectDelete(int effectid) { 101 | studentDao.effectDelete(effectid); 102 | } 103 | 104 | @Override 105 | public void effectInsert(Effects effects) { 106 | studentDao.effectInsert(effects); 107 | } 108 | 109 | @Override 110 | public Student findByPhoto(String photopath) { 111 | Student byPhoto = studentDao.findByPhoto(photopath); 112 | return byPhoto; 113 | } 114 | 115 | @Override 116 | public void insert(Student student) { 117 | studentDao.insert(student); 118 | } 119 | } 120 | -------------------------------------------------------------------------------- /WEB-INF/jsp/stu_effect.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 2 | <%-- 3 | Created by IntelliJ IDEA. 4 | User: Administrator 5 | Date: 2020/5/6 0006 6 | Time: 1:51 7 | To change this template use File | Settings | File Templates. 8 | --%> 9 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 10 | 11 | 12 | 个人物品 13 | 14 | 15 | 16 | 17 | 26 | 27 | 28 |
29 |
个人物品
30 |
31 | 32 |
33 | 34 | 35 | 36 | 37 | 40 | 43 | 46 | 47 | 48 | 49 | 50 | 53 | 56 | 59 | 60 | 61 | 62 |
38 | 39 | 41 | 编号 42 | 44 | 物品名称 45 |
51 | 52 | 54 | ${s.count} 55 | 57 | ${effect.name} 58 |
63 |
64 | ${pb.totalCounts}条物品信息,共${pb.totalPages}页 65 | 91 |
92 | 93 |
94 |
95 | 96 | 97 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/stu_effect.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 2 | <%-- 3 | Created by IntelliJ IDEA. 4 | User: Administrator 5 | Date: 2020/5/6 0006 6 | Time: 1:51 7 | To change this template use File | Settings | File Templates. 8 | --%> 9 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 10 | 11 | 12 | 个人物品 13 | 14 | 15 | 16 | 17 | 26 | 27 | 28 |
29 |
个人物品
30 |
31 | 32 |
33 | 34 | 35 | 36 | 37 | 40 | 43 | 46 | 47 | 48 | 49 | 50 | 53 | 56 | 59 | 60 | 61 | 62 |
38 | 39 | 41 | 编号 42 | 44 | 物品名称 45 |
51 | 52 | 54 | ${s.count} 55 | 57 | ${effect.name} 58 |
63 |
64 | ${pb.totalCounts}条物品信息,共${pb.totalPages}页 65 | 91 |
92 | 93 |
94 |
95 | 96 | 97 | -------------------------------------------------------------------------------- /WEB-INF/jsp/adm_update.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/4 0004 5 | Time: 20:50 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 修改信息 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
修改信息
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 52 | 54 | 55 | 56 |
29 |
30 | 31 | 32 |
33 |
34 | 35 | 36 |


37 |
38 | 39 | 40 |


41 |
42 | 43 | 44 |
45 |
46 | 47 | 48 |
49 |

50 | 51 |

53 |
57 | 58 |
59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 |
67 |
68 |
69 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/adm_update.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/4 0004 5 | Time: 20:50 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 修改信息 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
修改信息
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 52 | 54 | 55 | 56 |
29 |
30 | 31 | 32 |
33 |
34 | 35 | 36 |


37 |
38 | 39 | 40 |


41 |
42 | 43 | 44 |
45 |
46 | 47 | 48 |
49 |

50 | 51 |

53 |
57 | 58 |
59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 |
67 |
68 |
69 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /WEB-INF/jsp/adm_stu_update.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/4 0004 5 | Time: 22:14 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 修改信息 12 | 13 | 14 | 15 | 16 | 30 | 31 | 32 |
33 |
修改信息
34 |
35 |
36 |
37 | 38 | 39 | 40 | 41 | 42 | 78 | 82 | 83 | 84 |
43 |
44 | 45 | 46 |
47 |
48 | 49 | 50 |


51 |
52 | 53 | 54 |
55 |
56 | 57 | 58 |


59 |
60 | 61 | 62 |
63 |
64 | 65 | 66 |


67 |
68 | 69 | 70 |
71 |
72 | 73 | 74 |
75 |

76 | 77 |
79 | 80 | 81 |
85 | 86 |
87 |
88 |
89 |
90 | 91 | 92 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/adm_stu_update.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/4 0004 5 | Time: 22:14 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 修改信息 12 | 13 | 14 | 15 | 16 | 30 | 31 | 32 |
33 |
修改信息
34 |
35 |
36 |
37 | 38 | 39 | 40 | 41 | 42 | 78 | 82 | 83 | 84 |
43 |
44 | 45 | 46 |
47 |
48 | 49 | 50 |


51 |
52 | 53 | 54 |
55 |
56 | 57 | 58 |


59 |
60 | 61 | 62 |
63 |
64 | 65 | 66 |


67 |
68 | 69 | 70 |
71 |
72 | 73 | 74 |
75 |

76 | 77 |
79 | 80 | 81 |
85 | 86 |
87 |
88 |
89 |
90 | 91 | 92 | -------------------------------------------------------------------------------- /src/main/java/com/lzy/controller/MainController.java: -------------------------------------------------------------------------------- 1 | package com.lzy.controller; 2 | 3 | import com.lzy.domain.Admin; 4 | import com.lzy.domain.Announcement; 5 | import com.lzy.domain.Student; 6 | import com.lzy.service.IAnnouncementService; 7 | import com.lzy.service.impl.AdminServiceImpl; 8 | import com.lzy.service.impl.StudentServiceImpl; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.stereotype.Controller; 11 | import org.springframework.web.bind.annotation.RequestMapping; 12 | import org.springframework.web.servlet.ModelAndView; 13 | 14 | import javax.servlet.http.HttpServletRequest; 15 | 16 | /** 17 | * @author Answer 18 | * @description 19 | * @date 2020/04/13 20 | */ 21 | @Controller 22 | @RequestMapping("/main") 23 | public class MainController { 24 | @Autowired 25 | private StudentServiceImpl studentService; 26 | @Autowired 27 | private AdminServiceImpl adminService; 28 | @Autowired 29 | private IAnnouncementService announcementService; 30 | @RequestMapping("/welcome") 31 | public String welcome(){ 32 | return "welcome"; 33 | } 34 | 35 | /** 36 | * 学生菜单 37 | * @return 38 | */ 39 | @RequestMapping("/stu_info") 40 | public String info(){ 41 | return "stu_info"; 42 | } 43 | @RequestMapping("/stu_update") 44 | public String stu_update(){ 45 | 46 | return "stu_update"; 47 | } 48 | @RequestMapping("/stu_effect") 49 | public String stu_effect(){ 50 | return "stu_effect"; 51 | } 52 | @RequestMapping("/stu_effect_insert") 53 | public String stu_effect_insert(){ 54 | return "stu_effect_insert"; 55 | } 56 | @RequestMapping("/stu_effect_delete") 57 | public String stu_effect_delete(){ 58 | return "stu_effect_delete"; 59 | } 60 | 61 | /** 62 | * 宿管菜单 63 | * @return 64 | */ 65 | @RequestMapping("/adm_info") 66 | public String adm_info(){ 67 | return "adm_info"; 68 | } 69 | @RequestMapping("/adm_update") 70 | public String adm_update(){ 71 | return "adm_update"; 72 | } 73 | @RequestMapping("/adm_stu_info") 74 | public String adm_stu_info(){ 75 | return "adm_stu_info"; 76 | } 77 | @RequestMapping("/adm_stu_update") 78 | public String adm_stu_update(){ 79 | return "adm_stu_update"; 80 | } 81 | @RequestMapping("/adm_visitor") 82 | public String adm_visitor(){ 83 | return "adm_visitor"; 84 | } 85 | @RequestMapping("/adm_upload") 86 | public String adm_upload(){ 87 | return "adm_upload"; 88 | } 89 | @RequestMapping("/anno") 90 | public String anno(){ 91 | return "anno"; 92 | } 93 | 94 | /** 95 | * 学工处菜单 96 | * @return 97 | */ 98 | @RequestMapping("/super_adm_info") 99 | public String super_adm_info(){ 100 | return "super_adm_info"; 101 | } 102 | @RequestMapping("/super_update") 103 | public String super_update(){ 104 | return "super_update"; 105 | } 106 | @RequestMapping("/super_adm_insert") 107 | public String super_adm_insert(){ 108 | return "super_adm_insert"; 109 | } 110 | @RequestMapping("/super_stu_info") 111 | public String super_stu_info(){ 112 | return "super_stu_info"; 113 | } 114 | @RequestMapping("/super_stu_update") 115 | public ModelAndView super_stu_update(Student student, HttpServletRequest request){ 116 | Student byId = studentService.find(student); 117 | ModelAndView modelAndView = new ModelAndView("super_stu_update"); 118 | modelAndView.addObject("student",byId); 119 | return modelAndView; 120 | } 121 | @RequestMapping("/super_adm_update") 122 | public ModelAndView super_adm_update(Admin admin, HttpServletRequest request){ 123 | Admin byId = adminService.find(admin); 124 | ModelAndView modelAndView = new ModelAndView("super_adm_update"); 125 | modelAndView.addObject("admin",byId); 126 | return modelAndView; 127 | } 128 | @RequestMapping("/super_stu_insert") 129 | public String super_stu_insert(){ 130 | return "super_stu_insert"; 131 | } 132 | @RequestMapping("/super_anno") 133 | public String super_anno(){ 134 | return "super_anno"; 135 | } 136 | @RequestMapping("/anno_insert") 137 | public String anno_insert(){ 138 | return "super_anno_insert"; 139 | } 140 | @RequestMapping("/annolook") 141 | public ModelAndView annolook(Announcement announcement){ 142 | Announcement byId = announcementService.findById(announcement); 143 | ModelAndView modelAndView = new ModelAndView("annolook"); 144 | modelAndView.addObject("annobyid",byId); 145 | 146 | return modelAndView; 147 | } 148 | 149 | } 150 | -------------------------------------------------------------------------------- /WEB-INF/jsp/super_stu_insert.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/6 0006 5 | Time: 0:15 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 添加学生 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
添加学生
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 67 | 68 | 69 | 70 |
29 |
30 | 31 | 32 |
33 |
34 | 35 | 36 |


37 |
38 | 39 | 40 |
41 |
42 | 43 | 44 |
45 |
46 | 47 | 48 |
49 |
50 | 51 | 52 |
53 |
54 | 55 | 56 |
57 |
58 | 59 | 60 |
61 |
62 |
63 | 64 |


65 | 66 |
71 | 72 |
73 |
74 |
75 |
76 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/super_stu_insert.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/6 0006 5 | Time: 0:15 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 添加学生 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
添加学生
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 67 | 68 | 69 | 70 |
29 |
30 | 31 | 32 |
33 |
34 | 35 | 36 |


37 |
38 | 39 | 40 |
41 |
42 | 43 | 44 |
45 |
46 | 47 | 48 |
49 |
50 | 51 | 52 |
53 |
54 | 55 | 56 |
57 |
58 | 59 | 60 |
61 |
62 |
63 | 64 |


65 | 66 |
71 | 72 |
73 |
74 |
75 |
76 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /WEB-INF/jsp/super_adm_update.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/9 0009 5 | Time: 19:14 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 修改信息 12 | 13 | 14 | 15 | 16 | 30 | 31 | 32 |
33 |
修改信息
34 |
35 |
36 |
37 | 38 | 39 | 40 | 41 | 42 | 66 | 68 | 69 | 70 |
43 |
44 | 45 | 46 |
47 |
48 | 49 | 50 |


51 |
52 | 53 | 54 |


55 |
56 | 57 | 58 |
59 |
60 | 61 | 62 |
63 |

64 | 65 |

67 |
71 | 72 |
73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 |
81 |
82 |
83 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/super_adm_update.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/9 0009 5 | Time: 19:14 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 修改信息 12 | 13 | 14 | 15 | 16 | 30 | 31 | 32 |
33 |
修改信息
34 |
35 |
36 |
37 | 38 | 39 | 40 | 41 | 42 | 66 | 68 | 69 | 70 |
43 |
44 | 45 | 46 |
47 |
48 | 49 | 50 |


51 |
52 | 53 | 54 |


55 |
56 | 57 | 58 |
59 |
60 | 61 | 62 |
63 |

64 | 65 |

67 |
71 | 72 |
73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 |
81 |
82 |
83 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /WEB-INF/jsp/super_stu_update.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/8 0008 5 | Time: 20:14 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 修改信息 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 |
修改信息
21 |
22 |
23 |
24 | 25 | 26 | 27 | 28 | 29 | 65 | 67 | 68 | 69 |
30 |
31 | 32 | 33 |
34 |
35 | 36 | 37 |


38 |
39 | 40 | 41 |
42 |
43 | 44 | 45 |


46 |
47 | 48 | 49 |
50 |
51 | 52 | 53 |


54 |
55 | 56 | 57 |
58 |
59 | 60 | 61 |
62 |

63 | 64 |

66 |
70 | 71 |
72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 |
81 |
82 |
83 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/super_stu_update.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/5/8 0008 5 | Time: 20:14 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 修改信息 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 |
修改信息
21 |
22 |
23 |
24 | 25 | 26 | 27 | 28 | 29 | 65 | 67 | 68 | 69 |
30 |
31 | 32 | 33 |
34 |
35 | 36 | 37 |


38 |
39 | 40 | 41 |
42 |
43 | 44 | 45 |


46 |
47 | 48 | 49 |
50 |
51 | 52 | 53 |


54 |
55 | 56 | 57 |
58 |
59 | 60 | 61 |
62 |

63 | 64 |

66 |
70 | 71 |
72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 |
81 |
82 |
83 | 104 | 105 | 106 | --------------------------------------------------------------------------------