——————————DescriptionStart——————————
运行环境 Java≥8、MySQL≥5.7、Tomcat≥8
开发工具 eclipse/idea/myeclipse/sts等均可配置运行
适用 课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
基于javaweb的SSM+Maven宿舍管理系统(java+ssm+jsp+js+bootstrap+layui+mysql)
项目介绍
基于SSM的宿舍管理系统(包含文档)
角色:管理员、宿舍管理员、学生
管理员功能: 1、管理通知类型、通知信息 2、管理院系信息、班级信息、宿舍楼信息、宿舍信息 3、添加宿管信息、学生信息 4、查看报修信息、来访人员信息、宿舍评分、缺勤信息
宿管功能:
1、查看通知 2、查看本宿舍楼的学生信息 3、来访人员信息、宿舍评分、缺勤信息 4、查看报修、回复报修
学生功能:
1、查看通知信息 2、报修、查看回复 4、查看来访人员信息、宿舍评分、缺勤信息
环境需要
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可 4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 5.是否Maven项目: 是;查看源码目录中是否包含pom.xml;若包含,则为maven项目,否则为非maven项目 6.数据库:MySql 5.7/8.0等版本均可;
技术栈
后台:SSM(Spring+SpringMVC+Mybatis) 前台:JSP+jQuery+bootstrap+layui
使用说明
使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,修改配置,运行项目; 3. 将项目中db.xml配置文件中的数据库配置改为自己的配置,然后运行;
——————————CodeStart——————————
1 2 3 4 5 6 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 @RestController @RequestMapping("/laifangdengji") public class LaifangdengjiController { @Autowired private LaifangdengjiService laifangdengjiService; @RequestMapping("/page") public R page (@RequestParam Map<String, Object> params,LaifangdengjiEntity laifangdengji, HttpServletRequest request) { EntityWrapper<LaifangdengjiEntity> ew = new EntityWrapper<LaifangdengjiEntity>(); PageUtils page = laifangdengjiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, laifangdengji), params), params)); request.setAttribute("data" , page); return R.ok().put("data" , page); } @IgnoreAuth @RequestMapping("/list") public R list (@RequestParam Map<String, Object> params,LaifangdengjiEntity laifangdengji, HttpServletRequest request) { EntityWrapper<LaifangdengjiEntity> ew = new EntityWrapper<LaifangdengjiEntity>(); PageUtils page = laifangdengjiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, laifangdengji), params), params)); request.setAttribute("data" , page);
1 2 3 4 5 6 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 52 53 54 } @IgnoreAuth @RequestMapping("/detail/{id}") public R detail (@PathVariable("id") Long id) { SushexinxiEntity sushexinxi = sushexinxiService.selectById(id); return R.ok().put("data" , sushexinxi); } @RequestMapping("/save") public R save (@RequestBody SushexinxiEntity sushexinxi, HttpServletRequest request) { sushexinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000 )).longValue()); sushexinxiService.insert(sushexinxi); return R.ok(); } @RequestMapping("/add") public R add (@RequestBody SushexinxiEntity sushexinxi, HttpServletRequest request) { sushexinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000 )).longValue()); sushexinxiService.insert(sushexinxi); return R.ok(); } @RequestMapping("/update") public R update (@RequestBody SushexinxiEntity sushexinxi, HttpServletRequest request) { sushexinxiService.updateById(sushexinxi); return R.ok(); } @RequestMapping("/delete")
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Wrapper<XueshengEntity> wrapper = new EntityWrapper<XueshengEntity>(); if (map.get("remindstart" )!=null ) { wrapper.ge(columnName, map.get("remindstart" )); } if (map.get("remindend" )!=null ) { wrapper.le(columnName, map.get("remindend" )); } int count = xueshengService.selectCount(wrapper); return R.ok().put("count" , count); } }
1 2 3 4 5 6 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 @RequestMapping("/lists") public R list ( SushexinxiEntity sushexinxi) { EntityWrapper<SushexinxiEntity> ew = new EntityWrapper<SushexinxiEntity>(); ew.allEq(MPUtil.allEQMapPre( sushexinxi, "sushexinxi" )); return R.ok().put("data" , sushexinxiService.selectListView(ew)); } @RequestMapping("/query") public R query (SushexinxiEntity sushexinxi) { EntityWrapper< SushexinxiEntity> ew = new EntityWrapper< SushexinxiEntity>(); ew.allEq(MPUtil.allEQMapPre( sushexinxi, "sushexinxi" )); SushexinxiView sushexinxiView = sushexinxiService.selectView(ew); return R.ok("查询宿舍信息成功" ).put("data" , sushexinxiView); } @RequestMapping("/info/{id}") public R info (@PathVariable("id") Long id) { SushexinxiEntity sushexinxi = sushexinxiService.selectById(id); return R.ok().put("data" , sushexinxi); } @IgnoreAuth @RequestMapping("/detail/{id}") public R detail (@PathVariable("id") Long id) { SushexinxiEntity sushexinxi = sushexinxiService.selectById(id); return R.ok().put("data" , sushexinxi); } @RequestMapping("/save") public R save (@RequestBody SushexinxiEntity sushexinxi, HttpServletRequest request) { sushexinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000 )).longValue());
1 2 3 4 5 6 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 52 public R query (TongzhigonggaoEntity tongzhigonggao) { EntityWrapper< TongzhigonggaoEntity> ew = new EntityWrapper< TongzhigonggaoEntity>(); ew.allEq(MPUtil.allEQMapPre( tongzhigonggao, "tongzhigonggao" )); TongzhigonggaoView tongzhigonggaoView = tongzhigonggaoService.selectView(ew); return R.ok("查询通知公告成功" ).put("data" , tongzhigonggaoView); } @RequestMapping("/info/{id}") public R info (@PathVariable("id") Long id) { TongzhigonggaoEntity tongzhigonggao = tongzhigonggaoService.selectById(id); return R.ok().put("data" , tongzhigonggao); } @IgnoreAuth @RequestMapping("/detail/{id}") public R detail (@PathVariable("id") Long id) { TongzhigonggaoEntity tongzhigonggao = tongzhigonggaoService.selectById(id); return R.ok().put("data" , tongzhigonggao); } @RequestMapping("/save") public R save (@RequestBody TongzhigonggaoEntity tongzhigonggao, HttpServletRequest request) { tongzhigonggao.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000 )).longValue()); tongzhigonggaoService.insert(tongzhigonggao); return R.ok(); } @RequestMapping("/add") public R add (@RequestBody TongzhigonggaoEntity tongzhigonggao, HttpServletRequest request) { tongzhigonggao.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000 )).longValue()); tongzhigonggaoService.insert(tongzhigonggao); return R.ok(); }
——————————PayStart——————————
项目链接: https://javayms.github.io?id=080023061907201at https://javayms.pages.dev?id=080023061907201at