1. 程式人生 > >基於SSH的心理測評系統,畢業設計java

基於SSH的心理測評系統,畢業設計java

**基於SSH的心理測評系統,畢業設計java** 基於SSH的心理測評系統登入註冊介面

基於SSH的心理測評系統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 '密碼',
	name varchar(100) comment '姓名',
	sex varchar(100) comment '性別',
	address varchar(100) comment '地址',
	mobile varchar(100) comment '手機'
) comment '客戶';

訪問量表建立語句如下:


create table t_fw(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	insertDate datetime comment '日期',
	fwlx varchar(100) comment '訪問型別'
) comment '訪問量';

心裡評測檔案表建立語句如下:


create table t_h1(
	id int primary key auto_increment comment '主鍵',
	v1 varchar(100) comment '姓名',
	v2 varchar(100) comment '說明'
) comment '心裡評測檔案';

問卷調查檔案表建立語句如下:


create table t_h2(
	id int primary key auto_increment comment '主鍵',
	v1 varchar(100) comment '姓名',
	v2 varchar(100) comment '說明'
) comment '問卷調查檔案';

個體輔導檔案表建立語句如下:


create table t_h3(
	id int primary key auto_increment comment '主鍵',
	v1 varchar(100) comment '姓名',
	v2 varchar(100) comment '說明'
) comment '個體輔導檔案';

個體資訊檔案表建立語句如下:


create table t_h4(
	id int primary key auto_increment comment '主鍵',
	name varchar(100) comment '姓名',
	sex varchar(100) comment '性別',
	age varchar(100) comment '年齡',
	phone varchar(100) comment '電話',
	v2 varchar(100) comment '說明'
) comment '個體資訊檔案';

簽到表建立語句如下:


create table t_qd(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	insertDate datetime comment '日期'
) comment '簽到';

諮詢師簽到表建立語句如下:


create table t_qduser(
	id int primary key auto_increment comment '主鍵',
	userId int comment '諮詢師',
	insertDate datetime comment '日期'
) comment '諮詢師簽到';

諮詢師表建立語句如下:


create table t_user(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬戶',
	password varchar(100) comment '密碼',
	name varchar(100) comment '姓名',
	sex varchar(100) comment '性別',
	age varchar(100) comment '年齡',
	phone varchar(100) comment '電話'
) comment '諮詢師';

心靈輔導表建立語句如下:


create table t_xlfd(
	id int primary key auto_increment comment '主鍵',
	v1 varchar(100) comment '標題',
	v2 varchar(100) comment '型別',
	v3 varchar(100) comment '內容',
	v4 varchar(100) comment '連線'
) comment '心靈輔導';

心裡評測表建立語句如下:


create table t_xlpc(
	id int primary key auto_increment comment '主鍵',
	v1 varchar(100) comment '評測標題',
	v2 varchar(100) comment '評測內容',
	v3 varchar(100) comment ''
) comment '心裡評測';

心裡評測答案表建立語句如下:


create table t_xlpcda(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	xlpcId int comment '評測',
	da varchar(100) comment '評測內容',
	insertDate datetime comment '日期'
) comment '心裡評測答案';

線上留言表建立語句如下:


create table t_zxly(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	v1 varchar(100) comment '內容',
	v2 varchar(100) comment '回覆內容',
	v3 varchar(100) comment '狀態',
	userId int comment '回覆人'
) comment '線上留言';

線上預約表建立語句如下:


create table t_zxyy(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	v1 varchar(100) comment '預約內容',
	v4 varchar(100) comment '預約時間',
	v2 varchar(100) comment '回覆內容',
	v3 varchar(100) comment '狀態',
	userId int comment '回覆人'
) comment '線上預約';

基於SSH的心理測評系統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),
	name varchar(100),
	sex varchar(100),
	address varchar(100),
	mobile 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 table t_customer is '客戶';

訪問量表建立語句如下:


create table t_fw(
	id integer,
	customerId int,
	insertDate datetime,
	fwlx varchar(100)
);
--訪問量欄位加註釋
comment on column t_fw.id is '主鍵';
comment on column t_fw.customerId is '使用者';
comment on column t_fw.insertDate is '日期';
comment on column t_fw.fwlx is '訪問型別';
--訪問量表加註釋
comment on table t_fw is '訪問量';

心裡評測檔案表建立語句如下:


create table t_h1(
	id integer,
	v1 varchar(100),
	v2 varchar(100)
);
--心裡評測檔案欄位加註釋
comment on column t_h1.id is '主鍵';
comment on column t_h1.v1 is '姓名';
comment on column t_h1.v2 is '說明';
--心裡評測檔案表加註釋
comment on table t_h1 is '心裡評測檔案';

問卷調查檔案表建立語句如下:


create table t_h2(
	id integer,
	v1 varchar(100),
	v2 varchar(100)
);
--問卷調查檔案欄位加註釋
comment on column t_h2.id is '主鍵';
comment on column t_h2.v1 is '姓名';
comment on column t_h2.v2 is '說明';
--問卷調查檔案表加註釋
comment on table t_h2 is '問卷調查檔案';

個體輔導檔案表建立語句如下:


create table t_h3(
	id integer,
	v1 varchar(100),
	v2 varchar(100)
);
--個體輔導檔案欄位加註釋
comment on column t_h3.id is '主鍵';
comment on column t_h3.v1 is '姓名';
comment on column t_h3.v2 is '說明';
--個體輔導檔案表加註釋
comment on table t_h3 is '個體輔導檔案';

個體資訊檔案表建立語句如下:


create table t_h4(
	id integer,
	name varchar(100),
	sex varchar(100),
	age varchar(100),
	phone varchar(100),
	v2 varchar(100)
);
--個體資訊檔案欄位加註釋
comment on column t_h4.id is '主鍵';
comment on column t_h4.name is '姓名';
comment on column t_h4.sex is '性別';
comment on column t_h4.age is '年齡';
comment on column t_h4.phone is '電話';
comment on column t_h4.v2 is '說明';
--個體資訊檔案表加註釋
comment on table t_h4 is '個體資訊檔案';

簽到表建立語句如下:


create table t_qd(
	id integer,
	customerId int,
	insertDate datetime
);
--簽到欄位加註釋
comment on column t_qd.id is '主鍵';
comment on column t_qd.customerId is '使用者';
comment on column t_qd.insertDate is '日期';
--簽到表加註釋
comment on table t_qd is '簽到';

諮詢師簽到表建立語句如下:


create table t_qduser(
	id integer,
	userId int,
	insertDate datetime
);
--諮詢師簽到欄位加註釋
comment on column t_qduser.id is '主鍵';
comment on column t_qduser.userId is '諮詢師';
comment on column t_qduser.insertDate is '日期';
--諮詢師簽到表加註釋
comment on table t_qduser is '諮詢師簽到';

諮詢師表建立語句如下:


create table t_user(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	sex varchar(100),
	age varchar(100),
	phone varchar(100)
);
--諮詢師欄位加註釋
comment on column t_user.id is '主鍵';
comment on column t_user.username is '賬戶';
comment on column t_user.password is '密碼';
comment on column t_user.name is '姓名';
comment on column t_user.sex is '性別';
comment on column t_user.age is '年齡';
comment on column t_user.phone is '電話';
--諮詢師表加註釋
comment on table t_user is '諮詢師';

心靈輔導表建立語句如下:


create table t_xlfd(
	id integer,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100)
);
--心靈輔導欄位加註釋
comment on column t_xlfd.id is '主鍵';
comment on column t_xlfd.v1 is '標題';
comment on column t_xlfd.v2 is '型別';
comment on column t_xlfd.v3 is '內容';
comment on column t_xlfd.v4 is '連線';
--心靈輔導表加註釋
comment on table t_xlfd is '心靈輔導';

心裡評測表建立語句如下:


create table t_xlpc(
	id integer,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100)
);
--心裡評測欄位加註釋
comment on column t_xlpc.id is '主鍵';
comment on column t_xlpc.v1 is '評測標題';
comment on column t_xlpc.v2 is '評測內容';
comment on column t_xlpc.v3 is '';
--心裡評測表加註釋
comment on table t_xlpc is '心裡評測';

心裡評測答案表建立語句如下:


create table t_xlpcda(
	id integer,
	customerId int,
	xlpcId int,
	da varchar(100),
	insertDate datetime
);
--心裡評測答案欄位加註釋
comment on column t_xlpcda.id is '主鍵';
comment on column t_xlpcda.customerId is '使用者';
comment on column t_xlpcda.xlpcId is '評測';
comment on column t_xlpcda.da is '評測內容';
comment on column t_xlpcda.insertDate is '日期';
--心裡評測答案表加註釋
comment on table t_xlpcda is '心裡評測答案';

線上留言表建立語句如下:


create table t_zxly(
	id integer,
	customerId int,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	userId int
);
--線上留言欄位加註釋
comment on column t_zxly.id is '主鍵';
comment on column t_zxly.customerId is '使用者';
comment on column t_zxly.v1 is '內容';
comment on column t_zxly.v2 is '回覆內容';
comment on column t_zxly.v3 is '狀態';
comment on column t_zxly.userId is '回覆人';
--線上留言表加註釋
comment on table t_zxly is '線上留言';

線上預約表建立語句如下:


create table t_zxyy(
	id integer,
	customerId int,
	v1 varchar(100),
	v4 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	userId int
);
--線上預約欄位加註釋
comment on column t_zxyy.id is '主鍵';
comment on column t_zxyy.customerId is '使用者';
comment on column t_zxyy.v1 is '預約內容';
comment on column t_zxyy.v4 is '預約時間';
comment on column t_zxyy.v2 is '回覆內容';
comment on column t_zxyy.v3 is '狀態';
comment on column t_zxyy.userId is '回覆人';
--線上預約表加註釋
comment on table t_zxyy is '線上預約';

oracle特有,對應序列如下:


create sequence s_t_customer;
create sequence s_t_fw;
create sequence s_t_h1;
create sequence s_t_h2;
create sequence s_t_h3;
create sequence s_t_h4;
create sequence s_t_qd;
create sequence s_t_qduser;
create sequence s_t_user;
create sequence s_t_xlfd;
create sequence s_t_xlpc;
create sequence s_t_xlpcda;
create sequence s_t_zxly;
create sequence s_t_zxyy;

基於SSH的心理測評系統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),--密碼
	name varchar(100),--姓名
	sex varchar(100),--性別
	address varchar(100),--地址
	mobile varchar(100)--手機
);

訪問量表建立語句如下:


--訪問量表註釋
create table t_fw(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	insertDate datetime,--日期
	fwlx varchar(100)--訪問型別
);

心裡評測檔案表建立語句如下:


--心裡評測檔案表註釋
create table t_h1(
	id int identity(1,1) primary key not null,--主鍵
	v1 varchar(100),--姓名
	v2 varchar(100)--說明
);

問卷調查檔案表建立語句如下:


--問卷調查檔案表註釋
create table t_h2(
	id int identity(1,1) primary key not null,--主鍵
	v1 varchar(100),--姓名
	v2 varchar(100)--說明
);

個體輔導檔案表建立語句如下:


--個體輔導檔案表註釋
create table t_h3(
	id int identity(1,1) primary key not null,--主鍵
	v1 varchar(100),--姓名
	v2 varchar(100)--說明
);

個體資訊檔案表建立語句如下:


--個體資訊檔案表註釋
create table t_h4(
	id int identity(1,1) primary key not null,--主鍵
	name varchar(100),--姓名
	sex varchar(100),--性別
	age varchar(100),--年齡
	phone varchar(100),--電話
	v2 varchar(100)--說明
);

簽到表建立語句如下:


--簽到表註釋
create table t_qd(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	insertDate datetime--日期
);

諮詢師簽到表建立語句如下:


--諮詢師簽到表註釋
create table t_qduser(
	id int identity(1,1) primary key not null,--主鍵
	userId int,--諮詢師
	insertDate datetime--日期
);

諮詢師表建立語句如下:


--諮詢師表註釋
create table t_user(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬戶
	password varchar(100),--密碼
	name varchar(100),--姓名
	sex varchar(100),--性別
	age varchar(100),--年齡
	phone varchar(100)--電話
);

心靈輔導表建立語句如下:


--心靈輔導表註釋
create table t_xlfd(
	id int identity(1,1) primary key not null,--主鍵
	v1 varchar(100),--標題
	v2 varchar(100),--型別
	v3 varchar(100),--內容
	v4 varchar(100)--連線
);

心裡評測表建立語句如下:


--心裡評測表註釋
create table t_xlpc(
	id int identity(1,1) primary key not null,--主鍵
	v1 varchar(100),--評測標題
	v2 varchar(100),--評測內容
	v3 varchar(100)--
);

心裡評測答案表建立語句如下:


--心裡評測答案表註釋
create table t_xlpcda(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	xlpcId int,--評測
	da varchar(100),--評測內容
	insertDate datetime--日期
);

線上留言表建立語句如下:


--線上留言表註釋
create table t_zxly(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	v1 varchar(100),--內容
	v2 varchar(100),--回覆內容
	v3 varchar(100),--狀態
	userId int--回覆人
);

線上預約表建立語句如下:


--線上預約表註釋
create table t_zxyy(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	v1 varchar(100),--預約內容
	v4 varchar(100),--預約時間
	v2 varchar(100),--回覆內容
	v3 varchar(100),--狀態
	userId int--回覆人
);

基於SSH的心理測評系統登入後主頁

基於SSH的心理測評系統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 name;
//性別
private String sex;
//地址
private String address;
//手機
private String mobile;
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;}
}

訪問量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_fw")
public class Fw {
//主鍵
@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 Date insertDate;
//訪問型別
private String fwlx;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getFwlx() {return fwlx;}
public void setFwlx(String fwlx) {this.fwlx = fwlx;}
}

心裡評測檔案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_h1")
public class H1 {
//主鍵
@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 v1;
//說明
private String v2;
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;}
}

問卷調查檔案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_h2")
public class H2 {
//主鍵
@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 v1;
//說明
private String v2;
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;}
}

個體輔導檔案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_h3")
public class H3 {
//主鍵
@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 v1;
//說明
private String v2;
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;}
}

個體資訊檔案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_h4")
public class H4 {
//主鍵
@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 name;
//性別
private String sex;
//年齡
private String age;
//電話
private String phone;
//說明
private String v2;
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 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 getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
}

簽到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_qd")
public class Qd {
//主鍵
@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 Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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_qduser")
public class Qduser {
//主鍵
@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 userId;
//日期
private Date insertDate;
public Integer getUserId() {return userId;}
public void setUserId(Integer userId) {this.userId = userId;}
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_user")
public class User {
//主鍵
@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 age;
//電話
private String phone;
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 getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
}

心靈輔導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_xlfd")
public class Xlfd {
//主鍵
@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 v1;
//型別
private String v2;
//內容
private String v3;
//連線
private String v4;
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;}
}

心裡評測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_xlpc")
public class Xlpc {
//主鍵
@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 v1;
//評測內容
private String v2;
//
private String v3;
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;}
}

心裡評測答案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_xlpcda")
public class Xlpcda {
//主鍵
@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 xlpcId;
//評測內容
private String da;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getXlpcId() {return xlpcId;}
public void setXlpcId(Integer xlpcId) {this.xlpcId = xlpcId;}
public String getDa() {return da;}
public void setDa(String da) {this.da = da;}
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_zxly")
public class Zxly {
//主鍵
@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 Integer userId;
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 Integer getUserId() {return userId;}
public void setUserId(Integer userId) {this.userId = userId;}
}

線上預約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_zxyy")
public class Zxyy {
//主鍵
@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 v4;
//回覆內容
private String v2;
//狀態
private String v3;
//回覆人
private Integer userId;
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 getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
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 Integer getUserId() {return userId;}
public void setUserId(Integer userId) {this.userId = userId;}
}

基於SSH的心理測評系統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 name;
//性別
private String sex;
//地址
private String address;
//手機
private String mobile;
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;}
}

訪問量javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//訪問量
public class Fw  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//日期
private Date insertDate;
//訪問型別
private String fwlx;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getFwlx() {return fwlx;}
public void setFwlx(String fwlx) {this.fwlx = fwlx;}
}

心裡評測檔案javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//心裡評測檔案
public class H1  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//姓名
private String v1;
//說明
private String v2;
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;}
}

問卷調查檔案javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//問卷調查檔案
public class H2  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//姓名
private String v1;
//說明
private String v2;
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;}
}

個體輔導檔案javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//個體輔導檔案
public class H3  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//姓名
private String v1;
//說明
private String v2;
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;}
}

個體資訊檔案javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//個體資訊檔案
public class H4  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//姓名
private String name;
//性別
private String sex;
//年齡
private String age;
//電話
private String phone;
//說明
private String v2;
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 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 getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
}

簽到javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//簽到
public class Qd  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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 Qduser  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//諮詢師
private Integer userId;
//日期
private Date insertDate;
public Integer getUserId() {return userId;}
public void setUserId(Integer userId) {this.userId = userId;}
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 User  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 age;
//電話
private String phone;
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 getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
}

心靈輔導javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//心靈輔導
public class Xlfd  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//標題
private String v1;
//型別
private String v2;
//內容
private String v3;
//連線
private String v4;
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;}
}

心裡評測javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//心裡評測
public class Xlpc  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//評測標題
private String v1;
//評測內容
private String v2;
//
private String v3;
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;}
}

心裡評測答案javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//心裡評測答案
public class Xlpcda  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//評測
private Integer xlpcId;
//評測內容
private String da;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getXlpcId() {return xlpcId;}
public void setXlpcId(Integer xlpcId) {this.xlpcId = xlpcId;}
public String getDa() {return da;}
public void setDa(String da) {this.da = da;}
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 Zxly  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 Integer userId;
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 Integer getUserId() {return userId;}
public void setUserId(Integer userId) {this.userId = userId;}
}

線上預約javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//線上預約
public class Zxyy  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 v4;
//回覆內容
private String v2;
//狀態
private String v3;
//回覆人
private Integer userId;
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 getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
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 Integer getUserId() {return userId;}
public void setUserId(Integer userId) {this.userId = userId;}
}