中小学在校学生健康数据管理系统

课题名称:中小学在校学生健康数据管理系统
 
具体专业:计算机科学与技术
 
所在学校:桂林理工大学
完成日期:2018年5月20号左右
具体要求:目的:
为了方便学校随时掌握学生的健康数据,记录即往病史,管理好学生晨检、以及送医情况,形成日常生活、锻炼的建议,有效规避一些因为学生潜在健康因素引发的安全隐患。能在某班或某校因为同样的病症请假达到一定人数的时候,自动发出预警,引起管理者对某种病症的重视,预防有疫情的爆发。管理校医务室就医的记录,对有些存在即往病史较重的学生及时送外就医,以确保学生健康等。
功能:
 1、数据的导入导出:导入、导出学生健康数据(excel),如体检的、晨检的、缺课的。
 
2、数据查询:
a、能够查询某日期范围的,某一种病症的记录
b、缺课次数超过规定次数的记录
c、查询某班某时段缺课人的记录
d、能查询某生的入校数据以及在校就医情况
3、校医务室就医
a、记录学生就医情况,(姓名,原班级、现班级、就医日期、病症、是否就诊、药物、是否外出就诊)
用户权限待定,去问下老师
系统管理员:全部健康数据查询、录入
学校医务人员:全部健康数据录入
校领导:全部健康数据查询
班主任:所在班级健康数据查询、录入
家长:该学生的健康数据查询
 
app:领导、家长、班主任的基本数据查询,班主任数据录入、校医务室接诊录入,各用户的查询,疫情预警,健康锻炼建议
 
电脑端:系统管理、数据初始化、班主任数据录入、校医务室接诊录入,各用户的查询,疫情预警,健康锻炼建议
 
 
中小学在校学生健康数据管理系统登录注册界面

中小学在校学生健康数据管理系统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_bj(
	id int primary key auto_increment comment '主键',
	bjName varchar(100) comment '班级',
	customerId int comment '班主任'
) comment '班级';

建议表创建语句如下:


create table t_contact(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	phone varchar(100) comment '联系方式',
	content varchar(100) comment '内容',
	insertDate datetime comment '日期'
) comment '建议';

客户表创建语句如下:


create table t_customer(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	name varchar(100) comment '姓名',
	sex varchar(100) comment '性别',
	address varchar(100) comment '地址',
	mobile varchar(100) comment '手机',
	js varchar(100) comment '角色'
) comment '客户';

健康锻炼建议表创建语句如下:


create table t_jkdljy(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	pic varchar(100) comment '图片',
	content varchar(100) comment '内容'
) comment '健康锻炼建议';

就医情况表创建语句如下:


create table t_jyqk(
	id int primary key auto_increment comment '主键',
	studentId int comment '学生',
	bjId int comment '现班级',
	oldbjId int comment '原班级',
	showDate datetime comment '就医时间',
	bz varchar(100) comment '病症',
	sfjz varchar(100) comment '是否就诊',
	yw varchar(100) comment '药物',
	sfwcjz varchar(100) comment '是否外出就诊'
) comment '就医情况';

信息交流表创建语句如下:


create table t_message(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	messageContent varchar(100) comment '内容',
	types int comment '',
	insertDate datetime comment '时间'
) comment '信息交流';

缺课记录表创建语句如下:


create table t_qkjl(
	id int primary key auto_increment comment '主键',
	studentId int comment '学生',
	kcName varchar(100) comment '课程',
	showDate datetime comment '时间'
) comment '缺课记录';

学生表创建语句如下:


create table t_student(
	id int primary key auto_increment comment '主键',
	studentName varchar(100) comment '姓名',
	age varchar(100) comment '年龄',
	phone varchar(100) comment '联系方式',
	sex varchar(100) comment '性别',
	bjId int comment '班级',
	customerId int comment '家长'
) comment '学生';

体检表创建语句如下:


create table t_tj(
	id int primary key auto_increment comment '主键',
	studentId int comment '学生',
	v1 varchar(100) comment '血常规',
	p1 varchar(100) comment '是否正常',
	v2 varchar(100) comment '胆红素组合',
	p2 varchar(100) comment '是否正常',
	v3 varchar(100) comment '肝功能检测',
	p3 varchar(100) comment '是否正常',
	v4 varchar(100) comment '内科',
	p4 varchar(100) comment '是否正常',
	v5 varchar(100) comment '外科',
	p5 varchar(100) comment '是否正常',
	v6 varchar(100) comment '眼科检查',
	p6 varchar(100) comment '是否正常',
	v7 varchar(100) comment '口腔检查',
	p7 varchar(100) comment '是否正常',
	v8 varchar(100) comment '身高',
	p8 varchar(100) comment '是否正常',
	v9 varchar(100) comment '体重',
	p9 varchar(100) comment '是否正常',
	showDate datetime comment '检查时间'
) comment '体检';

疫情预警表创建语句如下:


create table t_yqyj(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	showDate datetime comment '预警时间',
	content varchar(100) comment '详细说明'
) comment '疫情预警';

中小学在校学生健康数据管理系统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_bj(
	id integer,
	bjName varchar(100),
	customerId int
);
--班级字段加注释
comment on column t_bj.id is '主键';
comment on column t_bj.bjName is '班级';
comment on column t_bj.customerId is '班主任';
--班级表加注释
comment on table t_bj is '班级';

建议表创建语句如下:


create table t_contact(
	id integer,
	customerId int,
	phone varchar(100),
	content varchar(100),
	insertDate datetime
);
--建议字段加注释
comment on column t_contact.id is '主键';
comment on column t_contact.customerId is '用户';
comment on column t_contact.phone is '联系方式';
comment on column t_contact.content is '内容';
comment on column t_contact.insertDate is '日期';
--建议表加注释
comment on table t_contact is '建议';

客户表创建语句如下:


create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	sex varchar(100),
	address varchar(100),
	mobile varchar(100),
	js 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.name is '姓名';
comment on column t_customer.sex is '性别';
comment on column t_customer.address is '地址';
comment on column t_customer.mobile is '手机';
comment on column t_customer.js is '角色';
--客户表加注释
comment on table t_customer is '客户';

健康锻炼建议表创建语句如下:


create table t_jkdljy(
	id integer,
	title varchar(100),
	pic varchar(100),
	content varchar(100)
);
--健康锻炼建议字段加注释
comment on column t_jkdljy.id is '主键';
comment on column t_jkdljy.title is '标题';
comment on column t_jkdljy.pic is '图片';
comment on column t_jkdljy.content is '内容';
--健康锻炼建议表加注释
comment on table t_jkdljy is '健康锻炼建议';

就医情况表创建语句如下:


create table t_jyqk(
	id integer,
	studentId int,
	bjId int,
	oldbjId int,
	showDate datetime,
	bz varchar(100),
	sfjz varchar(100),
	yw varchar(100),
	sfwcjz varchar(100)
);
--就医情况字段加注释
comment on column t_jyqk.id is '主键';
comment on column t_jyqk.studentId is '学生';
comment on column t_jyqk.bjId is '现班级';
comment on column t_jyqk.oldbjId is '原班级';
comment on column t_jyqk.showDate is '就医时间';
comment on column t_jyqk.bz is '病症';
comment on column t_jyqk.sfjz is '是否就诊';
comment on column t_jyqk.yw is '药物';
comment on column t_jyqk.sfwcjz is '是否外出就诊';
--就医情况表加注释
comment on table t_jyqk is '就医情况';

信息交流表创建语句如下:


create table t_message(
	id integer,
	customerId int,
	messageContent varchar(100),
	types int,
	insertDate datetime
);
--信息交流字段加注释
comment on column t_message.id is '主键';
comment on column t_message.customerId is '用户';
comment on column t_message.messageContent is '内容';
comment on column t_message.types is '';
comment on column t_message.insertDate is '时间';
--信息交流表加注释
comment on table t_message is '信息交流';

缺课记录表创建语句如下:


create table t_qkjl(
	id integer,
	studentId int,
	kcName varchar(100),
	showDate datetime
);
--缺课记录字段加注释
comment on column t_qkjl.id is '主键';
comment on column t_qkjl.studentId is '学生';
comment on column t_qkjl.kcName is '课程';
comment on column t_qkjl.showDate is '时间';
--缺课记录表加注释
comment on table t_qkjl is '缺课记录';

学生表创建语句如下:


create table t_student(
	id integer,
	studentName varchar(100),
	age varchar(100),
	phone varchar(100),
	sex varchar(100),
	bjId int,
	customerId int
);
--学生字段加注释
comment on column t_student.id is '主键';
comment on column t_student.studentName is '姓名';
comment on column t_student.age is '年龄';
comment on column t_student.phone is '联系方式';
comment on column t_student.sex is '性别';
comment on column t_student.bjId is '班级';
comment on column t_student.customerId is '家长';
--学生表加注释
comment on table t_student is '学生';

体检表创建语句如下:


create table t_tj(
	id integer,
	studentId int,
	v1 varchar(100),
	p1 varchar(100),
	v2 varchar(100),
	p2 varchar(100),
	v3 varchar(100),
	p3 varchar(100),
	v4 varchar(100),
	p4 varchar(100),
	v5 varchar(100),
	p5 varchar(100),
	v6 varchar(100),
	p6 varchar(100),
	v7 varchar(100),
	p7 varchar(100),
	v8 varchar(100),
	p8 varchar(100),
	v9 varchar(100),
	p9 varchar(100),
	showDate datetime
);
--体检字段加注释
comment on column t_tj.id is '主键';
comment on column t_tj.studentId is '学生';
comment on column t_tj.v1 is '血常规';
comment on column t_tj.p1 is '是否正常';
comment on column t_tj.v2 is '胆红素组合';
comment on column t_tj.p2 is '是否正常';
comment on column t_tj.v3 is '肝功能检测';
comment on column t_tj.p3 is '是否正常';
comment on column t_tj.v4 is '内科';
comment on column t_tj.p4 is '是否正常';
comment on column t_tj.v5 is '外科';
comment on column t_tj.p5 is '是否正常';
comment on column t_tj.v6 is '眼科检查';
comment on column t_tj.p6 is '是否正常';
comment on column t_tj.v7 is '口腔检查';
comment on column t_tj.p7 is '是否正常';
comment on column t_tj.v8 is '身高';
comment on column t_tj.p8 is '是否正常';
comment on column t_tj.v9 is '体重';
comment on column t_tj.p9 is '是否正常';
comment on column t_tj.showDate is '检查时间';
--体检表加注释
comment on table t_tj is '体检';

疫情预警表创建语句如下:


create table t_yqyj(
	id integer,
	title varchar(100),
	showDate datetime,
	content varchar(100)
);
--疫情预警字段加注释
comment on column t_yqyj.id is '主键';
comment on column t_yqyj.title is '标题';
comment on column t_yqyj.showDate is '预警时间';
comment on column t_yqyj.content is '详细说明';
--疫情预警表加注释
comment on table t_yqyj is '疫情预警';

oracle特有,对应序列如下:


create sequence s_t_bj;
create sequence s_t_contact;
create sequence s_t_customer;
create sequence s_t_jkdljy;
create sequence s_t_jyqk;
create sequence s_t_message;
create sequence s_t_qkjl;
create sequence s_t_student;
create sequence s_t_tj;
create sequence s_t_yqyj;

中小学在校学生健康数据管理系统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_bj(
	id int identity(1,1) primary key not null,--主键
	bjName varchar(100),--班级
	customerId int--班主任
);

建议表创建语句如下:


--建议表注释
create table t_contact(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	phone varchar(100),--联系方式
	content varchar(100),--内容
	insertDate datetime--日期
);

客户表创建语句如下:


--客户表注释
create table t_customer(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	name varchar(100),--姓名
	sex varchar(100),--性别
	address varchar(100),--地址
	mobile varchar(100),--手机
	js varchar(100)--角色
);

健康锻炼建议表创建语句如下:


--健康锻炼建议表注释
create table t_jkdljy(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	pic varchar(100),--图片
	content varchar(100)--内容
);

就医情况表创建语句如下:


--就医情况表注释
create table t_jyqk(
	id int identity(1,1) primary key not null,--主键
	studentId int,--学生
	bjId int,--现班级
	oldbjId int,--原班级
	showDate datetime,--就医时间
	bz varchar(100),--病症
	sfjz varchar(100),--是否就诊
	yw varchar(100),--药物
	sfwcjz varchar(100)--是否外出就诊
);

信息交流表创建语句如下:


--信息交流表注释
create table t_message(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	messageContent varchar(100),--内容
	types int,--
	insertDate datetime--时间
);

缺课记录表创建语句如下:


--缺课记录表注释
create table t_qkjl(
	id int identity(1,1) primary key not null,--主键
	studentId int,--学生
	kcName varchar(100),--课程
	showDate datetime--时间
);

学生表创建语句如下:


--学生表注释
create table t_student(
	id int identity(1,1) primary key not null,--主键
	studentName varchar(100),--姓名
	age varchar(100),--年龄
	phone varchar(100),--联系方式
	sex varchar(100),--性别
	bjId int,--班级
	customerId int--家长
);

体检表创建语句如下:


--体检表注释
create table t_tj(
	id int identity(1,1) primary key not null,--主键
	studentId int,--学生
	v1 varchar(100),--血常规
	p1 varchar(100),--是否正常
	v2 varchar(100),--胆红素组合
	p2 varchar(100),--是否正常
	v3 varchar(100),--肝功能检测
	p3 varchar(100),--是否正常
	v4 varchar(100),--内科
	p4 varchar(100),--是否正常
	v5 varchar(100),--外科
	p5 varchar(100),--是否正常
	v6 varchar(100),--眼科检查
	p6 varchar(100),--是否正常
	v7 varchar(100),--口腔检查
	p7 varchar(100),--是否正常
	v8 varchar(100),--身高
	p8 varchar(100),--是否正常
	v9 varchar(100),--体重
	p9 varchar(100),--是否正常
	showDate datetime--检查时间
);

疫情预警表创建语句如下:


--疫情预警表注释
create table t_yqyj(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	showDate datetime,--预警时间
	content varchar(100)--详细说明
);

中小学在校学生健康数据管理系统登录后主页

中小学在校学生健康数据管理系统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_bj")
public class Bj {
//主键
@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 bjName;
//班主任
private Integer customerId;
public String getBjName() {return bjName;}
public void setBjName(String bjName) {this.bjName = bjName;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
}

建议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_contact")
public class Contact {
//主键
@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 phone;
//内容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
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_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 name;
//性别
private String sex;
//地址
private String address;
//手机
private String mobile;
//角色
private String js;
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 getName() {return name;}
public void setName(String name) {this.name = name;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
public String getJs() {return js;}
public void setJs(String js) {this.js = js;}
}

健康锻炼建议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_jkdljy")
public class Jkdljy {
//主键
@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;
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;}
}

就医情况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_jyqk")
public class Jyqk {
//主键
@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 studentId;
//现班级
private Integer bjId;
//原班级
private Integer oldbjId;
//就医时间
private Date showDate;
//病症
private String bz;
//是否就诊
private String sfjz;
//药物
private String yw;
//是否外出就诊
private String sfwcjz;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Integer getBjId() {return bjId;}
public void setBjId(Integer bjId) {this.bjId = bjId;}
public Integer getOldbjId() {return oldbjId;}
public void setOldbjId(Integer oldbjId) {this.oldbjId = oldbjId;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getBz() {return bz;}
public void setBz(String bz) {this.bz = bz;}
public String getSfjz() {return sfjz;}
public void setSfjz(String sfjz) {this.sfjz = sfjz;}
public String getYw() {return yw;}
public void setYw(String yw) {this.yw = yw;}
public String getSfwcjz() {return sfwcjz;}
public void setSfwcjz(String sfwcjz) {this.sfwcjz = sfwcjz;}
}

信息交流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_message")
public class Message {
//主键
@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 messageContent;
//
private Integer types;
//时间
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getMessageContent() {return messageContent;}
public void setMessageContent(String messageContent) {this.messageContent = messageContent;}
public Integer getTypes() {return types;}
public void setTypes(Integer types) {this.types = types;}
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_qkjl")
public class Qkjl {
//主键
@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 studentId;
//课程
private String kcName;
//时间
private Date showDate;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public String getKcName() {return kcName;}
public void setKcName(String kcName) {this.kcName = kcName;}
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_student")
public class Student {
//主键
@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 studentName;
//年龄
private String age;
//联系方式
private String phone;
//性别
private String sex;
//班级
private Integer bjId;
//家长
private Integer customerId;
public String getStudentName() {return studentName;}
public void setStudentName(String studentName) {this.studentName = studentName;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public Integer getBjId() {return bjId;}
public void setBjId(Integer bjId) {this.bjId = bjId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
}

体检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_tj")
public class Tj {
//主键
@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 studentId;
//血常规
private String v1;
//是否正常
private String p1;
//胆红素组合
private String v2;
//是否正常
private String p2;
//肝功能检测
private String v3;
//是否正常
private String p3;
//内科
private String v4;
//是否正常
private String p4;
//外科
private String v5;
//是否正常
private String p5;
//眼科检查
private String v6;
//是否正常
private String p6;
//口腔检查
private String v7;
//是否正常
private String p7;
//身高
private String v8;
//是否正常
private String p8;
//体重
private String v9;
//是否正常
private String p9;
//检查时间
private Date showDate;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getP1() {return p1;}
public void setP1(String p1) {this.p1 = p1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getP2() {return p2;}
public void setP2(String p2) {this.p2 = p2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getP3() {return p3;}
public void setP3(String p3) {this.p3 = p3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getP4() {return p4;}
public void setP4(String p4) {this.p4 = p4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getP5() {return p5;}
public void setP5(String p5) {this.p5 = p5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getP6() {return p6;}
public void setP6(String p6) {this.p6 = p6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
public String getP7() {return p7;}
public void setP7(String p7) {this.p7 = p7;}
public String getV8() {return v8;}
public void setV8(String v8) {this.v8 = v8;}
public String getP8() {return p8;}
public void setP8(String p8) {this.p8 = p8;}
public String getV9() {return v9;}
public void setV9(String v9) {this.v9 = v9;}
public String getP9() {return p9;}
public void setP9(String p9) {this.p9 = p9;}
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_yqyj")
public class Yqyj {
//主键
@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 Date showDate;
//详细说明
private String content;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

中小学在校学生健康数据管理系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

班级javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//班级
public class Bj  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//班级
private String bjName;
//班主任
private Integer customerId;
public String getBjName() {return bjName;}
public void setBjName(String bjName) {this.bjName = bjName;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
}

建议javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//建议
public class Contact  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//联系方式
private String phone;
//内容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
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 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 name;
//性别
private String sex;
//地址
private String address;
//手机
private String mobile;
//角色
private String js;
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 getName() {return name;}
public void setName(String name) {this.name = name;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
public String getJs() {return js;}
public void setJs(String js) {this.js = js;}
}

健康锻炼建议javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//健康锻炼建议
public class Jkdljy  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;
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;}
}

就医情况javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//就医情况
public class Jyqk  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//学生
private Integer studentId;
//现班级
private Integer bjId;
//原班级
private Integer oldbjId;
//就医时间
private Date showDate;
//病症
private String bz;
//是否就诊
private String sfjz;
//药物
private String yw;
//是否外出就诊
private String sfwcjz;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Integer getBjId() {return bjId;}
public void setBjId(Integer bjId) {this.bjId = bjId;}
public Integer getOldbjId() {return oldbjId;}
public void setOldbjId(Integer oldbjId) {this.oldbjId = oldbjId;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getBz() {return bz;}
public void setBz(String bz) {this.bz = bz;}
public String getSfjz() {return sfjz;}
public void setSfjz(String sfjz) {this.sfjz = sfjz;}
public String getYw() {return yw;}
public void setYw(String yw) {this.yw = yw;}
public String getSfwcjz() {return sfwcjz;}
public void setSfwcjz(String sfwcjz) {this.sfwcjz = sfwcjz;}
}

信息交流javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//信息交流
public class Message  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//内容
private String messageContent;
//
private Integer types;
//时间
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getMessageContent() {return messageContent;}
public void setMessageContent(String messageContent) {this.messageContent = messageContent;}
public Integer getTypes() {return types;}
public void setTypes(Integer types) {this.types = types;}
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 Qkjl  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//学生
private Integer studentId;
//课程
private String kcName;
//时间
private Date showDate;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public String getKcName() {return kcName;}
public void setKcName(String kcName) {this.kcName = kcName;}
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 Student  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//姓名
private String studentName;
//年龄
private String age;
//联系方式
private String phone;
//性别
private String sex;
//班级
private Integer bjId;
//家长
private Integer customerId;
public String getStudentName() {return studentName;}
public void setStudentName(String studentName) {this.studentName = studentName;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public Integer getBjId() {return bjId;}
public void setBjId(Integer bjId) {this.bjId = bjId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
}

体检javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//体检
public class Tj  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//学生
private Integer studentId;
//血常规
private String v1;
//是否正常
private String p1;
//胆红素组合
private String v2;
//是否正常
private String p2;
//肝功能检测
private String v3;
//是否正常
private String p3;
//内科
private String v4;
//是否正常
private String p4;
//外科
private String v5;
//是否正常
private String p5;
//眼科检查
private String v6;
//是否正常
private String p6;
//口腔检查
private String v7;
//是否正常
private String p7;
//身高
private String v8;
//是否正常
private String p8;
//体重
private String v9;
//是否正常
private String p9;
//检查时间
private Date showDate;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getP1() {return p1;}
public void setP1(String p1) {this.p1 = p1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getP2() {return p2;}
public void setP2(String p2) {this.p2 = p2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getP3() {return p3;}
public void setP3(String p3) {this.p3 = p3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getP4() {return p4;}
public void setP4(String p4) {this.p4 = p4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getP5() {return p5;}
public void setP5(String p5) {this.p5 = p5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getP6() {return p6;}
public void setP6(String p6) {this.p6 = p6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
public String getP7() {return p7;}
public void setP7(String p7) {this.p7 = p7;}
public String getV8() {return v8;}
public void setV8(String v8) {this.v8 = v8;}
public String getP8() {return p8;}
public void setP8(String p8) {this.p8 = p8;}
public String getV9() {return v9;}
public void setV9(String v9) {this.v9 = v9;}
public String getP9() {return p9;}
public void setP9(String p9) {this.p9 = p9;}
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 Yqyj  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//预警时间
private Date showDate;
//详细说明
private String content;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

源代码下载点这里

评论