• 基于springboot+vue的小区疫情防控系统(前后端分离)


    博主主页猫头鹰源码

    博主简介:Java领域优质创作者、CSDN博客专家、公司架构师、全网粉丝5万+、专注Java技术领域和毕业设计项目实战

    主要内容:毕业设计(Javaweb项目|小程序等)、简历模板、学习资料、面试题库、技术咨询

    文末联系获取

    项目介绍: 

    管理员模块总共分为六个子模块:社区人员信息管理模块,社区后台管理系统可对社区人员做到信息收集与管理工作,减少纸质档案收集遗失的复杂,实现线上管理;用户账号管理模块,经过系统申请分配的账号登录进入相应的后台管理系统后,可出现我们社区板块,以及社区密码管理,可实现社区工作人员对社区账号相应的管理;日常需求管理模块,对用户提出的需求进行录入和增删;健康打卡管理模块,对用户体温统计录入和管理,保证用户体温数据能保存在后台;意见栏模块,对用户提出的意见进行系统录入与管理;公告管理模块,对要对系统需要进行公告的信息进行录入和输出,保证用户可以在系统中查看。

    用户操作模块总共分为五个子模块:用户档案模块,用户可在客户端用户档案模块完成相应用户档案信息收集,如姓名、身份证号、家庭住址等信息。后台管理员可做相应的信息管理工作,对其收集到的信息进行整理汇总,方便社区人员对社区达到更好的管理,充分利用互联网的优势,减少工作的繁重冗杂;健康打卡模块,用户可在客户端健康打卡模块完成相应健康打卡收集表填写,如今日体温是否正常、家人中是否有人确诊新冠肺炎等等。后台管理员可根据每日的信息收集情况了解社区人员的健康情况,做到全面了解、及时处理;日常需求模块,用户可在客户端日常需求模块完成相应日常需求物资收集表填写,如每日蔬菜信息收集、日用品信息收集等等。后台管理员则可根据每日收集表,根据居民的需求来完成相应的采购工作。更加方便便捷的服务居民;意见栏模块,用户可在客户端意见栏模块直接填写对社区管理的意见,相应意见直接投入线上社区意见信箱。方便社区管理,做到社区与居民无缝对接;公告模块,用户可以在系统中查看所示公告。

    系统包含技术:

    后端:ssm,mybatis
    前端:element-ui、js、css等
    开发工具:idea
    数据库:mysql 5.7
    JDK版本:jdk1.8

    部分截图说明:

    下面是登录页面

    首页

    公告页面

    小区消毒页面

    高风险地区管理

    个人中心

    在线聊天

     用户管理

    公告管理

    小区消毒管理

    轮播图管理

    高风险 地区管理

    部分代码:

    配置

    1. /**
    2. * 列表
    3. */
    4. @RequestMapping("/page")
    5. public R page(@RequestParam Map<String, Object> params,ConfigEntity config){
    6. EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
    7. PageUtils page = configService.queryPage(params);
    8. return R.ok().put("data", page);
    9. }
    10. /**
    11. * 列表
    12. */
    13. @IgnoreAuth
    14. @RequestMapping("/list")
    15. public R list(@RequestParam Map<String, Object> params,ConfigEntity config){
    16. EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
    17. PageUtils page = configService.queryPage(params);
    18. return R.ok().put("data", page);
    19. }
    20. /**
    21. * 信息
    22. */
    23. @RequestMapping("/info/{id}")
    24. public R info(@PathVariable("id") String id){
    25. ConfigEntity config = configService.selectById(id);
    26. return R.ok().put("data", config);
    27. }
    28. /**
    29. * 详情
    30. */
    31. @IgnoreAuth
    32. @RequestMapping("/detail/{id}")
    33. public R detail(@PathVariable("id") String id){
    34. ConfigEntity config = configService.selectById(id);
    35. return R.ok().put("data", config);
    36. }
    37. /**
    38. * 根据name获取信息
    39. */
    40. @RequestMapping("/info")
    41. public R infoByName(@RequestParam String name){
    42. ConfigEntity config = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));
    43. return R.ok().put("data", config);
    44. }
    45. /**
    46. * 保存
    47. */
    48. @PostMapping("/save")
    49. public R save(@RequestBody ConfigEntity config){
    50. // ValidatorUtils.validateEntity(config);
    51. configService.insert(config);
    52. return R.ok();
    53. }
    54. /**
    55. * 修改
    56. */
    57. @RequestMapping("/update")
    58. public R update(@RequestBody ConfigEntity config){
    59. // ValidatorUtils.validateEntity(config);
    60. configService.updateById(config);//全部更新
    61. return R.ok();
    62. }
    63. /**
    64. * 删除
    65. */
    66. @RequestMapping("/delete")
    67. public R delete(@RequestBody Long[] ids){
    68. configService.deleteBatchIds(Arrays.asList(ids));
    69. return R.ok();
    70. }

    文件管理

    1. /**
    2. * 上传文件
    3. */
    4. @RequestMapping("/upload")
    5. public R upload(@RequestParam("file") MultipartFile file, String type,HttpServletRequest request) throws Exception {
    6. if (file.isEmpty()) {
    7. throw new EIException("上传文件不能为空");
    8. }
    9. String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1);
    10. String fileName = new Date().getTime()+"."+fileExt;
    11. File dest = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+fileName);
    12. file.transferTo(dest);
    13. if(StringUtils.isNotBlank(type) && type.equals("1")) {
    14. ConfigEntity configEntity = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));
    15. if(configEntity==null) {
    16. configEntity = new ConfigEntity();
    17. configEntity.setName("faceFile");
    18. configEntity.setValue(fileName);
    19. } else {
    20. configEntity.setValue(fileName);
    21. }
    22. configService.insertOrUpdate(configEntity);
    23. }
    24. return R.ok().put("file", fileName);
    25. }
    26. /**
    27. * 下载文件
    28. */
    29. @IgnoreAuth
    30. @RequestMapping("/download")
    31. public void download(@RequestParam String fileName, HttpServletRequest request, HttpServletResponse response) {
    32. try {
    33. File file = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+fileName);
    34. if (file.exists()) {
    35. response.reset();
    36. response.setHeader("Content-Disposition", "attachment; filename=\"" + fileName+"\"");
    37. response.setHeader("Cache-Control", "no-cache");
    38. response.setHeader("Access-Control-Allow-Credentials", "true");
    39. response.setContentType("application/octet-stream; charset=UTF-8");
    40. IOUtils.write(FileUtils.readFileToByteArray(file), response.getOutputStream());
    41. }
    42. } catch (IOException e) {
    43. e.printStackTrace();
    44. }
    45. }

    以上就是部分功能展示,从整体上来看,本系统功能是十分完整的,界面设计简洁大方,交互友好,数据库设计也很合理,规模适中,代码工整,清晰,适合学习使用。

    好了,今天就到这儿吧,小伙伴们点赞、收藏、评论,一键三连走起呀,下期见~~

  • 相关阅读:
    FAST-LIO2代码解析(四)
    【Notepad】Notepad++ 安装XML/Json插件,格式化xml/json文件
    Flink集群配置
    深入理解Redis 数据结构—字典
    基于最小均方误差linear minimum mean square error(LMMSE)插值算法的图像超分辨重构研究-附Matlab代码
    2023最新最全【虚幻4引擎】下载安装零基础教程
    liunx CentOs7安装MQTT服务器(mosquitto)
    第二批入围企业公示!年度TOP100智能网联供应商评选
    如何解决fiddler抓包安卓,Ios失败问题?
    True Global Ventures新成立的1.46亿美元后续基金关账,其中普通合伙人认缴6,200万美元以对后期阶段的Web3赢家进行投资
  • 原文地址:https://blog.csdn.net/mtyedu/article/details/126881040