基于javaweb的SpringBoot高校图书馆座位预约系统(java+springboot+maven+vue+elementui+mysql)

运行环境

Java≥8、MySQL≥5.7、Node.js≥14

开发工具

后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可

❗没学过node.js的不要搞前后端分离项目

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

501524072608

511524072608

521524072608

531524072608

541524072608

551524072608

561524072608

571524072608

581524072608

基于javaweb的SpringBoot高校图书馆座位预约系统(java+springboot+maven+vue+elementui+mysql)

本项目设计了一个基于Springboot+vue的前后端分离的高校图书馆座位预约系统,采用M(model)V(view)C(controller)三层体系结构,

通过Spring + SpringBoot + Mybatis +Vue+Maven+Layui+Elementui来实现。MySQL数据库作为系统数据储存平台,实现了基于B/S结构的Web系统。界面简洁,操作简单。

角色:管理员、学生、老师三种角色,分为前后台;

学生:用户系统,在系统首页可以查看首页,座位信息、交流论坛、公告信息、个人中心等内容

老师:老师登录系统后,可以对首页,个人中心,学生管理、座位信息管理、座位预约管理、签到信息管理、离开信息管理、座位暂离管理、举报信息管理、信用分管理、信用加分管理、信用减分管理等

管理员:管理员登录进入高校图书馆座位预约系统可以查看首页、个人中心、学生管理、教师管理、座位信息管理、座位预约管理、班级信息管理、签到信息管理、离开信息管理、座位暂离管理、举报信息管理、信用分管理、信用加分管理、信用减分管理、交流论坛、系统管理等内容

本文设计了一个基于Springboot+vue的前后端分离的高校图书馆座位预约系统,采用M(model)V(view)C(controller)三层体系结构,
通过Spring + SpringBoot + Mybatis +Vue+Maven+Layui+Elementui来实现。MySQL数据库作为系统数据储存平台,实现了基于B/S结构的Web系统。界面简洁,操作简单。

管理员:
admin 123456

学生:
学生1 123456
学生2 123456
学生3 123456
学生4 123456
学生5 123456
学生6 123456

教师:
教师1 123456
教师2 123456
教师3 123456
教师4 123456
教师5 123456
教师6 123456

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
				map.put("remindend", sdf.format(remindEndDate));
}
}

Wrapper<ZuoweixinxiEntity> wrapper = new EntityWrapper<ZuoweixinxiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}


int count = zuoweixinxiService.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
47
48
49
50
51
      return R.ok().put("data", jiaoshi);
}




/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody JiaoshiEntity jiaoshi, HttpServletRequest request){
jiaoshi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(jiaoshi);
JiaoshiEntity user = jiaoshiService.selectOne(new EntityWrapper<JiaoshiEntity>().eq("gonghao", jiaoshi.getGonghao()));
if(user!=null) {
return R.error("用户已存在");
}
jiaoshi.setId(new Date().getTime());
jiaoshiService.insert(jiaoshi);
return R.ok();
}

/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody JiaoshiEntity jiaoshi, HttpServletRequest request){
jiaoshi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(jiaoshi);
JiaoshiEntity user = jiaoshiService.selectOne(new EntityWrapper<JiaoshiEntity>().eq("gonghao", jiaoshi.getGonghao()));
if(user!=null) {
return R.error("用户已存在");
}
jiaoshi.setId(new Date().getTime());
jiaoshiService.insert(jiaoshi);
return R.ok();
}

/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody JiaoshiEntity jiaoshi, HttpServletRequest request){
//ValidatorUtils.validateEntity(jiaoshi);
jiaoshiService.updateById(jiaoshi);//全部更新
return R.ok();
}


/**
* 删除
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
        }
}
for (var i = 0; i < count; i++) {
tid = id_list[i];
if (toHide) {
document.getElementById('div_'+tid).style.display = 'none'
document.getElementById(tid).className = 'hiddenRow';
}
else {
document.getElementById(tid).className = '';
}
}
}


function showTestDetail(div_id){
var details_div = document.getElementById(div_id)
var displayState = details_div.style.display
// alert(displayState)
if (displayState != 'block' ) {
displayState = 'block'
details_div.style.display = 'block'
}
else {
details_div.style.display = 'none'
}
}


function html_escape(s) {
s = s.replace(/&/g,'&amp;');
s = s.replace(/</g,'&lt;');
s = s.replace(/>/g,'&gt;');
return s;
}

/* obsoleted by detail in <div>
function showOutput(id, name) {
var w = window.open("", //url
name,
"resizable,scrollbars,status,width=800,height=450");
d = w.document;
d.write("<pre>");
d.write(html_escape(output_list[id]));
d.write("\n");
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
   /**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
ForumEntity forum = forumService.selectById(id);
return R.ok().put("data", forum);
}

/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
ForumEntity forum = forumService.selectById(id);
return R.ok().put("data", forum);
}

/**
* 论坛详情
*/
@IgnoreAuth
@RequestMapping("/list/{id}")
public R list(@PathVariable("id") String id){
ForumEntity forum = forumService.selectById(id);
getChilds(forum);
return R.ok().put("data", forum);
}

private ForumEntity getChilds(ForumEntity forum) {
List<ForumEntity> childs = new ArrayList<ForumEntity>();
childs = forumService.selectList(new EntityWrapper<ForumEntity>().eq("parentid", forum.getId()));
if(childs == null || childs.size()==0) {
return null;
}
forum.setChilds(childs);
for(ForumEntity forumEntity : childs) {
getChilds(forumEntity);
}
return forum;
}



/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody ForumEntity forum, HttpServletRequest request){
forum.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(forum);
forum.setUserid((Long)request.getSession().getAttribute("userId"));
forumService.insert(forum);
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
  @RequestMapping("/lists")
public R list( ZuoweizanliEntity zuoweizanli){
EntityWrapper<ZuoweizanliEntity> ew = new EntityWrapper<ZuoweizanliEntity>();
ew.allEq(MPUtil.allEQMapPre( zuoweizanli, "zuoweizanli"));
return R.ok().put("data", zuoweizanliService.selectListView(ew));
}

/**
* 查询
*/
@RequestMapping("/query")
public R query(ZuoweizanliEntity zuoweizanli){
EntityWrapper< ZuoweizanliEntity> ew = new EntityWrapper< ZuoweizanliEntity>();
ew.allEq(MPUtil.allEQMapPre( zuoweizanli, "zuoweizanli"));
ZuoweizanliView zuoweizanliView = zuoweizanliService.selectView(ew);
return R.ok("查询座位暂离成功").put("data", zuoweizanliView);
}

/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
ZuoweizanliEntity zuoweizanli = zuoweizanliService.selectById(id);
return R.ok().put("data", zuoweizanli);
}

/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
ZuoweizanliEntity zuoweizanli = zuoweizanliService.selectById(id);
return R.ok().put("data", zuoweizanli);
}




/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody ZuoweizanliEntity zuoweizanli, HttpServletRequest request){
zuoweizanli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());


项目链接:
https://javayms.github.io?id=381524522608201pl
https://javayms.pages.dev?id=381524522608201pl