基于SSM健身俱乐部

基于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_customer(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	customerName varchar(100) comment '姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话',
	idcard varchar(100) comment '身份证',
	pic varchar(100) comment '头像',
	address varchar(100) comment '住址'
) comment '会员';

会员卡表创建语句如下:


create table t_hyk(
	id int primary key auto_increment comment '主键',
	customerId int comment '所属会员',
	kykName varchar(100) comment '会员卡编号',
	fee int comment '金额',
	types varchar(100) comment '类型',
	status varchar(100) comment '状态'
) comment '会员卡';

健身活动表创建语句如下:


create table t_jshd(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	jsxmId int comment '健身项目',
	teacherId int comment '教练',
	qx varchar(100) comment '器械使用信息',
	remark varchar(100) comment '活动内容记录',
	showDate datetime comment '日期',
	fee int comment '',
	hykId int comment ''
) comment '健身活动';

健身项目表创建语句如下:


create table t_jsxm(
	id int primary key auto_increment comment '主键',
	xmName varchar(100) comment '项目名称',
	fee int comment '收费',
	remark varchar(100) comment '详细内容'
) comment '健身项目';

器械表创建语句如下:


create table t_qx(
	id int primary key auto_increment comment '主键',
	qxName varchar(100) comment '器械名称',
	qxPic varchar(100) comment '图片'
) comment '器械';

教练表创建语句如下:


create table t_teacher(
	id int primary key auto_increment comment '主键',
	teacherName varchar(100) comment '教练姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话',
	idcard varchar(100) comment '身份证',
	pic varchar(100) comment '头像',
	address varchar(100) comment '住址'
) comment '教练';

训练计划表创建语句如下:


create table t_xljh(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	showDate datetime comment '日期',
	content varchar(100) comment '计划内容'
) comment '训练计划';

通知信息表创建语句如下:


create table t_xw(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	pic varchar(100) comment '图片',
	content varchar(100) comment '内容',
	showDate datetime 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_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	customerName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	idcard varchar(100),
	pic varchar(100),
	address 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.customerName 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.idcard is '身份证';
comment on column t_customer.pic is '头像';
comment on column t_customer.address is '住址';
--会员表加注释
comment on table t_customer is '会员';

会员卡表创建语句如下:


create table t_hyk(
	id integer,
	customerId int,
	kykName varchar(100),
	fee int,
	types varchar(100),
	status varchar(100)
);
--会员卡字段加注释
comment on column t_hyk.id is '主键';
comment on column t_hyk.customerId is '所属会员';
comment on column t_hyk.kykName is '会员卡编号';
comment on column t_hyk.fee is '金额';
comment on column t_hyk.types is '类型';
comment on column t_hyk.status is '状态';
--会员卡表加注释
comment on table t_hyk is '会员卡';

健身活动表创建语句如下:


create table t_jshd(
	id integer,
	customerId int,
	jsxmId int,
	teacherId int,
	qx varchar(100),
	remark varchar(100),
	showDate datetime,
	fee int,
	hykId int
);
--健身活动字段加注释
comment on column t_jshd.id is '主键';
comment on column t_jshd.customerId is '用户';
comment on column t_jshd.jsxmId is '健身项目';
comment on column t_jshd.teacherId is '教练';
comment on column t_jshd.qx is '器械使用信息';
comment on column t_jshd.remark is '活动内容记录';
comment on column t_jshd.showDate is '日期';
comment on column t_jshd.fee is '';
comment on column t_jshd.hykId is '';
--健身活动表加注释
comment on table t_jshd is '健身活动';

健身项目表创建语句如下:


create table t_jsxm(
	id integer,
	xmName varchar(100),
	fee int,
	remark varchar(100)
);
--健身项目字段加注释
comment on column t_jsxm.id is '主键';
comment on column t_jsxm.xmName is '项目名称';
comment on column t_jsxm.fee is '收费';
comment on column t_jsxm.remark is '详细内容';
--健身项目表加注释
comment on table t_jsxm is '健身项目';

器械表创建语句如下:


create table t_qx(
	id integer,
	qxName varchar(100),
	qxPic varchar(100)
);
--器械字段加注释
comment on column t_qx.id is '主键';
comment on column t_qx.qxName is '器械名称';
comment on column t_qx.qxPic is '图片';
--器械表加注释
comment on table t_qx is '器械';

教练表创建语句如下:


create table t_teacher(
	id integer,
	teacherName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	idcard varchar(100),
	pic varchar(100),
	address varchar(100)
);
--教练字段加注释
comment on column t_teacher.id is '主键';
comment on column t_teacher.teacherName is '教练姓名';
comment on column t_teacher.age is '年龄';
comment on column t_teacher.sex is '性别';
comment on column t_teacher.phone is '电话';
comment on column t_teacher.idcard is '身份证';
comment on column t_teacher.pic is '头像';
comment on column t_teacher.address is '住址';
--教练表加注释
comment on table t_teacher is '教练';

训练计划表创建语句如下:


create table t_xljh(
	id integer,
	customerId int,
	showDate datetime,
	content varchar(100)
);
--训练计划字段加注释
comment on column t_xljh.id is '主键';
comment on column t_xljh.customerId is '用户';
comment on column t_xljh.showDate is '日期';
comment on column t_xljh.content is '计划内容';
--训练计划表加注释
comment on table t_xljh is '训练计划';

通知信息表创建语句如下:


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

oracle特有,对应序列如下:


create sequence s_t_customer;
create sequence s_t_hyk;
create sequence s_t_jshd;
create sequence s_t_jsxm;
create sequence s_t_qx;
create sequence s_t_teacher;
create sequence s_t_xljh;
create sequence s_t_xw;

基于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_customer(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	customerName varchar(100),--姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100),--电话
	idcard varchar(100),--身份证
	pic varchar(100),--头像
	address varchar(100)--住址
);

会员卡表创建语句如下:


--会员卡表注释
create table t_hyk(
	id int identity(1,1) primary key not null,--主键
	customerId int,--所属会员
	kykName varchar(100),--会员卡编号
	fee int,--金额
	types varchar(100),--类型
	status varchar(100)--状态
);

健身活动表创建语句如下:


--健身活动表注释
create table t_jshd(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	jsxmId int,--健身项目
	teacherId int,--教练
	qx varchar(100),--器械使用信息
	remark varchar(100),--活动内容记录
	showDate datetime,--日期
	fee int,--
	hykId int--
);

健身项目表创建语句如下:


--健身项目表注释
create table t_jsxm(
	id int identity(1,1) primary key not null,--主键
	xmName varchar(100),--项目名称
	fee int,--收费
	remark varchar(100)--详细内容
);

器械表创建语句如下:


--器械表注释
create table t_qx(
	id int identity(1,1) primary key not null,--主键
	qxName varchar(100),--器械名称
	qxPic varchar(100)--图片
);

教练表创建语句如下:


--教练表注释
create table t_teacher(
	id int identity(1,1) primary key not null,--主键
	teacherName varchar(100),--教练姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100),--电话
	idcard varchar(100),--身份证
	pic varchar(100),--头像
	address varchar(100)--住址
);

训练计划表创建语句如下:


--训练计划表注释
create table t_xljh(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	showDate datetime,--日期
	content varchar(100)--计划内容
);

通知信息表创建语句如下:


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

基于SSM健身俱乐部登录后主页

基于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_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 age;
//性别
private String sex;
//电话
private String phone;
//身份证
private String idcard;
//头像
private String pic;
//住址
private String address;
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 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 getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

会员卡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_hyk")
public class Hyk {
//主键
@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 String kykName;
//金额
private Integer fee;
//类型
private String types;
//状态
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getKykName() {return kykName;}
public void setKykName(String kykName) {this.kykName = kykName;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
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_jshd")
public class Jshd {
//主键
@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 jsxmId;
//教练
private Integer teacherId;
//器械使用信息
private String qx;
//活动内容记录
private String remark;
//日期
private Date showDate;
//
private Integer fee;
//
private Integer hykId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getJsxmId() {return jsxmId;}
public void setJsxmId(Integer jsxmId) {this.jsxmId = jsxmId;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public String getQx() {return qx;}
public void setQx(String qx) {this.qx = qx;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
public Integer getHykId() {return hykId;}
public void setHykId(Integer hykId) {this.hykId = hykId;}
}

健身项目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_jsxm")
public class Jsxm {
//主键
@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 xmName;
//收费
private Integer fee;
//详细内容
private String remark;
public String getXmName() {return xmName;}
public void setXmName(String xmName) {this.xmName = xmName;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
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_qx")
public class Qx {
//主键
@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 qxName;
//图片
private String qxPic;
public String getQxName() {return qxName;}
public void setQxName(String qxName) {this.qxName = qxName;}
public String getQxPic() {return qxPic;}
public void setQxPic(String qxPic) {this.qxPic = qxPic;}
}

教练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 teacherName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//身份证
private String idcard;
//头像
private String pic;
//住址
private String address;
public String getTeacherName() {return teacherName;}
public void setTeacherName(String teacherName) {this.teacherName = teacherName;}
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 getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

训练计划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_xljh")
public class Xljh {
//主键
@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 Date showDate;
//计划内容
private String content;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

通知信息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_xw")
public class Xw {
//主键
@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;}
}

基于SSM健身俱乐部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 customerName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//身份证
private String idcard;
//头像
private String pic;
//住址
private String address;
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 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 getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

会员卡javaBean创建语句如下:


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

//会员卡
public class Hyk  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//所属会员
private Integer customerId;
//会员卡编号
private String kykName;
//金额
private Integer fee;
//类型
private String types;
//状态
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getKykName() {return kykName;}
public void setKykName(String kykName) {this.kykName = kykName;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
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 Jshd  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//健身项目
private Integer jsxmId;
//教练
private Integer teacherId;
//器械使用信息
private String qx;
//活动内容记录
private String remark;
//日期
private Date showDate;
//
private Integer fee;
//
private Integer hykId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getJsxmId() {return jsxmId;}
public void setJsxmId(Integer jsxmId) {this.jsxmId = jsxmId;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public String getQx() {return qx;}
public void setQx(String qx) {this.qx = qx;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
public Integer getHykId() {return hykId;}
public void setHykId(Integer hykId) {this.hykId = hykId;}
}

健身项目javaBean创建语句如下:


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

//健身项目
public class Jsxm  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//项目名称
private String xmName;
//收费
private Integer fee;
//详细内容
private String remark;
public String getXmName() {return xmName;}
public void setXmName(String xmName) {this.xmName = xmName;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
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 Qx  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//器械名称
private String qxName;
//图片
private String qxPic;
public String getQxName() {return qxName;}
public void setQxName(String qxName) {this.qxName = qxName;}
public String getQxPic() {return qxPic;}
public void setQxPic(String qxPic) {this.qxPic = qxPic;}
}

教练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 teacherName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//身份证
private String idcard;
//头像
private String pic;
//住址
private String address;
public String getTeacherName() {return teacherName;}
public void setTeacherName(String teacherName) {this.teacherName = teacherName;}
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 getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

训练计划javaBean创建语句如下:


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

//训练计划
public class Xljh  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//日期
private Date showDate;
//计划内容
private String content;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

通知信息javaBean创建语句如下:


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

//通知信息
public class Xw  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;}
}

评论