计算机毕业设计 基于Javaweb的城乡居民基本医疗信息管理系统的设计与实现 Java实战项目 附源码+文档+视频讲解
博主介绍:?从事软件开发10年之余,专注于Java技术领域、Python人工智能及数据挖掘、小程序项目开发和Android项目开发等。CSDN、掘金、华为云、InfoQ、阿里云等平台优质作者?
🍅文末获取源码联系🍅
👇🏻 精彩专栏推荐订阅👇🏻 不然下次找不到哟
————————————————
计算机毕业设计《1000套》?
目录
1、项目介绍及开发技术
1.1 项目介绍
信息数据从传统到当代,是一直在变革当中,突如其来的互联网让传统的信息管理看到了革命性的曙光,因为传统信息管理从时效性,还是安全性,还是可操作性等各个方面来讲,遇到了互联网时代才发现能补上自古以来的短板,有效的提升管理的效率和业务水平。传统的管理模式,时间越久管理的内容越多,也需要更多的人来对数据进行整理,并且数据的汇总查询方面效率也是极其的低下,并且数据安全方面永远不会保证安全性能。结合数据内容管理的种种缺点,在互联网时代都可以得到有效的补充。结合先进的互联网技术,开发符合需求的软件,让数据内容管理不管是从录入的及时性,查看的及时性还是汇总分析的及时性,都能让正确率达到最高,管理更加的科学和便捷。本次开发的城乡居民基本医疗信息管理系统实现了病例管理、病人管理、字典管理、医院资讯管理、药品管理、药品入库管理、药品使用管理、医生管理、医生咨询管理、医生挂号管理、用户管理、管理员管理等功能。系统用到了关系型数据库中王者MySql作为系统的数据库,有效的对数据进行安全的存储,有效的备份,对数据可靠性方面得到了保证。并且程序也具备程序需求的所有功能,使得操作性还是安全性都大大提高,让城乡居民基本医疗信息管理系统更能从理念走到现实,确确实实的让人们提升信息处理效率。
1.2 开发技术
Java开发语言、SpringBoot、MyBatisPlus、MySQL数据库、Maven、IDEA开发工具、JDK1.8+、Vue、HTML、CSS、JS。
2、系统功能设计结构图
3、功能截图
病历管理:管理员对病例进行增加、修改、删除、查看的等功能的操作。
医疗资讯信息管理: 管理员可以新增医院资讯,修改医院资讯,删除医院资讯操作。下图就是医院资讯信息管理页面。
医疗资讯类型管理:在此页面既可以让管理员添加新的医院资讯信息类型,也能对已有的医院资讯类型信息执行编辑更新,失效的医院资讯类型信息也能让管理员快速删除。
4、数据库表结构设计
CREATE DATABASE /*!32312 IF NOT EXISTS*/`chengxiangjuminyiliao` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `chengxiangjuminyiliao`;
/*Table structure for table `bingli` */
DROP TABLE IF EXISTS `bingli`;
CREATE TABLE `bingli` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`bingli_uuid_number` varchar(200) DEFAULT NULL COMMENT '病例编号 Search111 ',
`bingren_id` int(11) DEFAULT NULL COMMENT '病人',
`yisheng_id` int(11) DEFAULT NULL COMMENT '医生',
`jiancha_time` timestamp NULL DEFAULT NULL COMMENT '检查时间',
`bingrenzishu_content` text COMMENT '病人自述',
`jianchajieguo_content` text COMMENT '检查结果',
`yishengkaifang_content` text COMMENT '医生开方',
`yishengjianyi_content` text COMMENT '医生建议',
`huafeijine` decimal(10,2) DEFAULT NULL COMMENT '花费金额',
`xiacijiuzhen_time` timestamp NULL DEFAULT NULL COMMENT '下次就诊时间',
`bingli_types` int(11) DEFAULT NULL COMMENT '状态 Search111 ',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '录入时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 listShow',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='病例';
/*Data for the table `bingli` */
insert into `bingli`(`id`,`bingli_uuid_number`,`bingren_id`,`yisheng_id`,`jiancha_time`,`bingrenzishu_content`,`jianchajieguo_content`,`yishengkaifang_content`,`yishengjianyi_content`,`huafeijine`,`xiacijiuzhen_time`,`bingli_types`,`insert_time`,`create_time`) values (1,'1678931812337',1,3,'2023-03-16 09:56:52','病人自述1','检查结果1','医生开方1','医生建议1','220.88','2023-03-16 09:56:52',1,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(2,'1678931812363',2,1,'2023-03-16 09:56:52','病人自述2','检查结果2','医生开方2','医生建议2','35.17','2023-03-16 09:56:52',1,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(3,'1678931812353',3,3,'2023-03-16 09:56:52','病人自述3','检查结果3','医生开方3','医生建议3','697.27','2023-03-16 09:56:52',1,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(4,'1678931812347',4,3,'2023-03-16 09:56:52','病人自述4','检查结果4','医生开方4','医生建议4','700.11','2023-03-16 09:56:52',1,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(5,'1678931812361',5,1,'2023-03-16 09:56:52','病人自述5','检查结果5','医生开方5','医生建议5','871.15','2023-03-16 09:56:52',2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(6,'1678931812335',6,3,'2023-03-16 09:56:52','病人自述6','检查结果6','医生开方6','医生建议6','811.09','2023-03-16 09:56:52',1,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(7,'1678931812325',7,2,'2023-03-16 09:56:52','病人自述7','检查结果7','医生开方7','医生建议7','563.76','2023-03-16 09:56:52',2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(8,'1678931812391',8,2,'2023-03-16 09:56:52','病人自述8','检查结果8','医生开方8','医生建议8','193.09','2023-03-16 09:56:52',2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(9,'1678931812348',9,2,'2023-03-16 09:56:52','病人自述9','检查结果9','医生开方9','医生建议9','232.46','2023-03-16 09:56:52',1,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(10,'1678931812337',10,2,'2023-03-16 09:56:52','病人自述10','检查结果10','医生开方10','医生建议10','976.16','2023-03-16 09:56:52',1,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(11,'1678931812377',11,3,'2023-03-16 09:56:52','病人自述11','检查结果11','医生开方11','医生建议11','282.96','2023-03-16 09:56:52',1,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(12,'1678931812393',12,2,'2023-03-16 09:56:52','病人自述12','检查结果12','医生开方12','医生建议12','392.90','2023-03-16 09:56:52',2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(13,'1678931812405',13,1,'2023-03-16 09:56:52','病人自述13','检查结果13','医生开方13','医生建议13','357.78','2023-03-16 09:56:52',2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(14,'1678931812414',14,3,'2023-03-16 09:56:52','病人自述14','检查结果14','医生开方14','医生建议14','144.40','2023-03-16 09:56:52',2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(15,'1678939032236',14,1,'2023-03-16 11:57:17','<p>更好地非官方的烦得很东风浩荡</p>','<p>发鬼地方个防火防盗计划管</p>','<p>将基金奖金军军军军军军军军军军</p>','<p>将基金奖金军军军军军军军军军</p>','999.00','2023-03-24 00:00:00',1,'2023-03-16 11:57:34','2023-03-16 11:57:34');
/*Table structure for table `bingren` */
DROP TABLE IF EXISTS `bingren`;
CREATE TABLE `bingren` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',
`kanhuren_name` varchar(200) DEFAULT NULL COMMENT '看护人姓名 Search111 ',
`kanhuren_phone` varchar(200) DEFAULT NULL COMMENT '看护人联系方式',
`bingren_name` varchar(200) DEFAULT NULL COMMENT '病人姓名 Search111 ',
`bingren_phone` varchar(200) DEFAULT NULL COMMENT '病人手机号',
`bingren_id_number` varchar(200) DEFAULT NULL COMMENT '病人身份证号',
`sex_types` int(11) DEFAULT NULL COMMENT '性别',
`bingren_types` int(11) DEFAULT NULL COMMENT '病人类型 Search111 ',
`age` int(11) DEFAULT NULL COMMENT '年龄',
`bingren_photo` varchar(200) DEFAULT NULL COMMENT '病人照片',
`bingren_content` text COMMENT '病人描述',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '来访时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 listShow',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='病人';
/*Data for the table `bingren` */
insert into `bingren`(`id`,`yonghu_id`,`kanhuren_name`,`kanhuren_phone`,`bingren_name`,`bingren_phone`,`bingren_id_number`,`sex_types`,`bingren_types`,`age`,`bingren_photo`,`bingren_content`,`insert_time`,`create_time`) values (1,1,'看护人姓名1','17703786901','病人姓名1','17703786901','410224199010102001',2,2,185,'upload/bingren1.jpg','病人描述1','2023-03-16 09:56:52','2023-03-16 09:56:52'),(2,3,'看护人姓名2','17703786902','病人姓名2','17703786902','410224199010102002',1,1,473,'upload/bingren2.jpg','病人描述2','2023-03-16 09:56:52','2023-03-16 09:56:52'),(3,3,'看护人姓名3','17703786903','病人姓名3','17703786903','410224199010102003',2,2,342,'upload/bingren3.jpg','病人描述3','2023-03-16 09:56:52','2023-03-16 09:56:52'),(4,2,'看护人姓名4','17703786904','病人姓名4','17703786904','410224199010102004',2,1,433,'upload/bingren4.jpg','病人描述4','2023-03-16 09:56:52','2023-03-16 09:56:52'),(5,1,'看护人姓名5','17703786905','病人姓名5','17703786905','410224199010102005',2,1,306,'upload/bingren5.jpg','病人描述5','2023-03-16 09:56:52','2023-03-16 09:56:52'),(6,2,'看护人姓名6','17703786906','病人姓名6','17703786906','410224199010102006',2,1,57,'upload/bingren6.jpg','病人描述6','2023-03-16 09:56:52','2023-03-16 09:56:52'),(7,2,'看护人姓名7','17703786907','病人姓名7','17703786907','410224199010102007',1,2,372,'upload/bingren7.jpg','病人描述7','2023-03-16 09:56:52','2023-03-16 09:56:52'),(8,1,'看护人姓名8','17703786908','病人姓名8','17703786908','410224199010102008',1,1,23,'upload/bingren8.jpg','病人描述8','2023-03-16 09:56:52','2023-03-16 09:56:52'),(9,2,'看护人姓名9','17703786909','病人姓名9','17703786909','410224199010102009',1,2,493,'upload/bingren9.jpg','病人描述9','2023-03-16 09:56:52','2023-03-16 09:56:52'),(10,3,'看护人姓名10','17703786910','病人姓名10','17703786910','410224199010102010',1,2,324,'upload/bingren10.jpg','病人描述10','2023-03-16 09:56:52','2023-03-16 09:56:52'),(11,3,'看护人姓名11','17703786911','病人姓名11','17703786911','410224199010102011',2,2,451,'upload/bingren11.jpg','病人描述1121313发放的双方各三个','2023-03-16 09:56:52','2023-03-16 09:56:52'),(12,1,'看护人姓名12','17703786912','病人姓名12','17703786912','410224199010102012',1,2,152,'upload/bingren12.jpg','病人描述12','2023-03-16 09:56:52','2023-03-16 09:56:52'),(13,1,'看护人姓名13','17703786913','病人姓名13','17703786913','410224199010102013',1,2,495,'upload/bingren13.jpg','病人描述13','2023-03-16 09:56:52','2023-03-16 09:56:52'),(14,2,'看护人姓名14','17703786914','病人姓名14','17703786914','410224199010102014',1,1,494,'upload/bingren14.jpg','病人描述14','2023-03-16 09:56:52','2023-03-16 09:56:52'),(15,1,'张三','17788889999','张三三','17755556666','444555999966661112',2,2,15,'upload/1678937280441.jpg','广东省归属感山东高速','2023-03-16 11:28:03','2023-03-16 11:28:03');
/*Table structure for table `config` */
DROP TABLE IF EXISTS `config`;
CREATE TABLE `config` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`name` varchar(100) DEFAULT NULL COMMENT '配置参数名称',
`value` varchar(100) DEFAULT NULL COMMENT '配置参数值',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='配置文件';
/*Data for the table `config` */
insert into `config`(`id`,`name`,`value`) values (1,'轮播图1','upload/config1.jpg'),(2,'轮播图2','upload/config2.jpg'),(3,'轮播图3','upload/config3.jpg');
/*Table structure for table `dictionary` */
DROP TABLE IF EXISTS `dictionary`;
CREATE TABLE `dictionary` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`dic_code` varchar(200) DEFAULT NULL COMMENT '字段',
`dic_name` varchar(200) DEFAULT NULL COMMENT '字段名',
`code_index` int(11) DEFAULT NULL COMMENT '编码',
`index_name` varchar(200) DEFAULT NULL COMMENT '编码名字 Search111 ',
`super_id` int(11) DEFAULT NULL COMMENT '父字段id',
`beizhu` varchar(200) DEFAULT NULL COMMENT '备注',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COMMENT='字典';
/*Data for the table `dictionary` */
insert into `dictionary`(`id`,`dic_code`,`dic_name`,`code_index`,`index_name`,`super_id`,`beizhu`,`create_time`) values (1,'gonggao_types','医院资讯类型',1,'医院资讯类型1',NULL,NULL,'2023-03-16 09:48:42'),(2,'gonggao_types','医院资讯类型',2,'医院资讯类型2',NULL,NULL,'2023-03-16 09:48:42'),(3,'sex_types','性别类型',1,'男',NULL,NULL,'2023-03-16 09:48:42'),(4,'sex_types','性别类型',2,'女',NULL,NULL,'2023-03-16 09:48:43'),(5,'keshi_types','科室',1,'牙科',NULL,NULL,'2023-03-16 09:48:43'),(6,'keshi_types','科室',2,'儿科',NULL,NULL,'2023-03-16 09:48:43'),(7,'zhiwei_types','职位',1,'普通医生',NULL,NULL,'2023-03-16 09:48:43'),(8,'zhiwei_types','职位',2,'主治医师',NULL,NULL,'2023-03-16 09:48:43'),(9,'yisheng_chat_types','数据类型',1,'问题',NULL,NULL,'2023-03-16 09:48:43'),(10,'yisheng_chat_types','数据类型',2,'回复',NULL,NULL,'2023-03-16 09:48:43'),(11,'zhuangtai_types','状态',1,'未回复',NULL,NULL,'2023-03-16 09:48:43'),(12,'zhuangtai_types','状态',2,'已回复',NULL,NULL,'2023-03-16 09:48:43'),(13,'bingren_types','病人类型',1,'正常成人',NULL,NULL,'2023-03-16 09:48:43'),(14,'bingren_types','病人类型',2,'儿童',NULL,NULL,'2023-03-16 09:48:43'),(15,'bingren_types','病人类型',1,'老人',NULL,NULL,'2023-03-16 09:48:43'),(16,'yisheng_guahao_types','挂号状态',101,'已挂号',NULL,NULL,'2023-03-16 09:48:43'),(17,'yisheng_guahao_types','挂号状态',102,'已取消挂号',NULL,NULL,'2023-03-16 09:48:43'),(18,'yisheng_guahao_types','挂号状态',103,'已使用',NULL,NULL,'2023-03-16 09:48:43'),(19,'yisheng_guahao_types','挂号状态',106,'未到达',NULL,NULL,'2023-03-16 09:48:43'),(20,'bingli_types','状态',1,'未缴费',NULL,NULL,'2023-03-16 09:48:43'),(21,'bingli_types','状态',2,'已缴费',NULL,NULL,'2023-03-16 09:48:43'),(22,'yaopin_types','药品类型',1,'药品类型1',NULL,NULL,'2023-03-16 09:48:43'),(23,'yaopin_types','药品类型',2,'药品类型2',NULL,NULL,'2023-03-16 09:48:43'),(24,'yaopin_types','药品类型',3,'药品类型3',NULL,NULL,'2023-03-16 09:48:43'),(25,'yaopin_types','药品类型',4,'药品类型4',NULL,NULL,'2023-03-16 09:48:43'),(26,'yaopin_types','药品类型',5,'药品类型5',NULL,'','2023-03-16 11:53:47');
/*Table structure for table `gonggao` */
DROP TABLE IF EXISTS `gonggao`;
CREATE TABLE `gonggao` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',
`gonggao_name` varchar(200) DEFAULT NULL COMMENT '医院资讯名称 Search111 ',
`gonggao_photo` varchar(200) DEFAULT NULL COMMENT '医院资讯图片 ',
`gonggao_types` int(11) NOT NULL COMMENT '医院资讯类型 Search111 ',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '医院资讯发布时间 ',
`gonggao_content` text COMMENT '医院资讯详情 ',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show1 show2 nameShow',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='医院资讯';
/*Data for the table `gonggao` */
insert into `gonggao`(`id`,`gonggao_name`,`gonggao_photo`,`gonggao_types`,`insert_time`,`gonggao_content`,`create_time`) values (1,'医院资讯名称1','upload/gonggao1.jpg',1,'2023-03-16 09:56:52','医院资讯详情1','2023-03-16 09:56:52'),(2,'医院资讯名称2','upload/gonggao2.jpg',2,'2023-03-16 09:56:52','医院资讯详情2','2023-03-16 09:56:52'),(3,'医院资讯名称3','upload/gonggao3.jpg',1,'2023-03-16 09:56:52','医院资讯详情3','2023-03-16 09:56:52'),(4,'医院资讯名称4','upload/gonggao4.jpg',2,'2023-03-16 09:56:52','医院资讯详情4','2023-03-16 09:56:52'),(5,'医院资讯名称5','upload/gonggao5.jpg',1,'2023-03-16 09:56:52','医院资讯详情5','2023-03-16 09:56:52'),(6,'医院资讯名称6','upload/gonggao6.jpg',1,'2023-03-16 09:56:52','医院资讯详情6','2023-03-16 09:56:52'),(7,'医院资讯名称7','upload/gonggao7.jpg',2,'2023-03-16 09:56:52','医院资讯详情7','2023-03-16 09:56:52'),(8,'医院资讯名称8','upload/gonggao8.jpg',1,'2023-03-16 09:56:52','医院资讯详情8','2023-03-16 09:56:52'),(9,'医院资讯名称9','upload/gonggao9.jpg',2,'2023-03-16 09:56:52','医院资讯详情9','2023-03-16 09:56:52'),(10,'医院资讯名称10','upload/gonggao10.jpg',1,'2023-03-16 09:56:52','医院资讯详情10','2023-03-16 09:56:52'),(11,'医院资讯名称11','upload/gonggao11.jpg',2,'2023-03-16 09:56:52','医院资讯详情11','2023-03-16 09:56:52'),(12,'医院资讯名称12','upload/gonggao12.jpg',2,'2023-03-16 09:56:52','医院资讯详情12','2023-03-16 09:56:52'),(13,'医院资讯名称13','upload/gonggao13.jpg',1,'2023-03-16 09:56:52','医院资讯详情13','2023-03-16 09:56:52'),(14,'医院资讯名称14','upload/gonggao14.jpg',1,'2023-03-16 09:56:52','医院资讯详情14','2023-03-16 09:56:52');
/*Table structure for table `token` */
DROP TABLE IF EXISTS `token`;
CREATE TABLE `token` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`userid` bigint(20) NOT NULL COMMENT '学生id',
`username` varchar(100) NOT NULL COMMENT '学生名',
`tablename` varchar(100) DEFAULT NULL COMMENT '表名',
`role` varchar(100) DEFAULT NULL COMMENT '角色',
`token` varchar(200) NOT NULL COMMENT '密码',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
`expiratedtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='token表';
/*Data for the table `token` */
insert into `token`(`id`,`userid`,`username`,`tablename`,`role`,`token`,`addtime`,`expiratedtime`) values (1,1,'admin','users','管理员','zruddts04ksqac04yos3pg7aalclokfo','2023-03-16 10:18:33','2023-03-21 10:47:30'),(2,1,'a1','yonghu','用户','sijgyicje7u8k1dmyjs1ug2s3nuam4wt','2023-03-16 10:19:28','2023-03-21 10:45:57'),(3,1,'a1','yisheng','医生','u7t8mkzdnuejgft4gf7cglnvyqywz7i3','2023-03-16 11:38:07','2023-03-16 12:55:56'),(4,4,'a5','yonghu','用户','ojvxcpu2k58pxcqck8gji0xwkv1lvmje','2023-03-16 11:47:34','2023-03-16 12:47:34'),(5,3,'a3','yonghu','用户','a5rppn6t6c251ybjzv178n1f6s1y6i8m','2023-03-16 11:48:41','2023-03-16 12:48:42');
/*Table structure for table `users` */
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`username` varchar(100) NOT NULL COMMENT '学生名',
`password` varchar(100) NOT NULL COMMENT '密码',
`role` varchar(100) DEFAULT '管理员' COMMENT '角色',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='管理员';
/*Data for the table `users` */
insert into `users`(`id`,`username`,`password`,`role`,`addtime`) values (1,'admin','admin','管理员','2023-03-16 09:48:42');
/*Table structure for table `yaopin` */
DROP TABLE IF EXISTS `yaopin`;
CREATE TABLE `yaopin` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',
`yaopin_name` varchar(200) DEFAULT NULL COMMENT '药品名称 Search111 ',
`yaopin_uuid_number` varchar(200) DEFAULT NULL COMMENT '药品编号',
`yaopin_photo` varchar(200) DEFAULT NULL COMMENT '药品照片',
`shengchanchangjia` varchar(200) DEFAULT NULL COMMENT '生产厂家',
`yaopin_types` int(11) DEFAULT NULL COMMENT '药品类型 Search111',
`yaopin_kucun_number` int(11) DEFAULT NULL COMMENT '药品库存',
`yaopin_jinjia_money` decimal(10,2) DEFAULT NULL COMMENT '药品进价',
`yaopin_new_money` decimal(10,2) DEFAULT NULL COMMENT '售价',
`yaopin_gongxiao_content` text COMMENT '药品功效',
`yaopin_jinji_content` text COMMENT '药品禁忌',
`yaopin_zhuyi_content` text COMMENT '注意事项',
`yaopin_content` text COMMENT '药品详情',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '录入时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='药品';
/*Data for the table `yaopin` */
insert into `yaopin`(`id`,`yaopin_name`,`yaopin_uuid_number`,`yaopin_photo`,`shengchanchangjia`,`yaopin_types`,`yaopin_kucun_number`,`yaopin_jinjia_money`,`yaopin_new_money`,`yaopin_gongxiao_content`,`yaopin_jinji_content`,`yaopin_zhuyi_content`,`yaopin_content`,`insert_time`,`create_time`) values (1,'药品名称1','1678931812394','upload/yaopin1.jpg','生产厂家1',4,101,'319.78','954.45','药品功效1','药品禁忌1','注意事项1','药品详情1','2023-03-16 09:56:52','2023-03-16 09:56:52'),(2,'药品名称2','1678931812379','upload/yaopin2.jpg','生产厂家2',3,102,'243.33','93.37','药品功效2','药品禁忌2','注意事项2','药品详情2','2023-03-16 09:56:52','2023-03-16 09:56:52'),(3,'药品名称3','1678931812422','upload/yaopin3.jpg','生产厂家3',4,103,'285.58','373.03','药品功效3','药品禁忌3','注意事项3','药品详情3','2023-03-16 09:56:52','2023-03-16 09:56:52'),(4,'药品名称4','1678931812369','upload/yaopin4.jpg','生产厂家4',3,104,'420.39','43.05','药品功效4','药品禁忌4','注意事项4','药品详情4','2023-03-16 09:56:52','2023-03-16 09:56:52'),(5,'药品名称5','1678931812342','upload/yaopin5.jpg','生产厂家5',2,105,'82.72','627.35','药品功效5','药品禁忌5','注意事项5','药品详情5','2023-03-16 09:56:52','2023-03-16 09:56:52'),(6,'药品名称6','1678931812361','upload/yaopin6.jpg','生产厂家6',3,106,'425.47','917.66','药品功效6','药品禁忌6','注意事项6','药品详情6','2023-03-16 09:56:52','2023-03-16 09:56:52'),(7,'药品名称7','1678931812425','upload/yaopin7.jpg','生产厂家7',1,107,'129.04','161.14','药品功效7','药品禁忌7','注意事项7','药品详情7','2023-03-16 09:56:52','2023-03-16 09:56:52'),(8,'药品名称8','1678931812411','upload/yaopin8.jpg','生产厂家8',2,108,'186.11','496.34','药品功效8','药品禁忌8','注意事项8','药品详情8','2023-03-16 09:56:52','2023-03-16 09:56:52'),(9,'药品名称9','1678931812353','upload/yaopin9.jpg','生产厂家9',1,109,'180.16','191.72','药品功效9','药品禁忌9','注意事项9','药品详情9','2023-03-16 09:56:52','2023-03-16 09:56:52'),(10,'药品名称10','1678931812344','upload/yaopin10.jpg','生产厂家10',4,1010,'277.30','949.04','药品功效10','药品禁忌10','注意事项10','药品详情10','2023-03-16 09:56:52','2023-03-16 09:56:52'),(11,'药品名称11','1678931812359','upload/yaopin11.jpg','生产厂家11',2,1008,'160.45','683.74','药品功效11','药品禁忌11','注意事项11','药品详情11','2023-03-16 09:56:52','2023-03-16 09:56:52'),(12,'药品名称12','1678931812430','upload/yaopin12.jpg','生产厂家12',3,1012,'442.55','468.93','药品功效12','药品禁忌12','注意事项12','药品详情12','2023-03-16 09:56:52','2023-03-16 09:56:52'),(13,'药品名称13','1678931812352','upload/yaopin13.jpg','生产厂家13',3,1013,'346.04','697.48','药品功效13','药品禁忌13','注意事项13','药品详情13','2023-03-16 09:56:52','2023-03-16 09:56:52'),(14,'药品名称14','1678931812355','upload/yaopin14.jpg','生产厂家14',4,1013,'140.69','985.70','<p>药品功效14</p>','<p>药品禁忌14</p>','<p>注意事项14</p>','<p>药品详情141111</p>','2023-03-16 09:56:52','2023-03-16 09:56:52');
/*Table structure for table `yaopinruku` */
DROP TABLE IF EXISTS `yaopinruku`;
CREATE TABLE `yaopinruku` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',
`yaopin_id` int(11) DEFAULT NULL COMMENT '药品',
`yaopinruku_uuid_number` varchar(200) DEFAULT NULL COMMENT '药品入库编号',
`yaopinruku_number` int(11) DEFAULT NULL COMMENT '入库数量',
`caozuo_time` timestamp NULL DEFAULT NULL COMMENT '入库时间',
`yaopinruku_content` text COMMENT '入库备注',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '录入时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='药品入库';
/*Data for the table `yaopinruku` */
insert into `yaopinruku`(`id`,`yaopin_id`,`yaopinruku_uuid_number`,`yaopinruku_number`,`caozuo_time`,`yaopinruku_content`,`insert_time`,`create_time`) values (1,1,'1678931812382',126,'2023-03-16 09:56:52','入库备注1','2023-03-16 09:56:52','2023-03-16 09:56:52'),(2,2,'1678931812378',233,'2023-03-16 09:56:52','入库备注2','2023-03-16 09:56:52','2023-03-16 09:56:52'),(3,3,'1678931812408',483,'2023-03-16 09:56:52','入库备注3','2023-03-16 09:56:52','2023-03-16 09:56:52'),(4,4,'1678931812428',54,'2023-03-16 09:56:52','入库备注4','2023-03-16 09:56:52','2023-03-16 09:56:52'),(5,5,'1678931812343',326,'2023-03-16 09:56:52','入库备注5','2023-03-16 09:56:52','2023-03-16 09:56:52'),(6,6,'1678931812370',24,'2023-03-16 09:56:52','入库备注6','2023-03-16 09:56:52','2023-03-16 09:56:52'),(7,7,'1678931812411',341,'2023-03-16 09:56:52','入库备注7','2023-03-16 09:56:52','2023-03-16 09:56:52'),(8,8,'1678931812359',306,'2023-03-16 09:56:52','入库备注8','2023-03-16 09:56:52','2023-03-16 09:56:52'),(9,9,'1678931812357',232,'2023-03-16 09:56:52','入库备注9','2023-03-16 09:56:52','2023-03-16 09:56:52'),(10,10,'1678931812372',163,'2023-03-16 09:56:52','入库备注10','2023-03-16 09:56:52','2023-03-16 09:56:52'),(11,11,'1678931812358',384,'2023-03-16 09:56:52','入库备注11','2023-03-16 09:56:52','2023-03-16 09:56:52'),(12,12,'1678931812433',408,'2023-03-16 09:56:52','入库备注12','2023-03-16 09:56:52','2023-03-16 09:56:52'),(13,13,'1678931812359',126,'2023-03-16 09:56:52','入库备注13','2023-03-16 09:56:52','2023-03-16 09:56:52'),(14,14,'1678931812343',121,'2023-03-16 09:56:52','入库备注14','2023-03-16 09:56:52','2023-03-16 09:56:52'),(15,14,'1678938888767',1,'2023-03-16 11:54:58','<p>个地方三分大赛</p>','2023-03-16 11:55:01','2023-03-16 11:55:01');
/*Table structure for table `yaopinshiyong` */
DROP TABLE IF EXISTS `yaopinshiyong`;
CREATE TABLE `yaopinshiyong` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',
`yaopin_id` int(11) DEFAULT NULL COMMENT '药品',
`bingren_id` int(11) DEFAULT NULL COMMENT '病人',
`yisheng_id` int(11) DEFAULT NULL COMMENT '医生',
`yaopinshiyong_uuid_number` varchar(200) DEFAULT NULL COMMENT '药品使用编号',
`yaopinshiyong_number` int(11) DEFAULT NULL COMMENT '使用数量',
`caozuo_time` timestamp NULL DEFAULT NULL COMMENT '使用时间',
`yaopinshiyong_content` text COMMENT '使用备注',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '录入时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 listShow',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='药品使用';
/*Data for the table `yaopinshiyong` */
insert into `yaopinshiyong`(`id`,`yaopin_id`,`bingren_id`,`yisheng_id`,`yaopinshiyong_uuid_number`,`yaopinshiyong_number`,`caozuo_time`,`yaopinshiyong_content`,`insert_time`,`create_time`) values (1,1,1,2,'1678931812416',451,'2023-03-16 09:56:52','使用备注1','2023-03-16 09:56:52','2023-03-16 09:56:52'),(2,2,2,3,'1678931812370',188,'2023-03-16 09:56:52','使用备注2','2023-03-16 09:56:52','2023-03-16 09:56:52'),(3,3,3,1,'1678931812386',482,'2023-03-16 09:56:52','使用备注3','2023-03-16 09:56:52','2023-03-16 09:56:52'),(4,4,4,3,'1678931812352',373,'2023-03-16 09:56:52','使用备注4','2023-03-16 09:56:52','2023-03-16 09:56:52'),(5,5,5,2,'1678931812411',476,'2023-03-16 09:56:52','使用备注5','2023-03-16 09:56:52','2023-03-16 09:56:52'),(6,6,6,3,'1678931812418',20,'2023-03-16 09:56:52','使用备注6','2023-03-16 09:56:52','2023-03-16 09:56:52'),(7,7,7,3,'1678931812362',482,'2023-03-16 09:56:52','使用备注7','2023-03-16 09:56:52','2023-03-16 09:56:52'),(8,8,8,3,'1678931812375',160,'2023-03-16 09:56:52','使用备注8','2023-03-16 09:56:52','2023-03-16 09:56:52'),(9,9,9,2,'1678931812393',394,'2023-03-16 09:56:52','使用备注9','2023-03-16 09:56:52','2023-03-16 09:56:52'),(10,10,10,1,'1678931812367',209,'2023-03-16 09:56:52','使用备注10','2023-03-16 09:56:52','2023-03-16 09:56:52'),(11,11,11,2,'1678931812380',385,'2023-03-16 09:56:52','使用备注11','2023-03-16 09:56:52','2023-03-16 09:56:52'),(12,12,12,2,'1678931812409',270,'2023-03-16 09:56:52','使用备注12','2023-03-16 09:56:52','2023-03-16 09:56:52'),(13,13,13,2,'1678931812377',335,'2023-03-16 09:56:52','使用备注13','2023-03-16 09:56:52','2023-03-16 09:56:52'),(14,14,14,3,'1678931812382',390,'2023-03-16 09:56:52','使用备注14','2023-03-16 09:56:52','2023-03-16 09:56:52'),(15,14,14,1,'1678938909699',2,'2023-03-16 11:55:24','<p>给对方广东省固定死</p>','2023-03-16 11:55:27','2023-03-16 11:55:27'),(16,11,14,1,'1678939005081',3,'2023-03-16 11:56:51','<p>郭德纲的三个说的是多多少少</p>','2023-03-16 11:56:56','2023-03-16 11:56:56');
/*Table structure for table `yisheng` */
DROP TABLE IF EXISTS `yisheng`;
CREATE TABLE `yisheng` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`username` varchar(200) DEFAULT NULL COMMENT '账户',
`password` varchar(200) DEFAULT NULL COMMENT '密码',
`yisheng_name` varchar(200) DEFAULT NULL COMMENT '医生姓名 Search111 ',
`yisheng_phone` varchar(200) DEFAULT NULL COMMENT '医生手机号',
`yisheng_id_number` varchar(200) DEFAULT NULL COMMENT '医生身份证号',
`yisheng_photo` varchar(200) DEFAULT NULL COMMENT '医生头像',
`zuozhen_shijian` varchar(200) DEFAULT NULL COMMENT '坐诊时间',
`guahaojine` decimal(10,2) DEFAULT NULL COMMENT '挂号金额',
`guahaoshuliang` int(11) DEFAULT NULL COMMENT '每天挂号数量',
`sex_types` int(11) DEFAULT NULL COMMENT '性别',
`keshi_types` int(11) DEFAULT NULL COMMENT '科室 Search111 ',
`zhiwei_types` int(11) DEFAULT NULL COMMENT '职位 Search111 ',
`yisheng_email` varchar(200) DEFAULT NULL COMMENT '医生邮箱',
`yisheng_content` text COMMENT '医生介绍',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show1 show2 photoShow',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='医生';
/*Data for the table `yisheng` */
insert into `yisheng`(`id`,`username`,`password`,`yisheng_name`,`yisheng_phone`,`yisheng_id_number`,`yisheng_photo`,`zuozhen_shijian`,`guahaojine`,`guahaoshuliang`,`sex_types`,`keshi_types`,`zhiwei_types`,`yisheng_email`,`yisheng_content`,`create_time`) values (1,'a1','123456','医生姓名1','17703786901','410224199010102001','upload/yisheng1.jpg','坐诊时间1','630.38',154,1,2,1,'1@qq.com','<p>医生介绍1更好地给回复收到货</p>','2023-03-16 09:56:52'),(2,'a2','123456','医生姓名2','17703786902','410224199010102002','upload/yisheng2.jpg','坐诊时间2','120.34',148,2,2,2,'2@qq.com','医生介绍2','2023-03-16 09:56:52'),(3,'a3','123456','医生姓名3','17703786903','410224199010102003','upload/yisheng3.jpg','坐诊时间3','789.93',468,1,1,1,'3@qq.com','医生介绍3','2023-03-16 09:56:52');
/*Table structure for table `yisheng_chat` */
DROP TABLE IF EXISTS `yisheng_chat`;
CREATE TABLE `yisheng_chat` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`yonghu_id` int(11) DEFAULT NULL COMMENT '提问人',
`yisheng_id` int(11) DEFAULT NULL COMMENT '回答人',
`yisheng_chat_issue_text` text COMMENT '问题',
`issue_time` timestamp NULL DEFAULT NULL COMMENT '问题时间',
`yisheng_chat_reply_text` text COMMENT '回复',
`reply_time` timestamp NULL DEFAULT NULL COMMENT '回复时间',
`zhuangtai_types` int(255) DEFAULT NULL COMMENT '状态',
`yisheng_chat_types` int(11) DEFAULT NULL COMMENT '数据类型',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '提问时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8 COMMENT='医生咨询';
/*Data for the table `yisheng_chat` */
insert into `yisheng_chat`(`id`,`yonghu_id`,`yisheng_id`,`yisheng_chat_issue_text`,`issue_time`,`yisheng_chat_reply_text`,`reply_time`,`zhuangtai_types`,`yisheng_chat_types`,`insert_time`,`create_time`) values (1,2,3,'问题1','2023-03-16 09:56:52','回复1','2023-03-16 09:56:52',1,2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(2,2,1,'问题2','2023-03-16 09:56:52','回复2','2023-03-16 09:56:52',2,2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(3,2,1,'问题3','2023-03-16 09:56:52','回复3','2023-03-16 09:56:52',2,1,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(4,3,1,'问题4','2023-03-16 09:56:52','回复4','2023-03-16 09:56:52',2,2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(5,3,2,'问题5','2023-03-16 09:56:52','回复5','2023-03-16 09:56:52',1,2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(6,1,2,'问题6','2023-03-16 09:56:52','回复6','2023-03-16 09:56:52',1,2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(7,1,1,'问题7','2023-03-16 09:56:52','回复7','2023-03-16 09:56:52',1,2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(8,3,1,'问题8','2023-03-16 09:56:52','回复8','2023-03-16 09:56:52',1,2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(9,3,1,'问题9','2023-03-16 09:56:52','回复9','2023-03-16 09:56:52',2,1,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(10,3,3,'问题10','2023-03-16 09:56:52','回复10','2023-03-16 09:56:52',2,2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(11,1,2,'问题11','2023-03-16 09:56:52','回复11','2023-03-16 09:56:52',1,2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(12,2,1,'问题12','2023-03-16 09:56:52','回复12','2023-03-16 09:56:52',2,2,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(13,1,3,'问题13','2023-03-16 09:56:52','回复13','2023-03-16 09:56:52',2,1,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(14,3,2,'问题14','2023-03-16 09:56:52','回复14','2023-03-16 09:56:52',1,1,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(15,1,2,'高规格和','2023-03-16 10:25:44',NULL,NULL,1,1,'2023-03-16 10:25:45','2023-03-16 10:25:45'),(16,3,1,NULL,NULL,'固定死发的第三方','2023-03-16 11:41:59',NULL,2,'2023-03-16 11:41:59','2023-03-16 11:41:59'),(17,1,1,'哈哈哈','2023-03-16 11:42:13',NULL,NULL,2,1,'2023-03-16 11:42:14','2023-03-16 11:42:14'),(18,1,1,NULL,NULL,'哈哈哈1','2023-03-16 11:42:20',NULL,2,'2023-03-16 11:42:20','2023-03-16 11:42:20'),(19,4,1,'回复的股份','2023-03-16 11:48:05',NULL,NULL,2,1,'2023-03-16 11:48:05','2023-03-16 11:48:05'),(20,4,1,NULL,NULL,'骨灰盒','2023-03-16 11:48:22',NULL,2,'2023-03-16 11:48:22','2023-03-16 11:48:22'),(21,2,1,NULL,NULL,'将基金','2023-03-16 11:57:06',NULL,2,'2023-03-16 11:57:06','2023-03-16 11:57:06');
/*Table structure for table `yisheng_guahao` */
DROP TABLE IF EXISTS `yisheng_guahao`;
CREATE TABLE `yisheng_guahao` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`yisheng_guahao_uuid_number` varchar(200) DEFAULT NULL COMMENT '挂号编号 Search111 ',
`bingren_id` int(11) DEFAULT NULL COMMENT '病人',
`yisheng_id` int(11) DEFAULT NULL COMMENT '医生',
`huafeijine` decimal(10,2) DEFAULT NULL COMMENT '花费金额',
`yisheng_guahao_time` date DEFAULT NULL COMMENT '挂号日期',
`yisheng_guahao_types` int(11) DEFAULT NULL COMMENT '挂号状态 Search111 ',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '申请挂号时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 listShow',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COMMENT='医生挂号';
/*Data for the table `yisheng_guahao` */
insert into `yisheng_guahao`(`id`,`yisheng_guahao_uuid_number`,`bingren_id`,`yisheng_id`,`huafeijine`,`yisheng_guahao_time`,`yisheng_guahao_types`,`insert_time`,`create_time`) values (1,'1678931812428',1,3,'357.28','2023-03-16',106,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(2,'1678931812454',2,3,'720.86','2023-03-16',102,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(3,'1678931812359',3,3,'36.32','2023-03-16',106,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(4,'1678931812377',4,2,'612.35','2023-03-16',103,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(5,'1678931812396',5,2,'127.67','2023-03-16',102,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(6,'1678931812434',6,2,'524.93','2023-03-16',103,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(7,'1678931812369',7,1,'517.35','2023-03-16',106,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(8,'1678931812430',8,3,'481.79','2023-03-16',103,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(9,'1678931812413',9,1,'97.12','2023-03-16',106,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(10,'1678931812380',10,1,'514.80','2023-03-16',102,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(11,'1678931812421',11,1,'455.24','2023-03-16',106,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(12,'1678931812398',12,1,'887.74','2023-03-16',103,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(13,'1678931812393',13,2,'740.34','2023-03-16',103,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(14,'1678931812451',14,1,'908.44','2023-03-16',103,'2023-03-16 09:56:52','2023-03-16 09:56:52'),(16,'1678936223972',13,1,'630.38','2023-03-17',103,'2023-03-16 11:10:24','2023-03-16 11:10:24'),(17,'1678938548523',3,1,'630.38','2023-03-17',103,'2023-03-16 11:49:09','2023-03-16 11:49:09');
/*Table structure for table `yonghu` */
DROP TABLE IF EXISTS `yonghu`;
CREATE TABLE `yonghu` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`username` varchar(200) DEFAULT NULL COMMENT '账户',
`password` varchar(200) DEFAULT NULL COMMENT '密码',
`yonghu_name` varchar(200) DEFAULT NULL COMMENT '用户姓名 Search111 ',
`yonghu_phone` varchar(200) DEFAULT NULL COMMENT '用户手机号',
`yonghu_id_number` varchar(200) DEFAULT NULL COMMENT '用户身份证号',
`yonghu_photo` varchar(200) DEFAULT NULL COMMENT '用户头像',
`sex_types` int(11) DEFAULT NULL COMMENT '性别',
`yonghu_email` varchar(200) DEFAULT NULL COMMENT '用户邮箱',
`new_money` decimal(10,2) DEFAULT NULL COMMENT '余额 ',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='用户';
/*Data for the table `yonghu` */
insert into `yonghu`(`id`,`username`,`password`,`yonghu_name`,`yonghu_phone`,`yonghu_id_number`,`yonghu_photo`,`sex_types`,`yonghu_email`,`new_money`,`create_time`) values (1,'a1','123456','用户姓名1','17703786901','410224199010102001','upload/yonghu1.jpg',1,'1@qq.com','98705.02','2023-03-16 09:56:52'),(2,'a2','123456','用户姓名2','17703786902','410224199010102002','upload/yonghu2.jpg',2,'2@qq.com','245.23','2023-03-16 09:56:52'),(3,'a3','123456','用户姓名3','17703786903','410224199010102003','upload/yonghu3.jpg',2,'3@qq.com','100241.41','2023-03-16 09:56:52'),(4,'a5','123456','张5','17788889999','777888999966665555','upload/yonghu3.jpg',2,'5@qq.com','0.00','2023-03-16 11:47:29');
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
5、关键代码
5.1 病历Controller模块?
/**
* 病例
* 后端接口
* @author 学长编程
* @email
* WeChat jsjbysj88
*/
@RestController
@Controller
@RequestMapping("/bingli")
public class BingliController {
private static final Logger logger = LoggerFactory.getLogger(BingliController.class);
private static final String TABLE_NAME = "bingli";
@Autowired
private BingliService bingliService;
@Autowired
private TokenService tokenService;
@Autowired
private BingrenService bingrenService;//病人
@Autowired
private DictionaryService dictionaryService;//字典
@Autowired
private GonggaoService gonggaoService;//医院资讯
@Autowired
private YaopinService yaopinService;//药品
@Autowired
private YaopinrukuService yaopinrukuService;//药品入库
@Autowired
private YaopinshiyongService yaopinshiyongService;//药品使用
@Autowired
private YishengService yishengService;//医生
@Autowired
private YishengChatService yishengChatService;//医生咨询
@Autowired
private YishengGuahaoService yishengGuahaoService;//医生挂号
@Autowired
private YonghuService yonghuService;//用户
@Autowired
private UsersService usersService;//管理员
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params, HttpServletRequest request){
logger.debug("page方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));
String role = String.valueOf(request.getSession().getAttribute("role"));
if(false)
return R.error(511,"永不会进入");
else if("用户".equals(role))
params.put("yonghuId",request.getSession().getAttribute("userId"));
else if("医生".equals(role))
params.put("yishengId",request.getSession().getAttribute("userId"));
CommonUtil.checkMap(params);
PageUtils page = bingliService.queryPage(params);
//字典表数据转换
List<BingliView> list =(List<BingliView>)page.getList();
for(BingliView c:list){
//修改对应字典表字段
dictionaryService.dictionaryConvert(c, request);
}
return R.ok().put("data", page);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id, HttpServletRequest request){
logger.debug("info方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
BingliEntity bingli = bingliService.selectById(id);
if(bingli !=null){
//entity转view
BingliView view = new BingliView();
BeanUtils.copyProperties( bingli , view );//把实体数据重构到view中
//级联表 病人
//级联表
BingrenEntity bingren = bingrenService.selectById(bingli.getBingrenId());
if(bingren != null){
BeanUtils.copyProperties( bingren , view ,new String[]{ "id", "createTime", "insertTime", "updateTime", "yishengId"});//把级联的数据添加到view中,并排除id和创建时间字段,当前表的级联注册表
view.setBingrenId(bingren.getId());
}
//级联表 医生
//级联表
YishengEntity yisheng = yishengService.selectById(bingli.getYishengId());
if(yisheng != null){
BeanUtils.copyProperties( yisheng , view ,new String[]{ "id", "createTime", "insertTime", "updateTime", "yishengId"});//把级联的数据添加到view中,并排除id和创建时间字段,当前表的级联注册表
view.setYishengId(yisheng.getId());
}
//修改对应字典表字段
dictionaryService.dictionaryConvert(view, request);
return R.ok().put("data", view);
}else {
return R.error(511,"查不到数据");
}
}
/**
* 后端详情
*/
@RequestMapping("/jiaofei")
public R jiaofei( Long id, HttpServletRequest request){
logger.debug("jiaofei方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
BingliEntity bingli = bingliService.selectById(id);
if(bingli == null){
return R.error("查不到病例缴费单");
}
if(bingli.getBingliTypes() !=1)
return R.error("已经缴费过了");
BingrenEntity bingrenEntity = bingrenService.selectById(bingli.getBingrenId());
if(bingrenEntity==null)
return R.error("查不到病人");
YonghuEntity yonghuEntity = yonghuService.selectById(bingrenEntity.getYonghuId());
if(yonghuEntity==null)
return R.error("查不到病人");
double balance = yonghuEntity.getNewMoney() - bingli.getHuafeijine();
if(balance<0)
return R.error("账户余额不够缴费,请充值后再缴费");
yonghuEntity.setNewMoney(balance);
yonghuService.updateById(yonghuEntity);
bingli.setBingliTypes(2);
bingliService.updateById(bingli);
return R.ok();
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody BingliEntity bingli, HttpServletRequest request){
logger.debug("save方法:,,Controller:{},,bingli:{}",this.getClass().getName(),bingli.toString());
String role = String.valueOf(request.getSession().getAttribute("role"));
if(false)
return R.error(511,"永远不会进入");
else if("医生".equals(role)){
bingli.setYishengId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));
bingli.setBingliTypes(1);
}
bingli.setInsertTime(new Date());
bingli.setCreateTime(new Date());
bingliService.insert(bingli);
return R.ok();
}
/**
* 后端修改
*/
@RequestMapping("/update")
public R update(@RequestBody BingliEntity bingli, HttpServletRequest request) throws NoSuchFieldException, ClassNotFoundException, IllegalAccessException, InstantiationException {
logger.debug("update方法:,,Controller:{},,bingli:{}",this.getClass().getName(),bingli.toString());
BingliEntity oldBingliEntity = bingliService.selectById(bingli.getId());//查询原先数据
String role = String.valueOf(request.getSession().getAttribute("role"));
// if(false)
// return R.error(511,"永远不会进入");
// else if("医生".equals(role))
// bingli.setYishengId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));
bingliService.updateById(bingli);//根据id更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Integer[] ids, HttpServletRequest request){
logger.debug("delete:,,Controller:{},,ids:{}",this.getClass().getName(),ids.toString());
List<BingliEntity> oldBingliList =bingliService.selectBatchIds(Arrays.asList(ids));//要删除的数据
bingliService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* 批量上传
*/
@RequestMapping("/batchInsert")
public R save( String fileName, HttpServletRequest request){
logger.debug("batchInsert方法:,,Controller:{},,fileName:{}",this.getClass().getName(),fileName);
Integer yonghuId = Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId")));
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try {
List<BingliEntity> bingliList = new ArrayList<>();//上传的东西
Map<String, List<String>> seachFields= new HashMap<>();//要查询的字段
Date date = new Date();
int lastIndexOf = fileName.lastIndexOf(".");
if(lastIndexOf == -1){
return R.error(511,"该文件没有后缀");
}else{
String suffix = fileName.substring(lastIndexOf);
if(!".xls".equals(suffix)){
return R.error(511,"只支持后缀为xls的excel文件");
}else{
URL resource = this.getClass().getClassLoader().getResource("static/upload/" + fileName);//获取文件路径
File file = new File(resource.getFile());
if(!file.exists()){
return R.error(511,"找不到上传文件,请联系管理员");
}else{
List<List<String>> dataList = PoiUtil.poiImport(file.getPath());//读取xls文件
dataList.remove(0);//删除第一行,因为第一行是提示
for(List<String> data:dataList){
//循环
BingliEntity bingliEntity = new BingliEntity();
// bingliEntity.setBingliUuidNumber(data.get(0)); //病例编号 要改的
// bingliEntity.setBingrenId(Integer.valueOf(data.get(0))); //病人 要改的
// bingliEntity.setYishengId(Integer.valueOf(data.get(0))); //医生 要改的
// bingliEntity.setJianchaTime(sdf.parse(data.get(0))); //检查时间 要改的
// bingliEntity.setBingrenzishuContent("");//详情和图片
// bingliEntity.setJianchajieguoContent("");//详情和图片
// bingliEntity.setYishengkaifangContent("");//详情和图片
// bingliEntity.setYishengjianyiContent("");//详情和图片
// bingliEntity.setHuafeijine(data.get(0)); //花费金额 要改的
// bingliEntity.setXiacijiuzhenTime(sdf.parse(data.get(0))); //下次就诊时间 要改的
// bingliEntity.setBingliTypes(Integer.valueOf(data.get(0))); //状态 要改的
// bingliEntity.setInsertTime(date);//时间
// bingliEntity.setCreateTime(date);//时间
bingliList.add(bingliEntity);
//把要查询是否重复的字段放入map中
//病例编号
if(seachFields.containsKey("bingliUuidNumber")){
List<String> bingliUuidNumber = seachFields.get("bingliUuidNumber");
bingliUuidNumber.add(data.get(0));//要改的
}else{
List<String> bingliUuidNumber = new ArrayList<>();
bingliUuidNumber.add(data.get(0));//要改的
seachFields.put("bingliUuidNumber",bingliUuidNumber);
}
}
//查询是否重复
//病例编号
List<BingliEntity> bingliEntities_bingliUuidNumber = bingliService.selectList(new EntityWrapper<BingliEntity>().in("bingli_uuid_number", seachFields.get("bingliUuidNumber")));
if(bingliEntities_bingliUuidNumber.size() >0 ){
ArrayList<String> repeatFields = new ArrayList<>();
for(BingliEntity s:bingliEntities_bingliUuidNumber){
repeatFields.add(s.getBingliUuidNumber());
}
return R.error(511,"数据库的该表中的 [病例编号] 字段已经存在 存在数据为:"+repeatFields.toString());
}
bingliService.insertBatch(bingliList);
return R.ok();
}
}
}
}catch (Exception e){
e.printStackTrace();
return R.error(511,"批量插入数据异常,请联系管理员");
}
}
/**
* 前端列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params, HttpServletRequest request){
logger.debug("list方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));
CommonUtil.checkMap(params);
PageUtils page = bingliService.queryPage(params);
//字典表数据转换
List<BingliView> list =(List<BingliView>)page.getList();
for(BingliView c:list)
dictionaryService.dictionaryConvert(c, request); //修改对应字典表字段
return R.ok().put("data", page);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id, HttpServletRequest request){
logger.debug("detail方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
BingliEntity bingli = bingliService.selectById(id);
if(bingli !=null){
//entity转view
BingliView view = new BingliView();
BeanUtils.copyProperties( bingli , view );//把实体数据重构到view中
//级联表
BingrenEntity bingren = bingrenService.selectById(bingli.getBingrenId());
if(bingren != null){
BeanUtils.copyProperties( bingren , view ,new String[]{ "id", "createDate"});//把级联的数据添加到view中,并排除id和创建时间字段
view.setBingrenId(bingren.getId());
}
//级联表
YishengEntity yisheng = yishengService.selectById(bingli.getYishengId());
if(yisheng != null){
BeanUtils.copyProperties( yisheng , view ,new String[]{ "id", "createDate"});//把级联的数据添加到view中,并排除id和创建时间字段
view.setYishengId(yisheng.getId());
}
//修改对应字典表字段
dictionaryService.dictionaryConvert(view, request);
return R.ok().put("data", view);
}else {
return R.error(511,"查不到数据");
}
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody BingliEntity bingli, HttpServletRequest request){
logger.debug("add方法:,,Controller:{},,bingli:{}",this.getClass().getName(),bingli.toString());
Wrapper<BingliEntity> queryWrapper = new EntityWrapper<BingliEntity>()
.eq("bingli_uuid_number", bingli.getBingliUuidNumber())
.eq("bingren_id", bingli.getBingrenId())
.eq("yisheng_id", bingli.getYishengId())
.eq("bingli_types", bingli.getBingliTypes())
// .notIn("bingli_types", new Integer[]{102})
;
logger.info("sql语句:"+queryWrapper.getSqlSegment());
BingliEntity bingliEntity = bingliService.selectOne(queryWrapper);
if(bingliEntity==null){
bingli.setInsertTime(new Date());
bingli.setCreateTime(new Date());
bingliService.insert(bingli);
return R.ok();
}else {
return R.error(511,"表中有相同数据");
}
}
}
5.2 病历Service模块?
package com.service;
import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.BingliEntity;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.lang.Nullable;
import java.util.List;
/**
* 病例 服务类
*/
public interface BingliService extends IService<BingliEntity> {
/**
* @param params 查询参数
* @return 带分页的查询出来的数据
*/
PageUtils queryPage(Map<String, Object> params);
}
5.3 病历ServiceImpl模块
package com.service.impl;
import com.utils.StringUtil;
import com.service.DictionaryService;
import com.utils.ClazzDiff;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.lang.reflect.Field;
import java.util.*;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;
import com.utils.PageUtils;
import com.utils.Query;
import org.springframework.web.context.ContextLoader;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
import com.dao.BingliDao;
import com.entity.BingliEntity;
import com.service.BingliService;
import com.entity.view.BingliView;
/**
* 病例 服务实现类
*/
@Service("bingliService")
@Transactional
public class BingliServiceImpl extends ServiceImpl<BingliDao, BingliEntity> implements BingliService {
@Override
public PageUtils queryPage(Map<String,Object> params) {
Page<BingliView> page =new Query<BingliView>(params).getPage();
page.setRecords(baseMapper.selectListView(page,params));
return new PageUtils(page);
}
}
5.4? 病历Dao模块
package com.dao;
import com.entity.BingliEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.view.BingliView;
/**
* 病例 Dao 接口
*
* @author
*/
public interface BingliDao extends BaseMapper<BingliEntity> {
List<BingliView> selectListView(Pagination page,@Param("params")Map<String,Object> params);
}
6、论文目录结构
7、源码获取
感谢大家的阅读,如有不懂的问题可以评论区交流或私聊!
喜欢文章可以点赞、收藏、关注、评论啦
→获取源码请私信←
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!