基于springboot,vue学生宿舍管理系统

开发工具:IDEA

服务器:Tomcat9.0, jdk1.8

项目构建:maven

数据库:mysql5.7

系统分前后台,项目采用前后端分离

前端技术:vue+vue-element-admin

服务端技术:springboot,mybatis-plus

本系统分学生和管理员角色,功能包括:

一.学生功能:

(1)登录、退出登录、首页

(2)宿舍管理:选择宿舍、我的宿舍(调换宿舍)

(3)报修管理:添加、修改、查询、删除

(4)公告列表

二.管理员功能:

(1)登录、退出登录、首页

(2)用户管理:添加、修改、查询、删除

(3)角色管理:添加、修改、查询、删除、分配权限

(4)菜单管理:添加、修改、删除

(5)学院管理:添加、修改、查询、删除

(6)专业管理:添加、修改、查询、删除

(7)班级管理:添加、修改、查询、删除

(8)学生管理:添加、修改、查询、删除、重置密码

(9)宿舍管理:楼栋管理、设置编号、宿舍管理、分配宿舍、调换申请

(10)考勤管理:添加、修改、查询、删除

(11)报修管理:添加、修改、查询、删除、处理

(12)出入登记

物品出入登记:添加、修改、查询、删除

来访人员登记:添加、修改、查询、删除

(13)公告管理:添加、修改、查询、删除

学生截图:

管理员截图:

java 复制代码
package com.itmk.web.sys_user.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.itmk.utils.ResultUtils;
import com.itmk.utils.ResultVo;
import com.itmk.web.drom_build.service.DromBuildService;
import com.itmk.web.drom_repair.entity.DromRepair;
import com.itmk.web.drom_repair.service.DromRepairService;
import com.itmk.web.school_class.service.SchoolClassService;
import com.itmk.web.school_student.service.SchoolStudentService;
import com.itmk.web.sys_user.entity.TotalVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**

 */
@RestController
@RequestMapping("/api/home")
public class SysHomeController {
    @Autowired
    private SchoolClassService schoolClassService;
    @Autowired
    private SchoolStudentService schoolStudentService;
    @Autowired
    private DromRepairService dromRepairService;
    @Autowired
    private DromBuildService dromBuildService;

    @GetMapping("/getTotal")
    public ResultVo getTotal(){
        TotalVo vo = new TotalVo();
        //班级总数
        int count = schoolClassService.count();
        vo.setClassCount(count);
        //学生
        int count1 = schoolStudentService.count();
        vo.setStuCount(count1);
        //待维修
        QueryWrapper<DromRepair> query = new QueryWrapper<>();
        query.lambda().eq(DromRepair::getStatus,"0");
        int count2 = dromRepairService.count(query);
        vo.setRepairCount(count2);
        //;楼宇
        int count3 = dromBuildService.count();
        vo.setBuildCount(count3);
        ;return ResultUtils.success("查询成功",vo);
    }
}
相关推荐
阿奇__4 小时前
前端下拉数据缓存策略
缓存·vue
智能工业品检测-奇妙智能7 小时前
springboot对接阿里云短信
人工智能·vue·springboot·阿里云短信
结网的兔子8 小时前
前端学习笔记(实战准备篇)——用vite构建一个项目【吐血整理】
前端·学习·elementui·npm·node.js·vue
Irene199110 小时前
Vue3 第三方样式表 在main.ts和App.vue中导入的区别
vue·导入·样式表
朱华飞Pro1 天前
vue2 精细级别判断图片页面
vue·页面优化
Luke Ewin2 天前
ASR数据集采集系统 | ASR方言数据集采集系统 | ASR方言数据集采集系统 | 语音识别数据集采集系统
vue·springboot·语音识别·asr·asr数据集采集·asr方言数据集采集
沙振宇2 天前
【Web】使用Vue3+PlayCanvas开发3D游戏(一)3D 立方体交互式游戏
游戏·3d·vue·vue3·playcanvas
鱼是一只鱼啊2 天前
实战 | uni-app (Vue2) HBuilderX 项目改造为 CLI 项目,实现多客户多平台命令行自动化发布
微信小程序·vue·claude·vue-cli·.net8·自动化发布
南_山无梅落15 天前
从传统Web到API驱动:使用Django REST Framework重构智能合同审查系统
重构·django·vue·drf
PD我是你的真爱粉16 天前
API 请求封装(Axios + 拦截器 + 错误处理)
前端框架·vue