- 基于JavaEE的OA系统mysql数据库创建语句
- 基于JavaEE的OA系统oracle数据库创建语句
- 基于JavaEE的OA系统sqlserver数据库创建语句
- 基于JavaEE的OA系统spring+springMVC+hibernate框架对象(javaBean,pojo)设计
- 基于JavaEE的OA系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计
登录注册界面.jpg?x-oss-process=style/00001)
基于JavaEE的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_qd(
id int primary key auto_increment comment '主键',
customerId int comment '员工',
sbDate datetime comment '上班打卡',
xbDate datetime comment '下班打卡'
) comment '打卡';
日程表创建语句如下:
create table t_rc(
id int primary key auto_increment comment '主键',
customerId int comment '员工',
content text comment '内容',
showDate datetime comment '工作日期',
status varchar(100) comment ''
) comment '日程';
基于JavaEE的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_qd(
id integer,
customerId int,
sbDate datetime,
xbDate datetime
);
--打卡字段加注释
comment on column t_qd.id is '主键';
comment on column t_qd.customerId is '员工';
comment on column t_qd.sbDate is '上班打卡';
comment on column t_qd.xbDate is '下班打卡';
--打卡表加注释
comment on table t_qd is '打卡';
日程表创建语句如下:
create table t_rc(
id integer,
customerId int,
content text,
showDate datetime,
status varchar(100)
);
--日程字段加注释
comment on column t_rc.id is '主键';
comment on column t_rc.customerId is '员工';
comment on column t_rc.content is '内容';
comment on column t_rc.showDate is '工作日期';
comment on column t_rc.status is '';
--日程表加注释
comment on table t_rc is '日程';
oracle特有,对应序列如下:
create sequence s_t_qd;
create sequence s_t_rc;
基于JavaEE的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_qd(
id int identity(1,1) primary key not null,--主键
customerId int,--员工
sbDate datetime,--上班打卡
xbDate datetime--下班打卡
);
日程表创建语句如下:
--日程表注释
create table t_rc(
id int identity(1,1) primary key not null,--主键
customerId int,--员工
content text,--内容
showDate datetime,--工作日期
status varchar(100)--
);
登录后主页.jpg?x-oss-process=style/00001)
基于JavaEE的OA系统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_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 Long customerId;
//上班打卡
private Date sbDate;
//下班打卡
private Date xbDate;
public Long getCustomerId() {return customerId;}
public void setCustomerId(Long customerId) {this.customerId = customerId;}
public Date getSbDate() {return sbDate;}
public void setSbDate(Date sbDate) {this.sbDate = sbDate;}
public Date getXbDate() {return xbDate;}
public void setXbDate(Date xbDate) {this.xbDate = xbDate;}
}
日程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_rc")
public class Rc {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//员工
private Long customerId;
//内容
private String content;
//工作日期
private Date showDate;
//
private String status;
public Long getCustomerId() {return customerId;}
public void setCustomerId(Long customerId) {this.customerId = customerId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}
基于JavaEE的OA系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计:
打卡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 Long customerId;
//上班打卡
private Date sbDate;
//下班打卡
private Date xbDate;
public Long getCustomerId() {return customerId;}
public void setCustomerId(Long customerId) {this.customerId = customerId;}
public Date getSbDate() {return sbDate;}
public void setSbDate(Date sbDate) {this.sbDate = sbDate;}
public Date getXbDate() {return xbDate;}
public void setXbDate(Date xbDate) {this.xbDate = xbDate;}
}
日程javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//日程
public class Rc extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//员工
private Long customerId;
//内容
private String content;
//工作日期
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date showDate;
//
private String status;
public Long getCustomerId() {return customerId;}
public void setCustomerId(Long customerId) {this.customerId = customerId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}