项目开发技术:Jsp+Servlet
项目类型:JavaWeb
使用用途:毕业设计的参考
功能详情:分为医生、病人、管理员三种用户,功能较多。
本系统是大学毕业时和同学一起的毕业设计,在指导老师要求下多次修改完善,功能较为完善。主要技术为Jsp+Servlet的JavaWeb项目。另附上核心功能的主要代码以及对应的流程图等以供借鉴学习!
视频演示在下方
如果有需要,可以在公众号“那条学长”咨询我
随着人口老龄化,越来越多的老年人需要去医院就诊,甚至是一些年轻人也经常去医院排队就诊,看病一直是人们没法快速解决的事情,随着看病的人越来越多,而专家和医生却数量有限,所以看病难成了很多用户的共同感受。在大城市的三甲医院,像是南京军总医院,人民医院等大型医院常常在凌晨的5点就有一大群人在门口排队等待医院开门,以第一时间进去挂号就诊,而来得晚的用户则需要等候几个小时才能排到号,这在很多医院已经是习以为常的事情了。所以现在到大医院看病,出现了‘排队大半天,看病几分钟’的现状。
新阶段计算机技术以及互联网的发展使得现在的人们几乎已经普及了互联网的使用,因此越来越多的人适应了互联网+趋势,很多传统的线下服务都有了专门的线上平台。医院也是因为线下挂号经常需要让用户等很久,所以都逐渐开发了自己医院专属的网上预约挂号系统,方便人们预先挂好号,在对应的时间直接前来就诊,省去不必要的时间。
为了响应互联网+的趋势,并且解决去医院挂号要排队很久的难题,开发了一个基于SSM的医院预约挂号管理系统,其目的是方便人们在网上进行预约挂号,省去很长的排队等待时间。医院预约挂号管理系统的原理是,用户事先预约医生,进行挂号,挂号成功以后则不需要到医院进行排队挂号,到了约定的时间直接前往医院即可进行就诊。而医生则在使用本系统的时候进行挂号的审核,通过用户的挂号申请就算是完成一次预约。而管理员在后台进行数据的维护和管理。
通过开发医院预约挂号管理系统,能够极大程度地节省用户看病的等待时间,用户只需要在移动端或者网页端事先预约挂号就可以挂号成功,免去不必要的步骤。而医院使用这个系统则能够优化资源配置,为更多的用户提供医疗服务。
1.病人用户用例图
2.医生用户用例图
3.管理员用例图
4.系统架构图
5.预约挂号功能流程图
6.医生排班功能流程图
功能很完善的毕设源码——医院挂号系统
/*
Navicat Premium Data Transfer
Source Server : dyh
Source Server Type : MySQL
Source Server Version : 50722
Source Host : localhost:3306
Source Schema : jsp_yiyuan_manage
Target Server Type : MySQL
Target Server Version : 50722
File Encoding : 65001
Date: 26/10/2021 21:55:45
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for allusers
-- ----------------------------
DROP TABLE IF EXISTS `allusers`;
CREATE TABLE `allusers` (
`ID` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
`username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '管理员账号',
`pwd` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '密码',
`cx` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '权限',
`addtime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '添加时间',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of allusers
-- ----------------------------
INSERT INTO `allusers` VALUES (1, 'admin', 'admin', '超级管理员', '2020-06-27 15:58:04');
INSERT INTO `allusers` VALUES (4, '999', '999', '普通管理员', '2020-06-27 15:57:06');
INSERT INTO `allusers` VALUES (5, 'ad', '123456', '普通管理员', '2021-04-08 14:02:08');
INSERT INTO `allusers` VALUES (6, 'adm', '123456', '普通管理员', '2021-04-08 14:41:57');
-- ----------------------------
-- Table structure for chuangweixinxi
-- ----------------------------
DROP TABLE IF EXISTS `chuangweixinxi`;
CREATE TABLE `chuangweixinxi` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`mingcheng` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`keshi` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`fanghao` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`chuanghao` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`tupian` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`zhuangtai` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`jiage` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`beizhu` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`addtime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of chuangweixinxi
-- ----------------------------
INSERT INTO `chuangweixinxi` VALUES (12, '标准房', '骨科', '20', '2001', '', '已住', '', '阿萨德按时大师', '2020-05-10 12:23:02');
INSERT INTO `chuangweixinxi` VALUES (13, '单人房', '内科', '10', '1003', '', '已住', '', '电饭锅电饭锅大范甘迪发给', '2020-05-10 12:26:20');
INSERT INTO `chuangweixinxi` VALUES (14, '单人床', '外科', '1-401', '2001', '', '未住', '', '阿萨德阿萨德阿萨德阿萨德', '2020-05-10 21:56:49');
-- ----------------------------
-- Table structure for dx
-- ----------------------------
DROP TABLE IF EXISTS `dx`;
CREATE TABLE `dx` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`leibie` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci,
PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of dx
-- ----------------------------
INSERT INTO `dx` VALUES (1, '系统公告', ' 欢迎大家登陆我站,我站主要是为广大朋友精心制作的一个系统,希望大家能够在我站获得一个好心情,谢谢!
\r\n 自强不息,海纳百川,努力学习!
');
INSERT INTO `dx` VALUES (2, '系统简介', '系统简介');
INSERT INTO `dx` VALUES (3, '关于我们', ' 关于我们!!
');
INSERT INTO `dx` VALUES (4, '联系方式', '联系人:xxxxxxxx
电话:0000-0000000
手机:010000000000
传真:0000-0000000
邮件:[email protected]
地址:您公司的地址
网址:http://www.xxxx.com
');
-- ----------------------------
-- Table structure for keshixinxi
-- ----------------------------
DROP TABLE IF EXISTS `keshixinxi`;
CREATE TABLE `keshixinxi` (
`ID` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
`keshi` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '科室名称',
`addtime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '添加时间',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of keshixinxi
-- ----------------------------
INSERT INTO `keshixinxi` VALUES (1, '临床心理科', '2020-05-10 02:39:18');
INSERT INTO `keshixinxi` VALUES (4, '中医科', '2020-05-10 02:39:18');
INSERT INTO `keshixinxi` VALUES (5, '骨科', '2020-05-10 02:39:18');
INSERT INTO `keshixinxi` VALUES (6, '五官科', '2021-04-07 08:38:11');
INSERT INTO `keshixinxi` VALUES (7, '内科', '2020-05-10 17:41:53');
INSERT INTO `keshixinxi` VALUES (8, '外科', '2020-05-10 21:53:57');
INSERT INTO `keshixinxi` VALUES (9, '儿科', '2021-04-07 08:37:26');
INSERT INTO `keshixinxi` VALUES (10, '妇产科', '2021-04-07 08:37:44');
INSERT INTO `keshixinxi` VALUES (11, '口腔科', '2021-04-07 08:46:42');
-- ----------------------------
-- Table structure for liuyanban
-- ----------------------------
DROP TABLE IF EXISTS `liuyanban`;
CREATE TABLE `liuyanban` (
`ID` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
`cheng` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '留言人',
`xingbie` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`QQ` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`youxiang` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`dianhua` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`neirong` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '留言内容',
`addtime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '添加时间',
`huifuneirong` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '回复内容',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of liuyanban
-- ----------------------------
INSERT INTO `liuyanban` VALUES (5, '555', '', '', '', '', '第一次使用网上挂号,发现很方便快捷', '2021-04-08 14:40:54', '感谢支持!!');
-- ----------------------------
-- Table structure for paibanbiao
-- ----------------------------
DROP TABLE IF EXISTS `paibanbiao`;
CREATE TABLE `paibanbiao` (
`ID` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
`bianhao` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '排班编号',
`yishengbianhao` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '医生编号',
`yishengxingming` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '医生姓名',
`riqi` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '就诊日期',
`xingqi` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '星期',
`shiduan` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '时段',
`shengyuhao` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '可预约人数',
`addtime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '添加时间',
`jiuzhendidian` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '就诊地点',
`jiuzhenshijian` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '就诊时间',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of paibanbiao
-- ----------------------------
INSERT INTO `paibanbiao` VALUES (5, '04260311475482', '001', '陈智一', '2020-05-01', '五', '下午', '15', '2021-08-22 23:05:49', '科室八', '14:00—17:00');
INSERT INTO `paibanbiao` VALUES (6, '04260311475471', '001', '陈智一', '2020-05-01', '五', '上午', '25', '2021-04-07 09:23:33', '科室八', '8:00—11:00');
INSERT INTO `paibanbiao` VALUES (9, '03301742558424', '008', '蔡晓芳', '2020-04-07', '二', '上午', '18', '2021-04-08 14:14:25', '科室五', '8:00—11:00');
INSERT INTO `paibanbiao` VALUES (10, '05102154566002', '006', '陈燕琪', '2020-05-11', '一', '上午', '26', '2021-04-09 18:13:02', '科室四', '8:00—11:00');
INSERT INTO `paibanbiao` VALUES (11, '04070923511247', '013', '唐天驷', '2021-04-16', '五', '上午', '18', '2021-04-07 11:07:44', '科室七', '8:00—11:00');
INSERT INTO `paibanbiao` VALUES (12, '04070926312361', '012', '张薇', '2021-04-19', '一', '下午', '10', '2021-08-23 22:44:27', '科室六', '14:00—17:00');
INSERT INTO `paibanbiao` VALUES (13, '04070927018204', '011', '任现志', '2021-04-19', '一', '上午', '18', '2021-04-09 18:12:41', '科室三', '8:00—11:00');
INSERT INTO `paibanbiao` VALUES (14, '04070927238707', '011', '任现志', '2021-04-21', '三', '上午', '16', '2021-04-09 18:13:12', '科室三', '8:00—11:00');
INSERT INTO `paibanbiao` VALUES (15, '04070927488915', '010', '戴钧国', '2021-04-20', '二', '上午', '8', '2021-04-07 09:41:54', '科室一', '8:00—11:00');
INSERT INTO `paibanbiao` VALUES (16, '04070928169001', '009', '张芹华', '2021-04-22', '四', '上午', '13', '2021-04-08 14:19:27', '科室二', '8:00—11:00');
INSERT INTO `paibanbiao` VALUES (17, '04081412053669', '002', '杜晓东 ', '2021-04-16', '五', '上午', '18', '2021-04-08 19:10:03', '科室四', '8:00—11:00');
INSERT INTO `paibanbiao` VALUES (18, '04081412386025', '002', '杜晓东 ', '2021-04-16', '五', '下午', '16', '2021-04-08 20:29:49', '科室四', '14:00—17:00');
-- ----------------------------
-- Table structure for pinglun
-- ----------------------------
DROP TABLE IF EXISTS `pinglun`;
CREATE TABLE `pinglun` (
`ID` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
`xinwenID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '评论编号',
`pinglunneirong` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '评论内容',
`pinglunren` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '评论人',
`pingfen` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '评分',
`biao` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`addtime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '评论时间',
PRIMARY KEY (`ID`, `pinglunneirong`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of pinglun
-- ----------------------------
INSERT INTO `pinglun` VALUES (1, '7', '奥施康定阿萨德阿萨德', '666', '4', 'yishengxinxi', '2020-05-10 21:59:13');
INSERT INTO `pinglun` VALUES (2, '15', '医术高超!', '999', '1', 'yishengxinxi', '2021-04-07 21:10:24');
INSERT INTO `pinglun` VALUES (3, '9', 'keyi', 'ddd', '1', 'yishengxinxi', '2021-04-08 20:50:36');
INSERT INTO `pinglun` VALUES (4, '5', '医生挺好的', '戴婕', '1', 'yishengxinxi', '2021-04-09 18:05:22');
INSERT INTO `pinglun` VALUES (5, '5', '每次都是预约的陈医生', '戴婕', '1', 'yishengxinxi', '2021-04-09 18:05:43');
-- ----------------------------
-- Table structure for qingjia
-- ----------------------------
DROP TABLE IF EXISTS `qingjia`;
CREATE TABLE `qingjia` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
`start_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '开始时间',
`end_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '结束时间',
`reason` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '请假原因',
`status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '状态',
`userId` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '请假人',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qingjia
-- ----------------------------
INSERT INTO `qingjia` VALUES (1, '2021-04-07', '2021-04-15', '清明扫墓', '2', 'doctor');
INSERT INTO `qingjia` VALUES (2, '2021-04-10', '2021-04-11', '喝喜酒', '1', '011');
INSERT INTO `qingjia` VALUES (3, '2021-04-08', '2021-04-09', '私人', '2', '002');
INSERT INTO `qingjia` VALUES (4, '2021-04-08', '2021-04-09', '出差学习', '2', '011');
-- ----------------------------
-- Table structure for xinwentongzhi
-- ----------------------------
DROP TABLE IF EXISTS `xinwentongzhi`;
CREATE TABLE `xinwentongzhi` (
`ID` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
`biaoti` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '标题',
`leibie` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '类别',
`neirong` longtext CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '内容',
`tianjiaren` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '发布人',
`shouyetupian` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '图片',
`dianjilv` int(11) DEFAULT NULL COMMENT '点击率',
`addtime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '发布时间',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 56 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of xinwentongzhi
-- ----------------------------
INSERT INTO `xinwentongzhi` VALUES (54, '来的时候请出示防疫二维码', '就医指南', '来的时候请出示防疫二维码', 'hsg', 'upload/1585561300892.jpg', 19, '2021-08-22 23:04:22');
INSERT INTO `xinwentongzhi` VALUES (55, '就医指南', '就医指南', '就医指南', 'admin', 'upload/1629643816695.jpg', 2, '2021-08-22 23:04:18');