当前位置:网站首页>Educational administration management system (free source code)
Educational administration management system (free source code)
2022-07-01 05:34:00 【Code garden of Azhou】
Project introduction
This system uses springboot,mybatis-plus,shiro,lombok Technology , Use json To transfer data Use salt encryption to save data , The front page uses vue Set up and package in static In the folder Use token Save the current user , When the user logs in , No need to log in again for a while , But only one role information is saved , namely : When using root After the login , Reuse student Sign in , be root The user has no permission .
Built in users :
Student
user name :student
password :student
Teachers'
user name :teacher
password :teacher
Academic affairs
user name :admin
password :admin
System administrator
user name :root
password :root
Operation mode
clone
function BackApplication.java
Enter url :http://127.0.0.1:8080/login
function
College Management
Personnel management
Course selection management
Performance management
History course inquiry
wait
role
Student
Teachers'
Academic affairs
System administrator
jurisdiction
Student
Course selection related
Course selection
The drop
Course selection results
History course
Performance related
Results of this semester
Historical achievements
Teachers'
Performance management
Enter the score
View class start
History begins
Classes begin this semester
Check the list of students in the course
Academic affairs
Check the list of students in the course
Course management
Add courses
See the course
Delete course
Revise the course
System administrator
Term management
Set the current semester
Course selection management
Open course selection
Close course selection
College Management
School of Management
Modify the College
Delete College
Add Colleges
Role management
Role increase
Management roles
Modify role
Delete the role
Role empowerment
package com.tsubaki.controller;
import com.alibaba.fastjson.JSON;
import com.tsubaki.entity.School;
import com.tsubaki.entity.Term;
import com.tsubaki.response.Result;
import com.tsubaki.service.SchoolService;
import com.tsubaki.util.StringUtil;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.lang.Nullable;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* <p>
* Front controller
* </p>
*
* @author tsubaki
* @since 2022-01-17
*/
@RestController
@RequestMapping("/school")
public class SchoolController {
@Autowired
private SchoolService schoolService;
@ApiOperation(" Get all college information ")
@RequestMapping(value = "/getAll", method = RequestMethod.GET)
public String getAllSchool(@Nullable String pageNum, @Nullable String pageSize) {
Integer first = StringUtil.changeString(pageNum);
Integer second = StringUtil.changeString(pageSize);
Map<String, Object> map = schoolService.getAll(first,second);
if ((long)(map.get("total")) == 0){
return JSON.toJSONString(new Result().setCode(200).setMessage(" There is no college information at present "));
}
return JSON.toJSONString(new Result().setCode(200).setData(map));
}
@ApiOperation(" Add college information ")
// @RequiresPermissions("school:add")
@RequestMapping(value = "/add", method = RequestMethod.POST)
public String saveSchool(@RequestBody School school) {
schoolService.saveOrUpdate(school);
return JSON.toJSONString(new Result().setCode(200).setMessage(" Add success "));
}
@ApiOperation(" Modify college information ")
@RequiresPermissions("school:update")
@RequestMapping(value = "/update", method = RequestMethod.PUT)
public String setThisTerm(@RequestBody School school) {
schoolService.saveOrUpdate(school);
return JSON.toJSONString(new Result().setCode(200).setMessage(" Modification successful "));
}
@ApiOperation(" Delete College ")
// @RequiresPermissions("school:delete")
@RequestMapping(value = "/delete", method = RequestMethod.DELETE)
public String setThisTerm(Integer schoolId) {
// schoolService.removeById(schoolId);
if (schoolService.removeById(schoolId)){
// System.out.println();
return JSON.toJSONString(new Result().setCode(200).setMessage(" Delete successful "));
}else {
return JSON.toJSONString(new Result().setCode(500).setMessage(" Delete failed "));
}
}
}







边栏推荐
- Daily code 300 lines learning notes day 11
- 数据治理:数据治理管理(第五篇)
- 导电滑环使用的注意事项
- QT waiting box production
- 激活函数简述
- [RootersCTF2019]babyWeb
- Usage and principle of synchronized
- Actual combat: gateway api-2022.2.13
- Programmers dig "holes" to get rich: if they find a loophole, they will be rewarded 12.72 million yuan
- 液压滑环的特点讲解
猜你喜欢

One click deployment of highly available emqx clusters in rainbow

Day 05 - file operation function

【QT】qt加减乘除之后,保留小数点后两位

Lock free concurrency of JUC (leguan lock)

Numeric amount plus comma; JS two methods of adding three digits and a comma to numbers; JS data formatting

Set set detailed explanation

Design and application of immutable classes

C# wpf 使用DockPanel实现截屏框

Set集合详细讲解

如何创建一个根据进度改变颜色的进度条
随机推荐
JDBC常见面试题
云原生存储解决方案Rook-Ceph与Rainbond结合的实践
如何选择导电滑环材料
导电滑环使用的注意事项
3D建模與處理軟件簡介 劉利剛 中國科技大學
el-form表单新增表单项动态校验;el-form校验动态表单v-if不生效;
CockroachDB: The Resilient Geo-Distributed SQL Database 论文阅读笔记
tar命令
Things generated by busybox
Common solutions for mobile terminals
教务管理系统(免费源码获取)
Practice of combining rook CEPH and rainbow, a cloud native storage solution
Typeorm framework
Rust hello-word
Rust hello-word
vsCode函数注解/文件头部注解快捷键
[SRS] use of Vhost isolated stream: push / pull Stream Address
Is it safe for a novice to open a securities account?
Is there any good website or software for learning programming? [introduction to programming]?
JDBC common interview questions