当前位置:网站首页>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 "));
}
}
}
边栏推荐
- Is it safe for a novice to open a securities account?
- SSM的教务管理系统(免费源码获取)
- 液压滑环的特点讲解
- Txncoordsender of cockroachdb distributed transaction source code analysis
- 3D建模與處理軟件簡介 劉利剛 中國科技大學
- What can the points mall Games bring to businesses? How to build a points mall?
- [RootersCTF2019]babyWeb
- Design and application of immutable classes
- 如何开始学剪辑?零基础详细解析
- ssm+mysql二手交易网站(论文+源码获取链接)
猜你喜欢
Day 05 - file operation function
导电滑环短路的原因以及应对措施
El cascade echo failed; El cascader does not echo
0xc000007b the application cannot start the solution normally (the pro test is valid)
el-form表单新增表单项动态校验;el-form校验动态表单v-if不生效;
Redis数据库的部署及常用命令
云原生存储解决方案Rook-Ceph与Rainbond结合的实践
工业导电滑环的应用
How to meet the requirements of source code confidentiality and source code security management
One click deployment of highly available emqx clusters in rainbow
随机推荐
如何创建一个根据进度改变颜色的进度条
eBPF Cilium实战(2) - 底层网络可观测性
Set set detailed explanation
[Yugong series] February 2022 Net architecture class 005 ABP vNext Net core web application getting started configuration
数字金额加逗号;js给数字加三位一逗号间隔的两种方法;js数据格式化
0xc000007b the application cannot start the solution normally (the pro test is valid)
idea启动查看项目端口
Mongodb learning chapter: introduction after installation lesson 1
Software intelligence: the "world" and "boundary" of AI sentient beings in AAAs system
SSGSSRCSR区别
Rust hello-word
Qt编译时,出现 first defined here,原因及解决方法
SSM的教务管理系统(免费源码获取)
HDU - 1069 Monkey and Banana(DP+LIS)
Use and principle of reentrantlock
LRU cache for leveldb source code analysis
Unity 使用Sqlite
Set集合詳細講解
Dynamic verification of new form items in El form; El form verifies that the dynamic form V-IF does not take effect;
数据治理:数据治理框架(第一篇)