基于javaweb的SpringBoot平行志愿管理系统(java+springboot+maven+mybatis+vue+mysql)

运行环境

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

开发工具

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

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

适用

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

功能说明

400123042402

410123042402

430123042402

440123042402

450123042402

460123042402

基于javaweb的SpringBoot平行志愿管理系统(java+springboot+maven+mybatis+vue+mysql)

一、项目简述本系统功能包括: 系统管理,招生计划,学生管理,录取结果,自动分配,调剂管理等等。

二、项目运行 环境配置:

Jdk1.8 + Mysql + HBuilderX(Webstorm也行)+ Eclispe(IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持)。

项目技术:

Springboot + Maven + mybatis+ Vue 等等组成,B/S模式 + Maven管理等等。

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("/major")
public class MajorController {

@Autowired
private IMajorService majorService;

@RequestMapping("/getMajorPlan")
public JsonResponse getMajorPlan(){
return new JsonResponse(JsonResponse.OK, majorService.getMajorPlan(), null);
}

@RequestMapping("/updateMajorPlan")
public JsonResponse updateMajorPlan(String majorId, int count){
if (count < 0) return new JsonResponse(JsonResponse.INVALID_REQUEST, null, "输入数字不正确");
majorService.updateMajorPlan(majorId, count );
return new JsonResponse(JsonResponse.OK, null, null);
}

@RequestMapping("/getMajors")
public JsonResponse getMajors(){
return new JsonResponse(JsonResponse.OK, majorService.getMajors(), null);
}

@RequestMapping("/getMajorsByDepartment")
public JsonResponse getMajorsByDepartment(int departmentId){
return new JsonResponse(JsonResponse.OK, majorService.getMajorsByDepartment(departmentId), null);
}
}
package org.enroll.controller;


@RestController
@RequestMapping("/status")
public class StatusController {

@Autowired
private IStatusService statusService;


@RequestMapping("/getStatus")
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("/checkLogin")
public JsonResponse checkLogin(HttpSession session){
// if (session.equals(storage.get("authSession"))){
return new JsonResponse(JsonResponse.OK, null, "已登录");
// } else {
// return new JsonResponse(JsonResponse.AUTH_ERR, null, "未登录");
// }
}


@RequestMapping("/logout")
public JsonResponse logout(){
storage.remove("authSession");
return new JsonResponse(JsonResponse.OK, null, "注销成功");
}
}
package org.enroll.controller;


@RestController
@RequestMapping("/major")
public class MajorController {

@Autowired
private IMajorService majorService;

@RequestMapping("/getMajorPlan")
public JsonResponse getMajorPlan(){
return new JsonResponse(JsonResponse.OK, majorService.getMajorPlan(), null);
}

@RequestMapping("/updateMajorPlan")
public JsonResponse updateMajorPlan(String majorId, int count){
if (count < 0) return new JsonResponse(JsonResponse.INVALID_REQUEST, null, "输入数字不正确");
majorService.updateMajorPlan(majorId, count );
return new JsonResponse(JsonResponse.OK, null, null);
}

@RequestMapping("/getMajors")
public JsonResponse getMajors(){
return new JsonResponse(JsonResponse.OK, majorService.getMajors(), null);
}

@RequestMapping("/getMajorsByDepartment")
public JsonResponse getMajorsByDepartment(int departmentId){
return new JsonResponse(JsonResponse.OK, majorService.getMajorsByDepartment(departmentId), null);
}
}
package org.enroll.controller;
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
    IStudentService studentService;

@RequestMapping("/getStudentRaw")
public JsonResponse getStudentRaw(@RequestParam(required = false, defaultValue = "1") Integer currentPage){
if(currentPage == null || currentPage<=0)
return new JsonResponse(JsonResponse.INVALID_REQUEST,null, null);
return new JsonResponse(JsonResponse.OK, studentService.getStudentRaw(currentPage), null);
}

@RequestMapping("/getAdjustStudentRaw")
public JsonResponse getAdjustStudentRaw(@RequestParam(required = false, defaultValue = "1") int currentPage){
return new JsonResponse(JsonResponse.OK, studentService.getAdjustStudentRaw(currentPage), null);
}

@RequestMapping("/getExitStudentRaw")
public JsonResponse getExitStudentRaw(@RequestParam(required = false, defaultValue = "1") int currentPage){
return new JsonResponse(JsonResponse.OK, studentService.getExitStudentRaw(currentPage), null);
}

@RequestMapping("/doEnroll")
public JsonResponse doEnroll(){
studentService.doEnroll();
return new JsonResponse(JsonResponse.OK, null, null);
}

@RequestMapping("/doAdjust")
public JsonResponse doAdjust(){
studentService.doAdjust();
return new JsonResponse(JsonResponse.OK, null, null);
}


// StatisticsResult getResult(int currentPage, boolean desc);
@RequestMapping("/getResult")
public JsonResponse getResult(@RequestParam(required = false, defaultValue = "1") int currentPage,
@RequestParam(required = false, defaultValue = "false") boolean desc,
QueryResultOption option){
return new JsonResponse(JsonResponse.OK, studentService.getResult(currentPage, desc, option), null);
}
// StatisticsResult getResultByDepartment( int departmentId, int currentPage, boolean desc);
/**
* @description t通过学院、专业、排名查询已弃用,请使用上面的getResult
* @param null
* @return
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
    }
}
package org.enroll.controller;


@RestController
@RequestMapping("/status")
public class StatusController {

@Autowired
private IStatusService statusService;


@RequestMapping("/getStatus")
public JsonResponse getStatus(){
return new JsonResponse(JsonResponse.OK, statusService.getStatus(), null);
}


@RequestMapping("/getLogList")
public JsonResponse getLogList(){
return new JsonResponse(JsonResponse.OK, statusService.getLogList(), null);
}

@RequestMapping("/reset")
public JsonResponse reset() {
statusService.reset();
return new JsonResponse(JsonResponse.OK, null, null);
}
}
package org.enroll.interceptor;




@Component
public class LoginInterceptor implements HandlerInterceptor {


@Resource(name = "globalStorage")
Map<String, Object> storage;

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("/getResult")
public JsonResponse getResult(@RequestParam(required = false, defaultValue = "1") int currentPage,
@RequestParam(required = false, defaultValue = "false") boolean desc,
QueryResultOption option){
return new JsonResponse(JsonResponse.OK, studentService.getResult(currentPage, desc, option), null);
}
// StatisticsResult getResultByDepartment( int departmentId, int currentPage, boolean desc);
/**
* @description t通过学院、专业、排名查询已弃用,请使用上面的getResult
* @param null
* @return
* @throws
*/
@RequestMapping("/getResultByDepartment")
@Deprecated
public JsonResponse getResultByDepartment(int departmentId, @RequestParam(required = false, defaultValue = "1") int currentPage, @RequestParam(required = false, defaultValue = "false") boolean desc){
return new JsonResponse(JsonResponse.OK, studentService.getResultByDepartment(departmentId, currentPage, desc), null);
}
// StatisticsResult getResultByMajor( String majorId, int currentPage, boolean desc);
@RequestMapping("/getResultByMajor")
@Deprecated
public JsonResponse getResultByMajor(String majorId, @RequestParam(required = false, defaultValue = "1") int currentPage, @RequestParam(required = false, defaultValue = "false") boolean desc){
return new JsonResponse(JsonResponse.OK, studentService.getResultByMajor(majorId, currentPage, desc), null);
}

@RequestMapping("/searchStudent")
@Deprecated
public JsonResponse searchStudent(@RequestParam(required = false, defaultValue = "1") int currentPage,String keyword){
return new JsonResponse(JsonResponse.OK, studentService.searchStudent(currentPage,keyword), null);
}


@RequestMapping("/searchStudentByCandidate")
public JsonResponse searchStudentByCandidate(@RequestParam(required = false, defaultValue = "1") int currentPage,String keyword){
return new JsonResponse(JsonResponse.OK, studentService.searchStudentByCandidate(currentPage,keyword), null);
}

@RequestMapping("/getStudentBeforeRank")
public JsonResponse getStudentBeforeRank(@RequestParam(required = false, defaultValue = "1") int currentPage, int rank){
return new JsonResponse(JsonResponse.OK, studentService.getStudentBeforeRank(currentPage, rank), null);
}


@RequestMapping("/getStatisticsResult")
public JsonResponse getStatisticsResult(){
return new JsonResponse(JsonResponse.OK, studentService.getStatisticsResult(), null);
}
// List<Map<String, Object>> getResultInDepartment(int departmentId);
@RequestMapping("/getStatisticsResultInDepartment")


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