基于javaweb+mysql的springboot社区疫情防控管理系统(java+springboot+vue+maven+mysql)

基于javaweb+mysql的springboot社区疫情防控管理系统(java+springboot+vue+maven+mysql)

运行环境

Java≥8、MySQL≥5.7、Node.js≥10

开发工具

后端:eclipse/idea/myeclipse/sts等均可配置运行

前端:WebStorm/VSCode/HBuilderX等均可

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

基于javaweb+mysql的SpringBoot社区疫情防控管理系统(java+springboot+vue+maven+mysql)

一、项目简述

三个用户角色:管理员、用户、医护人员

本系统主要实现的功能有: 账户列表、人员管理、社区列表、隔离酒店列表、公告列表、公告图片管理、人员审核、物资列表、论坛列表、体温列表、隔离列表、购买清单、社区体温信息、出入审核、隔离申请、订单列表、

二、项目运行

环境配置: Jdk1.8 + Tomcat8.5 + mysql + Eclispe(IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持)

项目技术: Springboot + VUE + ElementUI + maven等等


JsonObject<UserDto> object = new JsonObject<>();

if (queryParams != null) {

JSONObject jsonObject = JSON.parseObject(queryParams);

String keyword = jsonObject.getString("keyword");

IPage<UserDto> dtoIPage = userService.queryUserByParam(currentPage, limit, keyword);

object.setCode(0);

object.setMsg("ok");

object.setCount(dtoIPage.getTotal());

object.setData(dtoIPage);

return object;

} else {


JsonObject<RecordDto> object = new JsonObject<>();

if (queryParams != null) {

JSONObject jsonObject = JSON.parseObject(queryParams);

String keyword = jsonObject.getString("keyword");

IPage<RecordDto> dtoIPage = recordService.queryRecordByParam(currentPage, limit, keyword);

object.setCode(0);

object.setMsg("ok");

object.setCount(dtoIPage.getTotal());

object.setData(dtoIPage);

return object;

} else {

IPage<UserDto> dtoIPage = userService.queryUserByParam(currentPage, limit, queryParams);

object.setCode(0);

object.setMsg("ok");

object.setCount(dtoIPage.getTotal());

object.setData(dtoIPage);

return object;

@PostMapping("/addUser")

public Result addAddress(UserDto userDto) {

return userService.addUser(userDto);

@PostMapping("/deleteUser")
@Api(tags = "用户接口")

@RestController

@RequestMapping("/Users")

@RequiresRoles(value = "admin", logical = Logical.OR)

public class UserController {

@Autowired

private UserService userService;

@GetMapping("/queryUserByParam")

public JsonObject queryUserByParam(@RequestParam("page") Integer currentPage, @RequestParam("limit") Integer limit,

@RequestParam(name = "params", required = false) String queryParams) {

JsonObject<UserDto> object = new JsonObject<>();

if (queryParams != null) {


@RequestMapping("/records")

@RequiresRoles(value = {"user", "admin"}, logical = Logical.OR)

public class RecordController {

@Autowired

private RecordService recordService;

@GetMapping("/getRecordByParam")

public JsonObject getRecords(@RequestParam("page") Integer currentPage, @RequestParam("limit") Integer limit,

@RequestParam(name = "params", required = false) String queryParams) {

JsonObject<RecordDto> object = new JsonObject<>();

if (queryParams != null) {

JSONObject jsonObject = JSON.parseObject(queryParams);

String keyword = jsonObject.getString("keyword");


IPage<RecordDto> dtoIPage = recordService.queryRecordByParam(currentPage, limit, keyword);

object.setCode(0);

object.setMsg("ok");

object.setCount(dtoIPage.getTotal());

object.setData(dtoIPage);

return object;

} else {

IPage<RecordDto> dtoIPage = recordService.queryRecordByParam(currentPage, limit, null);

object.setCode(0);

object.setMsg("ok");

object.setCount(dtoIPage.getTotal());


IPage<RecordDto> dtoIPage = recordService.queryRecordByParam(currentPage, limit, null);

object.setCode(0);

object.setMsg("ok");

object.setCount(dtoIPage.getTotal());

object.setData(dtoIPage);

return object;

@PostMapping("/addRecord")

public Result addRecords(RecordDto recordDto) {

return recordService.addRecord(recordDto);

@PostMapping("/deleteRecords")

public Result deleteRecord(Integer[] ids) {

return recordService.deleteRecord(ids);

@PostMapping("/updateRecords")


@RequestParam(name = "params", required = false) String queryParams) {

JsonObject<RecordDto> object = new JsonObject<>();

if (queryParams != null) {

JSONObject jsonObject = JSON.parseObject(queryParams);

String keyword = jsonObject.getString("keyword");

IPage<RecordDto> dtoIPage = recordService.queryRecordByParam(currentPage, limit, keyword);

object.setCode(0);

object.setMsg("ok");

object.setCount(dtoIPage.getTotal());

object.setData(dtoIPage);


@PostMapping("/deleteUser")

public Result deleteAddress(Integer[] ids) {

return userService.deleteUser(ids);

@PostMapping("/updateUser")

public Result updateUser(UserDto userDto) {

return userService.updateUser(userDto);

进出记录控制层: 

@Api(tags = "进出记录接口")

@RestController

@RequestMapping("/records")

@RequiresRoles(value = {"user", "admin"}, logical = Logical.OR)

public class RecordController {

@PostMapping("/deleteUser")

public Result deleteAddress(Integer[] ids) {

return userService.deleteUser(ids);

@PostMapping("/updateUser")

public Result updateUser(UserDto userDto) {

return userService.updateUser(userDto);

进出记录控制层: 

@Api(tags = "进出记录接口")

@RestController

@RequestMapping("/records")

@RequiresRoles(value = {"user", "admin"}, logical = Logical.OR)

public class RecordController {

@Autowired

private RecordService recordService;

IPage<UserDto> dtoIPage = userService.queryUserByParam(currentPage, limit, keyword);

object.setCode(0);

object.setMsg("ok");

object.setCount(dtoIPage.getTotal());

object.setData(dtoIPage);

return object;

} else {

IPage<UserDto> dtoIPage = userService.queryUserByParam(currentPage, limit, queryParams);

object.setCode(0);

object.setMsg("ok");

object.setCount(dtoIPage.getTotal());

object.setData(dtoIPage);

return object;


JsonObject<VistorDto> object = new JsonObject<>();

IPage<VistorDto> dtoIPage = visitorService.queryVistorByParam(currentPage,limit,queryParams);

object.setCode(0);

object.setMsg("ok");

object.setCount(dtoIPage.getTotal());

object.setData(dtoIPage);

return object;

@PostMapping("/addVisitor")

public Result addVistor(VistorDto vistorDto)

return visitorService.addVistor(vistorDto);

@PostMapping("/deleteVisitors")

@RequestParam(name = "params", required = false) String queryParams) {

JsonObject<RecordDto> object = new JsonObject<>();

if (queryParams != null) {

JSONObject jsonObject = JSON.parseObject(queryParams);

String keyword = jsonObject.getString("keyword");

IPage<RecordDto> dtoIPage = recordService.queryRecordByParam(currentPage, limit, keyword);

object.setCode(0);

object.setMsg("ok");

object.setCount(dtoIPage.getTotal());

object.setData(dtoIPage);

return object;

} else {

IPage<RecordDto> dtoIPage = recordService.queryRecordByParam(currentPage, limit, null);


@PostMapping("/addUser")

public Result addAddress(UserDto userDto) {

return userService.addUser(userDto);

@PostMapping("/deleteUser")

public Result deleteAddress(Integer[] ids) {

return userService.deleteUser(ids);

@PostMapping("/updateUser")

public Result updateUser(UserDto userDto) {

return userService.updateUser(userDto);

进出记录控制层: 

@Api(tags = "进出记录接口")

@RestController


} else {

IPage<UserDto> dtoIPage = userService.queryUserByParam(currentPage, limit, queryParams);

object.setCode(0);

object.setMsg("ok");

object.setCount(dtoIPage.getTotal());

object.setData(dtoIPage);

return object;

@PostMapping("/addUser")

public Result addAddress(UserDto userDto) {

return userService.addUser(userDto);


@RequestMapping("/Users")

@RequiresRoles(value = "admin", logical = Logical.OR)

public class UserController {

@Autowired

private UserService userService;

@GetMapping("/queryUserByParam")

public JsonObject queryUserByParam(@RequestParam("page") Integer currentPage, @RequestParam("limit") Integer limit,

@RequestParam(name = "params", required = false) String queryParams) {

JsonObject<UserDto> object = new JsonObject<>();

if (queryParams != null) {

JSONObject jsonObject = JSON.parseObject(queryParams);


} else {

IPage<UserDto> dtoIPage = userService.queryUserByParam(currentPage, limit, queryParams);

object.setCode(0);

object.setMsg("ok");

object.setCount(dtoIPage.getTotal());

object.setData(dtoIPage);

return object;

@PostMapping("/addUser")

public Result addAddress(UserDto userDto) {

return userService.addUser(userDto);


@Autowired

private UserService userService;

@GetMapping("/queryUserByParam")

public JsonObject queryUserByParam(@RequestParam("page") Integer currentPage, @RequestParam("limit") Integer limit,

@RequestParam(name = "params", required = false) String queryParams) {

JsonObject<UserDto> object = new JsonObject<>();

if (queryParams != null) {

JSONObject jsonObject = JSON.parseObject(queryParams);

String keyword = jsonObject.getString("keyword");

IPage<UserDto> dtoIPage = userService.queryUserByParam(currentPage, limit, keyword);

object.setCode(0);

object.setMsg("ok");

object.setCount(dtoIPage.getTotal());

请添加图片描述

请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值