基于JSP公司办公系统的设计与实现

**基于JSP公司办公系统的设计与实现**
题目:公司办公系统的设计与实现
系统分为管理员界面和普通员工两个登陆界面
管理员:
    管理员账号直接给,管理员可以注册管理员,管理员数量不超过三个,超过三个管理员不能注册并提示,给账号的管理员不可删除,其他两个可以删除,可以注册普通员工,删除员工信息,根据员工号查找员工信息。
管理员可以编辑邮件,添加附件,可以插入图片,可以群发邮件,可以发邮件给公司任何员工,并且查看员工邮箱,可以上传下载文件,可以发布公告信息。
普通员工:
普通员工:
可以登录注册账号,可以编辑邮件,添加附件,可以插入图片,可以收发邮箱,可以查看下载管理员上传文件,可以查看,发布公告信息。
 
会议管理功能:
管理员界面有会议管理选项,管理员登陆到系统后选择进入会议管理,进入会议管理页面。在会议管理页面中可以增、删、改、查会议的内容,日期,人员,地点。其中发起会议需首先预约会议室,然后将输入参会人名单,开会议信息通过邮件发送到每个参会人的信箱里。会议前30分钟发送邮件提醒参会人员!还需要会议记录,只能参会人员查看会议记录,管理员可以 基于JSP公司办公系统的设计与实现登录注册界面

基于JSP公司办公系统的设计与实现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 '密码 ',
	gh varchar(100) comment '工号',
	customerName varchar(100) comment '姓名',
	deptId int comment '部门',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话',
	email varchar(100) comment '邮箱',
	gly varchar(100) comment '是否管理员'
) comment '员工';

部门表创建语句如下:


create table t_dept(
	id int primary key auto_increment comment '主键',
	deptName varchar(100) comment '账号'
) comment '部门';

公告表创建语句如下:


create table t_gg(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	pic varchar(100) comment '图片',
	content varchar(100) comment '内容',
	showDate datetime comment '日期'
) comment '公告';

会议表创建语句如下:


create table t_hy(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '会议标题',
	address varchar(100) comment '地址',
	ry varchar(100) comment '参加人员(工号)',
	content varchar(100) comment '会议内容',
	fileUrl varchar(100) comment '会议文件',
	showDate datetime comment '会议日期'
) comment '会议';

留言板表创建语句如下:


create table t_lyb(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '留言板标题',
	pic varchar(100) comment '图片',
	content varchar(100) comment '内容',
	showDate datetime comment '日期'
) comment '留言板';

留言板内容表创建语句如下:


create table t_lyblist(
	id int primary key auto_increment comment '主键',
	lybId int comment '留言板',
	name varchar(100) comment '姓名',
	content varchar(100) comment '内容',
	insertDate datetime comment '日期'
) comment '留言板内容';

邮件表创建语句如下:


create table t_yj(
	id int primary key auto_increment comment '主键',
	customerId int comment '发送人',
	toId int comment '接收人',
	title varchar(100) comment '标题',
	fileUrl varchar(100) comment '附件',
	content varchar(100) comment '内容',
	insertDate datetime comment '日期'
) comment '邮件';

共享资料表创建语句如下:


create table t_zl(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '资料名称',
	zlUrl varchar(100) comment '资料'
) comment '共享资料';

基于JSP公司办公系统的设计与实现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),
	gh varchar(100),
	customerName varchar(100),
	deptId int,
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	email varchar(100),
	gly 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.gh is '工号';
comment on column t_customer.customerName is '姓名';
comment on column t_customer.deptId is '部门';
comment on column t_customer.age is '年龄';
comment on column t_customer.sex is '性别';
comment on column t_customer.phone is '电话';
comment on column t_customer.email is '邮箱';
comment on column t_customer.gly is '是否管理员';
--员工表加注释
comment on table t_customer 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_gg(
	id integer,
	title varchar(100),
	pic varchar(100),
	content varchar(100),
	showDate datetime
);
--公告字段加注释
comment on column t_gg.id is '主键';
comment on column t_gg.title is '标题';
comment on column t_gg.pic is '图片';
comment on column t_gg.content is '内容';
comment on column t_gg.showDate is '日期';
--公告表加注释
comment on table t_gg is '公告';

会议表创建语句如下:


create table t_hy(
	id integer,
	title varchar(100),
	address varchar(100),
	ry varchar(100),
	content varchar(100),
	fileUrl varchar(100),
	showDate datetime
);
--会议字段加注释
comment on column t_hy.id is '主键';
comment on column t_hy.title is '会议标题';
comment on column t_hy.address is '地址';
comment on column t_hy.ry is '参加人员(工号)';
comment on column t_hy.content is '会议内容';
comment on column t_hy.fileUrl is '会议文件';
comment on column t_hy.showDate is '会议日期';
--会议表加注释
comment on table t_hy is '会议';

留言板表创建语句如下:


create table t_lyb(
	id integer,
	title varchar(100),
	pic varchar(100),
	content varchar(100),
	showDate datetime
);
--留言板字段加注释
comment on column t_lyb.id is '主键';
comment on column t_lyb.title is '留言板标题';
comment on column t_lyb.pic is '图片';
comment on column t_lyb.content is '内容';
comment on column t_lyb.showDate is '日期';
--留言板表加注释
comment on table t_lyb is '留言板';

留言板内容表创建语句如下:


create table t_lyblist(
	id integer,
	lybId int,
	name varchar(100),
	content varchar(100),
	insertDate datetime
);
--留言板内容字段加注释
comment on column t_lyblist.id is '主键';
comment on column t_lyblist.lybId is '留言板';
comment on column t_lyblist.name is '姓名';
comment on column t_lyblist.content is '内容';
comment on column t_lyblist.insertDate is '日期';
--留言板内容表加注释
comment on table t_lyblist is '留言板内容';

邮件表创建语句如下:


create table t_yj(
	id integer,
	customerId int,
	toId int,
	title varchar(100),
	fileUrl varchar(100),
	content varchar(100),
	insertDate datetime
);
--邮件字段加注释
comment on column t_yj.id is '主键';
comment on column t_yj.customerId is '发送人';
comment on column t_yj.toId is '接收人';
comment on column t_yj.title is '标题';
comment on column t_yj.fileUrl is '附件';
comment on column t_yj.content is '内容';
comment on column t_yj.insertDate is '日期';
--邮件表加注释
comment on table t_yj is '邮件';

共享资料表创建语句如下:


create table t_zl(
	id integer,
	title varchar(100),
	zlUrl varchar(100)
);
--共享资料字段加注释
comment on column t_zl.id is '主键';
comment on column t_zl.title is '资料名称';
comment on column t_zl.zlUrl is '资料';
--共享资料表加注释
comment on table t_zl is '共享资料';

oracle特有,对应序列如下:


create sequence s_t_customer;
create sequence s_t_dept;
create sequence s_t_gg;
create sequence s_t_hy;
create sequence s_t_lyb;
create sequence s_t_lyblist;
create sequence s_t_yj;
create sequence s_t_zl;

基于JSP公司办公系统的设计与实现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),--密码 
	gh varchar(100),--工号
	customerName varchar(100),--姓名
	deptId int,--部门
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100),--电话
	email varchar(100),--邮箱
	gly varchar(100)--是否管理员
);

部门表创建语句如下:


--部门表注释
create table t_dept(
	id int identity(1,1) primary key not null,--主键
	deptName varchar(100)--账号
);

公告表创建语句如下:


--公告表注释
create table t_gg(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	pic varchar(100),--图片
	content varchar(100),--内容
	showDate datetime--日期
);

会议表创建语句如下:


--会议表注释
create table t_hy(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--会议标题
	address varchar(100),--地址
	ry varchar(100),--参加人员(工号)
	content varchar(100),--会议内容
	fileUrl varchar(100),--会议文件
	showDate datetime--会议日期
);

留言板表创建语句如下:


--留言板表注释
create table t_lyb(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--留言板标题
	pic varchar(100),--图片
	content varchar(100),--内容
	showDate datetime--日期
);

留言板内容表创建语句如下:


--留言板内容表注释
create table t_lyblist(
	id int identity(1,1) primary key not null,--主键
	lybId int,--留言板
	name varchar(100),--姓名
	content varchar(100),--内容
	insertDate datetime--日期
);

邮件表创建语句如下:


--邮件表注释
create table t_yj(
	id int identity(1,1) primary key not null,--主键
	customerId int,--发送人
	toId int,--接收人
	title varchar(100),--标题
	fileUrl varchar(100),--附件
	content varchar(100),--内容
	insertDate datetime--日期
);

共享资料表创建语句如下:


--共享资料表注释
create table t_zl(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--资料名称
	zlUrl varchar(100)--资料
);

基于JSP公司办公系统的设计与实现登录后主页

基于JSP公司办公系统的设计与实现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 gh;
//姓名
private String customerName;
//部门
private Integer deptId;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//邮箱
private String email;
//是否管理员
private String gly;
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 getGh() {return gh;}
public void setGh(String gh) {this.gh = gh;}
public String getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
public Integer getDeptId() {return deptId;}
public void setDeptId(Integer deptId) {this.deptId = deptId;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
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 getGly() {return gly;}
public void setGly(String gly) {this.gly = gly;}
}

部门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_gg")
public class Gg {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//图片
private String pic;
//内容
private String content;
//日期
private Date showDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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;}
}

会议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_hy")
public class Hy {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//会议标题
private String title;
//地址
private String address;
//参加人员(工号)
private String ry;
//会议内容
private String content;
//会议文件
private String fileUrl;
//会议日期
private Date showDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getRy() {return ry;}
public void setRy(String ry) {this.ry = ry;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

留言板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_lyb")
public class Lyb {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//留言板标题
private String title;
//图片
private String pic;
//内容
private String content;
//日期
private Date showDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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;}
}

留言板内容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_lyblist")
public class Lyblist {
//主键
@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 lybId;
//姓名
private String name;
//内容
private String content;
//日期
private Date insertDate;
public Integer getLybId() {return lybId;}
public void setLybId(Integer lybId) {this.lybId = lybId;}
public String getName() {return name;}
public void setName(String name) {this.name = name;}
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_yj")
public class Yj {
//主键
@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 toId;
//标题
private String title;
//附件
private String fileUrl;
//内容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getToId() {return toId;}
public void setToId(Integer toId) {this.toId = toId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
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_zl")
public class Zl {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//资料名称
private String title;
//资料
private String zlUrl;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getZlUrl() {return zlUrl;}
public void setZlUrl(String zlUrl) {this.zlUrl = zlUrl;}
}

基于JSP公司办公系统的设计与实现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 gh;
//姓名
private String customerName;
//部门
private Integer deptId;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//邮箱
private String email;
//是否管理员
private String gly;
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 getGh() {return gh;}
public void setGh(String gh) {this.gh = gh;}
public String getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
public Integer getDeptId() {return deptId;}
public void setDeptId(Integer deptId) {this.deptId = deptId;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
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 getGly() {return gly;}
public void setGly(String gly) {this.gly = gly;}
}

部门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 Gg  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//图片
private String pic;
//内容
private String content;
//日期
private Date showDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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;}
}

会议javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//会议
public class Hy  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//会议标题
private String title;
//地址
private String address;
//参加人员(工号)
private String ry;
//会议内容
private String content;
//会议文件
private String fileUrl;
//会议日期
private Date showDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getRy() {return ry;}
public void setRy(String ry) {this.ry = ry;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

留言板javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//留言板
public class Lyb  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//留言板标题
private String title;
//图片
private String pic;
//内容
private String content;
//日期
private Date showDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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;}
}

留言板内容javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//留言板内容
public class Lyblist  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//留言板
private Integer lybId;
//姓名
private String name;
//内容
private String content;
//日期
private Date insertDate;
public Integer getLybId() {return lybId;}
public void setLybId(Integer lybId) {this.lybId = lybId;}
public String getName() {return name;}
public void setName(String name) {this.name = name;}
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 Yj  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//发送人
private Integer customerId;
//接收人
private Integer toId;
//标题
private String title;
//附件
private String fileUrl;
//内容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getToId() {return toId;}
public void setToId(Integer toId) {this.toId = toId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
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 Zl  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//资料名称
private String title;
//资料
private String zlUrl;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getZlUrl() {return zlUrl;}
public void setZlUrl(String zlUrl) {this.zlUrl = zlUrl;}
}

猜你喜欢

转载自blog.csdn.net/weixin_44062395/article/details/86220179