项目介绍:
该系统创作于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"; }
以上就是部分功能展示,从整体上来看,本系统功能是十分完整的,界面设计简洁大方,交互友好,数据库设计也很合理,规模适中,代码工整,清晰,适合学习使用。
好了,今天就到这儿吧,小伙伴们点赞、收藏、评论,一键三连走起呀,下期见~~