Java毕业设计基于springboot智慧养老中心管理系统

一、项目介绍

  时代在飞速进步, 每个行业都在努力发展现在先进技术,通过这些先进的技术来提高自己的水平和优势,智慧养老中心管理系统当然不能排除在外。智慧养老中心管理系统是在实际应用和软件工程的开发原理之上,运用Java语言以及SpringBoot+vue框架开发的一个管理系统。在开发过程中首先要对系统进行需求分析,分析出智慧养老中心管理系统的主要功能,再对系统结构进行整体设计和详细设计。整体设计主要有系统功能、系统总体结构、系统数据结构和系统安全等设计;过程的最后再对系统进行测试,并对测试结果进行分析和总结,为今后的系统维护提供了方便,同时也为今后类似系统的开发提供了参考和帮助。这种个性化的在线系统管理特别注重相互协调和管理合作,它激发了管理者的创造力和主动性,这对智慧养老中心管理系统来说非常有益。

关键词:智慧养老中心,SpringBoot+vue,Mysql

二、开发环境

开发语言:Java
框架:springboot
JDK版本:JDK1.8
服务器:tomcat7
数据库:mysql
数据库工具:Navicat11
开发软件:eclipse/myeclipse/idea
Maven包:Maven
————————————————

三、功能介绍

系统启动后,在登录界面,输入正确的账号密码,选择进入管理员界面或老人信息界面,管理员界面是用来管理页面与老人信息,老人信息界面可以正常的使用发布文章等功能,系统登录结构图如图4-1所示。
Java毕业设计基于springboot智慧养老中心管理系统_第1张图片

图4-1 系统登录结构图
管理员模块属于是网站的后台,进入之后有大量的管理员功能,管理员也可以使用老人信息模块的功能,为了维护网站的稳定与页面的布局,将管理员模块的功能详细化后可以使用系统管理对页面进行布局修改,可以发布公告提示老人信息规范,老人信息模块只可以查看健康信息和费用收缴信息,并且更改个人信息,智慧养老中心总体结构图如图4-2所示。
Java毕业设计基于springboot智慧养老中心管理系统_第2张图片

图4-2 智慧养老中心总体结构图

四、核心代码

部分代码:

package com.example.controller;

import cn.hutool.core.util.StrUtil;
import cn.hutool.crypto.SecureUtil;
import com.example.common.Result;
import com.example.common.ResultCode;
import com.example.entity.Caiwu;
import com.example.exception.CustomException;
import com.example.service.CaiwuService;
import com.example.utils.MapWrapperUtils;
import com.example.utils.jwt.JwtUtil;
import com.example.vo.CaiwuVo;
import org.springframework.beans.BeanUtils;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping(value = "/caiwu")
public class CaiwuController {

    @Resource
    private CaiwuService caiwuService;

    @PostMapping
    public Result<Caiwu> add(@RequestBody CaiwuVo caiwu) {
        caiwuService.add(caiwu);
           return Result.success(caiwu);
    }
	
	

    @PostMapping("/deleteList")
    public Result<Caiwu> deleteList(@RequestBody CaiwuVo caiwu) {
        caiwuService.deleteList(caiwu.getList());
        return Result.success();
    }

    @DeleteMapping("/{id}")
    public Result delete(@PathVariable Long id) {
        caiwuService.delete(id);
        return Result.success();
    }

    @PutMapping
    public Result update(@RequestBody CaiwuVo caiwu) {
        caiwuService.update(caiwu);
        return Result.success();
    }

    @GetMapping("/{id}")
    public Result<Caiwu> detail(@PathVariable Integer id) {
        Caiwu caiwu = caiwuService.findById(id);
        return Result.success(caiwu);
    }

    @GetMapping
    public Result<List<Caiwu>> all() {
        return Result.success(caiwuService.list());
    }

    @PostMapping("/page")
    public Result<CaiwuVo> page(@RequestBody CaiwuVo caiwuVo) {
        return Result.success(caiwuService.findPage(caiwuVo));
    }
	    @PostMapping("/login")
    public Result login(@RequestBody Caiwu caiwu, HttpServletRequest request) {
        if (StrUtil.isBlank(caiwu.getZhanghao()) || StrUtil.isBlank(caiwu.getMima())) {
            throw new CustomException(ResultCode.PARAM_LOST_ERROR);
        }
        Caiwu login = caiwuService.login(caiwu);
//        if(!login.getStatus()){
//            return Result.error("1001","状态限制,无法登录系统");
//        }
        if(login != null) {
            HashMap hashMap = new HashMap();
            hashMap.put("user", login);
            Map<String, Object> map = MapWrapperUtils.builder(MapWrapperUtils.KEY_USER_ID,caiwu.getId());
            String token = JwtUtil.creatToken(map);
            hashMap.put("token", token);
            return Result.success(hashMap);
        }else {
            return Result.error();
        }
    }
    @PutMapping("/updatePassword")
    public Result updatePassword(@RequestBody Caiwu info, HttpServletRequest request) {
        Caiwu caiwu = caiwuService.findById(info.getId());
        String oldPassword = SecureUtil.md5(info.getMima());
        if (!oldPassword.equals(caiwu.getMima())) {
            return Result.error(ResultCode.PARAM_PASSWORD_ERROR.code, ResultCode.PARAM_PASSWORD_ERROR.msg);
        }
        info.setMima(SecureUtil.md5(info.getNewPassword()));
        Caiwu caiwu1 = new Caiwu();
        BeanUtils.copyProperties(info, caiwu1);
        caiwuService.update(caiwu1);
        return Result.success();
    }
}

五、效果图

Java毕业设计基于springboot智慧养老中心管理系统_第3张图片

Java毕业设计基于springboot智慧养老中心管理系统_第4张图片
Java毕业设计基于springboot智慧养老中心管理系统_第5张图片
Java毕业设计基于springboot智慧养老中心管理系统_第6张图片
Java毕业设计基于springboot智慧养老中心管理系统_第7张图片

六、文章目录

目 录
第1章 绪 论 1
1.1 课题的研究背景 1
1.2 课题研究目的 1
1.3 课题的研究意义 1
第2章 相关技术 2
2.1 JAVA简介 2
2.2 SpringBoot框架 2
2.3 Vue框架 2
2.4 Tomcat服务器 2
2.5 MySQL数据库 3
2.6 本章小结 3
第3章 系统分析 4
3.1 技术可行性分析 4
3.2 操作可行性分析 4
3.3 需求分析 4
3.4 项目设计目标 4
3.4.1 关于系统的基本要求 4
3.4.2开发目标 5
3.5 系统流程分析 5
3.6 本章小结 7
第4章 系统设计 8
4.1 系统体系结构 8
4.2 开发流程设计 9
4.3 数据库设计原则 10
4.4 数据表信息 12
4.5 本章小结 16
第5章 系统实现 17
5.1系统功能实现 17
5.2后台模块实现 20
5.2.1管理员模块实现 20
5.2.2老人信息后台管理模块 23
5.3 本章小结 24
第6章 系统测试 25
6.1 系统测试的目的 25
6.2 系统测试方法 25
6.3 功能测试 25
6.4 本章小结 26
结 论 27
参考文献 28
致 谢 29

你可能感兴趣的:(ssm,计算机毕业设计,java,课程设计,android)