基于javaweb的SpringBoot课程排课系统(java+springboot+vue+maven+mysql)

运行环境

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

开发工具

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

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

适用

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

功能说明

491324560701

511324560701

521324560701

531324560701

541324560701

551324560701

基于javaweb的SpringBoot课程排课系统(java+springboot+vue+maven+mysql)

项目介绍

课程排课系统,该系统分两种角色:管理员与普通用户;

主要功能包括: 排课管理、教师管理、教室管理、课程管理、菜单管理、角色管理、用户管理;

环境需要

1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。

2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;

4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;

5.是否Maven项目: 是;查看源码目录中是否包含pom.xml;若包含,则为maven项目,否则为非maven项目

6.数据库:MySql 8.0版本;

技术栈 1.java+SpringBoot+VUE+maven+Mysql

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
            return CommonResult.success("新增成功!");
}
return CommonResult.error("新增失败!");
}

//编辑
@PutMapping
public CommonResult<String> edit(@RequestBody Menu menu) {
menu.setUpdateTime(new Date());
boolean save = menuService.updateById(menu);
if (save) {
return CommonResult.success("编辑成功!");
}
return CommonResult.error("编辑失败!");
}

//删除
@DeleteMapping("/{menuId}")
public CommonResult<String> deleteMenu(@PathVariable("menuId") Long menuId) {
menuService.deleteMenu(menuId);
return CommonResult.success("删除成功!");
}

//列表
@GetMapping("/list")
public CommonResult<List<Menu>> getList(){
List<Menu> list = menuService.getList();
return CommonResult.success("查询成功",list);
}

//上级菜单树数据
@GetMapping("/parent")
public CommonResult< List<Menu>> getParentList(){
List<Menu> list = menuService.parentList();
return CommonResult.success("查询成功",list);
}
}


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
     * @param courseParam
* @return
*/
@GetMapping("/list")
public CommonResult<IPage<Course>> getList(CourseParam courseParam){
//构造分页对象
IPage<Course> page = new Page<>();
page.setCurrent(courseParam.getCurrentPage());
page.setSize(courseParam.getPageSize());
//构造查询条件
QueryWrapper<Course> query = new QueryWrapper<>();
if(StringUtils.isNotEmpty(courseParam.getCourseName())){
query.lambda().like(Course::getCourseName,courseParam.getCourseName());
}
if(StringUtils.isNotEmpty(courseParam.getCourseType())){
query.lambda().eq(Course::getCourseType,courseParam.getCourseType());
}
//查询
IPage<Course> list = courseService.page(page, query);
return CommonResult.success("查询成功",list);
}
}



@RestController
@RequestMapping("/api/role")
public class RoleController {
@Autowired
private RoleService roleService;
@Autowired
private RoleMenuService roleMenuService;

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
    } 

//列表
@GetMapping("/list")
public CommonResult<List<Menu>> getList(){
List<Menu> list = menuService.getList();
return CommonResult.success("查询成功",list);
}

//上级菜单树数据
@GetMapping("/parent")
public CommonResult< List<Menu>> getParentList(){
List<Menu> list = menuService.parentList();
return CommonResult.success("查询成功",list);
}
}



/**
*/
@RestController
@RequestMapping("/api/classroom")
public class ClassRoomController {
@Autowired
private ClassRoomService classRoomService;


@PostMapping
public CommonResult<String> add(@RequestBody ClassRoom classRoom){
boolean save = classRoomService.save(classRoom);
if(save){
return CommonResult.success("新增成功!");
}
return CommonResult.error("新增失败!");
}

@PutMapping
public CommonResult<String> edit(@RequestBody ClassRoom classRoom){
boolean save = classRoomService.updateById(classRoom);
if(save){
return CommonResult.success("编辑成功!");
}
return CommonResult.error("编辑失败!");
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
}



/**
*/
@RestController
@RequestMapping("/api/classroom")
public class ClassRoomController {
@Autowired
private ClassRoomService classRoomService;


@PostMapping
public CommonResult<String> add(@RequestBody ClassRoom classRoom){
boolean save = classRoomService.save(classRoom);
if(save){
return CommonResult.success("新增成功!");
}
return CommonResult.error("新增失败!");
}

@PutMapping
public CommonResult<String> edit(@RequestBody ClassRoom classRoom){
boolean save = classRoomService.updateById(classRoom);
if(save){
return CommonResult.success("编辑成功!");
}
return CommonResult.error("编辑失败!");
}

@DeleteMapping("/{roomId}")
public CommonResult<String> delete(@PathVariable("roomId") Long roomId){
boolean b = classRoomService.removeById(roomId);
if(b){
return CommonResult.success("删除成功!");
}
return CommonResult.error("删除失败!");
}


@GetMapping("/list")
public CommonResult<IPage<ClassRoom>> getList(ListParam listParam){
IPage<ClassRoom> list = classRoomService.getList(listParam);
return CommonResult.success("查询成功",list);
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
        return CommonResult.success("查询成功", selectOptions);
}
//根据id查询用户信息
@GetMapping("/getUser")
public CommonResult<User> getUserById(Long userId){
User user = userService.getById(userId);
//查角色id
QueryWrapper<UserRole> query = new QueryWrapper<>();
query.lambda().eq(UserRole::getUserId,userId);
UserRole one = userRoleService.getOne(query);
user.setRoleId(one.getRoleId());
return CommonResult.success("查询成功",user);
}
}



@RestController
@RequestMapping("/api/login")
public class LoginController {
@Autowired
private JwtUtils jwtUtils;
@Autowired
private UserService userService;
@Autowired
private MenuService menuService;
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
    public CommonResult<IPage<Course>> getList(CourseParam courseParam){
//构造分页对象
IPage<Course> page = new Page<>();
page.setCurrent(courseParam.getCurrentPage());
page.setSize(courseParam.getPageSize());
//构造查询条件
QueryWrapper<Course> query = new QueryWrapper<>();
if(StringUtils.isNotEmpty(courseParam.getCourseName())){
query.lambda().like(Course::getCourseName,courseParam.getCourseName());
}
if(StringUtils.isNotEmpty(courseParam.getCourseType())){
query.lambda().eq(Course::getCourseType,courseParam.getCourseType());
}
//查询
IPage<Course> list = courseService.page(page, query);
return CommonResult.success("查询成功",list);
}
}



@RestController
@RequestMapping("/api/role")
public class RoleController {
@Autowired
private RoleService roleService;
@Autowired
private RoleMenuService roleMenuService;

//新增
@PostMapping
public CommonResult<String> add(@RequestBody Role role){


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