源码获取:俺的博客首页 "资源" 里下载!
一、项目简述
三个用户角色:管理员、用户、医护人员
本系统主要实现的功能有:
账户列表、人员管理、社区列表、隔离酒店列表、公告列表、公告图片管理、人员审核、物资列表、论坛列表、体温列表、隔离列表、购买清单、社区体温信息、出入审核、隔离申请、订单列表、
二、项目运行
环境配置:
Jdk1.8 + Tomcat8.5 + mysql + Eclispe(IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持)
项目技术:
Springboot + VUE + ElementUI + maven等等





来访人员控制层:
@RestController
@RequestMapping("/visitors")
@RequiresRoles(value={"user","admin"},logical= Logical.OR)
public class VisitorController {
@Autowired
private VisitorService visitorService;
@GetMapping("/queryVisByParam")
public JsonObject queryVisByParam(@RequestParam("page")Integer currentPage, @RequestParam("limit")Integer limit,
@RequestParam(name = "params",required = false) String queryParams)
{
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")
public Result deleteVistors(Integer[] ids){
return visitorService.deleteVistors(ids);
}
@PostMapping("/updateVisitor")
public Result updateVistor(VistorDto vistorDto){
return visitorService.updateVistor(vistorDto);
}
}
用户管理控制层:
@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) {
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 {
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")
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;
@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());
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")
public Result updateRecords(RecordDto recordDto) {
return recordService.updateRecord(recordDto);
}
}
源码获取:俺的博客首页 "资源" 里下载!
文章介绍了一个基于Springboot、VUE和ElementUI的疫情管理系统,涵盖用户管理、进出记录、隔离审核等多个功能模块,适用于管理员、用户和医护人员操作。提供了源码下载链接。
13万+

被折叠的 条评论
为什么被折叠?



