基於WEB專案的辦公OA系統
- 基於WEB專案的辦公OA系統mysql資料庫建立語句
- 基於WEB專案的辦公OA系統oracle資料庫建立語句
- 基於WEB專案的辦公OA系統sqlserver資料庫建立語句
- 基於WEB專案的辦公OA系統spring springMVC hibernate框架物件(javaBean,pojo)設計
- 基於WEB專案的辦公OA系統spring springMVC mybatis框架物件(javaBean,pojo)設計
基於WEB專案的辦公OA系統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_dept( id int primary key auto_increment comment '主鍵', deptName varchar(100) comment '部門' ) comment '部門';
公司領導表建立語句如下:
create table t_gly( id int primary key auto_increment comment '主鍵', username varchar(100) comment '賬號', password varchar(100) comment '密碼', glyName varchar(100) comment '姓名', sex varchar(100) comment '性別', phone varchar(100) comment '電話', email varchar(100) comment '郵箱', address varchar(100) comment '地址', headPic varchar(100) comment '頭像', status varchar(100) comment '狀態' ) comment '公司領導';
工作記錄表建立語句如下:
create table t_gzjl(
id int primary key auto_increment comment '主鍵',
ygId int comment '員工',
title varchar(100) comment '工作名稱',
remark varchar(100) comment '備註',
jd varchar(100) comment '進度'
) comment '工作記錄';
合同表建立語句如下:
create table t_ht(
id int primary key auto_increment comment '主鍵',
ygId int comment '員工',
htUrl varchar(100) comment '檔案',
pic varchar(100) comment '圖片',
rzsj datetime comment '入職時間',
beginDate datetime comment '開始時間',
endDate datetime comment '結束時間',
sfz varchar(100) comment '身份證',
phone varchar(100) comment '電話'
) comment '合同';
考勤表建立語句如下:
create table t_kq(
id int primary key auto_increment comment '主鍵',
ygId int comment '員工',
insertDate datetime comment '日期'
) comment '考勤';
每日任務進度表建立語句如下:
create table t_mrwcqk(
id int primary key auto_increment comment '主鍵',
gzjlId int comment '工作記錄',
content varchar(100) comment '進度內容',
insertDate datetime comment '日期'
) comment '每日任務進度';
工單流程表建立語句如下:
create table t_order(
id int primary key auto_increment comment '主鍵',
types varchar(100) comment '工單型別',
title varchar(100) comment '標題',
content varchar(100) comment '內容',
fqrId int comment '發起人',
insertDate datetime comment '發起日期',
file1 varchar(100) comment '檔案一',
file2 varchar(100) comment '檔案二',
file3 varchar(100) comment '檔案三',
remark varchar(100) comment '記錄',
status varchar(100) comment '狀態'
) comment '工單流程';
員工表建立語句如下:
create table t_yg(
id int primary key auto_increment comment '主鍵',
username varchar(100) comment '賬號',
password varchar(100) comment '密碼',
ygName varchar(100) comment '姓名',
sex varchar(100) comment '性別',
phone varchar(100) comment '手機',
email varchar(100) comment '郵箱',
address varchar(100) comment '地址',
headPic varchar(100) comment '頭像',
deptId int comment '部門',
isDeptL varchar(100) comment '是否部門領導',
status varchar(100) comment '狀態'
) comment '員工';
員工薪資表建立語句如下:
create table t_ygxz(
id int primary key auto_increment comment '主鍵',
ygId int comment '員工',
xz int comment '薪資',
yf varchar(100) comment '月份',
bz varchar(100) comment '薪資說明'
) comment '員工薪資';
基於WEB專案的辦公OA系統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_dept(
id integer,
deptName varchar(100)
);
--部門欄位加註釋
comment on column t_dept.id is '主鍵';
comment on column t_dept.deptName is '部門';
--部門表加註釋
comment on table t_dept is '部門';
公司領導表建立語句如下:
create table t_gly(
id integer,
username varchar(100),
password varchar(100),
glyName varchar(100),
sex varchar(100),
phone varchar(100),
email varchar(100),
address varchar(100),
headPic varchar(100),
status varchar(100)
);
--公司領導欄位加註釋
comment on column t_gly.id is '主鍵';
comment on column t_gly.username is '賬號';
comment on column t_gly.password is '密碼';
comment on column t_gly.glyName is '姓名';
comment on column t_gly.sex is '性別';
comment on column t_gly.phone is '電話';
comment on column t_gly.email is '郵箱';
comment on column t_gly.address is '地址';
comment on column t_gly.headPic is '頭像';
comment on column t_gly.status is '狀態';
--公司領導表加註釋
comment on table t_gly is '公司領導';
工作記錄表建立語句如下:
create table t_gzjl(
id integer,
ygId int,
title varchar(100),
remark varchar(100),
jd varchar(100)
);
--工作記錄欄位加註釋
comment on column t_gzjl.id is '主鍵';
comment on column t_gzjl.ygId is '員工';
comment on column t_gzjl.title is '工作名稱';
comment on column t_gzjl.remark is '備註';
comment on column t_gzjl.jd is '進度';
--工作記錄表加註釋
comment on table t_gzjl is '工作記錄';
合同表建立語句如下:
create table t_ht(
id integer,
ygId int,
htUrl varchar(100),
pic varchar(100),
rzsj datetime,
beginDate datetime,
endDate datetime,
sfz varchar(100),
phone varchar(100)
);
--合同欄位加註釋
comment on column t_ht.id is '主鍵';
comment on column t_ht.ygId is '員工';
comment on column t_ht.htUrl is '檔案';
comment on column t_ht.pic is '圖片';
comment on column t_ht.rzsj is '入職時間';
comment on column t_ht.beginDate is '開始時間';
comment on column t_ht.endDate is '結束時間';
comment on column t_ht.sfz is '身份證';
comment on column t_ht.phone is '電話';
--合同表加註釋
comment on table t_ht is '合同';
考勤表建立語句如下:
create table t_kq(
id integer,
ygId int,
insertDate datetime
);
--考勤欄位加註釋
comment on column t_kq.id is '主鍵';
comment on column t_kq.ygId is '員工';
comment on column t_kq.insertDate is '日期';
--考勤表加註釋
comment on table t_kq is '考勤';
每日任務進度表建立語句如下:
create table t_mrwcqk(
id integer,
gzjlId int,
content varchar(100),
insertDate datetime
);
--每日任務進度欄位加註釋
comment on column t_mrwcqk.id is '主鍵';
comment on column t_mrwcqk.gzjlId is '工作記錄';
comment on column t_mrwcqk.content is '進度內容';
comment on column t_mrwcqk.insertDate is '日期';
--每日任務進度表加註釋
comment on table t_mrwcqk is '每日任務進度';
工單流程表建立語句如下:
create table t_order(
id integer,
types varchar(100),
title varchar(100),
content varchar(100),
fqrId int,
insertDate datetime,
file1 varchar(100),
file2 varchar(100),
file3 varchar(100),
remark varchar(100),
status varchar(100)
);
--工單流程欄位加註釋
comment on column t_order.id is '主鍵';
comment on column t_order.types is '工單型別';
comment on column t_order.title is '標題';
comment on column t_order.content is '內容';
comment on column t_order.fqrId is '發起人';
comment on column t_order.insertDate is '發起日期';
comment on column t_order.file1 is '檔案一';
comment on column t_order.file2 is '檔案二';
comment on column t_order.file3 is '檔案三';
comment on column t_order.remark is '記錄';
comment on column t_order.status is '狀態';
--工單流程表加註釋
comment on table t_order is '工單流程';
員工表建立語句如下:
create table t_yg(
id integer,
username varchar(100),
password varchar(100),
ygName varchar(100),
sex varchar(100),
phone varchar(100),
email varchar(100),
address varchar(100),
headPic varchar(100),
deptId int,
isDeptL varchar(100),
status varchar(100)
);
--員工欄位加註釋
comment on column t_yg.id is '主鍵';
comment on column t_yg.username is '賬號';
comment on column t_yg.password is '密碼';
comment on column t_yg.ygName is '姓名';
comment on column t_yg.sex is '性別';
comment on column t_yg.phone is '手機';
comment on column t_yg.email is '郵箱';
comment on column t_yg.address is '地址';
comment on column t_yg.headPic is '頭像';
comment on column t_yg.deptId is '部門';
comment on column t_yg.isDeptL is '是否部門領導';
comment on column t_yg.status is '狀態';
--員工表加註釋
comment on table t_yg is '員工';
員工薪資表建立語句如下:
create table t_ygxz(
id integer,
ygId int,
xz int,
yf varchar(100),
bz varchar(100)
);
--員工薪資欄位加註釋
comment on column t_ygxz.id is '主鍵';
comment on column t_ygxz.ygId is '員工';
comment on column t_ygxz.xz is '薪資';
comment on column t_ygxz.yf is '月份';
comment on column t_ygxz.bz is '薪資說明';
--員工薪資表加註釋
comment on table t_ygxz is '員工薪資';
oracle特有,對應序列如下:
create sequence s_t_dept;
create sequence s_t_gly;
create sequence s_t_gzjl;
create sequence s_t_ht;
create sequence s_t_kq;
create sequence s_t_mrwcqk;
create sequence s_t_order;
create sequence s_t_yg;
create sequence s_t_ygxz;
基於WEB專案的辦公OA系統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_dept(
id int identity(1,1) primary key not null,--主鍵
deptName varchar(100)--部門
);
公司領導表建立語句如下:
--公司領導表註釋
create table t_gly(
id int identity(1,1) primary key not null,--主鍵
username varchar(100),--賬號
password varchar(100),--密碼
glyName varchar(100),--姓名
sex varchar(100),--性別
phone varchar(100),--電話
email varchar(100),--郵箱
address varchar(100),--地址
headPic varchar(100),--頭像
status varchar(100)--狀態
);
工作記錄表建立語句如下:
--工作記錄表註釋
create table t_gzjl(
id int identity(1,1) primary key not null,--主鍵
ygId int,--員工
title varchar(100),--工作名稱
remark varchar(100),--備註
jd varchar(100)--進度
);
合同表建立語句如下:
--合同表註釋
create table t_ht(
id int identity(1,1) primary key not null,--主鍵
ygId int,--員工
htUrl varchar(100),--檔案
pic varchar(100),--圖片
rzsj datetime,--入職時間
beginDate datetime,--開始時間
endDate datetime,--結束時間
sfz varchar(100),--身份證
phone varchar(100)--電話
);
考勤表建立語句如下:
--考勤表註釋
create table t_kq(
id int identity(1,1) primary key not null,--主鍵
ygId int,--員工
insertDate datetime--日期
);
每日任務進度表建立語句如下:
--每日任務進度表註釋
create table t_mrwcqk(
id int identity(1,1) primary key not null,--主鍵
gzjlId int,--工作記錄
content varchar(100),--進度內容
insertDate datetime--日期
);
工單流程表建立語句如下:
--工單流程表註釋
create table t_order(
id int identity(1,1) primary key not null,--主鍵
types varchar(100),--工單型別
title varchar(100),--標題
content varchar(100),--內容
fqrId int,--發起人
insertDate datetime,--發起日期
file1 varchar(100),--檔案一
file2 varchar(100),--檔案二
file3 varchar(100),--檔案三
remark varchar(100),--記錄
status varchar(100)--狀態
);
員工表建立語句如下:
--員工表註釋
create table t_yg(
id int identity(1,1) primary key not null,--主鍵
username varchar(100),--賬號
password varchar(100),--密碼
ygName varchar(100),--姓名
sex varchar(100),--性別
phone varchar(100),--手機
email varchar(100),--郵箱
address varchar(100),--地址
headPic varchar(100),--頭像
deptId int,--部門
isDeptL varchar(100),--是否部門領導
status varchar(100)--狀態
);
員工薪資表建立語句如下:
--員工薪資表註釋
create table t_ygxz(
id int identity(1,1) primary key not null,--主鍵
ygId int,--員工
xz int,--薪資
yf varchar(100),--月份
bz varchar(100)--薪資說明
);
基於WEB專案的辦公OA系統spring springMVC hibernate框架物件(javaBean,pojo)設計:
1.員工基本資訊管理 ①員工入職合同管理(合同電子檔,入職時間,合同簽訂時間限期等具體資訊) ②員工其他資訊(姓名,頭像,履歷,職位,所屬部門等) 2.員工部門職位排程管理 員工工作發生變動時對員工資訊進行管理,通過查詢部門員工資訊進行修改 3.員工每日考勤管理 通過指紋識別完成員工工作日的考勤情況 4.員工工作任務管理 ①記錄員工任務分配 ②記錄員工每日任務完成情況及進度
部門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_dept")
public class Dept {
//主鍵
@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 deptName;
public String getDeptName() {return deptName;}
public void setDeptName(String deptName) {this.deptName = deptName;}
}
公司領導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_gly")
public class Gly {
//主鍵
@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 glyName;
//性別
private String sex;
//電話
private String phone;
//郵箱
private String email;
//地址
private String address;
//頭像
private String headPic;
//狀態
private String status;
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 getGlyName() {return glyName;}
public void setGlyName(String glyName) {this.glyName = glyName;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getEmail() {return email;}
public void setEmail(String email) {this.email = email;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
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_gzjl")
public class Gzjl {
//主鍵
@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 ygId;
//工作名稱
private String title;
//備註
private String remark;
//進度
private String jd;
public Integer getYgId() {return ygId;}
public void setYgId(Integer ygId) {this.ygId = ygId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getJd() {return jd;}
public void setJd(String jd) {this.jd = jd;}
}
合同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_ht")
public class Ht {
//主鍵
@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 ygId;
//檔案
private String htUrl;
//圖片
private String pic;
//入職時間
private Date rzsj;
//開始時間
private Date beginDate;
//結束時間
private Date endDate;
//身份證
private String sfz;
//電話
private String phone;
public Integer getYgId() {return ygId;}
public void setYgId(Integer ygId) {this.ygId = ygId;}
public String getHtUrl() {return htUrl;}
public void setHtUrl(String htUrl) {this.htUrl = htUrl;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getRzsj() {return rzsj;}
public void setRzsj(Date rzsj) {this.rzsj = rzsj;}
public Date getBeginDate() {return beginDate;}
public void setBeginDate(Date beginDate) {this.beginDate = beginDate;}
public Date getEndDate() {return endDate;}
public void setEndDate(Date endDate) {this.endDate = endDate;}
public String getSfz() {return sfz;}
public void setSfz(String sfz) {this.sfz = sfz;}
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_kq")
public class Kq {
//主鍵
@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 ygId;
//日期
private Date insertDate;
public Integer getYgId() {return ygId;}
public void setYgId(Integer ygId) {this.ygId = ygId;}
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_mrwcqk")
public class Mrwcqk {
//主鍵
@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 gzjlId;
//進度內容
private String content;
//日期
private Date insertDate;
public Integer getGzjlId() {return gzjlId;}
public void setGzjlId(Integer gzjlId) {this.gzjlId = gzjlId;}
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_order")
public class Order {
//主鍵
@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 types;
//標題
private String title;
//內容
private String content;
//發起人
private Integer fqrId;
//發起日期
private Date insertDate;
//檔案一
private String file1;
//檔案二
private String file2;
//檔案三
private String file3;
//記錄
private String remark;
//狀態
private String status;
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
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 Integer getFqrId() {return fqrId;}
public void setFqrId(Integer fqrId) {this.fqrId = fqrId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getFile1() {return file1;}
public void setFile1(String file1) {this.file1 = file1;}
public String getFile2() {return file2;}
public void setFile2(String file2) {this.file2 = file2;}
public String getFile3() {return file3;}
public void setFile3(String file3) {this.file3 = file3;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
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_yg")
public class Yg {
//主鍵
@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 ygName;
//性別
private String sex;
//手機
private String phone;
//郵箱
private String email;
//地址
private String address;
//頭像
private String headPic;
//部門
private Integer deptId;
//是否部門領導
private String isDeptL;
//狀態
private String status;
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 getYgName() {return ygName;}
public void setYgName(String ygName) {this.ygName = ygName;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getEmail() {return email;}
public void setEmail(String email) {this.email = email;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public Integer getDeptId() {return deptId;}
public void setDeptId(Integer deptId) {this.deptId = deptId;}
public String getIsDeptL() {return isDeptL;}
public void setIsDeptL(String isDeptL) {this.isDeptL = isDeptL;}
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_ygxz")
public class Ygxz {
//主鍵
@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 ygId;
//薪資
private Integer xz;
//月份
private String yf;
//薪資說明
private String bz;
public Integer getYgId() {return ygId;}
public void setYgId(Integer ygId) {this.ygId = ygId;}
public Integer getXz() {return xz;}
public void setXz(Integer xz) {this.xz = xz;}
public String getYf() {return yf;}
public void setYf(String yf) {this.yf = yf;}
public String getBz() {return bz;}
public void setBz(String bz) {this.bz = bz;}
}
基於WEB專案的辦公OA系統spring springMVC mybatis框架物件(javaBean,pojo)設計:
部門javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//部門
public class Dept extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//部門
private String deptName;
public String getDeptName() {return deptName;}
public void setDeptName(String deptName) {this.deptName = deptName;}
}
公司領導javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//公司領導
public class Gly 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 glyName;
//性別
private String sex;
//電話
private String phone;
//郵箱
private String email;
//地址
private String address;
//頭像
private String headPic;
//狀態
private String status;
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 getGlyName() {return glyName;}
public void setGlyName(String glyName) {this.glyName = glyName;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getEmail() {return email;}
public void setEmail(String email) {this.email = email;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
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 Gzjl extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//員工
private Integer ygId;
//工作名稱
private String title;
//備註
private String remark;
//進度
private String jd;
public Integer getYgId() {return ygId;}
public void setYgId(Integer ygId) {this.ygId = ygId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getJd() {return jd;}
public void setJd(String jd) {this.jd = jd;}
}
合同javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//合同
public class Ht extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//員工
private Integer ygId;
//檔案
private String htUrl;
//圖片
private String pic;
//入職時間
private Date rzsj;
//開始時間
private Date beginDate;
//結束時間
private Date endDate;
//身份證
private String sfz;
//電話
private String phone;
public Integer getYgId() {return ygId;}
public void setYgId(Integer ygId) {this.ygId = ygId;}
public String getHtUrl() {return htUrl;}
public void setHtUrl(String htUrl) {this.htUrl = htUrl;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getRzsj() {return rzsj;}
public void setRzsj(Date rzsj) {this.rzsj = rzsj;}
public Date getBeginDate() {return beginDate;}
public void setBeginDate(Date beginDate) {this.beginDate = beginDate;}
public Date getEndDate() {return endDate;}
public void setEndDate(Date endDate) {this.endDate = endDate;}
public String getSfz() {return sfz;}
public void setSfz(String sfz) {this.sfz = sfz;}
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 Kq extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//員工
private Integer ygId;
//日期
private Date insertDate;
public Integer getYgId() {return ygId;}
public void setYgId(Integer ygId) {this.ygId = ygId;}
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 Mrwcqk extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//工作記錄
private Integer gzjlId;
//進度內容
private String content;
//日期
private Date insertDate;
public Integer getGzjlId() {return gzjlId;}
public void setGzjlId(Integer gzjlId) {this.gzjlId = gzjlId;}
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 Order extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//工單型別
private String types;
//標題
private String title;
//內容
private String content;
//發起人
private Integer fqrId;
//發起日期
private Date insertDate;
//檔案一
private String file1;
//檔案二
private String file2;
//檔案三
private String file3;
//記錄
private String remark;
//狀態
private String status;
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
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 Integer getFqrId() {return fqrId;}
public void setFqrId(Integer fqrId) {this.fqrId = fqrId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getFile1() {return file1;}
public void setFile1(String file1) {this.file1 = file1;}
public String getFile2() {return file2;}
public void setFile2(String file2) {this.file2 = file2;}
public String getFile3() {return file3;}
public void setFile3(String file3) {this.file3 = file3;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
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 Yg 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 ygName;
//性別
private String sex;
//手機
private String phone;
//郵箱
private String email;
//地址
private String address;
//頭像
private String headPic;
//部門
private Integer deptId;
//是否部門領導
private String isDeptL;
//狀態
private String status;
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 getYgName() {return ygName;}
public void setYgName(String ygName) {this.ygName = ygName;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getEmail() {return email;}
public void setEmail(String email) {this.email = email;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public Integer getDeptId() {return deptId;}
public void setDeptId(Integer deptId) {this.deptId = deptId;}
public String getIsDeptL() {return isDeptL;}
public void setIsDeptL(String isDeptL) {this.isDeptL = isDeptL;}
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 Ygxz extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//員工
private Integer ygId;
//薪資
private Integer xz;
//月份
private String yf;
//薪資說明
private String bz;
public Integer getYgId() {return ygId;}
public void setYgId(Integer ygId) {this.ygId = ygId;}
public Integer getXz() {return xz;}
public void setXz(Integer xz) {this.xz = xz;}
public String getYf() {return yf;}
public void setYf(String yf) {this.yf = yf;}
public String getBz() {return bz;}
public void setBz(String bz) {this.bz = bz;}
}