- 新农合医疗信息统计与管理mysql数据库创建语句
- 新农合医疗信息统计与管理oracle数据库创建语句
- 新农合医疗信息统计与管理sqlserver数据库创建语句
- 新农合医疗信息统计与管理spring+springMVC+hibernate框架对象(javaBean,pojo)设计
- 新农合医疗信息统计与管理spring+springMVC+mybatis框架对象(javaBean,pojo)设计
新农合医疗信息统计与管理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_cb(
id int primary key auto_increment comment '主键',
nf varchar(100) comment '',
sf varchar(100) comment '省份',
cbr varchar(100) comment '参保人',
dh varchar(100) comment '电话',
sfz varchar(100) comment '身份证',
birthday varchar(100) comment '出生日期',
sbje int comment '社保金额',
ybje int comment '医保金额',
zbx int comment '报销金额'
) comment '参保数据';
用户表创建语句如下:
create table t_customer(
id int primary key auto_increment comment '主键',
username varchar(100) comment '账号',
password varchar(100) comment '密码',
customerName varchar(100) comment '姓名',
phone varchar(100) comment '电话',
age varchar(100) comment '年龄',
sex varchar(100) comment ''
) comment '用户';
公告表创建语句如下:
create table t_gonggao(
id int primary key auto_increment comment '主键',
title varchar(100) comment '标题',
content text comment '内容',
insertDate datetime comment '发起日期'
) comment '公告';
留言表创建语句如下:
create table t_ly(
id int primary key auto_increment comment '主键',
customerId int comment '用户',
content text comment '内容',
insertDate datetime comment '发起日期',
back text comment '回复',
status 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_cb(
id integer,
nf varchar(100),
sf varchar(100),
cbr varchar(100),
dh varchar(100),
sfz varchar(100),
birthday varchar(100),
sbje int,
ybje int,
zbx int
);
--参保数据字段加注释
comment on column t_cb.id is '主键';
comment on column t_cb.nf is '';
comment on column t_cb.sf is '省份';
comment on column t_cb.cbr is '参保人';
comment on column t_cb.dh is '电话';
comment on column t_cb.sfz is '身份证';
comment on column t_cb.birthday is '出生日期';
comment on column t_cb.sbje is '社保金额';
comment on column t_cb.ybje is '医保金额';
comment on column t_cb.zbx is '报销金额';
--参保数据表加注释
comment on table t_cb is '参保数据';
用户表创建语句如下:
create table t_customer(
id integer,
username varchar(100),
password varchar(100),
customerName varchar(100),
phone varchar(100),
age varchar(100),
sex 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.phone is '电话';
comment on column t_customer.age is '年龄';
comment on column t_customer.sex is '';
--用户表加注释
comment on table t_customer is '用户';
公告表创建语句如下:
create table t_gonggao(
id integer,
title varchar(100),
content text,
insertDate datetime
);
--公告字段加注释
comment on column t_gonggao.id is '主键';
comment on column t_gonggao.title is '标题';
comment on column t_gonggao.content is '内容';
comment on column t_gonggao.insertDate is '发起日期';
--公告表加注释
comment on table t_gonggao is '公告';
留言表创建语句如下:
create table t_ly(
id integer,
customerId int,
content text,
insertDate datetime,
back text,
status varchar(100)
);
--留言字段加注释
comment on column t_ly.id is '主键';
comment on column t_ly.customerId is '用户';
comment on column t_ly.content is '内容';
comment on column t_ly.insertDate is '发起日期';
comment on column t_ly.back is '回复';
comment on column t_ly.status is '状态';
--留言表加注释
comment on table t_ly is '留言';
oracle特有,对应序列如下:
create sequence s_t_cb;
create sequence s_t_customer;
create sequence s_t_gonggao;
create sequence s_t_ly;
新农合医疗信息统计与管理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_cb(
id int identity(1,1) primary key not null,--主键
nf varchar(100),--
sf varchar(100),--省份
cbr varchar(100),--参保人
dh varchar(100),--电话
sfz varchar(100),--身份证
birthday varchar(100),--出生日期
sbje int,--社保金额
ybje int,--医保金额
zbx int--报销金额
);
用户表创建语句如下:
--用户表注释
create table t_customer(
id int identity(1,1) primary key not null,--主键
username varchar(100),--账号
password varchar(100),--密码
customerName varchar(100),--姓名
phone varchar(100),--电话
age varchar(100),--年龄
sex varchar(100)--
);
公告表创建语句如下:
--公告表注释
create table t_gonggao(
id int identity(1,1) primary key not null,--主键
title varchar(100),--标题
content text,--内容
insertDate datetime--发起日期
);
留言表创建语句如下:
--留言表注释
create table t_ly(
id int identity(1,1) primary key not null,--主键
customerId int,--用户
content text,--内容
insertDate datetime,--发起日期
back text,--回复
status 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_cb")
public class Cb {
//主键
@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 nf;
//省份
private String sf;
//参保人
private String cbr;
//电话
private String dh;
//身份证
private String sfz;
//出生日期
private String birthday;
//社保金额
private Integer sbje;
//医保金额
private Integer ybje;
//报销金额
private Integer zbx;
public String getNf() {return nf;}
public void setNf(String nf) {this.nf = nf;}
public String getSf() {return sf;}
public void setSf(String sf) {this.sf = sf;}
public String getCbr() {return cbr;}
public void setCbr(String cbr) {this.cbr = cbr;}
public String getDh() {return dh;}
public void setDh(String dh) {this.dh = dh;}
public String getSfz() {return sfz;}
public void setSfz(String sfz) {this.sfz = sfz;}
public String getBirthday() {return birthday;}
public void setBirthday(String birthday) {this.birthday = birthday;}
public Integer getSbje() {return sbje;}
public void setSbje(Integer sbje) {this.sbje = sbje;}
public Integer getYbje() {return ybje;}
public void setYbje(Integer ybje) {this.ybje = ybje;}
public Integer getZbx() {return zbx;}
public void setZbx(Integer zbx) {this.zbx = zbx;}
}
用户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 phone;
//年龄
private String age;
//
private String sex;
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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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;}
}
公告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_gonggao")
public class Gonggao {
//主键
@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 content;
//发起日期
private Date insertDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
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_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 Long customerId;
//内容
private String content;
//发起日期
private Date insertDate;
//回复
private String back;
//状态
private String status;
public Long getCustomerId() {return customerId;}
public void setCustomerId(Long customerId) {this.customerId = customerId;}
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;}
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;}
}
新农合医疗信息统计与管理spring+springMVC+mybatis框架对象(javaBean,pojo)设计:
参保数据javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//参保数据
public class Cb extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//
private String nf;
//省份
private String sf;
//参保人
private String cbr;
//电话
private String dh;
//身份证
private String sfz;
//出生日期
@DateTimeFormat(pattern = "yyyy-MM-dd")
private String birthday;
//社保金额
private Integer sbje;
//医保金额
private Integer ybje;
//报销金额
private Integer zbx;
public String getNf() {return nf;}
public void setNf(String nf) {this.nf = nf;}
public String getSf() {return sf;}
public void setSf(String sf) {this.sf = sf;}
public String getCbr() {return cbr;}
public void setCbr(String cbr) {this.cbr = cbr;}
public String getDh() {return dh;}
public void setDh(String dh) {this.dh = dh;}
public String getSfz() {return sfz;}
public void setSfz(String sfz) {this.sfz = sfz;}
public String getBirthday() {return birthday;}
public void setBirthday(String birthday) {this.birthday = birthday;}
public Integer getSbje() {return sbje;}
public void setSbje(Integer sbje) {this.sbje = sbje;}
public Integer getYbje() {return ybje;}
public void setYbje(Integer ybje) {this.ybje = ybje;}
public Integer getZbx() {return zbx;}
public void setZbx(Integer zbx) {this.zbx = zbx;}
}
用户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 phone;
//年龄
private String age;
//
private String sex;
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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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;}
}
公告javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//公告
public class Gonggao extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//内容
private String content;
//发起日期
private Date insertDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
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 Ly extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Long customerId;
//内容
private String content;
//发起日期
private Date insertDate;
//回复
private String back;
//状态
private String status;
public Long getCustomerId() {return customerId;}
public void setCustomerId(Long customerId) {this.customerId = customerId;}
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;}
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;}
}