——————————DescriptionStart——————————
运行环境
Java≥8、MySQL≥5.7、Node.js≥14
开发工具
后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可
❗没学过node.js的不要搞前后端分离项目
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明









基于javaweb的SpringBoot自习室预约系统(java+springboot+maven+vue+elementui+layui+mysql)
项目介绍
基于springboot vue自习室预约系统
角色:管理员、用户
本系统有管理员;首页、个人中心、学生管理、公告信息管理、座位预订管理、自习室管理、留言板管理、系统管理登功能 学生;首页、个人中心、座位预订管理、留言板管理,前台首页;首页、公告信息、自习室、留言反馈、个人中心、后台管理、客服等功能。
环境需要
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 4.数据库:MySql 5.7/8.0版本均可; 5.是否Maven项目:是;
技术栈
后端:SpringBoot+Mybaits
前端:layui+Vue+ELementUI
使用说明
项目运行: 1. 使用Navicat或者其它工具,在mysql中创建对应sql文件名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,导入成功后请执行maven clean;maven install命令,然后运行; 3. 将项目中application.yml配置文件中的数据库配置改为自己的配置; 4. 运行项目,控制台提示运行成功后再去运行前端项目; 5. 管理员用户名密码:admin/admin 普通用户名密码:user/123456
文档介绍(项目设计目标与原因、系统流程分析、架构设计、系统体系结构、数据库表设计、系统实现、管理员登陆、管理员功能模块、座位预定管理、自习室管理、留言板管理、学生管理、公告信息管理、轮播图管理、学生功能模块、作为预定管理、留言板管理、前台首页功能模块、系统测试、测试目的、测试方法):
自习室预订系统首页详情介绍:
自习室详情介绍:
自习室位置预定:
公告信息管理详情:
个人中心详情介绍:
后台学生管理控制层:
后台管理个人中心详情:
——————————CodeStart——————————
1 2 3 4 5 6 7 8 9 10 11 12
|
}
@RestController public class CommonController{
|
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
| }
@RequestMapping("/sh/{tableName}") public R sh(@PathVariable("tableName") String tableName, @RequestBody Map<String, Object> map) { map.put("table", tableName); commonService.sh(map); return R.ok(); }
@IgnoreAuth @RequestMapping("/remind/{tableName}/{columnName}/{type}") public R remindCount(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName, @PathVariable("type") String type,@RequestParam Map<String, Object> map) { map.put("table", tableName); map.put("column", columnName); map.put("type", type); if(type.equals("2")) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Calendar c = Calendar.getInstance(); Date remindStartDate = null; Date remindEndDate = null; if(map.get("remindstart")!=null) { Integer remindStart = Integer.parseInt(map.get("remindstart").toString()); c.setTime(new Date()); c.add(Calendar.DAY_OF_MONTH,remindStart); remindStartDate = c.getTime(); map.put("remindstart", sdf.format(remindStartDate)); } if(map.get("remindend")!=null) { Integer remindEnd = Integer.parseInt(map.get("remindend").toString()); c.setTime(new Date()); c.add(Calendar.DAY_OF_MONTH,remindEnd); remindEndDate = c.getTime(); map.put("remindend", sdf.format(remindEndDate));
|
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
| return R.ok().put("data", page); }
@RequestMapping("/list") public R list(@RequestParam Map<String, Object> params,XueshengEntity xuesheng, HttpServletRequest request){ EntityWrapper<XueshengEntity> ew = new EntityWrapper<XueshengEntity>(); PageUtils page = xueshengService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, xuesheng), params), params)); return R.ok().put("data", page); }
@RequestMapping("/lists") public R list( XueshengEntity xuesheng){ EntityWrapper<XueshengEntity> ew = new EntityWrapper<XueshengEntity>(); ew.allEq(MPUtil.allEQMapPre( xuesheng, "xuesheng")); return R.ok().put("data", xueshengService.selectListView(ew)); }
@RequestMapping("/query") public R query(XueshengEntity xuesheng){ EntityWrapper< XueshengEntity> ew = new EntityWrapper< XueshengEntity>(); ew.allEq(MPUtil.allEQMapPre( xuesheng, "xuesheng")); XueshengView xueshengView = xueshengService.selectView(ew); return R.ok("查询学生成功").put("data", xueshengView); }
@RequestMapping("/info/{id}") public R info(@PathVariable("id") Long id){ XueshengEntity xuesheng = xueshengService.selectById(id); return R.ok().put("data", xuesheng); }
@RequestMapping("/detail/{id}") public R detail(@PathVariable("id") Long id){ XueshengEntity xuesheng = xueshengService.selectById(id); return R.ok().put("data", xuesheng); }
|
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
|
@RequestMapping("/page") public R page(@RequestParam Map<String, Object> params,ZixishiEntity zixishi, HttpServletRequest request){ EntityWrapper<ZixishiEntity> ew = new EntityWrapper<ZixishiEntity>(); PageUtils page = zixishiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zixishi), params), params));
return R.ok().put("data", page); }
@IgnoreAuth @RequestMapping("/list") public R list(@RequestParam Map<String, Object> params,ZixishiEntity zixishi, HttpServletRequest request){ EntityWrapper<ZixishiEntity> ew = new EntityWrapper<ZixishiEntity>(); PageUtils page = zixishiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zixishi), params), params)); return R.ok().put("data", page); }
@RequestMapping("/lists") public R list( ZixishiEntity zixishi){ EntityWrapper<ZixishiEntity> ew = new EntityWrapper<ZixishiEntity>(); ew.allEq(MPUtil.allEQMapPre( zixishi, "zixishi")); return R.ok().put("data", zixishiService.selectListView(ew)); }
@RequestMapping("/query") public R query(ZixishiEntity zixishi){ EntityWrapper< ZixishiEntity> ew = new EntityWrapper< ZixishiEntity>(); ew.allEq(MPUtil.allEQMapPre( zixishi, "zixishi")); ZixishiView zixishiView = zixishiService.selectView(ew); return R.ok("查询自习室成功").put("data", zixishiView); }
@RequestMapping("/info/{id}")
|
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
| gonggaoxinxiService.insert(gonggaoxinxi); return R.ok(); }
@RequestMapping("/add") public R add(@RequestBody GonggaoxinxiEntity gonggaoxinxi, HttpServletRequest request){ gonggaoxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue()); gonggaoxinxiService.insert(gonggaoxinxi); return R.ok(); }
@RequestMapping("/update") public R update(@RequestBody GonggaoxinxiEntity gonggaoxinxi, HttpServletRequest request){ gonggaoxinxiService.updateById(gonggaoxinxi); return R.ok(); }
@RequestMapping("/delete") public R delete(@RequestBody Long[] ids){ gonggaoxinxiService.deleteBatchIds(Arrays.asList(ids)); return R.ok(); }
@RequestMapping("/remind/{columnName}/{type}") public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, @PathVariable("type") String type,@RequestParam Map<String, Object> map) { map.put("column", columnName); map.put("type", type); if(type.equals("2")) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Calendar c = Calendar.getInstance(); Date remindStartDate = null; Date remindEndDate = null; if(map.get("remindstart")!=null) { Integer remindStart = Integer.parseInt(map.get("remindstart").toString()); c.setTime(new Date());
|
——————————PayStart——————————
项目链接:
https://javayms.github.io?id=201524190701201kd
https://javayms.pages.dev?id=201524190701201kd