基于SSM保护隐私的远程医疗查询系统设计与开发

基于SSM保护隐私的远程医疗查询系统设计与开发
基于SSM保护隐私的远程医疗查询系统设计与开发登录注册界面

基于SSM保护隐私的远程医疗查询系统设计与开发mysql数据库版本源码:

超级管理员表创建语句如下:


create table t_admin(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '超级管理员账号',
	password varchar(100) comment '超级管理员密码'
) comment '超级管理员';
insert into t_admin(username,password) values('admin','123456');

患者表创建语句如下:


create table t_customer(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码 ',
	customerName varchar(100) comment '姓名',
	bh varchar(100) comment '患者编号',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话',
	sfz varchar(100) comment '身份证'
) comment '患者';

医生表创建语句如下:


create table t_doctor(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码 ',
	doctorName varchar(100) comment '姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话',
	sfz varchar(100) comment '身份证',
	zw varchar(100) comment '职位',
	sc varchar(100) comment '主治擅长'
) comment '医生';

公告表创建语句如下:


create table t_gg(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	pic varchar(100) comment '图片',
	content varchar(100) comment '内容',
	showDate datetime comment '日期'
) comment '公告';

医患关系表创建语句如下:


create table t_jbxx(
	id int primary key auto_increment comment '主键',
	customerId int comment '患者',
	v1 varchar(100) comment '血压',
	v2 varchar(100) comment '血糖',
	v3 varchar(100) comment '身体质量',
	v4 varchar(100) comment '身高',
	v5 varchar(100) comment '体重',
	v6 varchar(100) comment '五官'
) comment '医患关系';

交流询问表创建语句如下:


create table t_jl(
	id int primary key auto_increment comment '主键',
	customerId int comment '患者',
	doctorId int comment '医生',
	content varchar(100) comment '询问内容',
	fileUrl varchar(100) comment '文件',
	pic varchar(100) comment '图片',
	insertDate datetime comment '日期',
	back varchar(100) comment '回复内容',
	status varchar(100) comment '状态'
) comment '交流询问';

留言表创建语句如下:


create table t_ly(
	id int primary key auto_increment comment '主键',
	fromId int comment '患者',
	toId int comment '医生',
	content varchar(100) comment '询问内容',
	fileUrl varchar(100) comment '文件',
	pic varchar(100) comment '图片',
	insertDate datetime comment '日期'
) comment '留言';

留言表创建语句如下:


create table t_ly1(
	id int primary key auto_increment comment '主键',
	customerId int comment '患者',
	doctorId int comment '医生',
	content varchar(100) comment '留言内容',
	pic varchar(100) comment '图片',
	insertDate datetime comment '日期'
) comment '留言';

留言表创建语句如下:


create table t_ly2(
	id int primary key auto_increment comment '主键',
	customerId int comment '患者',
	doctorId int comment '医生',
	content varchar(100) comment '留言内容',
	pic varchar(100) comment '图片',
	insertDate datetime comment '日期'
) comment '留言';

医患关系表创建语句如下:


create table t_yhgx(
	id int primary key auto_increment comment '主键',
	customerId int comment '患者',
	doctorId int comment '医生'
) comment '医患关系';

基于SSM保护隐私的远程医疗查询系统设计与开发oracle数据库版本源码:

超级管理员表创建语句如下:


create table t_admin(
	id integer,
	username varchar(100),
	password varchar(100)
);
insert into t_admin(id,username,password) values(1,'admin','123456');
--超级管理员字段加注释
comment on column t_admin.id is '主键';
comment on column t_admin.username is '超级管理员账号';
comment on column t_admin.password is '超级管理员密码';
--超级管理员表加注释
comment on table t_admin is '超级管理员';

患者表创建语句如下:


create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	customerName varchar(100),
	bh varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	sfz varchar(100)
);
--患者字段加注释
comment on column t_customer.id is '主键';
comment on column t_customer.username is '账号';
comment on column t_customer.password is '密码 ';
comment on column t_customer.customerName is '姓名';
comment on column t_customer.bh is '患者编号';
comment on column t_customer.age is '年龄';
comment on column t_customer.sex is '性别';
comment on column t_customer.phone is '电话';
comment on column t_customer.sfz is '身份证';
--患者表加注释
comment on table t_customer is '患者';

医生表创建语句如下:


create table t_doctor(
	id integer,
	username varchar(100),
	password varchar(100),
	doctorName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	sfz varchar(100),
	zw varchar(100),
	sc varchar(100)
);
--医生字段加注释
comment on column t_doctor.id is '主键';
comment on column t_doctor.username is '账号';
comment on column t_doctor.password is '密码 ';
comment on column t_doctor.doctorName is '姓名';
comment on column t_doctor.age is '年龄';
comment on column t_doctor.sex is '性别';
comment on column t_doctor.phone is '电话';
comment on column t_doctor.sfz is '身份证';
comment on column t_doctor.zw is '职位';
comment on column t_doctor.sc is '主治擅长';
--医生表加注释
comment on table t_doctor is '医生';

公告表创建语句如下:


create table t_gg(
	id integer,
	title varchar(100),
	pic varchar(100),
	content varchar(100),
	showDate datetime
);
--公告字段加注释
comment on column t_gg.id is '主键';
comment on column t_gg.title is '标题';
comment on column t_gg.pic is '图片';
comment on column t_gg.content is '内容';
comment on column t_gg.showDate is '日期';
--公告表加注释
comment on table t_gg is '公告';

医患关系表创建语句如下:


create table t_jbxx(
	id integer,
	customerId int,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	v5 varchar(100),
	v6 varchar(100)
);
--医患关系字段加注释
comment on column t_jbxx.id is '主键';
comment on column t_jbxx.customerId is '患者';
comment on column t_jbxx.v1 is '血压';
comment on column t_jbxx.v2 is '血糖';
comment on column t_jbxx.v3 is '身体质量';
comment on column t_jbxx.v4 is '身高';
comment on column t_jbxx.v5 is '体重';
comment on column t_jbxx.v6 is '五官';
--医患关系表加注释
comment on table t_jbxx is '医患关系';

交流询问表创建语句如下:


create table t_jl(
	id integer,
	customerId int,
	doctorId int,
	content varchar(100),
	fileUrl varchar(100),
	pic varchar(100),
	insertDate datetime,
	back varchar(100),
	status varchar(100)
);
--交流询问字段加注释
comment on column t_jl.id is '主键';
comment on column t_jl.customerId is '患者';
comment on column t_jl.doctorId is '医生';
comment on column t_jl.content is '询问内容';
comment on column t_jl.fileUrl is '文件';
comment on column t_jl.pic is '图片';
comment on column t_jl.insertDate is '日期';
comment on column t_jl.back is '回复内容';
comment on column t_jl.status is '状态';
--交流询问表加注释
comment on table t_jl is '交流询问';

留言表创建语句如下:


create table t_ly(
	id integer,
	fromId int,
	toId int,
	content varchar(100),
	fileUrl varchar(100),
	pic varchar(100),
	insertDate datetime
);
--留言字段加注释
comment on column t_ly.id is '主键';
comment on column t_ly.fromId is '患者';
comment on column t_ly.toId is '医生';
comment on column t_ly.content is '询问内容';
comment on column t_ly.fileUrl is '文件';
comment on column t_ly.pic is '图片';
comment on column t_ly.insertDate is '日期';
--留言表加注释
comment on table t_ly is '留言';

留言表创建语句如下:


create table t_ly1(
	id integer,
	customerId int,
	doctorId int,
	content varchar(100),
	pic varchar(100),
	insertDate datetime
);
--留言字段加注释
comment on column t_ly1.id is '主键';
comment on column t_ly1.customerId is '患者';
comment on column t_ly1.doctorId is '医生';
comment on column t_ly1.content is '留言内容';
comment on column t_ly1.pic is '图片';
comment on column t_ly1.insertDate is '日期';
--留言表加注释
comment on table t_ly1 is '留言';

留言表创建语句如下:


create table t_ly2(
	id integer,
	customerId int,
	doctorId int,
	content varchar(100),
	pic varchar(100),
	insertDate datetime
);
--留言字段加注释
comment on column t_ly2.id is '主键';
comment on column t_ly2.customerId is '患者';
comment on column t_ly2.doctorId is '医生';
comment on column t_ly2.content is '留言内容';
comment on column t_ly2.pic is '图片';
comment on column t_ly2.insertDate is '日期';
--留言表加注释
comment on table t_ly2 is '留言';

医患关系表创建语句如下:


create table t_yhgx(
	id integer,
	customerId int,
	doctorId int
);
--医患关系字段加注释
comment on column t_yhgx.id is '主键';
comment on column t_yhgx.customerId is '患者';
comment on column t_yhgx.doctorId is '医生';
--医患关系表加注释
comment on table t_yhgx is '医患关系';

oracle特有,对应序列如下:


create sequence s_t_customer;
create sequence s_t_doctor;
create sequence s_t_gg;
create sequence s_t_jbxx;
create sequence s_t_jl;
create sequence s_t_ly;
create sequence s_t_ly1;
create sequence s_t_ly2;
create sequence s_t_yhgx;

基于SSM保护隐私的远程医疗查询系统设计与开发sqlserver数据库版本源码:

超级管理员表创建语句如下:


--超级管理员
create table t_admin(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--超级管理员账号
	password varchar(100)--超级管理员密码
);
insert into t_admin(username,password) values('admin','123456');

患者表创建语句如下:


--患者表注释
create table t_customer(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码 
	customerName varchar(100),--姓名
	bh varchar(100),--患者编号
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100),--电话
	sfz varchar(100)--身份证
);

医生表创建语句如下:


--医生表注释
create table t_doctor(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码 
	doctorName varchar(100),--姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100),--电话
	sfz varchar(100),--身份证
	zw varchar(100),--职位
	sc varchar(100)--主治擅长
);

公告表创建语句如下:


--公告表注释
create table t_gg(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	pic varchar(100),--图片
	content varchar(100),--内容
	showDate datetime--日期
);

医患关系表创建语句如下:


--医患关系表注释
create table t_jbxx(
	id int identity(1,1) primary key not null,--主键
	customerId int,--患者
	v1 varchar(100),--血压
	v2 varchar(100),--血糖
	v3 varchar(100),--身体质量
	v4 varchar(100),--身高
	v5 varchar(100),--体重
	v6 varchar(100)--五官
);

交流询问表创建语句如下:


--交流询问表注释
create table t_jl(
	id int identity(1,1) primary key not null,--主键
	customerId int,--患者
	doctorId int,--医生
	content varchar(100),--询问内容
	fileUrl varchar(100),--文件
	pic varchar(100),--图片
	insertDate datetime,--日期
	back varchar(100),--回复内容
	status varchar(100)--状态
);

留言表创建语句如下:


--留言表注释
create table t_ly(
	id int identity(1,1) primary key not null,--主键
	fromId int,--患者
	toId int,--医生
	content varchar(100),--询问内容
	fileUrl varchar(100),--文件
	pic varchar(100),--图片
	insertDate datetime--日期
);

留言表创建语句如下:


--留言表注释
create table t_ly1(
	id int identity(1,1) primary key not null,--主键
	customerId int,--患者
	doctorId int,--医生
	content varchar(100),--留言内容
	pic varchar(100),--图片
	insertDate datetime--日期
);

留言表创建语句如下:


--留言表注释
create table t_ly2(
	id int identity(1,1) primary key not null,--主键
	customerId int,--患者
	doctorId int,--医生
	content varchar(100),--留言内容
	pic varchar(100),--图片
	insertDate datetime--日期
);

医患关系表创建语句如下:


--医患关系表注释
create table t_yhgx(
	id int identity(1,1) primary key not null,--主键
	customerId int,--患者
	doctorId int--医生
);

基于SSM保护隐私的远程医疗查询系统设计与开发登录后主页

基于SSM保护隐私的远程医疗查询系统设计与开发spring springMVC hibernate框架对象(javaBean,pojo)设计:

患者javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//患者
@Table(name = "t_customer")
public class Customer {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码 
private String password;
//姓名
private String customerName;
//患者编号
private String bh;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//身份证
private String sfz;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
public String getBh() {return bh;}
public void setBh(String bh) {this.bh = bh;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSfz() {return sfz;}
public void setSfz(String sfz) {this.sfz = sfz;}
}

医生javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//医生
@Table(name = "t_doctor")
public class Doctor {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码 
private String password;
//姓名
private String doctorName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//身份证
private String sfz;
//职位
private String zw;
//主治擅长
private String sc;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getDoctorName() {return doctorName;}
public void setDoctorName(String doctorName) {this.doctorName = doctorName;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSfz() {return sfz;}
public void setSfz(String sfz) {this.sfz = sfz;}
public String getZw() {return zw;}
public void setZw(String zw) {this.zw = zw;}
public String getSc() {return sc;}
public void setSc(String sc) {this.sc = sc;}
}

公告javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//公告
@Table(name = "t_gg")
public class Gg {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//图片
private String pic;
//内容
private String content;
//日期
private Date showDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

医患关系javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//医患关系
@Table(name = "t_jbxx")
public class Jbxx {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//患者
private Integer customerId;
//血压
private String v1;
//血糖
private String v2;
//身体质量
private String v3;
//身高
private String v4;
//体重
private String v5;
//五官
private String v6;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
}

交流询问javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//交流询问
@Table(name = "t_jl")
public class Jl {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//患者
private Integer customerId;
//医生
private Integer doctorId;
//询问内容
private String content;
//文件
private String fileUrl;
//图片
private String pic;
//日期
private Date insertDate;
//回复内容
private String back;
//状态
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getDoctorId() {return doctorId;}
public void setDoctorId(Integer doctorId) {this.doctorId = doctorId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getBack() {return back;}
public void setBack(String back) {this.back = back;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

留言javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//留言
@Table(name = "t_ly")
public class Ly {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//患者
private Integer fromId;
//医生
private Integer toId;
//询问内容
private String content;
//文件
private String fileUrl;
//图片
private String pic;
//日期
private Date insertDate;
public Integer getFromId() {return fromId;}
public void setFromId(Integer fromId) {this.fromId = fromId;}
public Integer getToId() {return toId;}
public void setToId(Integer toId) {this.toId = toId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

留言javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//留言
@Table(name = "t_ly1")
public class Ly1 {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//患者
private Integer customerId;
//医生
private Integer doctorId;
//留言内容
private String content;
//图片
private String pic;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getDoctorId() {return doctorId;}
public void setDoctorId(Integer doctorId) {this.doctorId = doctorId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

留言javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//留言
@Table(name = "t_ly2")
public class Ly2 {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//患者
private Integer customerId;
//医生
private Integer doctorId;
//留言内容
private String content;
//图片
private String pic;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getDoctorId() {return doctorId;}
public void setDoctorId(Integer doctorId) {this.doctorId = doctorId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

医患关系javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//医患关系
@Table(name = "t_yhgx")
public class Yhgx {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//患者
private Integer customerId;
//医生
private Integer doctorId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getDoctorId() {return doctorId;}
public void setDoctorId(Integer doctorId) {this.doctorId = doctorId;}
}

基于SSM保护隐私的远程医疗查询系统设计与开发spring springMVC mybatis框架对象(javaBean,pojo)设计:

患者javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//患者
public class Customer  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码 
private String password;
//姓名
private String customerName;
//患者编号
private String bh;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//身份证
private String sfz;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
public String getBh() {return bh;}
public void setBh(String bh) {this.bh = bh;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSfz() {return sfz;}
public void setSfz(String sfz) {this.sfz = sfz;}
}

医生javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//医生
public class Doctor  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码 
private String password;
//姓名
private String doctorName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//身份证
private String sfz;
//职位
private String zw;
//主治擅长
private String sc;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getDoctorName() {return doctorName;}
public void setDoctorName(String doctorName) {this.doctorName = doctorName;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSfz() {return sfz;}
public void setSfz(String sfz) {this.sfz = sfz;}
public String getZw() {return zw;}
public void setZw(String zw) {this.zw = zw;}
public String getSc() {return sc;}
public void setSc(String sc) {this.sc = sc;}
}

公告javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//公告
public class Gg  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//图片
private String pic;
//内容
private String content;
//日期
private Date showDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

医患关系javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//医患关系
public class Jbxx  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//患者
private Integer customerId;
//血压
private String v1;
//血糖
private String v2;
//身体质量
private String v3;
//身高
private String v4;
//体重
private String v5;
//五官
private String v6;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
}

交流询问javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//交流询问
public class Jl  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//患者
private Integer customerId;
//医生
private Integer doctorId;
//询问内容
private String content;
//文件
private String fileUrl;
//图片
private String pic;
//日期
private Date insertDate;
//回复内容
private String back;
//状态
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getDoctorId() {return doctorId;}
public void setDoctorId(Integer doctorId) {this.doctorId = doctorId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getBack() {return back;}
public void setBack(String back) {this.back = back;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

留言javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//留言
public class Ly  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//患者
private Integer fromId;
//医生
private Integer toId;
//询问内容
private String content;
//文件
private String fileUrl;
//图片
private String pic;
//日期
private Date insertDate;
public Integer getFromId() {return fromId;}
public void setFromId(Integer fromId) {this.fromId = fromId;}
public Integer getToId() {return toId;}
public void setToId(Integer toId) {this.toId = toId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

留言javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//留言
public class Ly1  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//患者
private Integer customerId;
//医生
private Integer doctorId;
//留言内容
private String content;
//图片
private String pic;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getDoctorId() {return doctorId;}
public void setDoctorId(Integer doctorId) {this.doctorId = doctorId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

留言javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//留言
public class Ly2  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//患者
private Integer customerId;
//医生
private Integer doctorId;
//留言内容
private String content;
//图片
private String pic;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getDoctorId() {return doctorId;}
public void setDoctorId(Integer doctorId) {this.doctorId = doctorId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

医患关系javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//医患关系
public class Yhgx  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//患者
private Integer customerId;
//医生
private Integer doctorId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getDoctorId() {return doctorId;}
public void setDoctorId(Integer doctorId) {this.doctorId = doctorId;}
}

猜你喜欢

转载自blog.csdn.net/weixin_44062395/article/details/87520132