Springboot养老院管理系统

  • Post author:
  • Post category:其他


作者主页:

夜未央5788

简介:Java领域优质创作者、Java项目、学习资料、技术互助


文末获取源码

项目介绍

基于springboot的养老院管理系统,本系统为后台管理系统,分为三个角色,分别是超级管理员、管理员、用户。

超级管理员、管理员的功能如下:

登录、修改密码、账号管理、健康档案管理、病例管理、药品管理、每月餐饮管理、外出报备、入住登记、寝室分配、事故记录、访客记录、收费管理; 其中超级管理员可进行管理员账号管理;

用户的功能如下:

登录、修改密码、个人信息、家人情况、每月餐饮管理、外出报备、查看收费标准

环境需要

1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。

2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;

3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可

4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;

5.数据库:MySql 5.7版本;

6.是否Maven项目: 是;查看源码目录中是否包含pom.xml;

若包含,则为maven项目,否则为非maven项目

技术栈

1.后端:springboot+Mybatis

2.前端:HTML+thymeleaf+Javascript+css

使用说明

1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件;

2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven;

若为maven项目,导入成功后请执行maven clean;maven install命令,配置tomcat;

3. 将项目中application-dev.yml配置文件中的数据库配置改为自己的配置

4. 运行项目,在浏览器中输入地址:http://localhost:8080/ 登录账号;

超级管理员:root/123456

管理员:admin/123456

用户:user/123456

代码实现:

运行截图


 /** 修 改 管 理 员 */
    @GetMapping("/modifyAdmin")
    public String modifyAdmin(@RequestParam(value = "adminId") long adminId,
                              Model model){
        AdminInfo adminInfo = adminInfoService.getById(adminId);
        model.addAttribute("adminInfo",adminInfo);
        return "page/modify/modifyAdmin";
    }

    @GetMapping("/modifyUsr")
    public String modifyUsr(@RequestParam(value = "usrId") long usrId,
                              Model model){
        UsrInfo usrInfo = usrInfoService.getById(usrId);
        model.addAttribute("usrInfo",usrInfo);
        return "page/modify/modifyUsr";
    }

    @GetMapping("/modifyHealth")
    public String modifyHealth(@RequestParam(value = "id") long id,
                            Model model){
        HealthRecords healthRecord = healthRecordsService.getById(id);
        model.addAttribute("healthRecord",healthRecord);
        return "page/modify/modifyHealth";
    }


    @GetMapping("/modifyHigh")
    public String modifyHigh(@RequestParam(value = "id") long id,
                               Model model){
        HighRisk highRisk = highRiskService.getById(id);
        model.addAttribute("highRisk",highRisk);
        return "page/modify/modifyHigh";
    }

    @GetMapping("/modifyMedication")
    public String modifyMedication(@RequestParam(value = "id") long id,
                             Model model){
        Medication medication = medicationService.getById(id);
        model.addAttribute("medication",medication);
        return "page/modify/modifyMedication";
    }


    @GetMapping("/modifyMon")
    public String modifyMon(@RequestParam(value = "id") long id,
                             Model model){
        MonthlyCatering monthlyCatering = monthlyCateringService.getById(id);
        model.addAttribute("monthlyCatering",monthlyCatering);
        return "page/modify/modifyCatering";
    }


    @GetMapping("/modifyOut")
    public String modifyOut(@RequestParam(value = "id") long id,
                            Model model){
        GoOut goOut = goOutService.getById(id);
        model.addAttribute("goOut",goOut);
        return "page/modify/modifyOut";
    }

    @GetMapping("/modifyOlder")
    public String modifyOlder(@RequestParam(value = "olderId") long olderId,
                              Model model){
        OlderInfo olderInfo = olderInfoService.getById(olderId);
        model.addAttribute("olderInfo",olderInfo);
        return "page/modify/modifyOlder";
    }



    @GetMapping("/modifyDorm")
    public String modifyDorm(@RequestParam(value = "id") long id,
                              Model model){
        DormitoryAllocation dormitoryAllocation = dormitoryAllocationService.getById(id);
        model.addAttribute("dormitoryAllocation",dormitoryAllocation);
        return "page/modify/modifyDormitory";
    }


    @GetMapping("/modifyAcc")
    public String modifyAcc(@RequestParam(value = "id") long id,
                             Model model){
        AccidentRecord accidentRecord = accidentRecordService.getById(id);
        model.addAttribute("accidentRecord",accidentRecord);
        return "page/modify/modifyAccident";
    }


    @GetMapping("/modifyVis")
    public String modifyVis(@RequestParam(value = "id") long id,
                             Model model){
        Visitor visitor = visitorService.getById(id);
        model.addAttribute("visitor",visitor);
        return "page/modify/modifyVisitor";
    }


    @GetMapping("/modifyCheck")
    public String modifyCheck(@RequestParam(value = "id") long id,
                             Model model){
        CheckIn checkIn = checkInService.getById(id);
        model.addAttribute("checkIn",checkIn);
        return "page/modify/modifyCheckIn";
    }


    @GetMapping("/modifyNurs")
    public String modifyNurs(@RequestParam(value = "id") long id,
                             Model model){
        Nursing nursing = nursingService.getById(id);
        model.addAttribute("nursing",nursing);
        return "page/modify/modifyNursing";
    }




    @GetMapping("/rootInfo")
    public String info() {
        return "page/rootInfo";
    }

    @GetMapping("/admin")
    public String admin() {
        return "page/admin";
    }

    @GetMapping("/usr")
    public String usr() {
        return "page/usr";
    }

    @GetMapping("/older")
    public String older() {
        return "page/older";
    }


    @GetMapping("/rootAltPwd")
    public String rootAltPwd() {
        return "page/modify/rootAltPwd";
    }

    @GetMapping("/adminAltPwd")
    public String adminAltPwd() {
        return "page/modify/adminAltPwd";
    }

源码获取

如果也想学习本系统,下面领取。回复:

084springboot

👇🏻 源码可通过搜索下方 公众号 获取👇🏻



版权声明:本文为hanyunlong1989原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。