基于J2EE的小学生老师家长互动平台设计与实现

基于J2EE的小学生老师家长互动平台设计与实现登录注册界面

基于J2EE的小学生老师家长互动平台设计与实现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_jiazhang(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	jiazhangName varchar(100) comment '姓名',
	headPic varchar(100) comment '头像',
	phone varchar(100) comment '电话',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别'
) comment '家长';

学生表创建语句如下:


create table t_student(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	studentName varchar(100) comment '姓名',
	headPic varchar(100) comment '头像',
	phone varchar(100) comment '电话',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	teacherId int comment '老师',
	jiazhangId int comment '家长'
) comment '学生';

老师表创建语句如下:


create table t_teacher(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	teacherName varchar(100) comment '姓名',
	headPic varchar(100) comment '头像',
	phone varchar(100) comment '电话',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别'
) comment '老师';

通知表创建语句如下:


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

作业表创建语句如下:


create table t_zuoye(
	id int primary key auto_increment comment '主键',
	teacherId int comment '老师',
	title varchar(100) comment '作业标题',
	content varchar(100) comment '说明内容',
	pic varchar(100) comment '图片',
	fileUrl varchar(100) comment '作业任务',
	showDate datetime comment '日期'
) comment '作业';

学生作业表创建语句如下:


create table t_zuoyelist(
	id int primary key auto_increment comment '主键',
	teacherId int comment '老师',
	studentId int comment '学生',
	jiazhangId int comment '家长',
	answer varchar(100) comment '学生作业',
	insertDate datetime comment '上传日期',
	isjz varchar(100) comment '是否签字',
	jzDate datetime comment '家长签字日期',
	isls varchar(100) comment '是否审核',
	lsDate datetime comment '老师审核时间',
	status varchar(100) comment '状态',
	df int comment '打分',
	py varchar(100) comment '老师评语',
	zuoyeId int comment ''
) comment '学生作业';

基于J2EE的小学生老师家长互动平台设计与实现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_jiazhang(
	id integer,
	username varchar(100),
	password varchar(100),
	jiazhangName varchar(100),
	headPic varchar(100),
	phone varchar(100),
	age varchar(100),
	sex varchar(100)
);
--家长字段加注释
comment on column t_jiazhang.id is '主键';
comment on column t_jiazhang.username is '账号';
comment on column t_jiazhang.password is '密码';
comment on column t_jiazhang.jiazhangName is '姓名';
comment on column t_jiazhang.headPic is '头像';
comment on column t_jiazhang.phone is '电话';
comment on column t_jiazhang.age is '年龄';
comment on column t_jiazhang.sex is '性别';
--家长表加注释
comment on table t_jiazhang is '家长';

学生表创建语句如下:


create table t_student(
	id integer,
	username varchar(100),
	password varchar(100),
	studentName varchar(100),
	headPic varchar(100),
	phone varchar(100),
	age varchar(100),
	sex varchar(100),
	teacherId int,
	jiazhangId int
);
--学生字段加注释
comment on column t_student.id is '主键';
comment on column t_student.username is '账号';
comment on column t_student.password is '密码';
comment on column t_student.studentName is '姓名';
comment on column t_student.headPic is '头像';
comment on column t_student.phone is '电话';
comment on column t_student.age is '年龄';
comment on column t_student.sex is '性别';
comment on column t_student.teacherId is '老师';
comment on column t_student.jiazhangId is '家长';
--学生表加注释
comment on table t_student is '学生';

老师表创建语句如下:


create table t_teacher(
	id integer,
	username varchar(100),
	password varchar(100),
	teacherName varchar(100),
	headPic varchar(100),
	phone varchar(100),
	age varchar(100),
	sex varchar(100)
);
--老师字段加注释
comment on column t_teacher.id is '主键';
comment on column t_teacher.username is '账号';
comment on column t_teacher.password is '密码';
comment on column t_teacher.teacherName is '姓名';
comment on column t_teacher.headPic is '头像';
comment on column t_teacher.phone is '电话';
comment on column t_teacher.age is '年龄';
comment on column t_teacher.sex is '性别';
--老师表加注释
comment on table t_teacher is '老师';

通知表创建语句如下:


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

作业表创建语句如下:


create table t_zuoye(
	id integer,
	teacherId int,
	title varchar(100),
	content varchar(100),
	pic varchar(100),
	fileUrl varchar(100),
	showDate datetime
);
--作业字段加注释
comment on column t_zuoye.id is '主键';
comment on column t_zuoye.teacherId is '老师';
comment on column t_zuoye.title is '作业标题';
comment on column t_zuoye.content is '说明内容';
comment on column t_zuoye.pic is '图片';
comment on column t_zuoye.fileUrl is '作业任务';
comment on column t_zuoye.showDate is '日期';
--作业表加注释
comment on table t_zuoye is '作业';

学生作业表创建语句如下:


create table t_zuoyelist(
	id integer,
	teacherId int,
	studentId int,
	jiazhangId int,
	answer varchar(100),
	insertDate datetime,
	isjz varchar(100),
	jzDate datetime,
	isls varchar(100),
	lsDate datetime,
	status varchar(100),
	df int,
	py varchar(100),
	zuoyeId int
);
--学生作业字段加注释
comment on column t_zuoyelist.id is '主键';
comment on column t_zuoyelist.teacherId is '老师';
comment on column t_zuoyelist.studentId is '学生';
comment on column t_zuoyelist.jiazhangId is '家长';
comment on column t_zuoyelist.answer is '学生作业';
comment on column t_zuoyelist.insertDate is '上传日期';
comment on column t_zuoyelist.isjz is '是否签字';
comment on column t_zuoyelist.jzDate is '家长签字日期';
comment on column t_zuoyelist.isls is '是否审核';
comment on column t_zuoyelist.lsDate is '老师审核时间';
comment on column t_zuoyelist.status is '状态';
comment on column t_zuoyelist.df is '打分';
comment on column t_zuoyelist.py is '老师评语';
comment on column t_zuoyelist.zuoyeId is '';
--学生作业表加注释
comment on table t_zuoyelist is '学生作业';

oracle特有,对应序列如下:


create sequence s_t_jiazhang;
create sequence s_t_student;
create sequence s_t_teacher;
create sequence s_t_tongzhi;
create sequence s_t_zuoye;
create sequence s_t_zuoyelist;

基于J2EE的小学生老师家长互动平台设计与实现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_jiazhang(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	jiazhangName varchar(100),--姓名
	headPic varchar(100),--头像
	phone varchar(100),--电话
	age varchar(100),--年龄
	sex varchar(100)--性别
);

学生表创建语句如下:


--学生表注释
create table t_student(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	studentName varchar(100),--姓名
	headPic varchar(100),--头像
	phone varchar(100),--电话
	age varchar(100),--年龄
	sex varchar(100),--性别
	teacherId int,--老师
	jiazhangId int--家长
);

老师表创建语句如下:


--老师表注释
create table t_teacher(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	teacherName varchar(100),--姓名
	headPic varchar(100),--头像
	phone varchar(100),--电话
	age varchar(100),--年龄
	sex varchar(100)--性别
);

通知表创建语句如下:


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

作业表创建语句如下:


--作业表注释
create table t_zuoye(
	id int identity(1,1) primary key not null,--主键
	teacherId int,--老师
	title varchar(100),--作业标题
	content varchar(100),--说明内容
	pic varchar(100),--图片
	fileUrl varchar(100),--作业任务
	showDate datetime--日期
);

学生作业表创建语句如下:


--学生作业表注释
create table t_zuoyelist(
	id int identity(1,1) primary key not null,--主键
	teacherId int,--老师
	studentId int,--学生
	jiazhangId int,--家长
	answer varchar(100),--学生作业
	insertDate datetime,--上传日期
	isjz varchar(100),--是否签字
	jzDate datetime,--家长签字日期
	isls varchar(100),--是否审核
	lsDate datetime,--老师审核时间
	status varchar(100),--状态
	df int,--打分
	py varchar(100),--老师评语
	zuoyeId int--
);

基于J2EE的小学生老师家长互动平台设计与实现登录后主页

基于J2EE的小学生老师家长互动平台设计与实现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_jiazhang")
public class Jiazhang {
//主键
@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 jiazhangName;
//头像
private String headPic;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
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 getJiazhangName() {return jiazhangName;}
public void setJiazhangName(String jiazhangName) {this.jiazhangName = jiazhangName;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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;}
}

学生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_student")
public class Student {
//主键
@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 studentName;
//头像
private String headPic;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
//老师
private Integer teacherId;
//家长
private Integer jiazhangId;
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 getStudentName() {return studentName;}
public void setStudentName(String studentName) {this.studentName = studentName;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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 Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public Integer getJiazhangId() {return jiazhangId;}
public void setJiazhangId(Integer jiazhangId) {this.jiazhangId = jiazhangId;}
}

老师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_teacher")
public class Teacher {
//主键
@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 teacherName;
//头像
private String headPic;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
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 getTeacherName() {return teacherName;}
public void setTeacherName(String teacherName) {this.teacherName = teacherName;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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;}
}

通知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_tongzhi")
public class Tongzhi {
//主键
@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 content;
//图片
private String pic;
//日期
private Date showDate;
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 String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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_zuoye")
public class Zuoye {
//主键
@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 teacherId;
//作业标题
private String title;
//说明内容
private String content;
//图片
private String pic;
//作业任务
private String fileUrl;
//日期
private Date showDate;
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
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 String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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_zuoyelist")
public class Zuoyelist {
//主键
@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 teacherId;
//学生
private Integer studentId;
//家长
private Integer jiazhangId;
//学生作业
private String answer;
//上传日期
private Date insertDate;
//是否签字
private String isjz;
//家长签字日期
private Date jzDate;
//是否审核
private String isls;
//老师审核时间
private Date lsDate;
//状态
private String status;
//打分
private Integer df;
//老师评语
private String py;
//
private Integer zuoyeId;
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Integer getJiazhangId() {return jiazhangId;}
public void setJiazhangId(Integer jiazhangId) {this.jiazhangId = jiazhangId;}
public String getAnswer() {return answer;}
public void setAnswer(String answer) {this.answer = answer;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getIsjz() {return isjz;}
public void setIsjz(String isjz) {this.isjz = isjz;}
public Date getJzDate() {return jzDate;}
public void setJzDate(Date jzDate) {this.jzDate = jzDate;}
public String getIsls() {return isls;}
public void setIsls(String isls) {this.isls = isls;}
public Date getLsDate() {return lsDate;}
public void setLsDate(Date lsDate) {this.lsDate = lsDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getDf() {return df;}
public void setDf(Integer df) {this.df = df;}
public String getPy() {return py;}
public void setPy(String py) {this.py = py;}
public Integer getZuoyeId() {return zuoyeId;}
public void setZuoyeId(Integer zuoyeId) {this.zuoyeId = zuoyeId;}
}

基于J2EE的小学生老师家长互动平台设计与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

家长javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//家长
public class Jiazhang  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 jiazhangName;
//头像
private String headPic;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
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 getJiazhangName() {return jiazhangName;}
public void setJiazhangName(String jiazhangName) {this.jiazhangName = jiazhangName;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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;}
}

学生javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//学生
public class Student  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 studentName;
//头像
private String headPic;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
//老师
private Integer teacherId;
//家长
private Integer jiazhangId;
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 getStudentName() {return studentName;}
public void setStudentName(String studentName) {this.studentName = studentName;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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 Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public Integer getJiazhangId() {return jiazhangId;}
public void setJiazhangId(Integer jiazhangId) {this.jiazhangId = jiazhangId;}
}

老师javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//老师
public class Teacher  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 teacherName;
//头像
private String headPic;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
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 getTeacherName() {return teacherName;}
public void setTeacherName(String teacherName) {this.teacherName = teacherName;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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;}
}

通知javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//通知
public class Tongzhi  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//内容
private String content;
//图片
private String pic;
//日期
private Date showDate;
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 String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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 Zuoye  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//老师
private Integer teacherId;
//作业标题
private String title;
//说明内容
private String content;
//图片
private String pic;
//作业任务
private String fileUrl;
//日期
private Date showDate;
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
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 String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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 Zuoyelist  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//老师
private Integer teacherId;
//学生
private Integer studentId;
//家长
private Integer jiazhangId;
//学生作业
private String answer;
//上传日期
private Date insertDate;
//是否签字
private String isjz;
//家长签字日期
private Date jzDate;
//是否审核
private String isls;
//老师审核时间
private Date lsDate;
//状态
private String status;
//打分
private Integer df;
//老师评语
private String py;
//
private Integer zuoyeId;
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Integer getJiazhangId() {return jiazhangId;}
public void setJiazhangId(Integer jiazhangId) {this.jiazhangId = jiazhangId;}
public String getAnswer() {return answer;}
public void setAnswer(String answer) {this.answer = answer;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getIsjz() {return isjz;}
public void setIsjz(String isjz) {this.isjz = isjz;}
public Date getJzDate() {return jzDate;}
public void setJzDate(Date jzDate) {this.jzDate = jzDate;}
public String getIsls() {return isls;}
public void setIsls(String isls) {this.isls = isls;}
public Date getLsDate() {return lsDate;}
public void setLsDate(Date lsDate) {this.lsDate = lsDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getDf() {return df;}
public void setDf(Integer df) {this.df = df;}
public String getPy() {return py;}
public void setPy(String py) {this.py = py;}
public Integer getZuoyeId() {return zuoyeId;}
public void setZuoyeId(Integer zuoyeId) {this.zuoyeId = zuoyeId;}
}

评论