基于springboot的疫情防控系统

博主主页猫头鹰源码

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

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

文末联系获取

项目介绍:

该系统创作于2022年4月,基于springboot技术,包含详细数据库设计,数据层为MyBatis,mysql数据库,具有完整的业务逻辑,适合选题:疫情、防控、疫情防控、疫情管理等。

项目功能:

管理员  教师管理:维护教师信息 学生管理:维护学生信息 请假管理:查看请假记录 健康打卡:查看学生打卡记录 疫情通知管理:维护通知信息  教师: 学生管理:查看学生信息 请假管理:审批请假 疫情通知管理:查询  学生: 健康打卡: 请假管理:请假 疫情通知管理:查询 

数据模型:

数据库表结构文档: 

系统包含技术:

后端:SSM/springboot
前端:layui,js,css等,html页面
开发工具:idea
数据库:mysql 5.7
JDK版本:jdk1.8
tomcat版本:tomcat8

部分截图说明:

下面是登录页面

 

管理员登录后的首页

管理员对教师管理

管理员对学生维护

 管理员对请假维护

 管理员健康打卡管理

教师请假管理

学生对个人信息维护

学生请假

部分代码:

健康打卡

  // 依赖注入     @Autowired     private HealthyService healthyService;     @Autowired     private StudentService studentService;      /**进入列表页面*/     @GetMapping("/healthy")     public String userIframe(Model model,HttpSession session){         String type = (String)session.getAttribute("type");         Student student = new Student();         if(type.equals("03")){             Student students = (Student)session.getAttribute("userInfo");             student.setId(students.getId());         }         List<Student> students = studentService.selectByCondition(student);         model.addAttribute("students",students);         return "HealthyList";     }      /**列表数据*/     @GetMapping("/list")     @ResponseBody     public PageResultVo findHealthy(Healthy healthy, Integer limit, Integer page, HttpSession session){         String type = (String)session.getAttribute("type");         if(type.equals("03")){             Student student = (Student)session.getAttribute("userInfo");             healthy.setSid(String.valueOf(student.getId()));         }         PageHelper.startPage(page,limit);         List<Healthy> healthyList = healthyService.selectByCondition(healthy);         PageInfo<Healthy> pages = new PageInfo<>(healthyList);         return JsonData.table(healthyList,pages.getTotal());     }       /**编辑详情*/     @GetMapping("/edit")     @ResponseBody     public Healthy edit(Model model, String id){         return healthyService.selectById(id);     }       /**编辑*/     @PostMapping("/edit")     @ResponseBody     public JsonData edit(Healthy healthy){         int a = healthyService.updateById(healthy);         if (a > 0) {           return JsonData.success(null,"编辑成功!");         } else {           return JsonData.fail("编辑失败");         }     }       /**删除*/     @PostMapping("/del")     @ResponseBody     public JsonData del(String id){         try{           healthyService.deleteById(Integer.parseInt(id));         }catch(Exception ex){           JsonData.fail("出现错误");         }         return JsonData.success(null,"删除成功");     }      /**新增*/     @PostMapping("/add")     @ResponseBody     public JsonData add(Healthy healthy, HttpSession session){         Date date = new Date();         healthy.setCreateTime(date);         Student student = (Student)session.getAttribute("userInfo");         if(student!=null){             healthy.setSid(String.valueOf(student.getId()));         }         int num = healthyService.addByCondition(healthy);         if(num > 0){           return JsonData.success(null,"添加成功");         }else {           return JsonData.fail("添加失败");         }     }

登录操作

/** 	 * 登录 	 * 将提交数据(username,password)写入Admin对象 	 */ 	@RequestMapping(value = "/login") 	@ResponseBody 	public String login(String username, String password, String type, Model model, HttpSession session) { 		Map mp = new HashMap(); 		if(username.equals("") || password.equals("")){ 			return "202"; 		} 		if(type.equals("01")){ 			mp.put("username",username); 			mp.put("password",password); 			List<Admin> admins = adminService.queryFilter(mp); 			if(admins!=null && admins.size()==1){ 				session.setAttribute("userInfo", admins.get(0)); 				session.setAttribute("type", "01"); 			}else{ 				return "201"; 			} 		}else if(type.equals("02")){ 			mp.put("phone",username); 			mp.put("password",password); 			List<Teacher> manages = teacherService.queryFilter(mp); 			if(manages!=null && manages.size()==1){ 				session.setAttribute("userInfo", manages.get(0)); 				session.setAttribute("type", "02"); 			}else{ 				return "201"; 			} 		}else{ 			mp.put("phone",username); 			mp.put("password",password); 			List<Student> users = studentService.queryFilter(mp); 			if(users!=null && users.size()==1){ 				session.setAttribute("userInfo", users.get(0)); 				session.setAttribute("type", "03"); 			}else{ 				return "201"; 			} 		} 		return "200"; 	}

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

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值