校園疫情防控管理系統,主要的模塊包括查看首頁、個人中心、學生管理、教師管理、衛生部管理、疫情新聞管理、學生體溫管理、學生簽到管理、請假申請管理、健康檔案管理、學生通知管理、教工通知管理、每日資料管理、系統管理等功能,系統中管理員主要是為了安全有效地存盤和管理各類資訊,還可以對系統進行管理與更新維護等操作,并且對后臺有相應的操作權限,
要想實作校園疫情防控管理系統的各項功能,需要后臺資料庫的大力支持,管理員驗證注冊資訊,收集的資訊,并由此分析得出的關聯資訊等大量的資料都由資料庫管理,本文中資料庫服務器端采用了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
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/379522.html
標籤:其他
上一篇:基于微信小程式的學習網站原始碼
下一篇:安裝第三方庫的基本方法與操作
