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







边栏推荐
- 多表操作-外键级联操作
- tar命令
- Intelligent operation and maintenance: visual management system based on BIM Technology
- HDU - 1069 Monkey and Banana(DP+LIS)
- 工业导电滑环的应用
- Introduction of 3D Modeling and Processing Software Liu Ligang, Chinese University of Science and Technology
- What can the points mall Games bring to businesses? How to build a points mall?
- Day 05 - file operation function
- 3D建模與處理軟件簡介 劉利剛 中國科技大學
- 如何创建一个根据进度改变颜色的进度条
猜你喜欢

Memtable for leveldb source code analysis
![[RootersCTF2019]babyWeb](/img/b4/aa8f8e107a9dacbace72d4717b1834.png)
[RootersCTF2019]babyWeb
SSM的教务管理系统(免费源码获取)

数字金额加逗号;js给数字加三位一逗号间隔的两种方法;js数据格式化

液压滑环的特点讲解

Redis database deployment and common commands

轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷

Series of improving enterprise product delivery efficiency (1) -- one click installation and upgrade of enterprise applications

Application of industrial conductive slip ring

Application and principle of ThreadPoolExecutor thread pool
随机推荐
In depth understanding of condition source code interpretation and analysis of concurrent programming
Software intelligence: the "world" and "boundary" of AI sentient beings in AAAs system
Common solutions for mobile terminals
El cascade echo failed; El cascader does not echo
Application of industrial conductive slip ring
Rust基础入门之变量绑定与解构
Explanation of characteristics of hydraulic slip ring
数据库连接池的简单实现
rust猜数字游戏
导电滑环使用的注意事项
Rust hello-word
HDU - 1024 Max Sum Plus Plus(DP)
More than one file was found with OS independent path ‘lib/armeabi-v7a/libyuv. so‘.
Use and principle of AQS related implementation classes
Lock free concurrency of JUC (leguan lock)
Is there any good website or software for learning programming? [introduction to programming]?
了解 JVM 中几个相关问题 — JVM 内存布局、类加载机制、垃圾回收
vsCode函数注解/文件头部注解快捷键
CentOS 7 installed php7.0 using Yum or up2date
Unit testing with mongodb