Java项目:springboot基于java+mysql+springboot的社区养老医疗综合服务平台

作者主页:夜未央5788

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

文末获取源码

项目介绍

本项目分为管理员、医生、病人三种角色,
管理员的功能包含如下:
个人信息:个人资料、修改密码
系统管理:用户管理、角色管理、部门管理、菜单管理、字典管理
药物信息管理
居民健康信息
居民就诊历史
我的预约信息
居民医保信息

医生的功能包含如下:
个人信息:个人资料、修改密码
药物信息管理
居民健康信息
居民就诊历史
我的预约信息
居民医保信息

病人的功能包含如下:
个人信息:个人资料、修改密码
居民医保信息
居民健康信息
居民就诊历史

我的预约信息

环境需要

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或8.0版本;

6.是否Maven项目:是;

技术栈

1. 后端:SpringBoot+mybatis-plus

2. 前端:HTML+CSS+javascript+jQuery+bootstrap+ztree

使用说明

1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件;
2. 使用IDEA/Eclipse/MyEclipse导入项目,导入成功后请执行maven clean;maven install命令,然后运行;
3. 将项目中application.yml配置文件中的数据库配置改为自己的配置;
4. 运行项目,在浏览器中输入http://localhost:8080/ 登录
管理员账号/密码:admin/111111
医生账号/密码:doctor/111111

病人账号/密码:doctor/111111

运行截图

 

 

 

 

 

 

代码相关

医生预约控制器

@Controller
@RequestMapping("/doctorPoint")
public class DoctorPointController extends BaseController {

    private String PREFIX = "/doctor_point/doctorPoint/";

    @Autowired
    private IDoctorPointService doctorPointService;

    /**
     * 跳转到医生预约首页
     */
    @RequestMapping("")
    public String index() {
        return PREFIX + "doctorPoint.html";
    }

    /**
     * 跳转到添加医生预约
     */
    @RequestMapping("/doctorPoint_add")
    public String doctorPointAdd() {
        return PREFIX + "doctorPoint_add.html";
    }

    /**
     * 跳转到修改医生预约
     */
    @RequestMapping("/doctorPoint_update/{doctorPointId}")
    public String doctorPointUpdate(@PathVariable Integer doctorPointId, Model model) {
        DoctorPoint doctorPoint = doctorPointService.selectById(doctorPointId);
        model.addAttribute("item",doctorPoint);
        LogObjectHolder.me().set(doctorPoint);
        return PREFIX + "doctorPoint_edit.html";
    }

    /**
     * 获取医生预约列表
     */
    @RequestMapping(value = "/list")
    @ResponseBody
    public Object list(String condition) {
        return doctorPointService.selectList(null);
    }

    /**
     * 新增医生预约
     */
    @RequestMapping(value = "/add")
    @ResponseBody
    public Object add(DoctorPoint doctorPoint) {
        doctorPointService.insert(doctorPoint);
        return SUCCESS_TIP;
    }

    /**
     * 删除医生预约
     */
    @RequestMapping(value = "/delete")
    @ResponseBody
    public Object delete(@RequestParam Integer doctorPointId) {
        doctorPointService.deleteById(doctorPointId);
        return SUCCESS_TIP;
    }

    /**
     * 修改医生预约
     */
    @RequestMapping(value = "/update")
    @ResponseBody
    public Object update(DoctorPoint doctorPoint) {
        doctorPointService.updateById(doctorPoint);
        return SUCCESS_TIP;
    }

    /**
     * 医生预约详情
     */
    @RequestMapping(value = "/detail/{doctorPointId}")
    @ResponseBody
    public Object detail(@PathVariable("doctorPointId") Integer doctorPointId) {
        return doctorPointService.selectById(doctorPointId);
    }
}

 药物管理控制器

@Controller
@RequestMapping("/medicineInfo")
public class MedicineInfoController extends BaseController {

    private String PREFIX = "/medicinemanager/medicineInfo/";

    @Autowired
    private IMedicineInfoService medicineInfoService;

    /**
     * 跳转到药物管理首页
     */
    @RequestMapping("")
    public String index() {
        return PREFIX + "medicineInfo.html";
    }

    /**
     * 跳转到添加药物管理
     */
    @RequestMapping("/medicineInfo_add")
    public String medicineInfoAdd() {
        return PREFIX + "medicineInfo_add.html";
    }

    /**
     * 跳转到修改药物管理
     */
    @RequestMapping("/medicineInfo_update/{medicineInfoId}")
    public String medicineInfoUpdate(@PathVariable Integer medicineInfoId, Model model) {
        MedicineInfo medicineInfo = medicineInfoService.selectById(medicineInfoId);
        model.addAttribute("item",medicineInfo);
        LogObjectHolder.me().set(medicineInfo);
        return PREFIX + "medicineInfo_edit.html";
    }

    /**
     * 获取药物管理列表
     */
    @RequestMapping(value = "/list")
    @ResponseBody
    public Object list(String condition) {
        return medicineInfoService.selectList(null);
    }

    /**
     * 新增药物管理
     */
    @RequestMapping(value = "/add")
    @ResponseBody
    public Object add(MedicineInfo medicineInfo) {
        medicineInfoService.insert(medicineInfo);
        return SUCCESS_TIP;
    }

    /**
     * 删除药物管理
     */
    @RequestMapping(value = "/delete")
    @ResponseBody
    public Object delete(@RequestParam Integer medicineInfoId) {
        medicineInfoService.deleteById(medicineInfoId);
        return SUCCESS_TIP;
    }

    /**
     * 修改药物管理
     */
    @RequestMapping(value = "/update")
    @ResponseBody
    public Object update(MedicineInfo medicineInfo) {
        medicineInfoService.updateById(medicineInfo);
        return SUCCESS_TIP;
    }

    /**
     * 药物管理详情
     */
    @RequestMapping(value = "/detail/{medicineInfoId}")
    @ResponseBody
    public Object detail(@PathVariable("medicineInfoId") Integer medicineInfoId) {
        return medicineInfoService.selectById(medicineInfoId);
    }
}

居民管理控制器

@Controller
@RequestMapping("/patientInfo")
public class PatientInfoController extends BaseController {

    private String PREFIX = "/patient/patientInfo/";

    @Autowired
    private IPatientInfoService patientInfoService;

    /**
     * 跳转到居民管理首页
     */
    @RequestMapping("")
    public String index() {
        return PREFIX + "patientInfo.html";
    }

    /**
     * 跳转到添加居民管理
     */
    @RequestMapping("/patientInfo_add")
    public String patientInfoAdd() {
        return PREFIX + "patientInfo_add.html";
    }

    /**
     * 跳转到修改居民管理
     */
    @RequestMapping("/patientInfo_update/{patientInfoId}")
    public String patientInfoUpdate(@PathVariable Integer patientInfoId, Model model) {
        PatientInfo patientInfo = patientInfoService.selectById(patientInfoId);
        model.addAttribute("item",patientInfo);
        LogObjectHolder.me().set(patientInfo);
        return PREFIX + "patientInfo_edit.html";
    }

    /**
     * 获取居民管理列表
     */
    @RequestMapping(value = "/list")
    @ResponseBody
    public Object list(String condition) {
        return patientInfoService.selectList(null);
    }

    /**
     * 新增居民管理
     */
    @RequestMapping(value = "/add")
    @ResponseBody
    public Object add(PatientInfo patientInfo) {
        patientInfoService.insert(patientInfo);
        return SUCCESS_TIP;
    }

    /**
     * 删除居民管理
     */
    @RequestMapping(value = "/delete")
    @ResponseBody
    public Object delete(@RequestParam Integer patientInfoId) {
        patientInfoService.deleteById(patientInfoId);
        return SUCCESS_TIP;
    }

    /**
     * 修改居民管理
     */
    @RequestMapping(value = "/update")
    @ResponseBody
    public Object update(PatientInfo patientInfo) {
        patientInfoService.updateById(patientInfo);
        return SUCCESS_TIP;
    }

    /**
     * 居民管理详情
     */
    @RequestMapping(value = "/detail/{patientInfoId}")
    @ResponseBody
    public Object detail(@PathVariable("patientInfoId") Integer patientInfoId) {
        return patientInfoService.selectById(patientInfoId);
    }
}

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

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

夜未央5788

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值