基于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());