├── .DS_Store ├── .gitignore ├── .mvn └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── example │ │ └── dormitoryadmin │ │ ├── DormitoryAdminApplication.java │ │ ├── controller │ │ ├── AdminController.java │ │ ├── DormitoryController.java │ │ ├── HelloController.java │ │ ├── LoginController.java │ │ ├── RegisterController.java │ │ └── StudentController.java │ │ ├── dao │ │ ├── AdminDao.java │ │ ├── AdminDaoDaoImpl.java │ │ ├── DormitoryDao.java │ │ ├── DormitoryDaoImpl.java │ │ ├── RegisterDao.java │ │ ├── RegisterDaoImpl.java │ │ ├── StudentDao.java │ │ └── StudentDaoImpl.java │ │ ├── model │ │ ├── Admin.java │ │ ├── Dormitory.java │ │ ├── Register.java │ │ └── Student.java │ │ └── service │ │ ├── AdminService.java │ │ ├── AdminServiceImpl.java │ │ ├── DormitoryService.java │ │ ├── DormitoryServiceImpl.java │ │ ├── PageUtil.java │ │ ├── RegisterService.java │ │ ├── RegisterServiceImpl.java │ │ ├── StudentService.java │ │ └── StudentServiceImpl.java └── resources │ ├── application.yml │ ├── mydb.sql │ └── static │ ├── .DS_Store │ ├── admin-admin-add.html │ ├── admin-admin-del.html │ ├── admin-admin-get.html │ ├── admin-admin-update.html │ ├── admin-admin.html │ ├── admin-list.html │ ├── css │ ├── font.css │ ├── login.css │ ├── theme1.css │ ├── theme2.css │ ├── theme3.css │ ├── theme4.css │ ├── theme5.css │ └── xadmin.css │ ├── dormitory-admin-add.html │ ├── dormitory-admin-del.html │ ├── dormitory-admin-get.html │ ├── dormitory-admin-getstudentall.html │ ├── dormitory-admin-update.html │ ├── dormitory-admin.html │ ├── dormitory-list.html │ ├── fonts │ ├── iconfont.eot │ ├── iconfont.svg │ ├── iconfont.ttf │ └── iconfont.woff │ ├── images │ ├── aiwrap.png │ └── bg.png │ ├── index.html │ ├── js │ ├── jquery.min.js │ ├── xadmin.js │ └── xcity.js │ ├── lib │ ├── .DS_Store │ └── layui │ │ ├── .DS_Store │ │ ├── css │ │ ├── layui.css │ │ ├── layui.mobile.css │ │ └── modules │ │ │ ├── code.css │ │ │ ├── laydate │ │ │ └── default │ │ │ │ └── laydate.css │ │ │ └── layer │ │ │ └── default │ │ │ ├── icon-ext.png │ │ │ ├── icon.png │ │ │ ├── layer.css │ │ │ ├── loading-0.gif │ │ │ ├── loading-1.gif │ │ │ └── loading-2.gif │ │ ├── font │ │ ├── iconfont.eot │ │ ├── iconfont.svg │ │ ├── iconfont.ttf │ │ └── iconfont.woff │ │ ├── images │ │ └── face │ │ │ ├── 0.gif │ │ │ ├── 1.gif │ │ │ ├── 10.gif │ │ │ ├── 11.gif │ │ │ ├── 12.gif │ │ │ ├── 13.gif │ │ │ ├── 14.gif │ │ │ ├── 15.gif │ │ │ ├── 16.gif │ │ │ ├── 17.gif │ │ │ ├── 18.gif │ │ │ ├── 19.gif │ │ │ ├── 2.gif │ │ │ ├── 20.gif │ │ │ ├── 21.gif │ │ │ ├── 22.gif │ │ │ ├── 23.gif │ │ │ ├── 24.gif │ │ │ ├── 25.gif │ │ │ ├── 26.gif │ │ │ ├── 27.gif │ │ │ ├── 28.gif │ │ │ ├── 29.gif │ │ │ ├── 3.gif │ │ │ ├── 30.gif │ │ │ ├── 31.gif │ │ │ ├── 32.gif │ │ │ ├── 33.gif │ │ │ ├── 34.gif │ │ │ ├── 35.gif │ │ │ ├── 36.gif │ │ │ ├── 37.gif │ │ │ ├── 38.gif │ │ │ ├── 39.gif │ │ │ ├── 4.gif │ │ │ ├── 40.gif │ │ │ ├── 41.gif │ │ │ ├── 42.gif │ │ │ ├── 43.gif │ │ │ ├── 44.gif │ │ │ ├── 45.gif │ │ │ ├── 46.gif │ │ │ ├── 47.gif │ │ │ ├── 48.gif │ │ │ ├── 49.gif │ │ │ ├── 5.gif │ │ │ ├── 50.gif │ │ │ ├── 51.gif │ │ │ ├── 52.gif │ │ │ ├── 53.gif │ │ │ ├── 54.gif │ │ │ ├── 55.gif │ │ │ ├── 56.gif │ │ │ ├── 57.gif │ │ │ ├── 58.gif │ │ │ ├── 59.gif │ │ │ ├── 6.gif │ │ │ ├── 60.gif │ │ │ ├── 61.gif │ │ │ ├── 62.gif │ │ │ ├── 63.gif │ │ │ ├── 64.gif │ │ │ ├── 65.gif │ │ │ ├── 66.gif │ │ │ ├── 67.gif │ │ │ ├── 68.gif │ │ │ ├── 69.gif │ │ │ ├── 7.gif │ │ │ ├── 70.gif │ │ │ ├── 71.gif │ │ │ ├── 8.gif │ │ │ └── 9.gif │ │ ├── lay │ │ └── modules │ │ │ ├── carousel.js │ │ │ ├── code.js │ │ │ ├── colorpicker.js │ │ │ ├── element.js │ │ │ ├── flow.js │ │ │ ├── form.js │ │ │ ├── jquery.js │ │ │ ├── laydate.js │ │ │ ├── layedit.js │ │ │ ├── layer.js │ │ │ ├── laypage.js │ │ │ ├── laytpl.js │ │ │ ├── mobile.js │ │ │ ├── rate.js │ │ │ ├── slider.js │ │ │ ├── table.js │ │ │ ├── tree.js │ │ │ ├── upload.js │ │ │ └── util.js │ │ ├── layui.all.js │ │ └── layui.js │ ├── log.html │ ├── login.html │ ├── register-admin-add.html │ ├── register-admin-del.html │ ├── register-admin-get.html │ ├── register-admin-update.html │ ├── register-admin.html │ ├── student-admin-add.html │ ├── student-admin-del.html │ ├── student-admin-get.html │ ├── student-admin-update.html │ ├── student-admin.html │ ├── student-list.html │ └── welcome.html └── test └── java └── com └── example └── dormitoryadmin └── DormitoryAdminApplicationTests.java /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Dormitory-admin学生宿舍管理系统 2 | 3 | 4 | 5 | ## 前言 6 | 7 | 该项目为Java数据库实训课程设计系统,实现简单的curd、分页以及登录 8 | 9 | ## 项目介绍 10 | 11 | `dormitoory-admin`是一个简单的学生宿舍管理系统,基于Springboot+Layui实现。主要实现学生管理、宿舍管理、管理员管理、登记管理等的简单CURD和分页登录功能。 12 | 13 | ### 项目演示 14 | 15 | ![截屏2023-02-18 03.12.55.png](https://s2.loli.net/2023/02/18/PkGX9TH8I674KD2.png) 16 | ![截屏2023-02-18 02.57.50.png](https://s2.loli.net/2023/02/18/doexb2uKazCmG9g.png) 17 | ![截屏2023-02-18 02.58.07.png](https://s2.loli.net/2023/02/18/ScNFjQeB48gfrHY.png) 18 | 19 | ### 技术选型 20 | 21 | | 技术 | 说明 | 官网 | 22 | | ---------- | ------------ | ------------------------------------------------ | 23 | | Springboot | Java | https://vuejs.org/ | 24 | | LayUI | 前端UI框架 | https://layui.gitee.io/v2/docs/element/anim.html | 25 | | X-admin | 前端开源项目 | http://x.xuebingsi.com/ | 26 | | jQuery | 前端框架 | https://jquery.com/ | 27 | 28 | ### 项目布局 29 | 30 | ```g 31 | main 32 | └──java 33 | └── com.dormitooryadmin 34 | │ │ ├── controller 35 | │ │ ├── dao 36 | │ │ ├── model 37 | │ │ └── service 38 | │ └── resources 39 | │ │ ├── static 40 | │ │ └── template 41 | └──test │ 42 | └──java 43 | └── com.dormitooryadmin 44 | 45 | ``` 46 | 47 | 48 | 49 | ## 后端接口文档 50 | 51 | 打开网址查看全部接口 https://console-docs.apipost.cn/preview/91636b87fbf569ed/29f529c9f1b40005 密码123456 52 | 53 | ## 搭建步骤 54 | 55 | - 克隆源代码到本地,使用IDEA打开; 56 | - 数据库导入java->resource 下的mydb.sql; 57 | - 在application.yml修改数据库账号密码 58 | - 完成编译; 59 | - 打开 http://localhost:8080/ 默认跳转到登录页面 使用admin admin登录 60 | 61 | 62 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 3.0.2 9 | 10 | 11 | com.example 12 | dormitory-admin 13 | 0.0.1-SNAPSHOT 14 | dormitory-admin 15 | dormitory-admin 16 | 17 | 17 18 | 19 | 20 | 21 | 22 | org.springframework.boot 23 | spring-boot-starter-jdbc 24 | 25 | 26 | org.springframework.boot 27 | spring-boot-starter-web 28 | 29 | 30 | 31 | com.mysql 32 | mysql-connector-j 33 | runtime 34 | 35 | 36 | org.springframework.boot 37 | spring-boot-starter-test 38 | test 39 | 40 | 41 | 42 | org.springframework.boot 43 | spring-boot-starter-web 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | org.springframework.boot 52 | spring-boot-maven-plugin 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/DormitoryAdminApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DormitoryAdminApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DormitoryAdminApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/controller/AdminController.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.controller; 2 | 3 | import com.example.dormitoryadmin.model.Admin; 4 | import com.example.dormitoryadmin.model.Dormitory; 5 | import com.example.dormitoryadmin.model.Student; 6 | import com.example.dormitoryadmin.service.AdminService; 7 | import com.example.dormitoryadmin.service.DormitoryService; 8 | import com.example.dormitoryadmin.service.PageUtil; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.web.bind.annotation.*; 11 | 12 | import java.util.List; 13 | 14 | @RestController 15 | @RequestMapping("/admin") 16 | public class AdminController { 17 | @Autowired 18 | AdminService adminservice; 19 | @PostMapping("/add") 20 | public Integer addDormitory(Admin s) { 21 | return adminservice.addAdmin(s); 22 | } 23 | @PostMapping("/update") 24 | public Integer updateDormitory(Admin s) { 25 | return adminservice.updateAdmin(s); 26 | } 27 | @GetMapping("/delete") 28 | public Integer deleteDormitory( Integer id) {return adminservice.deleteAdmin(id);} 29 | @GetMapping("/query") 30 | public List query() {return adminservice.query();} 31 | @GetMapping("/get") 32 | public Admin get(String username){ 33 | return adminservice.get(username); 34 | } 35 | @GetMapping("/getListByPage") 36 | public List getListByPage(@RequestParam int pageNo, @RequestParam int pageSize) { 37 | List allAdmins = adminservice.query(); // get student list from service 38 | return PageUtil.getAdminByPage(allAdmins, pageSize, pageNo); 39 | } 40 | @GetMapping("/getTotalCount") 41 | public int getTotalCount() { 42 | int totalCount = adminservice.query().size(); 43 | return totalCount; 44 | } 45 | } 46 | 47 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/controller/DormitoryController.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.controller; 2 | 3 | import com.example.dormitoryadmin.model.Dormitory; 4 | import com.example.dormitoryadmin.service.DormitoryService; 5 | import com.example.dormitoryadmin.service.PageUtil; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.web.bind.annotation.*; 8 | 9 | import java.util.List; 10 | 11 | @RestController 12 | @RequestMapping("/dormitory") 13 | public class DormitoryController { 14 | @Autowired 15 | DormitoryService dormitoryservice; 16 | @PostMapping("/add") 17 | public Integer addDormitory(Dormitory s) { 18 | return dormitoryservice.addDormitory(s); 19 | } 20 | @PostMapping("/update") 21 | public Integer updateDormitory(Dormitory s) { 22 | return dormitoryservice.updateDormitory(s); 23 | } 24 | @GetMapping("/delete") 25 | public Integer deleteDormitory( Integer id) {return dormitoryservice.deleteDormitory(id);} 26 | @GetMapping("/query") 27 | public List query() {return dormitoryservice.query();} 28 | @GetMapping("/get") 29 | public Dormitory get(String dormitoryid){ 30 | return dormitoryservice.get(dormitoryid); 31 | } 32 | @GetMapping("/getListByPage") 33 | public List getListByPage(@RequestParam int pageNo, @RequestParam int pageSize) { 34 | List allDormitorys = dormitoryservice.query(); // get student list from service 35 | return PageUtil.getDormitoryByPage(allDormitorys, pageSize, pageNo); 36 | } 37 | @GetMapping("/getTotalCount") 38 | public int getTotalCount() { 39 | int totalCount = dormitoryservice.query().size(); 40 | return totalCount; 41 | } 42 | } -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/controller/HelloController.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | @Controller 7 | public class HelloController { 8 | @RequestMapping("/") 9 | public String hello(){ 10 | return "forward:login.html"; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/controller/LoginController.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.controller; 2 | 3 | import com.example.dormitoryadmin.dao.AdminDao; 4 | import com.example.dormitoryadmin.model.Admin; 5 | import com.example.dormitoryadmin.service.AdminService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.http.ResponseEntity; 8 | import org.springframework.web.bind.annotation.PostMapping; 9 | import org.springframework.web.bind.annotation.RequestBody; 10 | import org.springframework.web.bind.annotation.RequestParam; 11 | import org.springframework.web.bind.annotation.RestController; 12 | 13 | @RestController 14 | public class LoginController { 15 | @Autowired 16 | AdminService adminService; 17 | 18 | @PostMapping(value = "/login") 19 | public ResponseEntity login(@RequestParam String username, @RequestParam String password){ 20 | // 调用service处理登录请求 21 | Admin admin = new Admin(username, password); 22 | boolean result = adminService.login(admin); 23 | if (result) { 24 | return ResponseEntity.ok().body("1"); 25 | }else { 26 | return ResponseEntity.badRequest().body("0"); 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/controller/RegisterController.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.controller; 2 | 3 | import com.example.dormitoryadmin.model.Register; 4 | import com.example.dormitoryadmin.model.Student; 5 | import com.example.dormitoryadmin.service.PageUtil; 6 | import com.example.dormitoryadmin.service.RegisterService; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.web.bind.annotation.*; 9 | 10 | import java.util.List; 11 | 12 | @RestController 13 | @RequestMapping("/register") 14 | public class RegisterController { 15 | @Autowired 16 | RegisterService registerservice; 17 | @PostMapping("/add") 18 | public Integer addRegister(Register s) { 19 | return registerservice.addRegister(s); 20 | } 21 | @PostMapping("/update") 22 | public Integer updateRegister(Register s) { 23 | return registerservice.updateRegister(s); 24 | } 25 | @GetMapping("/delete") 26 | public Integer deleteRegister( Integer id) {return registerservice.deleteRegister(id);} 27 | @GetMapping("/query") 28 | public List query() {return registerservice.query();} 29 | @GetMapping("/get") 30 | public Register get(Integer id){ 31 | return registerservice.get(id); 32 | } 33 | 34 | @GetMapping("/getListByPage") 35 | public List getListByPage(@RequestParam int pageNo, @RequestParam int pageSize) { 36 | List allRegisters = registerservice.query(); // get student list from service 37 | return PageUtil.getRegisterByPage(allRegisters, pageSize, pageNo); 38 | } 39 | @GetMapping("/getTotalCount") 40 | public int getTotalCount() { 41 | int totalCount = registerservice.query().size(); 42 | return totalCount; 43 | } 44 | } -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/controller/StudentController.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.controller; 2 | 3 | 4 | import com.example.dormitoryadmin.model.Student; 5 | import com.example.dormitoryadmin.service.PageUtil; 6 | import com.example.dormitoryadmin.service.StudentService; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.web.bind.annotation.*; 9 | 10 | import java.util.List; 11 | 12 | @RestController 13 | 14 | @RequestMapping("/student") 15 | public class StudentController { 16 | @Autowired 17 | private StudentService StudentService; 18 | @PostMapping("/add") 19 | public Integer addStudent(Student s) { 20 | return StudentService.addStudent(s); 21 | } 22 | @PostMapping("/update") 23 | public Integer updateStudent(Student s) { 24 | return StudentService.updateStudent(s); 25 | } 26 | @GetMapping("/delete") 27 | public Integer delete( Integer id) {return StudentService.deleteStudent(id);} 28 | @GetMapping("/query") 29 | public List query() {return StudentService.query();} 30 | @GetMapping("/get") 31 | public Student get(Integer studentid){ 32 | return StudentService.get(studentid); 33 | } 34 | @GetMapping("/getstudentall") 35 | public List getAllstudent(String dormitory) {return StudentService.getAllstudent(dormitory);} 36 | 37 | @GetMapping("/getListByPage") 38 | public List getListByPage(@RequestParam int pageNo, @RequestParam int pageSize) { 39 | List allStudents = StudentService.query(); // get student list from service 40 | return PageUtil.getPersonsByPage(allStudents, pageSize, pageNo); 41 | } 42 | @GetMapping("/getTotalCount") 43 | public int getTotalCount() { 44 | int totalCount = StudentService.query().size(); 45 | return totalCount; 46 | } 47 | } 48 | 49 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/dao/AdminDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.dao; 2 | 3 | import com.example.dormitoryadmin.model.Admin; 4 | import com.example.dormitoryadmin.model.Dormitory; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.jdbc.core.BeanPropertyRowMapper; 7 | import org.springframework.jdbc.core.JdbcTemplate; 8 | import org.springframework.stereotype.Repository; 9 | 10 | import java.util.List; 11 | 12 | public interface AdminDao { 13 | public Integer addAdmin(Admin d) ; 14 | public Integer updateAdmin(Admin d) ; 15 | public Integer deleteAdmin(Integer id) ; 16 | public List query() ; 17 | public Admin get(String username); 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/dao/AdminDaoDaoImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.dao; 2 | 3 | import com.example.dormitoryadmin.model.Admin; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.jdbc.core.BeanPropertyRowMapper; 6 | import org.springframework.jdbc.core.JdbcTemplate; 7 | import org.springframework.stereotype.Repository; 8 | 9 | import java.util.List; 10 | 11 | @Repository 12 | public class AdminDaoDaoImpl implements AdminDao { 13 | @Autowired 14 | JdbcTemplate jdbcTemplate; 15 | 16 | @Override 17 | public Integer addAdmin(Admin d) { 18 | return jdbcTemplate.update("INSERT INTO admin(username,password,issuper,sex,age,phone) values(?,?,?,?,?,?)", d.getUsername(), d.getPassword(), d.getIssuper(), d.getSex(), d.getAge(), d.getPhone()); 19 | } 20 | 21 | @Override 22 | public Integer updateAdmin(Admin d) { 23 | return jdbcTemplate.update("UPDATE admin set username=?, password=?, issuper=?,sex=? ,age=? , phone=? where id=?", d.getUsername(), d.getPassword(), d.getIssuper(), d.getSex(), d.getAge(), d.getPhone(), d.getId()); 24 | } 25 | 26 | @Override 27 | public Integer deleteAdmin(Integer id) { 28 | return jdbcTemplate.update("delete from admin where id=?", id); 29 | } 30 | 31 | @Override 32 | public List query() { 33 | return jdbcTemplate.query("select * from Admin", new BeanPropertyRowMapper(Admin.class)); 34 | } 35 | 36 | @Override 37 | public Admin get(String username) { 38 | return jdbcTemplate.queryForObject("select * from Admin where username=?", new BeanPropertyRowMapper(Admin.class), username); 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/dao/DormitoryDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.dao; 2 | 3 | import com.example.dormitoryadmin.model.Dormitory; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.jdbc.core.BeanPropertyRowMapper; 6 | import org.springframework.jdbc.core.JdbcTemplate; 7 | import org.springframework.stereotype.Repository; 8 | 9 | import java.util.List; 10 | 11 | public interface DormitoryDao { 12 | public Integer addDormitory(Dormitory d) ; 13 | public Integer updateDormitory(Dormitory d) ; 14 | public Integer deleteDormitory(Integer dormitoryid) ; 15 | public List query() ; 16 | public Dormitory get(String dormitoryid); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/dao/DormitoryDaoImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.dao; 2 | 3 | import com.example.dormitoryadmin.model.Dormitory; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.jdbc.core.BeanPropertyRowMapper; 6 | import org.springframework.jdbc.core.JdbcTemplate; 7 | import org.springframework.stereotype.Repository; 8 | 9 | import java.util.List; 10 | 11 | @Repository 12 | public class DormitoryDaoImpl implements DormitoryDao { 13 | @Autowired 14 | JdbcTemplate jdbcTemplate; 15 | 16 | @Override 17 | public Integer addDormitory(Dormitory d) { 18 | return jdbcTemplate.update("INSERT INTO dormitory(dormitoryid,floor,bed,price) values(?,?,?,?)", d.getDormitoryid(), d.getFloor(), d.getBed(), d.getPrice()); 19 | } 20 | 21 | @Override 22 | public Integer updateDormitory(Dormitory d) { 23 | return jdbcTemplate.update("UPDATE dormitory set dormitoryid=?, floor=?, bed=?,price=? where id=?", d.getDormitoryid(), d.getFloor(), d.getBed(), d.getPrice(), d.getId()); 24 | } 25 | 26 | @Override 27 | public Integer deleteDormitory(Integer id) { 28 | return jdbcTemplate.update("delete from dormitory where id=?", id); 29 | } 30 | 31 | @Override 32 | public List query() { 33 | return jdbcTemplate.query("select * from dormitory", new BeanPropertyRowMapper(Dormitory.class)); 34 | } 35 | 36 | @Override 37 | public Dormitory get(String dormitoryid) { 38 | return jdbcTemplate.queryForObject("select * from dormitory where dormitoryid=?", new BeanPropertyRowMapper(Dormitory.class), dormitoryid); 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/dao/RegisterDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.dao; 2 | 3 | import com.example.dormitoryadmin.model.Admin; 4 | import com.example.dormitoryadmin.model.Register; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.jdbc.core.BeanPropertyRowMapper; 7 | import org.springframework.jdbc.core.JdbcTemplate; 8 | import org.springframework.stereotype.Repository; 9 | 10 | import java.util.List; 11 | 12 | public interface RegisterDao { 13 | public Integer addRegister(Register d) ; 14 | public Integer updateRegister(Register d) ; 15 | public Integer deleteRegister(Integer id) ; 16 | public List query() ; 17 | public Register get(Integer id); 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/dao/RegisterDaoImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.dao; 2 | 3 | import com.example.dormitoryadmin.model.Register; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.jdbc.core.BeanPropertyRowMapper; 6 | import org.springframework.jdbc.core.JdbcTemplate; 7 | import org.springframework.stereotype.Repository; 8 | 9 | import java.util.List; 10 | 11 | @Repository 12 | public class RegisterDaoImpl implements RegisterDao { 13 | @Autowired 14 | JdbcTemplate jdbcTemplate; 15 | 16 | @Override 17 | public Integer addRegister(Register d) { 18 | return jdbcTemplate.update("INSERT INTO register(studentid,studentname,dormotoryid,grade,comeout,reason,runtime,phone) values(?,?,?,?,?,?,?,?)", d.getStudentid(), d.getStudentname(), d.getDormotoryid(), d.getGrade(), d.getComeout(), d.getReason(),d.getRuntime() ,d.getPhone()); 19 | } 20 | 21 | @Override 22 | public Integer updateRegister(Register d) { 23 | return jdbcTemplate.update("UPDATE register set studentid=?, studentname=?, dormotoryid=?, grade=?, comeout=?, reason=?, runtime=?,phone=?, isout=? where id=?", 24 | d.getStudentid(), d.getStudentname(), d.getDormotoryid(), d.getGrade(), d.getComeout(), d.getReason(),d.getRuntime(), d.getPhone(), d.getIsout(), d.getId()); 25 | } 26 | 27 | @Override 28 | public Integer deleteRegister(Integer id) { 29 | return jdbcTemplate.update("delete from register where id=?", id); 30 | } 31 | 32 | @Override 33 | public List query() { 34 | return jdbcTemplate.query("select * from register", new BeanPropertyRowMapper(Register.class)); 35 | } 36 | 37 | @Override 38 | public Register get(Integer id) { 39 | return jdbcTemplate.queryForObject("select * from Register where id=?", new BeanPropertyRowMapper(Register.class), id); 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/dao/StudentDao.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.dao; 2 | 3 | import com.example.dormitoryadmin.model.Student; 4 | 5 | import java.util.List; 6 | 7 | public interface StudentDao { 8 | public Integer addStudent(Student s) ; 9 | public Integer updateStudent(Student s) ; 10 | public Integer deleteStudent(Integer studentid) ; 11 | public List query() ; 12 | public Student get(Integer studentid); 13 | public List getAllstudent(String dormitory) ; 14 | } 15 | 16 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/dao/StudentDaoImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.dao; 2 | 3 | import com.example.dormitoryadmin.model.Student; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.jdbc.core.BeanPropertyRowMapper; 6 | import org.springframework.jdbc.core.JdbcTemplate; 7 | import org.springframework.stereotype.Repository; 8 | 9 | import java.util.List; 10 | 11 | @Repository 12 | public class StudentDaoImpl implements StudentDao { 13 | @Autowired 14 | JdbcTemplate jdbcTemplate; 15 | 16 | @Override 17 | public Integer addStudent(Student s) { 18 | return jdbcTemplate.update("INSERT INTO student(studentid,studentname,sex,age,department ,grade,phone,dormitory) values(?,?,?,?,?,?,?,?)", s.getStudentid(), s.getStudentname(), s.getSex(), s.getAge(), s.getDepartment(), s.getGrade(), s.getPhone(),s.getDormitory()); 19 | } 20 | 21 | @Override 22 | public Integer updateStudent(Student s) { 23 | return jdbcTemplate.update("UPDATE student set studentid=?, studentname=?,sex=?, age=?,department=?, grade=?, phone=? ,dormitory=? where id=?", s.getStudentid(), s.getStudentname(), s.getSex(), s.getAge(), s.getDepartment(), s.getGrade(), s.getPhone(),s.getDormitory(), s.getId()); 24 | } 25 | 26 | @Override 27 | public Integer deleteStudent(Integer id) { 28 | return jdbcTemplate.update("delete from student where id=?", id); 29 | } 30 | 31 | @Override 32 | public List query() { 33 | return jdbcTemplate.query("select * from student", new BeanPropertyRowMapper(Student.class)); 34 | } 35 | 36 | @Override 37 | public Student get(Integer studentid) { 38 | return jdbcTemplate.queryForObject("select * from student where studentid=?", new BeanPropertyRowMapper(Student.class), studentid); 39 | } 40 | 41 | @Override 42 | public List getAllstudent(String dormitory) { 43 | return jdbcTemplate.query("select * from student where dormitory=?", new BeanPropertyRowMapper(Student.class),dormitory); 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/model/Admin.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.model; 2 | 3 | public class Admin { 4 | private Integer id; 5 | private String username;//用户名 6 | private String password; //密码 7 | private Integer issuper; //是否为超级管理员 1是 0不是 8 | private String sex; //性别 9 | private Integer age; //年龄 10 | private String phone; //联系方式 11 | 12 | public Admin(){} 13 | 14 | public Admin(String username, String password){ 15 | this.username = username; 16 | this.password = password; 17 | } 18 | 19 | public Integer getId() { 20 | return id; 21 | } 22 | 23 | public void setId(Integer id) { 24 | this.id = id; 25 | } 26 | 27 | public String getUsername() { 28 | return username; 29 | } 30 | 31 | public void setUsername(String username) { 32 | this.username = username; 33 | } 34 | 35 | public String getPassword() { 36 | return password; 37 | } 38 | 39 | public void setPassword(String password) { 40 | this.password = password; 41 | } 42 | 43 | public Integer getIssuper() { 44 | return issuper; 45 | } 46 | 47 | public void setIssuper(Integer issuper) { 48 | this.issuper = issuper; 49 | } 50 | 51 | public String getSex() { 52 | return sex; 53 | } 54 | 55 | public void setSex(String sex) { 56 | this.sex = sex; 57 | } 58 | 59 | public Integer getAge() { 60 | return age; 61 | } 62 | 63 | public void setAge(Integer age) { 64 | this.age = age; 65 | } 66 | 67 | 68 | public String getPhone() {return phone;} 69 | 70 | public void setPhone(String phone) {this.phone = phone;} 71 | 72 | } 73 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/model/Dormitory.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.model; 2 | 3 | public class Dormitory { 4 | private Integer id; 5 | private String dormitoryid; 6 | private Integer floor; //层数 7 | private Integer bed; //床位 8 | private Integer price; //价格 9 | 10 | public Integer getId() { 11 | return id; 12 | } 13 | 14 | public void setId(Integer id) { 15 | this.id = id; 16 | } 17 | public String getDormitoryid() { 18 | return dormitoryid; 19 | } 20 | public void setDormitoryid(String dormitoryid) { 21 | this.dormitoryid = dormitoryid; 22 | } 23 | public Integer getFloor() { 24 | return floor; 25 | } 26 | public void setFloor(Integer floor) { 27 | this.floor = floor; 28 | } 29 | 30 | public Integer getBed() { 31 | return bed; 32 | } 33 | public void setBed(Integer bed) { 34 | this.bed = bed; 35 | } 36 | public Integer getPrice() { 37 | return price; 38 | } 39 | public void setPrice(Integer price) { 40 | this.price = price; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/model/Register.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.model; 2 | 3 | import javax.xml.crypto.Data; 4 | 5 | public class Register { 6 | private Integer id; 7 | private String studentid;//学号 8 | private String studentname;//姓名 9 | private String dormotoryid; //宿舍 10 | private String grade; //班级 11 | private Integer comeout; //出入 1为出 0为入 12 | private String reason; //理由 13 | private String runtime; //时间 14 | private String phone; //联系方式 15 | private Integer isout; //是否返回 1返回 0未返回 16 | 17 | public Integer getId() { 18 | return id; 19 | } 20 | 21 | public void setId(Integer id) { 22 | this.id = id; 23 | } 24 | 25 | public String getStudentid() { 26 | return studentid; 27 | } 28 | 29 | public void setStudentid(String studentid) { 30 | this.studentid = studentid; 31 | } 32 | 33 | public String getStudentname() { 34 | return studentname; 35 | } 36 | 37 | public void setStudentname(String studentname) { 38 | this.studentname = studentname; 39 | } 40 | 41 | public String getDormotoryid() { 42 | return dormotoryid; 43 | } 44 | 45 | public void setDormotoryid(String dormotoryid) { 46 | this.dormotoryid = dormotoryid; 47 | } 48 | 49 | public String getGrade() { 50 | return grade; 51 | } 52 | 53 | public void setGrade(String grade) { 54 | this.grade = grade; 55 | } 56 | 57 | public Integer getComeout() {return comeout;} 58 | 59 | public void setComeout(Integer comeout) { 60 | this.comeout = comeout; 61 | } 62 | 63 | public String getReason() {return reason;} 64 | 65 | public void setReason(String reason) {this.reason = reason;} 66 | 67 | public String getRuntime() {return runtime;} 68 | 69 | public void setRuntime(String runtime) { 70 | this.runtime = runtime; 71 | } 72 | 73 | public String getPhone() {return phone;} 74 | 75 | public void setPhone(String phone) {this.phone = phone;} 76 | 77 | public Integer getIsout() {return isout;} 78 | 79 | public void setIsout(Integer isout) { 80 | this.isout = isout; 81 | } 82 | } 83 | 84 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/model/Student.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.model; 2 | 3 | public class Student { 4 | private Integer id; 5 | private Integer studentid; 6 | private String studentname; 7 | private String sex; 8 | private Integer age; 9 | private String department; 10 | private String grade; //班级 11 | private String phone; 12 | private String dormitory; 13 | 14 | public Integer getId() { 15 | return id; 16 | } 17 | 18 | public void setId(Integer id) { 19 | this.id = id; 20 | } 21 | 22 | public Integer getStudentid() { 23 | return studentid; 24 | } 25 | 26 | public void setStudentid(Integer studentid) { 27 | this.studentid = studentid; 28 | } 29 | 30 | public String getStudentname() { 31 | return studentname; 32 | } 33 | 34 | public void setStudentname(String studentname) { 35 | this.studentname = studentname; 36 | } 37 | 38 | public String getSex() { 39 | return sex; 40 | } 41 | 42 | public void setSex(String sex) { 43 | this.sex = sex; 44 | } 45 | 46 | public Integer getAge() { 47 | return age; 48 | } 49 | 50 | public void setAge(Integer age) { 51 | this.age = age; 52 | } 53 | 54 | public String getDepartment() {return department;} 55 | 56 | public void setDepartment(String department) { 57 | this.department = department; 58 | } 59 | 60 | public String getGrade() {return grade;} 61 | 62 | public void setGrade(String grade) { 63 | this.grade = grade; 64 | } 65 | 66 | public String getPhone() {return phone;} 67 | 68 | public void setPhone(String phone) {this.phone = phone;} 69 | 70 | public String getDormitory() {return dormitory;} 71 | 72 | public void setDormitory(String dormitory) {this.dormitory = dormitory;} 73 | } -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/service/AdminService.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.service; 2 | 3 | import com.example.dormitoryadmin.dao.AdminDao; 4 | import com.example.dormitoryadmin.dao.DormitoryDao; 5 | import com.example.dormitoryadmin.dao.StudentDao; 6 | import com.example.dormitoryadmin.model.Admin; 7 | import com.example.dormitoryadmin.model.Dormitory; 8 | import com.example.dormitoryadmin.model.Student; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.stereotype.Service; 11 | import org.springframework.transaction.annotation.Transactional; 12 | 13 | import java.util.List; 14 | 15 | public interface AdminService { 16 | public Integer addAdmin(Admin d) ; 17 | public Integer updateAdmin(Admin d) ; 18 | public Integer deleteAdmin(Integer id) ; 19 | public List query() ; 20 | public Admin get(String username); 21 | boolean login(Admin admin); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/service/AdminServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.service; 2 | 3 | import com.example.dormitoryadmin.dao.AdminDao; 4 | import com.example.dormitoryadmin.model.Admin; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | import org.springframework.transaction.annotation.Transactional; 8 | 9 | import java.util.List; 10 | 11 | @Service 12 | @Transactional 13 | public class AdminServiceImpl implements AdminService { 14 | @Autowired 15 | AdminDao admindao; 16 | 17 | @Override 18 | public Integer addAdmin(Admin d) { 19 | return admindao.addAdmin(d); 20 | } 21 | 22 | @Override 23 | public Integer updateAdmin(Admin d) { 24 | return admindao.updateAdmin(d); 25 | } 26 | 27 | @Override 28 | public Integer deleteAdmin(Integer id) { 29 | return admindao.deleteAdmin(id); 30 | } 31 | 32 | @Override 33 | public List query() { 34 | return admindao.query(); 35 | } 36 | 37 | @Override 38 | public Admin get(String username) { 39 | return admindao.get(username); 40 | } 41 | 42 | 43 | @Override 44 | public boolean login(Admin admin) { 45 | // 用输入信息查询数据库是否有匹配的用户 46 | Admin foundAdmin = admindao.get(admin.getUsername()); 47 | // 判断是否有该用户 48 | if (foundAdmin == null) { 49 | return false; 50 | } 51 | // 判断密码是否正确 52 | if (!foundAdmin.getPassword().equals(admin.getPassword())) { 53 | return false; 54 | } 55 | // 返回可以登录的信息 56 | return true; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/service/DormitoryService.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.service; 2 | 3 | import com.example.dormitoryadmin.dao.DormitoryDao; 4 | import com.example.dormitoryadmin.model.Dormitory; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | import org.springframework.transaction.annotation.Transactional; 8 | 9 | import java.util.List; 10 | 11 | public interface DormitoryService { 12 | public Integer addDormitory(Dormitory d) ; 13 | public Integer updateDormitory(Dormitory d) ; 14 | public Integer deleteDormitory(Integer dormitoryid) ; 15 | public List query() ; 16 | public Dormitory get(String dormitoryid); 17 | } 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/service/DormitoryServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.service; 2 | 3 | import com.example.dormitoryadmin.dao.DormitoryDao; 4 | import com.example.dormitoryadmin.dao.StudentDao; 5 | import com.example.dormitoryadmin.model.Dormitory; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | import org.springframework.transaction.annotation.Transactional; 9 | 10 | import java.util.List; 11 | 12 | @Service 13 | @Transactional 14 | public class DormitoryServiceImpl implements DormitoryService { 15 | @Autowired 16 | DormitoryDao dormitorydao; 17 | StudentDao studentdao; 18 | 19 | @Override 20 | public Integer addDormitory(Dormitory d) { 21 | return dormitorydao.addDormitory(d); 22 | } 23 | 24 | @Override 25 | public Integer updateDormitory(Dormitory d) { 26 | return dormitorydao.updateDormitory(d); 27 | } 28 | 29 | @Override 30 | public Integer deleteDormitory(Integer id) { 31 | return dormitorydao.deleteDormitory(id); 32 | } 33 | 34 | @Override 35 | public List query() { 36 | return dormitorydao.query(); 37 | } 38 | 39 | @Override 40 | public Dormitory get(String dormitoryid) { 41 | return dormitorydao.get(dormitoryid); 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/service/PageUtil.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.service; 2 | 3 | import com.example.dormitoryadmin.model.Admin; 4 | import com.example.dormitoryadmin.model.Dormitory; 5 | import com.example.dormitoryadmin.model.Register; 6 | import com.example.dormitoryadmin.model.Student; 7 | 8 | import java.util.List; 9 | 10 | public class PageUtil { 11 | public static List getPersonsByPage(List list, int pageSize, int pageNo) { 12 | int totalCount = list.size(); 13 | int pageCount = 0; 14 | if (totalCount % pageSize == 0){ 15 | pageCount = totalCount/pageSize; 16 | } else { 17 | pageCount = totalCount/pageSize + 1; 18 | } 19 | 20 | int fromIndex = 0; 21 | int toIndex = 0; 22 | if (pageNo == pageCount) { 23 | fromIndex = (pageNo - 1)*pageSize; 24 | toIndex = totalCount; 25 | } else { 26 | fromIndex = (pageNo - 1)*pageSize; 27 | toIndex = fromIndex + pageSize; 28 | } 29 | return list.subList(fromIndex, toIndex); 30 | } 31 | 32 | 33 | public static List getDormitoryByPage(List list, int pageSize, int pageNo) { 34 | int totalCount = list.size(); 35 | int pageCount = 0; 36 | if (totalCount % pageSize == 0){ 37 | pageCount = totalCount/pageSize; 38 | } else { 39 | pageCount = totalCount/pageSize + 1; 40 | } 41 | 42 | int fromIndex = 0; 43 | int toIndex = 0; 44 | if (pageNo == pageCount) { 45 | fromIndex = (pageNo - 1)*pageSize; 46 | toIndex = totalCount; 47 | } else { 48 | fromIndex = (pageNo - 1)*pageSize; 49 | toIndex = fromIndex + pageSize; 50 | } 51 | return list.subList(fromIndex, toIndex); 52 | } 53 | //Register 54 | public static List getRegisterByPage(List list, int pageSize, int pageNo) { 55 | int totalCount = list.size(); 56 | int pageCount = 0; 57 | if (totalCount % pageSize == 0){ 58 | pageCount = totalCount/pageSize; 59 | } else { 60 | pageCount = totalCount/pageSize + 1; 61 | } 62 | 63 | int fromIndex = 0; 64 | int toIndex = 0; 65 | if (pageNo == pageCount) { 66 | fromIndex = (pageNo - 1)*pageSize; 67 | toIndex = totalCount; 68 | } else { 69 | fromIndex = (pageNo - 1)*pageSize; 70 | toIndex = fromIndex + pageSize; 71 | } 72 | return list.subList(fromIndex, toIndex); 73 | } 74 | 75 | // Admin 76 | public static List getAdminByPage(List list, int pageSize, int pageNo) { 77 | int totalCount = list.size(); 78 | int pageCount = 0; 79 | if (totalCount % pageSize == 0){ 80 | pageCount = totalCount/pageSize; 81 | } else { 82 | pageCount = totalCount/pageSize + 1; 83 | } 84 | 85 | int fromIndex = 0; 86 | int toIndex = 0; 87 | if (pageNo == pageCount) { 88 | fromIndex = (pageNo - 1)*pageSize; 89 | toIndex = totalCount; 90 | } else { 91 | fromIndex = (pageNo - 1)*pageSize; 92 | toIndex = fromIndex + pageSize; 93 | } 94 | return list.subList(fromIndex, toIndex); 95 | } 96 | 97 | } -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/service/RegisterService.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.service; 2 | 3 | import com.example.dormitoryadmin.dao.DormitoryDao; 4 | import com.example.dormitoryadmin.dao.RegisterDao; 5 | import com.example.dormitoryadmin.model.Dormitory; 6 | import com.example.dormitoryadmin.model.Register; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | import org.springframework.transaction.annotation.Transactional; 10 | 11 | import java.util.List; 12 | 13 | public interface RegisterService { 14 | public Integer addRegister(Register d) ; 15 | public Integer updateRegister(Register d) ; 16 | public Integer deleteRegister(Integer id) ; 17 | public List query() ; 18 | public Register get(Integer id); 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/service/RegisterServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.service; 2 | 3 | import com.example.dormitoryadmin.dao.RegisterDao; 4 | import com.example.dormitoryadmin.model.Register; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | import org.springframework.transaction.annotation.Transactional; 8 | 9 | import java.util.List; 10 | 11 | @Service 12 | @Transactional 13 | public class RegisterServiceImpl implements RegisterService { 14 | @Autowired 15 | RegisterDao registerdao; 16 | 17 | @Override 18 | public Integer addRegister(Register d) { 19 | return registerdao.addRegister(d); 20 | } 21 | 22 | @Override 23 | public Integer updateRegister(Register d) { 24 | return registerdao.updateRegister(d); 25 | } 26 | 27 | @Override 28 | public Integer deleteRegister(Integer id) { 29 | return registerdao.deleteRegister(id); 30 | } 31 | 32 | @Override 33 | public List query() { 34 | return registerdao.query(); 35 | } 36 | 37 | @Override 38 | public Register get(Integer id) { 39 | return registerdao.get(id); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/service/StudentService.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.service; 2 | 3 | import com.example.dormitoryadmin.dao.StudentDao; 4 | import com.example.dormitoryadmin.model.Student; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | import org.springframework.transaction.annotation.Transactional; 8 | 9 | import java.util.List; 10 | 11 | public interface StudentService { 12 | public Integer addStudent(Student s) ; 13 | public Integer updateStudent(Student s) ; 14 | public Integer deleteStudent(Integer studentid) ; 15 | public List query() ; 16 | public Student get(Integer studentid); 17 | public List getAllstudent(String dormitory) ; 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/main/java/com/example/dormitoryadmin/service/StudentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin.service; 2 | 3 | import com.example.dormitoryadmin.dao.StudentDao; 4 | import com.example.dormitoryadmin.model.Student; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | import org.springframework.transaction.annotation.Transactional; 8 | 9 | import java.util.List; 10 | 11 | @Service 12 | @Transactional 13 | public class StudentServiceImpl implements StudentService { 14 | @Autowired 15 | StudentDao studentdao; 16 | 17 | @Override 18 | public Integer addStudent(Student s) { 19 | return studentdao.addStudent(s); 20 | } 21 | 22 | @Override 23 | public Integer updateStudent(Student s) { 24 | return studentdao.updateStudent(s); 25 | } 26 | 27 | @Override 28 | public Integer deleteStudent(Integer id) { 29 | return studentdao.deleteStudent(id); 30 | } 31 | 32 | @Override 33 | public List query() { 34 | return studentdao.query(); 35 | } 36 | 37 | @Override 38 | public Student get(Integer studentid) { 39 | return studentdao.get(studentid); 40 | } 41 | 42 | @Override 43 | public List getAllstudent(String dormitory) { 44 | return studentdao.getAllstudent(dormitory); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | 2 | spring: 3 | datasource: 4 | username: root 5 | password: 12345678 6 | url: jdbc:mysql://localhost:3306/mydb 7 | driver-class-name: com.mysql.cj.jdbc.Driver -------------------------------------------------------------------------------- /src/main/resources/static/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/.DS_Store -------------------------------------------------------------------------------- /src/main/resources/static/admin-admin-add.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 | 21 |
22 |
23 |
24 |
25 | 26 |
27 | 28 |
29 |
30 |
31 | 32 |
33 | 34 |
35 |
36 |
37 | 38 |
39 | 44 |
45 |
46 |
47 | 48 |
49 | 53 |
54 |
55 |
56 | 57 |
58 | 59 |
60 |
61 |
62 | 63 |
64 | 65 |
66 |
67 |
68 |
69 | 70 | 71 |
72 |
73 |
74 |
75 |
76 | 99 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /src/main/resources/static/admin-admin-del.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 | 21 |
22 |
23 |
24 |
25 | 26 |
27 | 28 |
29 |
30 |
31 |
32 | 33 | 34 |
35 |
36 |
37 |
38 |
39 | 63 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /src/main/resources/static/admin-admin-get.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 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 |
id用户名管理员类型性别年龄联系方式
51 |
52 |
53 | 88 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /src/main/resources/static/admin-admin-update.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 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 | 50 |
51 |
52 |
53 | 54 |
55 | 59 |
60 |
61 |
62 | 63 |
64 | 65 |
66 |
67 |
68 | 69 |
70 | 71 |
72 |
73 |
74 |
75 | 76 | 77 |
78 |
79 |
80 |
81 |
82 | 106 | 112 | 113 | 114 | -------------------------------------------------------------------------------- /src/main/resources/static/admin-admin.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 首页 22 | 管理员管理 23 | 24 | 管理员管理 25 | 26 | 27 | 28 | 29 |
30 |
31 |
32 |
33 |
34 |
35 | 37 | 39 | 41 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 |
id用户名管理员类型性别年龄联系方式
57 |
58 |
59 |
60 |
61 |
62 |
63 | 64 | 65 | 66 | 124 | 130 | 131 | -------------------------------------------------------------------------------- /src/main/resources/static/admin-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 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 |
id用户名管理员类型性别年龄联系方式
49 |
50 |
51 |
52 |
53 |
54 | 55 | 56 | 57 | 89 | 90 | 105 | 106 | 112 | 113 | -------------------------------------------------------------------------------- /src/main/resources/static/css/font.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'iconfont'; 3 | src: url('../fonts/iconfont.eot'); 4 | src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'), 5 | url('../fonts/iconfont.woff') format('woff'), 6 | url('../fonts/iconfont.ttf') format('truetype'), 7 | url('../fonts/iconfont.svg#iconfont') format('svg'); 8 | } 9 | .iconfont{ 10 | font-family:"iconfont" !important; 11 | font-size:16px;font-style:normal; 12 | -webkit-font-smoothing: antialiased; 13 | -webkit-text-stroke-width: 0.2px; 14 | -moz-osx-font-smoothing: grayscale; 15 | } 16 | 17 | -------------------------------------------------------------------------------- /src/main/resources/static/css/login.css: -------------------------------------------------------------------------------- 1 | /* 2 | * @Author: xuebingsi 3 | * @Date: 2019-04-01 13:37:17 4 | * @Last Modified by: zhibinm 5 | * @Last Modified time: 2019-04-01 13:37:19 6 | */ 7 | .login-bg{ 8 | /*background: #eeeeee url() 0 0 no-repeat;*/ 9 | background:url(../images/bg.png) no-repeat center; 10 | background-size: cover; 11 | overflow: hidden; 12 | } 13 | .login{ 14 | margin: 120px auto 0 auto; 15 | min-height: 420px; 16 | max-width: 420px; 17 | padding: 40px; 18 | background-color: #ffffff; 19 | margin-left: auto; 20 | margin-right: auto; 21 | border-radius: 4px; 22 | /* overflow-x: hidden; */ 23 | box-sizing: border-box; 24 | } 25 | .login a.logo{ 26 | display: block; 27 | height: 58px; 28 | width: 167px; 29 | margin: 0 auto 30px auto; 30 | background-size: 167px 42px; 31 | } 32 | .login .message { 33 | margin: 10px 0 0 -58px; 34 | padding: 18px 10px 18px 60px; 35 | background: #189F92; 36 | position: relative; 37 | color: #fff; 38 | font-size: 16px; 39 | } 40 | .login #darkbannerwrap { 41 | background: url(../images/aiwrap.png); 42 | width: 18px; 43 | height: 10px; 44 | margin: 0 0 20px -58px; 45 | position: relative; 46 | } 47 | 48 | .login input[type=text], 49 | .login input[type=file], 50 | .login input[type=password], 51 | .login input[type=email], select { 52 | border: 1px solid #DCDEE0; 53 | vertical-align: middle; 54 | border-radius: 3px; 55 | height: 50px; 56 | padding: 0px 16px; 57 | font-size: 14px; 58 | color: #555555; 59 | outline:none; 60 | width:100%; 61 | box-sizing: border-box; 62 | } 63 | .login input[type=text]:focus, 64 | .login input[type=file]:focus, 65 | .login input[type=password]:focus, 66 | .login input[type=email]:focus, select:focus { 67 | border: 1px solid #27A9E3; 68 | } 69 | .login input[type=submit], 70 | .login input[type=button]{ 71 | display: inline-block; 72 | vertical-align: middle; 73 | padding: 12px 24px; 74 | margin: 0px; 75 | font-size: 18px; 76 | line-height: 24px; 77 | text-align: center; 78 | white-space: nowrap; 79 | vertical-align: middle; 80 | cursor: pointer; 81 | color: #ffffff; 82 | background-color: #189F92; 83 | border-radius: 3px; 84 | border: none; 85 | -webkit-appearance: none; 86 | outline:none; 87 | width:100%; 88 | } 89 | .login hr { 90 | background: #fff url() 0 0 no-repeat; 91 | } 92 | .login hr.hr15 { 93 | height: 15px; 94 | border: none; 95 | margin: 0px; 96 | padding: 0px; 97 | width: 100%; 98 | } 99 | .login hr.hr20 { 100 | height: 20px; 101 | border: none; 102 | margin: 0px; 103 | padding: 0px; 104 | width: 100%; 105 | } -------------------------------------------------------------------------------- /src/main/resources/static/css/theme1.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background:#F2F1F2; 3 | } 4 | .container{ 5 | background:#1A1B20; 6 | } 7 | .left-nav{ 8 | background:#1A1B20; 9 | } 10 | 11 | .left-nav a{ 12 | color:rgba(255,255,255,.7); 13 | } 14 | ..left-nav a.active{ 15 | background: #009688 !important; 16 | color: #fff; 17 | } 18 | .left-nav a:hover{ 19 | background: #009688 !important; 20 | color: #fff; 21 | } -------------------------------------------------------------------------------- /src/main/resources/static/css/theme2.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background:#EEF5F9; 3 | } 4 | .container{ 5 | background:#323640; 6 | } 7 | .left-nav{ 8 | background:#fff; 9 | } 10 | 11 | .left-nav a{ 12 | color:#686a76; 13 | } 14 | .left-nav a.active{ 15 | background: #786AED !important; 16 | color: #fff; 17 | } 18 | .left-nav a:hover{ 19 | background: #786AED !important; 20 | color: #fff; 21 | } 22 | -------------------------------------------------------------------------------- /src/main/resources/static/css/theme3.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background:#E8E8E8; 3 | } 4 | .container{ 5 | background:#F34743; 6 | } 7 | 8 | .left-nav{ 9 | background:#F4F4F4; 10 | } 11 | 12 | .left-nav a{ 13 | color:#686a76; 14 | } 15 | .left-nav a.active{ 16 | background: #FEFEFE !important; 17 | color: #F34743; 18 | } 19 | .left-nav a:hover{ 20 | background: #FEFEFE !important; 21 | color: #F34743; 22 | } -------------------------------------------------------------------------------- /src/main/resources/static/css/theme4.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background:#E4E4E4; 3 | } 4 | .container{ 5 | background:#019587; 6 | } 7 | .left-nav{ 8 | background:#263035; 9 | } 10 | 11 | .left-nav a{ 12 | color:#fff; 13 | } 14 | .left-nav a.active{ 15 | background: #212525 !important; 16 | color: #fff !important; 17 | } 18 | .left-nav a:hover{ 19 | background: #212525 !important; 20 | color: #fff !important; 21 | } -------------------------------------------------------------------------------- /src/main/resources/static/css/theme5.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background:#EEF5F9 !important; 3 | } 4 | .container{ 5 | background:linear-gradient(to left, #7b4397, #2196f3); 6 | } 7 | 8 | .left-nav{ 9 | background:#fff !important; 10 | } 11 | 12 | .left-nav a{ 13 | color:#686a76 !important; 14 | } 15 | .left-nav a.active{ 16 | background: linear-gradient(to left, #7c8ce4, #2196f3) !important; 17 | color: #fff !important; 18 | border-color: #7b4397 !important; 19 | } 20 | .left-nav a:hover{ 21 | background: linear-gradient(to left, #7c8ce4, #2196f3) !important; 22 | color: #fff !important; 23 | border-color: #7b4397 !important; 24 | } 25 | .container .logo a{ 26 | background: rgba(0,0,0,0) !important; 27 | } -------------------------------------------------------------------------------- /src/main/resources/static/dormitory-admin-add.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 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 |
53 |
54 |
55 |
56 | 79 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /src/main/resources/static/dormitory-admin-del.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 | 21 |
22 |
23 |
24 |
25 | 26 |
27 | 28 |
29 |
30 |
31 |
32 | 33 | 34 |
35 |
36 |
37 |
38 |
39 | 62 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /src/main/resources/static/dormitory-admin-get.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 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 |
id宿舍号层数床位价格
49 |
50 |
51 | 82 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /src/main/resources/static/dormitory-admin-getstudentall.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 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 |
id学号姓名性别年龄学院班级联系方式宿舍
53 |
54 |
55 | 95 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /src/main/resources/static/dormitory-admin-update.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 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 |
53 |
54 | 55 | 56 |
57 |
58 | 59 |
60 |
61 | 84 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /src/main/resources/static/dormitory-admin.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 首页 22 | 宿舍管理 23 | 24 | 宿舍管理 25 | 26 | 27 | 28 | 29 |
30 |
31 |
32 |
33 |
34 |
35 | 37 | 39 | 41 | 43 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 |
id宿舍号层数床位价格
58 |
59 |
60 |
61 |
62 |
63 |
64 | 65 | 66 | 67 | 121 | 122 | 137 | 138 | 144 | 145 | -------------------------------------------------------------------------------- /src/main/resources/static/dormitory-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 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 |
id宿舍号层数床位价格
47 |
48 |
49 |
50 |
51 |
52 | 53 | 54 | 55 | 83 | 84 | 99 | 100 | 106 | 107 | -------------------------------------------------------------------------------- /src/main/resources/static/fonts/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/fonts/iconfont.eot -------------------------------------------------------------------------------- /src/main/resources/static/fonts/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/fonts/iconfont.ttf -------------------------------------------------------------------------------- /src/main/resources/static/fonts/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/fonts/iconfont.woff -------------------------------------------------------------------------------- /src/main/resources/static/images/aiwrap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/images/aiwrap.png -------------------------------------------------------------------------------- /src/main/resources/static/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/images/bg.png -------------------------------------------------------------------------------- /src/main/resources/static/lib/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/.DS_Store -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/.DS_Store -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/font/iconfont.eot -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/font/iconfont.woff -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/0.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/1.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/10.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/11.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/12.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/13.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/14.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/15.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/16.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/17.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/18.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/19.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/2.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/20.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/21.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/22.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/23.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/24.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/25.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/26.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/27.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/28.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/29.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/3.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/30.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/31.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/32.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/33.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/34.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/35.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/36.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/37.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/38.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/39.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/4.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/40.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/41.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/42.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/43.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/44.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/45.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/46.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/47.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/48.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/49.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/5.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/50.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/51.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/52.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/53.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/54.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/55.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/56.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/57.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/58.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/59.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/6.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/60.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/61.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/62.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/63.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/64.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/65.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/66.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/67.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/68.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/69.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/7.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/70.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/71.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/8.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeanl/dormitory-admin/156eb3f6e829bfc9cc3a9b999efc94302c30fd06/src/main/resources/static/lib/layui/images/face/9.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/lay/modules/carousel.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['",'"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['
    ',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("")}),i.join("")}(),"
"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a/g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
  1. '+o.replace(/[\r\t\n]+/g,"
  2. ")+"
"),c.find(">.layui-code-h3")[0]||c.prepend('

'+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/lay/modules/flow.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="加载更多",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)}); -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/lay/modules/laypage.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?''+a.prev+"":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push(''+(a.first||1)+"");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r2&&e.push('');r<=u;r++)r===a.curr?e.push('"+r+""):e.push(''+r+"");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1…'),0!==t&&e.push(''+(a.last||a.pages)+"")),e.join("")}(),next:function(){return a.next?''+a.next+"":""}(),count:'共 '+a.count+" 条",limit:function(){var e=['"}(),refresh:['','',""].join(""),skip:function(){return['到第','','页',""].join("")}()};return['
',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"
"].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;oi.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){a.target=a.srcElement,t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)}); -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/lay/modules/laytpl.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)}); -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/lay/modules/rate.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var a=layui.jquery,i={config:{},index:layui.rate?layui.rate.index+1e4:0,set:function(e){var i=this;return i.config=a.extend({},i.config,e),i},on:function(e,a){return layui.onevent.call(this,n,e,a)}},l=function(){var e=this,a=e.config;return{setvalue:function(a){e.setvalue.call(e,a)},config:a}},n="rate",t="layui-rate",o="layui-icon-rate",s="layui-icon-rate-solid",u="layui-icon-rate-half",r="layui-icon-rate-solid layui-icon-rate-half",c="layui-icon-rate-solid layui-icon-rate",f="layui-icon-rate layui-icon-rate-half",v=function(e){var l=this;l.index=++i.index,l.config=a.extend({},l.config,i.config,e),l.render()};v.prototype.config={length:5,text:!1,readonly:!1,half:!1,value:0,theme:""},v.prototype.render=function(){var e=this,i=e.config,l=i.theme?'style="color: '+i.theme+';"':"";i.elem=a(i.elem),parseInt(i.value)!==i.value&&(i.half||(i.value=Math.ceil(i.value)-i.value<.5?Math.ceil(i.value):Math.floor(i.value)));for(var n='
    ",u=1;u<=i.length;u++){var r='
  • ";i.half&&parseInt(i.value)!==i.value&&u==Math.ceil(i.value)?n=n+'
  • ":n+=r}n+="
"+(i.text?''+i.value+"星":"")+"";var c=i.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemTemp=a(n),i.span=e.elemTemp.next("span"),i.setText&&i.setText(i.value),c.html(e.elemTemp),c.addClass("layui-inline"),i.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,i=a.config;i.value=e,a.render()},v.prototype.action=function(){var e=this,i=e.config,l=e.elemTemp,n=l.find("i").width();l.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(i.value=t,i.half){var o=e.pageX-a(this).offset().left;o<=n/2&&(i.value=i.value-.5)}i.text&&l.next("span").text(i.value+"星"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),v.on("mousemove",function(e){if(l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+t+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half){var c=e.pageX-a(this).offset().left;c<=n/2&&v.children("i").addClass(u).removeClass(s)}}),v.on("mouseleave",function(){l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+Math.floor(i.value)+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half&&parseInt(i.value)!==i.value&&l.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(u).removeClass(c)})})},v.prototype.events=function(){var e=this;e.config},i.render=function(e){var a=new v(e);return l.call(a)},e(n,i)}); -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/lay/modules/tree.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var o=layui.$,a=layui.hint(),i="layui-tree-enter",r=function(e){this.options=e},t={arrow:["",""],checkbox:["",""],radio:["",""],branch:["",""],leaf:""};r.prototype.init=function(e){var o=this;e.addClass("layui-box layui-tree"),o.options.skin&&e.addClass("layui-tree-skin-"+o.options.skin),o.tree(e),o.on(e)},r.prototype.tree=function(e,a){var i=this,r=i.options,n=a||r.nodes;layui.each(n,function(a,n){var l=n.children&&n.children.length>0,c=o('
    '),s=o(["
  • ",function(){return l?''+(n.spread?t.arrow[1]:t.arrow[0])+"":""}(),function(){return r.check?''+("checkbox"===r.check?t.checkbox[0]:"radio"===r.check?t.radio[0]:"")+"":""}(),function(){return'"+(''+(l?n.spread?t.branch[1]:t.branch[0]:t.leaf)+"")+(""+(n.name||"未命名")+"")}(),"
  • "].join(""));l&&(s.append(c),i.tree(c,n.children)),e.append(s),"function"==typeof r.click&&i.click(s,n),i.spread(s,n),r.drag&&i.drag(s,n)})},r.prototype.click=function(e,o){var a=this,i=a.options;e.children("a").on("click",function(e){layui.stope(e),i.click(o)})},r.prototype.spread=function(e,o){var a=this,i=(a.options,e.children(".layui-tree-spread")),r=e.children("ul"),n=e.children("a"),l=function(){e.data("spread")?(e.data("spread",null),r.removeClass("layui-show"),i.html(t.arrow[0]),n.find(".layui-icon").html(t.branch[0])):(e.data("spread",!0),r.addClass("layui-show"),i.html(t.arrow[1]),n.find(".layui-icon").html(t.branch[1]))};r[0]&&(i.on("click",l),n.on("dblclick",l))},r.prototype.on=function(e){var a=this,r=a.options,t="layui-tree-drag";e.find("i").on("selectstart",function(e){return!1}),r.drag&&o(document).on("mousemove",function(e){var i=a.move;if(i.from){var r=(i.to,o('
    '));e.preventDefault(),o("."+t)[0]||o("body").append(r);var n=o("."+t)[0]?o("."+t):r;n.addClass("layui-show").html(i.from.elem.children("a").html()),n.css({left:e.pageX+10,top:e.pageY+10})}}).on("mouseup",function(){var e=a.move;e.from&&(e.from.elem.children("a").removeClass(i),e.to&&e.to.elem.children("a").removeClass(i),a.move={},o("."+t).remove())})},r.prototype.move={},r.prototype.drag=function(e,a){var r=this,t=(r.options,e.children("a")),n=function(){var t=o(this),n=r.move;n.from&&(n.to={item:a,elem:e},t.addClass(i))};t.on("mousedown",function(){var o=r.move;o.from={item:a,elem:e}}),t.on("mouseenter",n).on("mousemove",n).on("mouseleave",function(){var e=o(this),a=r.move;a.from&&(delete a.to,e.removeClass(i))})},e("tree",function(e){var i=new r(e=e||{}),t=o(e.elem);return t[0]?void i.init(t):a.error("layui.tree 没有找到"+e.elem+"元素")})}); -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/lay/modules/upload.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;layui.define("layer",function(e){"use strict";var i=layui.$,t=layui.layer,n=layui.hint(),a=layui.device(),o={config:{},set:function(e){var t=this;return t.config=i.extend({},t.config,e),t},on:function(e,i){return layui.onevent.call(this,r,e,i)}},l=function(){var e=this;return{upload:function(i){e.upload.call(e,i)},config:e.config}},r="upload",u="layui-upload-file",c="layui-upload-form",f="layui-upload-iframe",s="layui-upload-choose",p=function(e){var t=this;t.config=i.extend({},t.config,o.config,e),t.render()};p.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},p.prototype.render=function(e){var t=this,e=t.config;e.elem=i(e.elem),e.bindAction=i(e.bindAction),t.file(),t.events()},p.prototype.file=function(){var e=this,t=e.config,n=e.elemFile=i(['"].join("")),o=t.elem.next();(o.hasClass(u)||o.hasClass(c))&&o.remove(),a.ie&&a.ie<10&&t.elem.wrap('
    '),e.isFile()?(e.elemFile=t.elem,t.field=t.elem[0].name):t.elem.after(n),a.ie&&a.ie<10&&e.initIE()},p.prototype.initIE=function(){var e=this,t=e.config,n=i(''),a=i(['
    ',"
    "].join(""));i("#"+f)[0]||i("body").append(n),t.elem.next().hasClass(c)||(e.elemFile.wrap(a),t.elem.next("."+c).append(function(){var e=[];return layui.each(t.data,function(i,t){t="function"==typeof t?t():t,e.push('')}),e.join("")}()))},p.prototype.msg=function(e){return t.msg(e,{icon:2,shift:6})},p.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},p.prototype.preview=function(e){var i=this;window.FileReader&&layui.each(i.chooseFiles,function(i,t){var n=new FileReader;n.readAsDataURL(t),n.onload=function(){e&&e(i,t,this.result)}})},p.prototype.upload=function(e,t){var n,o=this,l=o.config,r=o.elemFile[0],u=function(){var t=0,n=0,a=e||o.files||o.chooseFiles||r.files,u=function(){l.multiple&&t+n===o.fileLength&&"function"==typeof l.allDone&&l.allDone({total:o.fileLength,successful:t,aborted:n})};layui.each(a,function(e,a){var r=new FormData;r.append(l.field,a),layui.each(l.data,function(e,i){i="function"==typeof i?i():i,r.append(e,i)}),i.ajax({url:l.url,type:"post",data:r,contentType:!1,processData:!1,dataType:"json",headers:l.headers||{},success:function(i){t++,d(e,i),u()},error:function(){n++,o.msg("请求上传接口出现异常"),m(e),u()}})})},c=function(){var e=i("#"+f);o.elemFile.parent().submit(),clearInterval(p.timer),p.timer=setInterval(function(){var i,t=e.contents().find("body");try{i=t.text()}catch(n){o.msg("获取上传后的响应信息出现异常"),clearInterval(p.timer),m()}i&&(clearInterval(p.timer),t.html(""),d(0,i))},30)},d=function(e,i){if(o.elemFile.next("."+s).remove(),r.value="","object"!=typeof i)try{i=JSON.parse(i)}catch(t){return i={},o.msg("请对上传接口返回有效JSON")}"function"==typeof l.done&&l.done(i,e||0,function(e){o.upload(e)})},m=function(e){l.auto&&(r.value=""),"function"==typeof l.error&&l.error(e||0,function(e){o.upload(e)})},h=l.exts,v=function(){var i=[];return layui.each(e||o.chooseFiles,function(e,t){i.push(t.name)}),i}(),g={preview:function(e){o.preview(e)},upload:function(e,i){var t={};t[e]=i,o.upload(t)},pushFile:function(){return o.files=o.files||{},layui.each(o.chooseFiles,function(e,i){o.files[e]=i}),o.files},resetFile:function(e,i,t){var n=new File([i],t);o.files=o.files||{},o.files[e]=n}},y=function(){if("choose"!==t&&!l.auto||(l.choose&&l.choose(g),"choose"!==t))return l.before&&l.before(g),a.ie?a.ie>9?u():c():void u()};if(v=0===v.length?r.value.match(/[^\/\\]+\..+/g)||[]||"":v,0!==v.length){switch(l.accept){case"file":if(h&&!RegExp("\\w\\.("+h+")$","i").test(escape(v)))return o.msg("选择的文件中包含不支持的格式"),r.value="";break;case"video":if(!RegExp("\\w\\.("+(h||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return o.msg("选择的视频中包含不支持的格式"),r.value="";break;case"audio":if(!RegExp("\\w\\.("+(h||"mp3|wav|mid")+")$","i").test(escape(v)))return o.msg("选择的音频中包含不支持的格式"),r.value="";break;default:if(layui.each(v,function(e,i){RegExp("\\w\\.("+(h||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(i))||(n=!0)}),n)return o.msg("选择的图片中包含不支持的格式"),r.value=""}if(o.fileLength=function(){var i=0,t=e||o.files||o.chooseFiles||r.files;return layui.each(t,function(){i++}),i}(),l.number&&o.fileLength>l.number)return o.msg("同时最多只能上传的数量为:"+l.number);if(l.size>0&&!(a.ie&&a.ie<10)){var F;if(layui.each(o.chooseFiles,function(e,i){if(i.size>1024*l.size){var t=l.size/1024;t=t>=1?t.toFixed(2)+"MB":l.size+"KB",r.value="",F=t}}),F)return o.msg("文件不能超过"+F)}y()}},p.prototype.events=function(){var e=this,t=e.config,o=function(i){e.chooseFiles={},layui.each(i,function(i,t){var n=(new Date).getTime();e.chooseFiles[n+"-"+i]=t})},l=function(i,n){var a=e.elemFile,o=i.length>1?i.length+"个文件":(i[0]||{}).name||a[0].value.match(/[^\/\\]+\..+/g)||[]||"";a.next().hasClass(s)&&a.next().remove(),e.upload(null,"choose"),e.isFile()||t.choose||a.after(''+o+"")};t.elem.off("upload.start").on("upload.start",function(){var a=i(this),o=a.attr("lay-data");if(o)try{o=new Function("return "+o)(),e.config=i.extend({},t,o)}catch(l){n.error("Upload element property lay-data configuration item has a syntax error: "+o)}e.config.item=a,e.elemFile[0].click()}),a.ie&&a.ie<10||t.elem.off("upload.over").on("upload.over",function(){var e=i(this);e.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var e=i(this);e.removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(n,a){var r=i(this),u=a.originalEvent.dataTransfer.files||[];r.removeAttr("lay-over"),o(u),t.auto?e.upload(u):l(u)}),e.elemFile.off("upload.change").on("upload.change",function(){var i=this.files||[];o(i),t.auto?e.upload():l(i)}),t.bindAction.off("upload.action").on("upload.action",function(){e.upload()}),t.elem.data("haveEvents")||(e.elemFile.on("change",function(){i(this).trigger("upload.change")}),t.elem.on("click",function(){e.isFile()||i(this).trigger("upload.start")}),t.drag&&t.elem.on("dragover",function(e){e.preventDefault(),i(this).trigger("upload.over")}).on("dragleave",function(e){i(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),i(this).trigger("upload.drop",e)}),t.bindAction.on("click",function(){i(this).trigger("upload.action")}),t.elem.data("haveEvents",!0))},o.render=function(e){var i=new p(e);return l.call(i)},e(r,o)}); -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/lay/modules/util.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(t){"use strict";var e=layui.$,i={fixbar:function(t){var i,a,n="layui-fixbar",r="layui-fixbar-top",o=e(document),l=e("body");t=e.extend({showHeight:200},t),t.bar1=t.bar1===!0?"":t.bar1,t.bar2=t.bar2===!0?"":t.bar2,t.bgcolor=t.bgcolor?"background-color:"+t.bgcolor:"";var c=[t.bar1,t.bar2,""],g=e(['
      ',t.bar1?'
    • '+c[0]+"
    • ":"",t.bar2?'
    • '+c[1]+"
    • ":"",'
    • '+c[2]+"
    • ","
    "].join("")),s=g.find("."+r),u=function(){var e=o.scrollTop();e>=t.showHeight?i||(s.show(),i=1):i&&(s.hide(),i=0)};e("."+n)[0]||("object"==typeof t.css&&g.css(t.css),l.append(g),u(),g.find("li").on("click",function(){var i=e(this),a=i.attr("lay-type");"top"===a&&e("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,a)}),o.on("scroll",function(){clearTimeout(a),a=setTimeout(function(){u()},100)}))},countdown:function(t,e,i){var a=this,n="function"==typeof e,r=new Date(t).getTime(),o=new Date(!e||n?(new Date).getTime():e).getTime(),l=r-o,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];n&&(i=e);var g=setTimeout(function(){a.countdown(t,o+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],e,g),l<=0&&clearTimeout(g),g},timeAgo:function(t,e){var i=this,a=[[],[]],n=(new Date).getTime()-new Date(t).getTime();return n>6912e5?(n=new Date(t),a[0][0]=i.digit(n.getFullYear(),4),a[0][1]=i.digit(n.getMonth()+1),a[0][2]=i.digit(n.getDate()),e||(a[1][0]=i.digit(n.getHours()),a[1][1]=i.digit(n.getMinutes()),a[1][2]=i.digit(n.getSeconds())),a[0].join("-")+" "+a[1].join(":")):n>=864e5?(n/1e3/60/60/24|0)+"天前":n>=36e5?(n/1e3/60/60|0)+"小时前":n>=12e4?(n/1e3/60|0)+"分钟前":n<0?"未来":"刚刚"},digit:function(t,e){var i="";t=String(t),e=e||2;for(var a=t.length;a/g,">").replace(/'/g,"'").replace(/"/g,""")}};!function(t,e,i){"$:nomunge";function a(){n=e[l](function(){r.each(function(){var e=t(this),i=e.width(),a=e.height(),n=t.data(this,g);(i!==n.w||a!==n.h)&&e.trigger(c,[n.w=i,n.h=a])}),a()},o[s])}var n,r=t([]),o=t.resize=t.extend(t.resize,{}),l="setTimeout",c="resize",g=c+"-special-event",s="delay",u="throttleWindow";o[s]=250,o[u]=!0,t.event.special[c]={setup:function(){if(!o[u]&&this[l])return!1;var e=t(this);r=r.add(e),t.data(this,g,{w:e.width(),h:e.height()}),1===r.length&&a()},teardown:function(){if(!o[u]&&this[l])return!1;var e=t(this);r=r.not(e),e.removeData(g),r.length||clearTimeout(n)},add:function(e){function a(e,a,r){var o=t(this),l=t.data(this,g)||{};l.w=a!==i?a:o.width(),l.h=r!==i?r:o.height(),n.apply(this,arguments)}if(!o[u]&&this[l])return!1;var n;return t.isFunction(e)?(n=e,a):(n=e.handler,void(e.handler=a))}}}(e,window),t("util",i)}); -------------------------------------------------------------------------------- /src/main/resources/static/lib/layui/layui.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;!function(e){"use strict";var t=document,o={modules:{},status:{},timeout:10,event:{}},n=function(){this.v="2.4.5"},r=function(){var e=t.currentScript?t.currentScript.src:function(){for(var e,o=t.scripts,n=o.length-1,r=n;r>0;r--)if("interactive"===o[r].readyState){e=o[r].src;break}return e||o[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),i=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},a="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),u={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",tree:"modules/tree",table:"modules/table",element:"modules/element",rate:"modules/rate",colorpicker:"modules/colorpicker",slider:"modules/slider",carousel:"modules/carousel",flow:"modules/flow",util:"modules/util",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};n.prototype.cache=o,n.prototype.define=function(e,t){var n=this,r="function"==typeof e,i=function(){var e=function(e,t){layui[e]=t,o.status[e]=!0};return"function"==typeof t&&t(function(n,r){e(n,r),o.callback[n]=function(){t(e)}}),this};return r&&(t=e,e=[]),layui["layui.all"]||!layui["layui.all"]&&layui["layui.mobile"]?i.call(n):(n.use(e,i),n)},n.prototype.use=function(e,n,l){function s(e,t){var n="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||n.test((e.currentTarget||e.srcElement).readyState))&&(o.modules[f]=t,d.removeChild(v),function r(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void(o.status[f]?c():setTimeout(r,4))}())}function c(){l.push(layui[f]),e.length>1?y.use(e.slice(1),n,l):"function"==typeof n&&n.apply(layui,l)}var y=this,p=o.dir=o.dir?o.dir:r,d=t.getElementsByTagName("head")[0];e="string"==typeof e?[e]:e,window.jQuery&&jQuery.fn.on&&(y.each(e,function(t,o){"jquery"===o&&e.splice(t,1)}),layui.jquery=layui.$=jQuery);var f=e[0],m=0;if(l=l||[],o.host=o.host||(p.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[f]||!layui["layui.all"]&&layui["layui.mobile"]&&u[f])return c(),y;if(o.modules[f])!function g(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void("string"==typeof o.modules[f]&&o.status[f]?c():setTimeout(g,4))}();else{var v=t.createElement("script"),h=(u[f]?p+"lay/":/^\{\/\}/.test(y.modules[f])?"":o.base||"")+(y.modules[f]||f)+".js";h=h.replace(/^\{\/\}/,""),v.async=!0,v.charset="utf-8",v.src=h+function(){var e=o.version===!0?o.v||(new Date).getTime():o.version||"";return e?"?v="+e:""}(),d.appendChild(v),!v.attachEvent||v.attachEvent.toString&&v.attachEvent.toString().indexOf("[native code")<0||a?v.addEventListener("load",function(e){s(e,h)},!1):v.attachEvent("onreadystatechange",function(e){s(e,h)}),o.modules[f]=h}return y},n.prototype.getStyle=function(t,o){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](o)},n.prototype.link=function(e,n,r){var a=this,u=t.createElement("link"),l=t.getElementsByTagName("head")[0];"string"==typeof n&&(r=n);var s=(r||e).replace(/\.|\//g,""),c=u.id="layuicss-"+s,y=0;return u.rel="stylesheet",u.href=e+(o.debug?"?v="+(new Date).getTime():""),u.media="all",t.getElementById(c)||l.appendChild(u),"function"!=typeof n?a:(function p(){return++y>1e3*o.timeout/100?i(e+" timeout"):void(1989===parseInt(a.getStyle(t.getElementById(c),"width"))?function(){n()}():setTimeout(p,100))}(),a)},o.callback={},n.prototype.factory=function(e){if(layui[e])return"function"==typeof o.callback[e]?o.callback[e]:null},n.prototype.addcss=function(e,t,n){return layui.link(o.dir+"css/"+e,t,n)},n.prototype.img=function(e,t,o){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,"function"==typeof t&&t(n)},void(n.onerror=function(e){n.onerror=null,"function"==typeof o&&o(e)}))},n.prototype.config=function(e){e=e||{};for(var t in e)o[t]=e[t];return this},n.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),n.prototype.extend=function(e){var t=this;e=e||{};for(var o in e)t[o]||t.modules[o]?i("模块名 "+o+" 已被占用"):t.modules[o]=e[o];return t},n.prototype.router=function(e){var t=this,e=e||location.hash,o={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(e=e.replace(/^#\//,""),o.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),o.search[t[0]]=t[1]}():o.path.push(t)}),o):o},n.prototype.data=function(t,o,n){if(t=t||"layui",n=n||localStorage,e.JSON&&e.JSON.parse){if(null===o)return delete n[t];o="object"==typeof o?o:{key:o};try{var r=JSON.parse(n[t])}catch(i){var r={}}return"value"in o&&(r[o.key]=o.value),o.remove&&delete r[o.key],n[t]=JSON.stringify(r),o.key?r[o.key]:r}},n.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},n.prototype.device=function(t){var o=navigator.userAgent.toLowerCase(),n=function(e){var t=new RegExp(e+"/([^\\s\\_\\-]+)");return e=(o.match(t)||[])[1],e||!1},r={os:function(){return/windows/.test(o)?"windows":/linux/.test(o)?"linux":/iphone|ipod|ipad|ios/.test(o)?"ios":/mac/.test(o)?"mac":void 0}(),ie:function(){return!!(e.ActiveXObject||"ActiveXObject"in e)&&((o.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:n("micromessenger")};return t&&!r[t]&&(r[t]=n(t)),r.android=/android/.test(o),r.ios="ios"===r.os,r},n.prototype.hint=function(){return{error:i}},n.prototype.each=function(e,t){var o,n=this;if("function"!=typeof t)return n;if(e=e||[],e.constructor===Object){for(o in e)if(t.call(e[o],o,e[o]))break}else for(o=0;oi?1:r 2 | 3 | 4 | 5 | 欢迎页面-X-admin2.2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 17 | 18 | 19 |
    20 | 21 | 首页 22 | 关于本页 23 | 24 | 25 | 26 | 27 | 28 |
    29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/main/resources/static/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 后台登录-X-admin2.2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 | 21 | 22 | 35 | 36 | 58 | 59 | 69 | 70 | -------------------------------------------------------------------------------- /src/main/resources/static/register-admin-add.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 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 | 56 |
    57 |
    58 |
    59 | 60 |
    61 | 62 |
    63 |
    64 |
    65 | 66 |
    67 | 68 |
    69 |
    70 | 71 |
    72 | 73 |
    74 |
    75 |
    76 |
    77 | 78 | 79 |
    80 |
    81 |
    82 |
    83 |
    84 | 107 | 113 | 114 | 115 | -------------------------------------------------------------------------------- /src/main/resources/static/register-admin-del.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 | 21 |
    22 |
    23 |
    24 |
    25 | 26 |
    27 | 28 |
    29 |
    30 |
    31 |
    32 | 33 | 34 |
    35 |
    36 |
    37 |
    38 |
    39 | 62 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /src/main/resources/static/register-admin-get.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 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 | 53 |
    id学号姓名宿舍班级登记类型理由离校时间联系方式是否返回
    54 |
    55 |
    56 | 100 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /src/main/resources/static/register-admin-update.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 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 |
    53 | 54 |
    55 | 60 |
    61 |
    62 |
    63 | 64 |
    65 | 66 |
    67 |
    68 |
    69 | 70 |
    71 | 72 |
    73 |
    74 | 75 |
    76 | 77 |
    78 |
    79 |
    80 | 81 |
    82 | 87 |
    88 |
    89 |
    90 |
    91 | 92 | 93 |
    94 |
    95 | 96 |
    97 |
    98 | 121 | 127 | 128 | 129 | -------------------------------------------------------------------------------- /src/main/resources/static/student-admin-add.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 | 21 |
    22 |
    23 |
    24 |
    25 | 26 |
    27 | 28 |
    29 |
    30 |
    31 | 32 |
    33 | 34 |
    35 |
    36 |
    37 | 38 |
    39 | 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 | 78 |
    79 |
    80 |
    81 |
    82 |
    83 | 106 | 112 | 113 | 114 | -------------------------------------------------------------------------------- /src/main/resources/static/student-admin-del.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 | 21 |
    22 |
    23 |
    24 |
    25 | 26 |
    27 | 28 |
    29 |
    30 |
    31 |
    32 | 33 | 34 |
    35 |
    36 |
    37 |
    38 |
    39 | 62 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /src/main/resources/static/student-admin-get.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 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 |
    id学号姓名性别年龄学院班级联系方式宿舍
    53 |
    54 |
    55 | 92 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /src/main/resources/static/student-admin-update.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 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 | 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 | 78 |
    79 |
    80 |
    81 |
    82 | 83 | 84 |
    85 |
    86 |
    87 |
    88 |
    89 | 112 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /src/main/resources/static/student-admin.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
    20 | 21 | 首页 22 | 学生管理 23 | 24 | 学生管理 25 | 26 | 27 | 28 | 29 |
    30 |
    31 |
    32 |
    33 |
    34 |
    35 | 37 | 39 | 41 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 |
    id学号姓名性别年龄学院班级联系方式宿舍
    60 |
    61 |
    62 |
    63 |
    64 |
    65 |
    66 | 67 | 68 | 69 | 127 | 128 | 143 | 144 | 150 | 151 | -------------------------------------------------------------------------------- /src/main/resources/static/student-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 欢迎页面-X-admin2.2 7 | 8 | 9 | 10 | 11 | 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 | 51 |
    id学号姓名性别年龄学院班级联系方式宿舍
    52 |
    53 |
    54 |
    55 |
    56 |
    57 | 58 | 59 | 91 | 92 | 107 | 108 | 114 | 115 | -------------------------------------------------------------------------------- /src/main/resources/static/welcome.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 学生宿舍管理系统 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 18 | 19 | 20 |
    21 |
    22 |
    23 |
    24 |
    25 |
    欢迎管理员: 26 | test 27 |
    28 |
    29 |
    30 |
    31 |
    32 |
    33 |
    数据统计
    34 | 60 |
    61 |
    62 | 63 |
    64 |
    65 |
    66 | 67 | 97 | -------------------------------------------------------------------------------- /src/test/java/com/example/dormitoryadmin/DormitoryAdminApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.dormitoryadmin; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class DormitoryAdminApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | --------------------------------------------------------------------------------