计算机毕业设计-基于Java+SSM架构的中小型医院管理系统项目开发实战(附源码+论文)

大家好!我是程序员一帆,感谢您阅读本文,欢迎一键三连哦。

💞当前专栏:Java毕业设计

精彩专栏推荐👇🏻👇🏻👇🏻

🎀 Python毕业设计
🌎微信小程序毕业设计

开发环境

  • 开发语言:Java
  • 框架:ssm
  • JDK版本:JDK1.8
  • 服务器:tomcat7
  • 数据库:mysql 5.7
  • 数据库工具:Navicat12
  • 开发软件:eclipse/myeclipse/idea
  • Maven包:Maven3.3.9
  • 浏览器:谷歌浏览器

源码下载地址:

https://download.csdn.net/download/2301_76953549/89292382

论文目录

【如需全文请按文末获取联系】
在这里插入图片描述
在这里插入图片描述

一、项目简介

本中小型医院管理系统采用SSM框架进行设计,语言采用Java,数据库为Mysql。在技术中加入Jsp,使界面更加丰富、友好。本系统针对医院办公而开发,使用角色为管理员和用户、医生。用户可以通过注册登录,在界面里浏览门诊进行挂号,可以查询处方信息和门诊项目信息以及进行住院登记和查询出院信息。管理员可以管理用户信息、门诊信息、科室信息、挂号信息、药品信息、门诊项目信息等。医生可以管理挂号信息和进行开处方、查询药品等。

二、系统设计

2.1软件功能模块设计

本系统的功能结构图如下图4.1所示:
在这里插入图片描述

2.2数据库设计

(1)管理员实体的属性为用户名和密码。管理员实体ER图如下图4.2所示:
在这里插入图片描述
(2)用户实体的属性为编号、姓名、性别、病历等。用户实体ER图如下图4.3所示:
在这里插入图片描述
(3)挂号信息实体的属性包括编号、挂号医生、挂号时间等。挂号信息实体ER图如下图4.4所示:
在这里插入图片描述

(6)本系统的关系ER图如下图4.7所示:
在这里插入图片描述

三、系统项目部分截图

3.1前台界面的实现

首页界面的实现
本功能设计的目的是帮助用户一键返回首页,在首页里的元素包括图片、列表框、文字、按钮等。在首页的上半部分是粉底白字的系统名称,系统名称下面是导航栏,接着就是图片,图片下面是门诊信息。首页界面的实现界面如下图5.1所示:
在这里插入图片描述
门诊功能的实现界面
在门诊功能里可以看到坐诊的科室和医生等信息。门诊功能的实现界面如下图5.2所示:
在这里插入图片描述
科室的实现界面如下图5.3所示:
在这里插入图片描述

3.2用户角色功能的界面实现

挂号功能的实现界面
用户在门诊信息里可以挂号,挂号成功后可以管理挂号信息和在线支付费用。挂号功能的实现界面如下图5.6所示:
在这里插入图片描述
处方信息管理功能的实现界面
用户可以查询医生开出的处方,并进行费用的支付。处方信息功能的实现界面如下图5.7所示:
在这里插入图片描述
门诊项目功能的实现界面
用户可以查询门诊项目。门诊项目功能的实现界面如下图5.8所示:
在这里插入图片描述
住院登记功能的实现界面
用户可以查询住院的详情。住院登记功能的实现界面如下图5.9所示:
在这里插入图片描述

3.3管理员功能的实现界面

管理员的功能为管理前台信息和审核医生管理的功能以及管理用户信息。管理的前台信息包括公告信息、门诊信息、项目信息、类型信息等。管理员功能的实现界面如下图5.11所示:
在这里插入图片描述

3.4医生功能的实现界面

在这里插入图片描述

四、部分核心代码

package com.controller;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;

import com.entity.GuahaoxinxiEntity;
import com.entity.view.GuahaoxinxiView;

import com.service.GuahaoxinxiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import java.io.IOException;

/**
 * 挂号信息
 * 后端接口
 * @author 
 * @email 
 * @date 2022-03-13 22:12:44
 */
@RestController
@RequestMapping("/guahaoxinxi")
public class GuahaoxinxiController {
    @Autowired
    private GuahaoxinxiService guahaoxinxiService;



    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,GuahaoxinxiEntity guahaoxinxi, 
		HttpServletRequest request){

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("yisheng")) {
			guahaoxinxi.setYishengzhanghao((String)request.getSession().getAttribute("username"));
		}
		if(tableName.equals("yonghu")) {
			guahaoxinxi.setYonghuzhanghao((String)request.getSession().getAttribute("username"));
		}
        EntityWrapper<GuahaoxinxiEntity> ew = new EntityWrapper<GuahaoxinxiEntity>();
    	PageUtils page = guahaoxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, guahaoxinxi), params), params));
		request.setAttribute("data", page);
        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
	@IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,GuahaoxinxiEntity guahaoxinxi, 
		HttpServletRequest request){
        EntityWrapper<GuahaoxinxiEntity> ew = new EntityWrapper<GuahaoxinxiEntity>();
    	PageUtils page = guahaoxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, guahaoxinxi), params), params));
		request.setAttribute("data", page);
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( GuahaoxinxiEntity guahaoxinxi){
       	EntityWrapper<GuahaoxinxiEntity> ew = new EntityWrapper<GuahaoxinxiEntity>();
      	ew.allEq(MPUtil.allEQMapPre( guahaoxinxi, "guahaoxinxi")); 
        return R.ok().put("data", guahaoxinxiService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(GuahaoxinxiEntity guahaoxinxi){
        EntityWrapper< GuahaoxinxiEntity> ew = new EntityWrapper< GuahaoxinxiEntity>();
 		ew.allEq(MPUtil.allEQMapPre( guahaoxinxi, "guahaoxinxi")); 
		GuahaoxinxiView guahaoxinxiView =  guahaoxinxiService.selectView(ew);
		return R.ok("查询挂号信息成功").put("data", guahaoxinxiView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        GuahaoxinxiEntity guahaoxinxi = guahaoxinxiService.selectById(id);
        return R.ok().put("data", guahaoxinxi);
    }

    /**
     * 前端详情
     */
	@IgnoreAuth
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        GuahaoxinxiEntity guahaoxinxi = guahaoxinxiService.selectById(id);
        return R.ok().put("data", guahaoxinxi);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody GuahaoxinxiEntity guahaoxinxi, HttpServletRequest request){
    	guahaoxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(guahaoxinxi);

        guahaoxinxiService.insert(guahaoxinxi);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody GuahaoxinxiEntity guahaoxinxi, HttpServletRequest request){
    	guahaoxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(guahaoxinxi);

        guahaoxinxiService.insert(guahaoxinxi);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody GuahaoxinxiEntity guahaoxinxi, HttpServletRequest request){
        //ValidatorUtils.validateEntity(guahaoxinxi);
        guahaoxinxiService.updateById(guahaoxinxi);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        guahaoxinxiService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
    
    /**
     * 提醒接口
     */
	@RequestMapping("/remind/{columnName}/{type}")
	public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 
						 @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
		map.put("column", columnName);
		map.put("type", type);
		
		if(type.equals("2")) {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			Calendar c = Calendar.getInstance();
			Date remindStartDate = null;
			Date remindEndDate = null;
			if(map.get("remindstart")!=null) {
				Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
				c.setTime(new Date()); 
				c.add(Calendar.DAY_OF_MONTH,remindStart);
				remindStartDate = c.getTime();
				map.put("remindstart", sdf.format(remindStartDate));
			}
			if(map.get("remindend")!=null) {
				Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
				c.setTime(new Date());
				c.add(Calendar.DAY_OF_MONTH,remindEnd);
				remindEndDate = c.getTime();
				map.put("remindend", sdf.format(remindEndDate));
			}
		}
		
		Wrapper<GuahaoxinxiEntity> wrapper = new EntityWrapper<GuahaoxinxiEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("yisheng")) {
			wrapper.eq("yishengzhanghao", (String)request.getSession().getAttribute("username"));
		}
		if(tableName.equals("yonghu")) {
			wrapper.eq("yonghuzhanghao", (String)request.getSession().getAttribute("username"));
		}

		int count = guahaoxinxiService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	
	





}

获取源码或论文

如需对应的论文或源码,以及其他定制需求,也可以下方微❤联系。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值