当前位置:网站首页>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 "));
}
}
}







边栏推荐
- Cockroachdb: the resistant geo distributed SQL database paper reading notes
- Is it safe for a novice to open a securities account?
- 0xc000007b the application cannot start the solution normally (the pro test is valid)
- RecycleView的一些使用
- Rust基础入门之变量绑定与解构
- How to select conductive slip ring material
- Software intelligence: the "world" and "boundary" of AI sentient beings in AAAs system
- Some common commands of podman
- Ssgssrcsr differences
- 小程序常用组件小结
猜你喜欢

Go learning notes (5) basic types and declarations (4)

Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster

导电滑环使用的注意事项

Deeply understand the underlying implementation principle of countdownlatch in concurrent programming

In depth understanding of condition source code interpretation and analysis of concurrent programming

One click deployment of highly available emqx clusters in rainbow
![[RootersCTF2019]babyWeb](/img/b4/aa8f8e107a9dacbace72d4717b1834.png)
[RootersCTF2019]babyWeb

2/15 (awk, awk conditions, awk processing design can perform additional tasks, and use awk array +for loop to realize advanced search)

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

第05天-文件操作函数
随机推荐
移动端常用解决方案
Youqitong [vip] v3.7.2022.0106 official January 22 Edition
Common solutions for mobile terminals
QDataStream的简单读写验证
轩逸保养手册
了解 JVM 中几个相关问题 — JVM 内存布局、类加载机制、垃圾回收
0xc000007b the application cannot start the solution normally (the pro test is valid)
Dynamic verification of new form items in El form; El form verifies that the dynamic form V-IF does not take effect;
JS random verification code
Actual combat: basic use of Redux
Is it safe for a novice to open a securities account?
Web Security (x) what is OAuth 2.0?
Causes of short circuit of conductive slip ring and Countermeasures
Unit testing with mongodb
Deeply understand the underlying implementation principle of countdownlatch in concurrent programming
Txncoordsender of cockroachdb distributed transaction source code analysis
Rainbow combines neuvector to practice container safety management
Summary of spanner's paper
Usage and principle of synchronized
One click deployment of highly available emqx clusters in rainbow