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

function

  • College Management

  • Personnel management

  • Course selection management

  • Performance management

  • History course inquiry

  • wait

role

  • Student

  • Teachers'

  • Academic affairs

  • System administrator

jurisdiction

  • Student

    1. Course selection related

    2. Course selection

    3. The drop

    4. Course selection results

    5. History course

    6. Performance related

    7. Results of this semester

    8. Historical achievements

  • Teachers'

    1. Performance management

    2. Enter the score

    3. View class start

    4. History begins

    5. Classes begin this semester

    6. Check the list of students in the course

  • Academic affairs

    1. Check the list of students in the course

    2. Course management

    3. Add courses

    4. See the course

    5. Delete course

    6. Revise the course

  • System administrator

    1. Term management

    2. Set the current semester

    3. Course selection management

    4. Open course selection

    5. Close course selection

    6. College Management

    7. School of Management

    8. Modify the College

    9. Delete College

    10. Add Colleges

    11. Role management

    12. Role increase

    13. Management roles

    14. Modify role

    15. Delete the role

    16. 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 "));
        }
    }

}

  The educational administration management system management system - Source code to get the link https://gitee.com/wuyanzua/blog-applet

原网站

版权声明
本文为[Code garden of Azhou]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/182/202207010530270756.html