1. 程式人生 > >基於WEB的學員連隊日常管理,java畢業設計專案

基於WEB的學員連隊日常管理,java畢業設計專案

**基於WEB的學員連隊日常管理,java畢業設計專案** 基於WEB的學員連隊日常管理登入註冊介面

基於WEB的學員連隊日常管理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_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 '手機',
	ctype varchar(100) comment ''
) comment '客戶';

公差表建立語句如下:


create table t_gc(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	gcDate varchar(100) comment '公差時長',
	content varchar(100) comment '公差說明',
	status 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_pf(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	xm varchar(100) comment '姓名',
	xh varchar(100) comment '學號',
	zw varchar(100) comment '職位',
	dw varchar(100) comment '單位',
	gcCode int comment '公差評分',
	xjCode int comment '銷假評分',
	wsCode int comment '內務衛生評分',
	skCode int comment '上課評分',
	psCode int comment '平時總評分'
) comment '評分';

請假表建立語句如下:


create table t_qj(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	qjType varchar(100) comment '請假型別',
	content varchar(100) comment '請假說明',
	qjDate varchar(100) comment '請假日期',
	status varchar(100) comment '狀態',
	lev varchar(100) comment '請假表現',
	qjDesc varchar(100) comment '評價',
	qjEndDate varchar(100) comment ''
) comment '請假';

上課表建立語句如下:


create table t_sk(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	content varchar(100) comment '上課說明',
	status varchar(100) comment '狀態'
) comment '上課';

資訊模板表建立語句如下:


create table t_test(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	testName varchar(100) comment '姓名',
	testContent varchar(100) comment '內容',
	testSex varchar(100) comment '性別',
	testDay varchar(100) comment '日期',
	testPic varchar(100) comment '圖片',
	insertDate datetime comment '時間'
) comment '資訊模板';

通知表建立語句如下:


create table t_tz(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	tzContent varchar(100) comment '通知內容',
	tzDate varchar(100) comment '通知日期',
	status varchar(100) comment '狀態',
	tzTitle varchar(100) comment ''
) comment '通知';

衛生表建立語句如下:


create table t_ws(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	content varchar(100) comment '衛生說明',
	status varchar(100) comment '狀態'
) comment '衛生';

基於WEB的學員連隊日常管理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_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),
	ctype 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.ctype is '';
--客戶表加註釋
comment on table t_customer is '客戶';

公差表建立語句如下:


create table t_gc(
	id integer,
	customerId int,
	gcDate varchar(100),
	content varchar(100),
	status varchar(100)
);
--公差欄位加註釋
comment on column t_gc.id is '主鍵';
comment on column t_gc.customerId is '使用者';
comment on column t_gc.gcDate is '公差時長';
comment on column t_gc.content is '公差說明';
comment on column t_gc.status is '狀態';
--公差表加註釋
comment on table t_gc 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_pf(
	id integer,
	customerId int,
	xm varchar(100),
	xh varchar(100),
	zw varchar(100),
	dw varchar(100),
	gcCode int,
	xjCode int,
	wsCode int,
	skCode int,
	psCode int
);
--評分欄位加註釋
comment on column t_pf.id is '主鍵';
comment on column t_pf.customerId is '使用者';
comment on column t_pf.xm is '姓名';
comment on column t_pf.xh is '學號';
comment on column t_pf.zw is '職位';
comment on column t_pf.dw is '單位';
comment on column t_pf.gcCode is '公差評分';
comment on column t_pf.xjCode is '銷假評分';
comment on column t_pf.wsCode is '內務衛生評分';
comment on column t_pf.skCode is '上課評分';
comment on column t_pf.psCode is '平時總評分';
--評分表加註釋
comment on table t_pf is '評分';

請假表建立語句如下:


create table t_qj(
	id integer,
	customerId int,
	qjType varchar(100),
	content varchar(100),
	qjDate varchar(100),
	status varchar(100),
	lev varchar(100),
	qjDesc varchar(100),
	qjEndDate varchar(100)
);
--請假欄位加註釋
comment on column t_qj.id is '主鍵';
comment on column t_qj.customerId is '使用者';
comment on column t_qj.qjType is '請假型別';
comment on column t_qj.content is '請假說明';
comment on column t_qj.qjDate is '請假日期';
comment on column t_qj.status is '狀態';
comment on column t_qj.lev is '請假表現';
comment on column t_qj.qjDesc is '評價';
comment on column t_qj.qjEndDate is '';
--請假表加註釋
comment on table t_qj is '請假';

上課表建立語句如下:


create table t_sk(
	id integer,
	customerId int,
	content varchar(100),
	status varchar(100)
);
--上課欄位加註釋
comment on column t_sk.id is '主鍵';
comment on column t_sk.customerId is '使用者';
comment on column t_sk.content is '上課說明';
comment on column t_sk.status is '狀態';
--上課表加註釋
comment on table t_sk is '上課';

資訊模板表建立語句如下:


create table t_test(
	id integer,
	customerId int,
	testName varchar(100),
	testContent varchar(100),
	testSex varchar(100),
	testDay varchar(100),
	testPic varchar(100),
	insertDate datetime
);
--資訊模板欄位加註釋
comment on column t_test.id is '主鍵';
comment on column t_test.customerId is '使用者';
comment on column t_test.testName is '姓名';
comment on column t_test.testContent is '內容';
comment on column t_test.testSex is '性別';
comment on column t_test.testDay is '日期';
comment on column t_test.testPic is '圖片';
comment on column t_test.insertDate is '時間';
--資訊模板表加註釋
comment on table t_test is '資訊模板';

通知表建立語句如下:


create table t_tz(
	id integer,
	customerId int,
	tzContent varchar(100),
	tzDate varchar(100),
	status varchar(100),
	tzTitle varchar(100)
);
--通知欄位加註釋
comment on column t_tz.id is '主鍵';
comment on column t_tz.customerId is '使用者';
comment on column t_tz.tzContent is '通知內容';
comment on column t_tz.tzDate is '通知日期';
comment on column t_tz.status is '狀態';
comment on column t_tz.tzTitle is '';
--通知表加註釋
comment on table t_tz is '通知';

衛生表建立語句如下:


create table t_ws(
	id integer,
	customerId int,
	content varchar(100),
	status varchar(100)
);
--衛生欄位加註釋
comment on column t_ws.id is '主鍵';
comment on column t_ws.customerId is '使用者';
comment on column t_ws.content is '衛生說明';
comment on column t_ws.status is '狀態';
--衛生表加註釋
comment on table t_ws is '衛生';

oracle特有,對應序列如下:


create sequence s_t_contact;
create sequence s_t_customer;
create sequence s_t_gc;
create sequence s_t_message;
create sequence s_t_pf;
create sequence s_t_qj;
create sequence s_t_sk;
create sequence s_t_test;
create sequence s_t_tz;
create sequence s_t_ws;

基於WEB的學員連隊日常管理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_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),--手機
	ctype varchar(100)--
);

公差表建立語句如下:


--公差表註釋
create table t_gc(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	gcDate varchar(100),--公差時長
	content varchar(100),--公差說明
	status 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_pf(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	xm varchar(100),--姓名
	xh varchar(100),--學號
	zw varchar(100),--職位
	dw varchar(100),--單位
	gcCode int,--公差評分
	xjCode int,--銷假評分
	wsCode int,--內務衛生評分
	skCode int,--上課評分
	psCode int--平時總評分
);

請假表建立語句如下:


--請假表註釋
create table t_qj(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	qjType varchar(100),--請假型別
	content varchar(100),--請假說明
	qjDate varchar(100),--請假日期
	status varchar(100),--狀態
	lev varchar(100),--請假表現
	qjDesc varchar(100),--評價
	qjEndDate varchar(100)--
);

上課表建立語句如下:


--上課表註釋
create table t_sk(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	content varchar(100),--上課說明
	status varchar(100)--狀態
);

資訊模板表建立語句如下:


--資訊模板表註釋
create table t_test(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	testName varchar(100),--姓名
	testContent varchar(100),--內容
	testSex varchar(100),--性別
	testDay varchar(100),--日期
	testPic varchar(100),--圖片
	insertDate datetime--時間
);

通知表建立語句如下:


--通知表註釋
create table t_tz(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	tzContent varchar(100),--通知內容
	tzDate varchar(100),--通知日期
	status varchar(100),--狀態
	tzTitle varchar(100)--
);

衛生表建立語句如下:


--衛生表註釋
create table t_ws(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	content varchar(100),--衛生說明
	status varchar(100)--狀態
);

基於WEB的學員連隊日常管理登入後主頁

基於WEB的學員連隊日常管理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_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 ctype;
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 getCtype() {return ctype;}
public void setCtype(String ctype) {this.ctype = ctype;}
}

公差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_gc")
public class Gc {
//主鍵
@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 gcDate;
//公差說明
private String content;
//狀態
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getGcDate() {return gcDate;}
public void setGcDate(String gcDate) {this.gcDate = gcDate;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
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_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_pf")
public class Pf {
//主鍵
@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 xm;
//學號
private String xh;
//職位
private String zw;
//單位
private String dw;
//公差評分
private Integer gcCode;
//銷假評分
private Integer xjCode;
//內務衛生評分
private Integer wsCode;
//上課評分
private Integer skCode;
//平時總評分
private Integer psCode;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getXm() {return xm;}
public void setXm(String xm) {this.xm = xm;}
public String getXh() {return xh;}
public void setXh(String xh) {this.xh = xh;}
public String getZw() {return zw;}
public void setZw(String zw) {this.zw = zw;}
public String getDw() {return dw;}
public void setDw(String dw) {this.dw = dw;}
public Integer getGcCode() {return gcCode;}
public void setGcCode(Integer gcCode) {this.gcCode = gcCode;}
public Integer getXjCode() {return xjCode;}
public void setXjCode(Integer xjCode) {this.xjCode = xjCode;}
public Integer getWsCode() {return wsCode;}
public void setWsCode(Integer wsCode) {this.wsCode = wsCode;}
public Integer getSkCode() {return skCode;}
public void setSkCode(Integer skCode) {this.skCode = skCode;}
public Integer getPsCode() {return psCode;}
public void setPsCode(Integer psCode) {this.psCode = psCode;}
}

請假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_qj")
public class Qj {
//主鍵
@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 qjType;
//請假說明
private String content;
//請假日期
private String qjDate;
//狀態
private String status;
//請假表現
private String lev;
//評價
private String qjDesc;
//
private String qjEndDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getQjType() {return qjType;}
public void setQjType(String qjType) {this.qjType = qjType;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getQjDate() {return qjDate;}
public void setQjDate(String qjDate) {this.qjDate = qjDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getLev() {return lev;}
public void setLev(String lev) {this.lev = lev;}
public String getQjDesc() {return qjDesc;}
public void setQjDesc(String qjDesc) {this.qjDesc = qjDesc;}
public String getQjEndDate() {return qjEndDate;}
public void setQjEndDate(String qjEndDate) {this.qjEndDate = qjEndDate;}
}

上課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_sk")
public class Sk {
//主鍵
@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 content;
//狀態
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
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_test")
public class Test {
//主鍵
@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 testName;
//內容
private String testContent;
//性別
private String testSex;
//日期
private String testDay;
//圖片
private String testPic;
//時間
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTestName() {return testName;}
public void setTestName(String testName) {this.testName = testName;}
public String getTestContent() {return testContent;}
public void setTestContent(String testContent) {this.testContent = testContent;}
public String getTestSex() {return testSex;}
public void setTestSex(String testSex) {this.testSex = testSex;}
public String getTestDay() {return testDay;}
public void setTestDay(String testDay) {this.testDay = testDay;}
public String getTestPic() {return testPic;}
public void setTestPic(String testPic) {this.testPic = testPic;}
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_tz")
public class Tz {
//主鍵
@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 tzContent;
//通知日期
private String tzDate;
//狀態
private String status;
//
private String tzTitle;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTzContent() {return tzContent;}
public void setTzContent(String tzContent) {this.tzContent = tzContent;}
public String getTzDate() {return tzDate;}
public void setTzDate(String tzDate) {this.tzDate = tzDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getTzTitle() {return tzTitle;}
public void setTzTitle(String tzTitle) {this.tzTitle = tzTitle;}
}

衛生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_ws")
public class Ws {
//主鍵
@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 content;
//狀態
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

基於WEB的學員連隊日常管理spring springMVC mybatis框架物件(javaBean,pojo)設計:

建議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 ctype;
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 getCtype() {return ctype;}
public void setCtype(String ctype) {this.ctype = ctype;}
}

公差javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//公差
public class Gc  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//公差時長
private String gcDate;
//公差說明
private String content;
//狀態
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getGcDate() {return gcDate;}
public void setGcDate(String gcDate) {this.gcDate = gcDate;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
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 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 Pf  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//姓名
private String xm;
//學號
private String xh;
//職位
private String zw;
//單位
private String dw;
//公差評分
private Integer gcCode;
//銷假評分
private Integer xjCode;
//內務衛生評分
private Integer wsCode;
//上課評分
private Integer skCode;
//平時總評分
private Integer psCode;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getXm() {return xm;}
public void setXm(String xm) {this.xm = xm;}
public String getXh() {return xh;}
public void setXh(String xh) {this.xh = xh;}
public String getZw() {return zw;}
public void setZw(String zw) {this.zw = zw;}
public String getDw() {return dw;}
public void setDw(String dw) {this.dw = dw;}
public Integer getGcCode() {return gcCode;}
public void setGcCode(Integer gcCode) {this.gcCode = gcCode;}
public Integer getXjCode() {return xjCode;}
public void setXjCode(Integer xjCode) {this.xjCode = xjCode;}
public Integer getWsCode() {return wsCode;}
public void setWsCode(Integer wsCode) {this.wsCode = wsCode;}
public Integer getSkCode() {return skCode;}
public void setSkCode(Integer skCode) {this.skCode = skCode;}
public Integer getPsCode() {return psCode;}
public void setPsCode(Integer psCode) {this.psCode = psCode;}
}

請假javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//請假
public class Qj  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//請假型別
private String qjType;
//請假說明
private String content;
//請假日期
private String qjDate;
//狀態
private String status;
//請假表現
private String lev;
//評價
private String qjDesc;
//
private String qjEndDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getQjType() {return qjType;}
public void setQjType(String qjType) {this.qjType = qjType;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getQjDate() {return qjDate;}
public void setQjDate(String qjDate) {this.qjDate = qjDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getLev() {return lev;}
public void setLev(String lev) {this.lev = lev;}
public String getQjDesc() {return qjDesc;}
public void setQjDesc(String qjDesc) {this.qjDesc = qjDesc;}
public String getQjEndDate() {return qjEndDate;}
public void setQjEndDate(String qjEndDate) {this.qjEndDate = qjEndDate;}
}

上課javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//上課
public class Sk  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//上課說明
private String content;
//狀態
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
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 Test  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//姓名
private String testName;
//內容
private String testContent;
//性別
private String testSex;
//日期
private String testDay;
//圖片
private String testPic;
//時間
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTestName() {return testName;}
public void setTestName(String testName) {this.testName = testName;}
public String getTestContent() {return testContent;}
public void setTestContent(String testContent) {this.testContent = testContent;}
public String getTestSex() {return testSex;}
public void setTestSex(String testSex) {this.testSex = testSex;}
public String getTestDay() {return testDay;}
public void setTestDay(String testDay) {this.testDay = testDay;}
public String getTestPic() {return testPic;}
public void setTestPic(String testPic) {this.testPic = testPic;}
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 Tz  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//通知內容
private String tzContent;
//通知日期
private String tzDate;
//狀態
private String status;
//
private String tzTitle;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTzContent() {return tzContent;}
public void setTzContent(String tzContent) {this.tzContent = tzContent;}
public String getTzDate() {return tzDate;}
public void setTzDate(String tzDate) {this.tzDate = tzDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getTzTitle() {return tzTitle;}
public void setTzTitle(String tzTitle) {this.tzTitle = tzTitle;}
}

衛生javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//衛生
public class Ws  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//衛生說明
private String content;
//狀態
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}