基于SSM的宿舍管理系统的设计与实现

无人久伴 提交于 2019-11-26 21:32:57
基于SSM的宿舍管理系统的设计与实现

基于SSM的宿舍管理系统的设计与实现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_bj(  	id int primary key auto_increment comment '主键',  	bjName varchar(100) comment '班级',  	fdy varchar(100) comment '辅导员'  ) comment '班级';    

用户表创建语句如下:

  create table t_customer(  	id int primary key auto_increment comment '主键',  	username varchar(100) comment '账号',  	password varchar(100) comment '密码',  	customerName varchar(100) comment '姓名',  	phone varchar(100) comment '电话',  	age varchar(100) comment '年龄',  	sex varchar(100) comment '性别',  	address varchar(100) comment '地址',  	email varchar(100) comment '邮箱',  	zw varchar(100) comment '职务',  	zwsm varchar(100) comment '职务说明',  	status varchar(100) comment '状态',  	jsId int comment '角色'  ) comment '用户';    

访客表创建语句如下:

  create table t_fk(  	id int primary key auto_increment comment '主键',  	fkName varchar(100) comment '访客名称',  	studentId int comment '受访学生',  	gx varchar(100) comment '与受访者关系',  	beginDate datetime comment '来访时间',  	endDate datetime comment '结束时间',  	remark varchar(100) comment '备注'  ) comment '访客';    

角色表创建语句如下:

  create table t_js(  	id int primary key auto_increment comment '主键',  	jsName varchar(100) comment '角色名称',  	jsms varchar(100) comment '角色描述',  	v1 varchar(100) comment '班级管理',  	v2 varchar(100) comment '用户管理',  	v3 varchar(100) comment '访客管理',  	v4 varchar(100) comment '角色管理',  	v5 varchar(100) comment '损耗管理',  	v6 varchar(100) comment '宿舍管理',  	v7 varchar(100) comment '宿舍评分管理',  	v8 varchar(100) comment '学生管理'  ) comment '角色';    

损耗表创建语句如下:

  create table t_sh(  	id int primary key auto_increment comment '主键',  	ssId int comment '宿舍',  	shqk varchar(100) comment '损坏情况',  	isxf varchar(100) comment '是否修复',  	beginDate datetime comment '损坏时间',  	endDate datetime comment '修复时间',  	remark varchar(100) comment '备注'  ) comment '损耗';    

宿舍表创建语句如下:

  create table t_ss(  	id int primary key auto_increment comment '主键',  	ssName varchar(100) comment '宿舍编号',  	sg varchar(100) comment '宿管',  	zcw varchar(100) comment '总床位额',  	sycw varchar(100) comment '宿舍床位',  	remark varchar(100) comment '备注'  ) comment '宿舍';    

宿舍评分表创建语句如下:

  create table t_sspf(  	id int primary key auto_increment comment '主键',  	ssId int comment '宿舍',  	df int comment '评分',  	dfDate datetime comment '打分日期'  ) comment '宿舍评分';    

学生表创建语句如下:

  create table t_student(  	id int primary key auto_increment comment '主键',  	studentName varchar(100) comment '姓名',  	phone varchar(100) comment '电话',  	age varchar(100) comment '年龄',  	sex varchar(100) comment '性别',  	address varchar(100) comment '地址',  	pic varchar(100) comment '头像',  	bjId int comment '班级',  	ssId int comment '宿舍'  ) comment '学生';    

基于SSM的宿舍管理系统的设计与实现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_bj(  	id integer,  	bjName varchar(100),  	fdy varchar(100)  );  --班级字段加注释  comment on column t_bj.id is '主键';  comment on column t_bj.bjName is '班级';  comment on column t_bj.fdy is '辅导员';  --班级表加注释  comment on table t_bj is '班级';    

用户表创建语句如下:

  create table t_customer(  	id integer,  	username varchar(100),  	password varchar(100),  	customerName varchar(100),  	phone varchar(100),  	age varchar(100),  	sex varchar(100),  	address varchar(100),  	email varchar(100),  	zw varchar(100),  	zwsm varchar(100),  	status varchar(100),  	jsId int  );  --用户字段加注释  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.customerName is '姓名';  comment on column t_customer.phone is '电话';  comment on column t_customer.age is '年龄';  comment on column t_customer.sex is '性别';  comment on column t_customer.address is '地址';  comment on column t_customer.email is '邮箱';  comment on column t_customer.zw is '职务';  comment on column t_customer.zwsm is '职务说明';  comment on column t_customer.status is '状态';  comment on column t_customer.jsId is '角色';  --用户表加注释  comment on table t_customer is '用户';    

访客表创建语句如下:

  create table t_fk(  	id integer,  	fkName varchar(100),  	studentId int,  	gx varchar(100),  	beginDate datetime,  	endDate datetime,  	remark varchar(100)  );  --访客字段加注释  comment on column t_fk.id is '主键';  comment on column t_fk.fkName is '访客名称';  comment on column t_fk.studentId is '受访学生';  comment on column t_fk.gx is '与受访者关系';  comment on column t_fk.beginDate is '来访时间';  comment on column t_fk.endDate is '结束时间';  comment on column t_fk.remark is '备注';  --访客表加注释  comment on table t_fk is '访客';    

角色表创建语句如下:

  create table t_js(  	id integer,  	jsName varchar(100),  	jsms varchar(100),  	v1 varchar(100),  	v2 varchar(100),  	v3 varchar(100),  	v4 varchar(100),  	v5 varchar(100),  	v6 varchar(100),  	v7 varchar(100),  	v8 varchar(100)  );  --角色字段加注释  comment on column t_js.id is '主键';  comment on column t_js.jsName is '角色名称';  comment on column t_js.jsms is '角色描述';  comment on column t_js.v1 is '班级管理';  comment on column t_js.v2 is '用户管理';  comment on column t_js.v3 is '访客管理';  comment on column t_js.v4 is '角色管理';  comment on column t_js.v5 is '损耗管理';  comment on column t_js.v6 is '宿舍管理';  comment on column t_js.v7 is '宿舍评分管理';  comment on column t_js.v8 is '学生管理';  --角色表加注释  comment on table t_js is '角色';    

损耗表创建语句如下:

  create table t_sh(  	id integer,  	ssId int,  	shqk varchar(100),  	isxf varchar(100),  	beginDate datetime,  	endDate datetime,  	remark varchar(100)  );  --损耗字段加注释  comment on column t_sh.id is '主键';  comment on column t_sh.ssId is '宿舍';  comment on column t_sh.shqk is '损坏情况';  comment on column t_sh.isxf is '是否修复';  comment on column t_sh.beginDate is '损坏时间';  comment on column t_sh.endDate is '修复时间';  comment on column t_sh.remark is '备注';  --损耗表加注释  comment on table t_sh is '损耗';    

宿舍表创建语句如下:

  create table t_ss(  	id integer,  	ssName varchar(100),  	sg varchar(100),  	zcw varchar(100),  	sycw varchar(100),  	remark varchar(100)  );  --宿舍字段加注释  comment on column t_ss.id is '主键';  comment on column t_ss.ssName is '宿舍编号';  comment on column t_ss.sg is '宿管';  comment on column t_ss.zcw is '总床位额';  comment on column t_ss.sycw is '宿舍床位';  comment on column t_ss.remark is '备注';  --宿舍表加注释  comment on table t_ss is '宿舍';    

宿舍评分表创建语句如下:

  create table t_sspf(  	id integer,  	ssId int,  	df int,  	dfDate datetime  );  --宿舍评分字段加注释  comment on column t_sspf.id is '主键';  comment on column t_sspf.ssId is '宿舍';  comment on column t_sspf.df is '评分';  comment on column t_sspf.dfDate is '打分日期';  --宿舍评分表加注释  comment on table t_sspf is '宿舍评分';    

学生表创建语句如下:

  create table t_student(  	id integer,  	studentName varchar(100),  	phone varchar(100),  	age varchar(100),  	sex varchar(100),  	address varchar(100),  	pic varchar(100),  	bjId int,  	ssId int  );  --学生字段加注释  comment on column t_student.id is '主键';  comment on column t_student.studentName 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.address is '地址';  comment on column t_student.pic is '头像';  comment on column t_student.bjId is '班级';  comment on column t_student.ssId is '宿舍';  --学生表加注释  comment on table t_student is '学生';    

oracle特有,对应序列如下:

  create sequence s_t_bj;  create sequence s_t_customer;  create sequence s_t_fk;  create sequence s_t_js;  create sequence s_t_sh;  create sequence s_t_ss;  create sequence s_t_sspf;  create sequence s_t_student;  

基于SSM的宿舍管理系统的设计与实现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_bj(  	id int identity(1,1) primary key not null,--主键  	bjName varchar(100),--班级  	fdy varchar(100)--辅导员  );    

用户表创建语句如下:

  --用户表注释  create table t_customer(  	id int identity(1,1) primary key not null,--主键  	username varchar(100),--账号  	password varchar(100),--密码  	customerName varchar(100),--姓名  	phone varchar(100),--电话  	age varchar(100),--年龄  	sex varchar(100),--性别  	address varchar(100),--地址  	email varchar(100),--邮箱  	zw varchar(100),--职务  	zwsm varchar(100),--职务说明  	status varchar(100),--状态  	jsId int--角色  );    

访客表创建语句如下:

  --访客表注释  create table t_fk(  	id int identity(1,1) primary key not null,--主键  	fkName varchar(100),--访客名称  	studentId int,--受访学生  	gx varchar(100),--与受访者关系  	beginDate datetime,--来访时间  	endDate datetime,--结束时间  	remark varchar(100)--备注  );    

角色表创建语句如下:

  --角色表注释  create table t_js(  	id int identity(1,1) primary key not null,--主键  	jsName varchar(100),--角色名称  	jsms varchar(100),--角色描述  	v1 varchar(100),--班级管理  	v2 varchar(100),--用户管理  	v3 varchar(100),--访客管理  	v4 varchar(100),--角色管理  	v5 varchar(100),--损耗管理  	v6 varchar(100),--宿舍管理  	v7 varchar(100),--宿舍评分管理  	v8 varchar(100)--学生管理  );    

损耗表创建语句如下:

  --损耗表注释  create table t_sh(  	id int identity(1,1) primary key not null,--主键  	ssId int,--宿舍  	shqk varchar(100),--损坏情况  	isxf varchar(100),--是否修复  	beginDate datetime,--损坏时间  	endDate datetime,--修复时间  	remark varchar(100)--备注  );    

宿舍表创建语句如下:

  --宿舍表注释  create table t_ss(  	id int identity(1,1) primary key not null,--主键  	ssName varchar(100),--宿舍编号  	sg varchar(100),--宿管  	zcw varchar(100),--总床位额  	sycw varchar(100),--宿舍床位  	remark varchar(100)--备注  );    

宿舍评分表创建语句如下:

  --宿舍评分表注释  create table t_sspf(  	id int identity(1,1) primary key not null,--主键  	ssId int,--宿舍  	df int,--评分  	dfDate datetime--打分日期  );    

学生表创建语句如下:

  --学生表注释  create table t_student(  	id int identity(1,1) primary key not null,--主键  	studentName varchar(100),--姓名  	phone varchar(100),--电话  	age varchar(100),--年龄  	sex varchar(100),--性别  	address varchar(100),--地址  	pic varchar(100),--头像  	bjId int,--班级  	ssId int--宿舍  );    

基于SSM的宿舍管理系统的设计与实现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_bj")  public class Bj {  //主键  @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 bjName;  //辅导员  private String fdy;  public String getBjName() {return bjName;}  public void setBjName(String bjName) {this.bjName = bjName;}  public String getFdy() {return fdy;}  public void setFdy(String fdy) {this.fdy = fdy;}  }

用户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 customerName;  //电话  private String phone;  //年龄  private String age;  //性别  private String sex;  //地址  private String address;  //邮箱  private String email;  //职务  private String zw;  //职务说明  private String zwsm;  //状态  private String status;  //角色  private Integer jsId;  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 getCustomerName() {return customerName;}  public void setCustomerName(String customerName) {this.customerName = customerName;}  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 String getAddress() {return address;}  public void setAddress(String address) {this.address = address;}  public String getEmail() {return email;}  public void setEmail(String email) {this.email = email;}  public String getZw() {return zw;}  public void setZw(String zw) {this.zw = zw;}  public String getZwsm() {return zwsm;}  public void setZwsm(String zwsm) {this.zwsm = zwsm;}  public String getStatus() {return status;}  public void setStatus(String status) {this.status = status;}  public Integer getJsId() {return jsId;}  public void setJsId(Integer jsId) {this.jsId = jsId;}  }

访客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_fk")  public class Fk {  //主键  @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 fkName;  //受访学生  private Integer studentId;  //与受访者关系  private String gx;  //来访时间  private Date beginDate;  //结束时间  private Date endDate;  //备注  private String remark;  public String getFkName() {return fkName;}  public void setFkName(String fkName) {this.fkName = fkName;}  public Integer getStudentId() {return studentId;}  public void setStudentId(Integer studentId) {this.studentId = studentId;}  public String getGx() {return gx;}  public void setGx(String gx) {this.gx = gx;}  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 getRemark() {return remark;}  public void setRemark(String remark) {this.remark = remark;}  }

角色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_js")  public class Js {  //主键  @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 jsName;  //角色描述  private String jsms;  //班级管理  private String v1;  //用户管理  private String v2;  //访客管理  private String v3;  //角色管理  private String v4;  //损耗管理  private String v5;  //宿舍管理  private String v6;  //宿舍评分管理  private String v7;  //学生管理  private String v8;  public String getJsName() {return jsName;}  public void setJsName(String jsName) {this.jsName = jsName;}  public String getJsms() {return jsms;}  public void setJsms(String jsms) {this.jsms = jsms;}  public String getV1() {return v1;}  public void setV1(String v1) {this.v1 = v1;}  public String getV2() {return v2;}  public void setV2(String v2) {this.v2 = v2;}  public String getV3() {return v3;}  public void setV3(String v3) {this.v3 = v3;}  public String getV4() {return v4;}  public void setV4(String v4) {this.v4 = v4;}  public String getV5() {return v5;}  public void setV5(String v5) {this.v5 = v5;}  public String getV6() {return v6;}  public void setV6(String v6) {this.v6 = v6;}  public String getV7() {return v7;}  public void setV7(String v7) {this.v7 = v7;}  public String getV8() {return v8;}  public void setV8(String v8) {this.v8 = v8;}  }

损耗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_sh")  public class Sh {  //主键  @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 ssId;  //损坏情况  private String shqk;  //是否修复  private String isxf;  //损坏时间  private Date beginDate;  //修复时间  private Date endDate;  //备注  private String remark;  public Integer getSsId() {return ssId;}  public void setSsId(Integer ssId) {this.ssId = ssId;}  public String getShqk() {return shqk;}  public void setShqk(String shqk) {this.shqk = shqk;}  public String getIsxf() {return isxf;}  public void setIsxf(String isxf) {this.isxf = isxf;}  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 getRemark() {return remark;}  public void setRemark(String remark) {this.remark = remark;}  }

宿舍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_ss")  public class Ss {  //主键  @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 ssName;  //宿管  private String sg;  //总床位额  private String zcw;  //宿舍床位  private String sycw;  //备注  private String remark;  public String getSsName() {return ssName;}  public void setSsName(String ssName) {this.ssName = ssName;}  public String getSg() {return sg;}  public void setSg(String sg) {this.sg = sg;}  public String getZcw() {return zcw;}  public void setZcw(String zcw) {this.zcw = zcw;}  public String getSycw() {return sycw;}  public void setSycw(String sycw) {this.sycw = sycw;}  public String getRemark() {return remark;}  public void setRemark(String remark) {this.remark = remark;}  }

宿舍评分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_sspf")  public class Sspf {  //主键  @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 ssId;  //评分  private Integer df;  //打分日期  private Date dfDate;  public Integer getSsId() {return ssId;}  public void setSsId(Integer ssId) {this.ssId = ssId;}  public Integer getDf() {return df;}  public void setDf(Integer df) {this.df = df;}  public Date getDfDate() {return dfDate;}  public void setDfDate(Date dfDate) {this.dfDate = dfDate;}  }

学生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 studentName;  //电话  private String phone;  //年龄  private String age;  //性别  private String sex;  //地址  private String address;  //头像  private String pic;  //班级  private Integer bjId;  //宿舍  private Integer ssId;  public String getStudentName() {return studentName;}  public void setStudentName(String studentName) {this.studentName = studentName;}  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 String getAddress() {return address;}  public void setAddress(String address) {this.address = address;}  public String getPic() {return pic;}  public void setPic(String pic) {this.pic = pic;}  public Integer getBjId() {return bjId;}  public void setBjId(Integer bjId) {this.bjId = bjId;}  public Integer getSsId() {return ssId;}  public void setSsId(Integer ssId) {this.ssId = ssId;}  }

基于SSM的宿舍管理系统的设计与实现spring springMVC mybatis框架对象(javaBean,pojo)设计:

班级javaBean创建语句如下:

  package project.model;  import org.springframework.format.annotation.DateTimeFormat;  import java.util.Date;  //班级  public class Bj  extends BaseBean{  //主键  private Integer id;  public Integer getId() {return id;}  public void setId(Integer id) {this.id = id;}  //班级  private String bjName;  //辅导员  private String fdy;  public String getBjName() {return bjName;}  public void setBjName(String bjName) {this.bjName = bjName;}  public String getFdy() {return fdy;}  public void setFdy(String fdy) {this.fdy = fdy;}  }

用户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 customerName;  //电话  private String phone;  //年龄  private String age;  //性别  private String sex;  //地址  private String address;  //邮箱  private String email;  //职务  private String zw;  //职务说明  private String zwsm;  //状态  private String status;  //角色  private Integer jsId;  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 getCustomerName() {return customerName;}  public void setCustomerName(String customerName) {this.customerName = customerName;}  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 String getAddress() {return address;}  public void setAddress(String address) {this.address = address;}  public String getEmail() {return email;}  public void setEmail(String email) {this.email = email;}  public String getZw() {return zw;}  public void setZw(String zw) {this.zw = zw;}  public String getZwsm() {return zwsm;}  public void setZwsm(String zwsm) {this.zwsm = zwsm;}  public String getStatus() {return status;}  public void setStatus(String status) {this.status = status;}  public Integer getJsId() {return jsId;}  public void setJsId(Integer jsId) {this.jsId = jsId;}  }

访客javaBean创建语句如下:

  package project.model;  import org.springframework.format.annotation.DateTimeFormat;  import java.util.Date;  //访客  public class Fk  extends BaseBean{  //主键  private Integer id;  public Integer getId() {return id;}  public void setId(Integer id) {this.id = id;}  //访客名称  private String fkName;  //受访学生  private Integer studentId;  //与受访者关系  private String gx;  //来访时间  private Date beginDate;  //结束时间  private Date endDate;  //备注  private String remark;  public String getFkName() {return fkName;}  public void setFkName(String fkName) {this.fkName = fkName;}  public Integer getStudentId() {return studentId;}  public void setStudentId(Integer studentId) {this.studentId = studentId;}  public String getGx() {return gx;}  public void setGx(String gx) {this.gx = gx;}  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 getRemark() {return remark;}  public void setRemark(String remark) {this.remark = remark;}  }

角色javaBean创建语句如下:

  package project.model;  import org.springframework.format.annotation.DateTimeFormat;  import java.util.Date;  //角色  public class Js  extends BaseBean{  //主键  private Integer id;  public Integer getId() {return id;}  public void setId(Integer id) {this.id = id;}  //角色名称  private String jsName;  //角色描述  private String jsms;  //班级管理  private String v1;  //用户管理  private String v2;  //访客管理  private String v3;  //角色管理  private String v4;  //损耗管理  private String v5;  //宿舍管理  private String v6;  //宿舍评分管理  private String v7;  //学生管理  private String v8;  public String getJsName() {return jsName;}  public void setJsName(String jsName) {this.jsName = jsName;}  public String getJsms() {return jsms;}  public void setJsms(String jsms) {this.jsms = jsms;}  public String getV1() {return v1;}  public void setV1(String v1) {this.v1 = v1;}  public String getV2() {return v2;}  public void setV2(String v2) {this.v2 = v2;}  public String getV3() {return v3;}  public void setV3(String v3) {this.v3 = v3;}  public String getV4() {return v4;}  public void setV4(String v4) {this.v4 = v4;}  public String getV5() {return v5;}  public void setV5(String v5) {this.v5 = v5;}  public String getV6() {return v6;}  public void setV6(String v6) {this.v6 = v6;}  public String getV7() {return v7;}  public void setV7(String v7) {this.v7 = v7;}  public String getV8() {return v8;}  public void setV8(String v8) {this.v8 = v8;}  }

损耗javaBean创建语句如下:

  package project.model;  import org.springframework.format.annotation.DateTimeFormat;  import java.util.Date;  //损耗  public class Sh  extends BaseBean{  //主键  private Integer id;  public Integer getId() {return id;}  public void setId(Integer id) {this.id = id;}  //宿舍  private Integer ssId;  //损坏情况  private String shqk;  //是否修复  private String isxf;  //损坏时间  private Date beginDate;  //修复时间  private Date endDate;  //备注  private String remark;  public Integer getSsId() {return ssId;}  public void setSsId(Integer ssId) {this.ssId = ssId;}  public String getShqk() {return shqk;}  public void setShqk(String shqk) {this.shqk = shqk;}  public String getIsxf() {return isxf;}  public void setIsxf(String isxf) {this.isxf = isxf;}  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 getRemark() {return remark;}  public void setRemark(String remark) {this.remark = remark;}  }

宿舍javaBean创建语句如下:

  package project.model;  import org.springframework.format.annotation.DateTimeFormat;  import java.util.Date;  //宿舍  public class Ss  extends BaseBean{  //主键  private Integer id;  public Integer getId() {return id;}  public void setId(Integer id) {this.id = id;}  //宿舍编号  private String ssName;  //宿管  private String sg;  //总床位额  private String zcw;  //宿舍床位  private String sycw;  //备注  private String remark;  public String getSsName() {return ssName;}  public void setSsName(String ssName) {this.ssName = ssName;}  public String getSg() {return sg;}  public void setSg(String sg) {this.sg = sg;}  public String getZcw() {return zcw;}  public void setZcw(String zcw) {this.zcw = zcw;}  public String getSycw() {return sycw;}  public void setSycw(String sycw) {this.sycw = sycw;}  public String getRemark() {return remark;}  public void setRemark(String remark) {this.remark = remark;}  }

宿舍评分javaBean创建语句如下:

  package project.model;  import org.springframework.format.annotation.DateTimeFormat;  import java.util.Date;  //宿舍评分  public class Sspf  extends BaseBean{  //主键  private Integer id;  public Integer getId() {return id;}  public void setId(Integer id) {this.id = id;}  //宿舍  private Integer ssId;  //评分  private Integer df;  //打分日期  private Date dfDate;  public Integer getSsId() {return ssId;}  public void setSsId(Integer ssId) {this.ssId = ssId;}  public Integer getDf() {return df;}  public void setDf(Integer df) {this.df = df;}  public Date getDfDate() {return dfDate;}  public void setDfDate(Date dfDate) {this.dfDate = dfDate;}  }

学生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 studentName;  //电话  private String phone;  //年龄  private String age;  //性别  private String sex;  //地址  private String address;  //头像  private String pic;  //班级  private Integer bjId;  //宿舍  private Integer ssId;  public String getStudentName() {return studentName;}  public void setStudentName(String studentName) {this.studentName = studentName;}  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 String getAddress() {return address;}  public void setAddress(String address) {this.address = address;}  public String getPic() {return pic;}  public void setPic(String pic) {this.pic = pic;}  public Integer getBjId() {return bjId;}  public void setBjId(Integer bjId) {this.bjId = bjId;}  public Integer getSsId() {return ssId;}  public void setSsId(Integer ssId) {this.ssId = ssId;}  }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!