当前位置:首页 » 《随便一记》 » 正文

基于ssm校园疫情防控管理系统_qq_2630663675的博客

15 人参与  2022年03月22日 14:16  分类 : 《随便一记》  评论

点击全文阅读


校园疫情防控管理系统,主要的模块包括查看首页、个人中心、学生管理、教师管理、卫生部管理、疫情新闻管理、学生体温管理、学生签到管理、请假申请管理、健康档案管理、学生通知管理、教工通知管理、每日数据管理、系统管理等功能。系统中管理员主要是为了安全有效地存储和管理各类信息,还可以对系统进行管理与更新维护等操作,并且对后台有相应的操作权限。

要想实现校园疫情防控管理系统的各项功能,需要后台数据库的大力支持。管理员验证注册信息,收集的信息,并由此分析得出的关联信息等大量的数据都由数据库管理。本文中数据库服务器端采用了Mysql作为后台数据库,使Web与数据库紧密联系起来。在设计过程中,充分保证了系统代码的良好可读性、实用性、易扩展性、通用性、便于后期维护、操作方便以及页面简洁等特点。

基于ssm  mysql开发的校园疫情系统

 

 

 

 

package com.example.controller;

import com.example.common.Result;
import com.example.entity.CommentInfo;
import com.example.entity.Account;
import com.example.service.CommentInfoService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

@RestController
@RequestMapping(value = "/commentInfo")
public class CommentInfoController {
    @Resource
    private CommentInfoService commentInfoService;

    @PostMapping
    public Result<CommentInfo> add(@RequestBody CommentInfo commentInfo, HttpServletRequest request) {
        Account user = (Account) request.getSession().getAttribute("user");
        commentInfo.setUserId(user.getId());
        commentInfoService.add(commentInfo);
        return Result.success(commentInfo);
    }

    @DeleteMapping("/{id}")
    public Result delete(@PathVariable Long id) {
        commentInfoService.delete(id);
        return Result.success();
    }

    @PutMapping
    public Result update(@RequestBody CommentInfo commentInfo) {
        commentInfoService.update(commentInfo);
        return Result.success();
    }

    @GetMapping("/{id}")
    public Result<CommentInfo> detail(@PathVariable Long id) {
        CommentInfo commentInfo = commentInfoService.findById(id);
        return Result.success(commentInfo);
    }

    @GetMapping
    public Result<List<CommentInfo>> all() {
        return Result.success(commentInfoService.findAll());
    }

    @GetMapping("/all/{goodsId}")
    public Result<List<CommentInfo>> all(@PathVariable("goodsId") Long goodsId) {
        return Result.success(commentInfoService.findAll(goodsId));
    }

    @GetMapping("/page/{name}")
    public Result<PageInfo<CommentInfo>> page(@RequestParam(defaultValue = "1") Integer pageNum,
                                              @RequestParam(defaultValue = "10") Integer pageSize,
                                              @PathVariable String name,
                                              HttpServletRequest request) {
        return Result.success(commentInfoService.findPage(pageNum, pageSize, name, request));
    }
}

开发工具:idea (eclipse) 环境:jdk1.8  mysql


点击全文阅读


本文链接:http://zhangshiyu.com/post/36517.html

管理  疫情  系统  
<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

最新文章

  • 惨死后宅,重生归来夫人她杀疯了小说(惨死后宅,重生归来夫人她杀疯了)(易知玉,颜子依,小香)完整章节列表_笔趣阁
  • 幼儿园换私厨后儿子不挑食了,我却杀疯了读者推荐_幼儿园杜林方允儿结局_小说后续在线阅读_无删减免费完结_
  • 戚悦陆且行小说章节目录+序章(藤蔓有枝)全书畅享在线
  • 偏心的代价最新章节_妹妹月月言辞必读文_小说后续在线阅读_无删减免费完结_
  • 往热力井塞炮仗的倒霉侄子独家首发_赵天龙高分言情_小说后续在线阅读_无删减免费完结_
  • 苏辞,赵晏清小说(金屋藏君)前文+全本完整阅读预售作品抢先看
  • 易知玉,颜子依,小香完本(惨死后宅,重生归来夫人她杀疯了)(惨死后宅,重生归来夫人她杀疯了)前传+整本阅读全新作品预订
  • 手撕渣男后,我成了亿万女首富高分言情_张强李慕老公最新试读_小说后续在线阅读_无删减免费完结_
  • 绑定系统后,我成了万界百晓生后续(裴南星)(绑定系统后,我成了万界百晓生)整本畅享在线+无广告结局
  • 老公为美女七胞胎把我当“打地鼠”玩,我改嫁了新上热文_裴景老公安安最新目录_小说后续在线阅读_无删减免费完结_
  • 孟雪瑶霍羡舟纷纷求不得后续(纷纷求不得)全文在线下载在线+纯净版结局
  • 程晚意周凛川小说完本章节前文+全篇阅读(程晚意周凛川)连载中

    关于我们 | 我要投稿 | 免责申明

    Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1