彩色树种管理系统设计和实现

彩色树种管理系统设计和实现登录注册界面

彩色树种管理系统设计和实现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 '姓名',
	sex varchar(100) comment '性别',
	age varchar(100) comment '年龄',
	phone varchar(100) comment '电话',
	headPic varchar(100) comment '头像'
) comment '普通用户';

彩色树种表创建语句如下:


create table t_tree(
	id int primary key auto_increment comment '主键',
	typesId int comment '类型',
	title varchar(100) comment '名称',
	pic varchar(100) comment '图片',
	v1 varchar(100) comment '根',
	picv1 varchar(100) comment '根图片',
	v2 varchar(100) comment '茎',
	picv2 varchar(100) comment '茎图片',
	v3 varchar(100) comment '叶',
	picv3 varchar(100) comment '叶图片',
	v4 varchar(100) comment '花',
	picv4 varchar(100) comment '花图片',
	v5 varchar(100) comment '果实',
	picv5 varchar(100) comment '果实图片',
	v6 varchar(100) comment '种子',
	picv6 varchar(100) comment '种子图片',
	status varchar(100) comment '状态',
	customerId int comment '用户'
) comment '彩色树种';

树种类别表创建语句如下:


create table t_types(
	id int primary key auto_increment comment '主键',
	typesName varchar(100) comment '类别名称'
) comment '树种类别';

问题表创建语句如下:


create table t_wt(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	pic varchar(100) comment '图片',
	content varchar(100) comment '详细说明',
	huifu varchar(100) comment '回复',
	status varchar(100) comment '状态',
	customerId int comment '用户'
) comment '问题';

中级管理员表创建语句如下:


create table t_zjadmin(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	zjadminName varchar(100) comment '姓名',
	sex varchar(100) comment '性别',
	age varchar(100) comment '年龄',
	phone varchar(100) comment '电话',
	headPic varchar(100) comment '头像'
) comment '中级管理员';

彩色树种管理系统设计和实现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),
	sex varchar(100),
	age varchar(100),
	phone varchar(100),
	headPic 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.sex is '性别';
comment on column t_customer.age is '年龄';
comment on column t_customer.phone is '电话';
comment on column t_customer.headPic is '头像';
--普通用户表加注释
comment on table t_customer is '普通用户';

彩色树种表创建语句如下:


create table t_tree(
	id integer,
	typesId int,
	title varchar(100),
	pic varchar(100),
	v1 varchar(100),
	picv1 varchar(100),
	v2 varchar(100),
	picv2 varchar(100),
	v3 varchar(100),
	picv3 varchar(100),
	v4 varchar(100),
	picv4 varchar(100),
	v5 varchar(100),
	picv5 varchar(100),
	v6 varchar(100),
	picv6 varchar(100),
	status varchar(100),
	customerId int
);
--彩色树种字段加注释
comment on column t_tree.id is '主键';
comment on column t_tree.typesId is '类型';
comment on column t_tree.title is '名称';
comment on column t_tree.pic is '图片';
comment on column t_tree.v1 is '根';
comment on column t_tree.picv1 is '根图片';
comment on column t_tree.v2 is '茎';
comment on column t_tree.picv2 is '茎图片';
comment on column t_tree.v3 is '叶';
comment on column t_tree.picv3 is '叶图片';
comment on column t_tree.v4 is '花';
comment on column t_tree.picv4 is '花图片';
comment on column t_tree.v5 is '果实';
comment on column t_tree.picv5 is '果实图片';
comment on column t_tree.v6 is '种子';
comment on column t_tree.picv6 is '种子图片';
comment on column t_tree.status is '状态';
comment on column t_tree.customerId is '用户';
--彩色树种表加注释
comment on table t_tree is '彩色树种';

树种类别表创建语句如下:


create table t_types(
	id integer,
	typesName varchar(100)
);
--树种类别字段加注释
comment on column t_types.id is '主键';
comment on column t_types.typesName is '类别名称';
--树种类别表加注释
comment on table t_types is '树种类别';

问题表创建语句如下:


create table t_wt(
	id integer,
	title varchar(100),
	pic varchar(100),
	content varchar(100),
	huifu varchar(100),
	status varchar(100),
	customerId int
);
--问题字段加注释
comment on column t_wt.id is '主键';
comment on column t_wt.title is '标题';
comment on column t_wt.pic is '图片';
comment on column t_wt.content is '详细说明';
comment on column t_wt.huifu is '回复';
comment on column t_wt.status is '状态';
comment on column t_wt.customerId is '用户';
--问题表加注释
comment on table t_wt is '问题';

中级管理员表创建语句如下:


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

oracle特有,对应序列如下:


create sequence s_t_customer;
create sequence s_t_tree;
create sequence s_t_types;
create sequence s_t_wt;
create sequence s_t_zjadmin;

彩色树种管理系统设计和实现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),--姓名
	sex varchar(100),--性别
	age varchar(100),--年龄
	phone varchar(100),--电话
	headPic varchar(100)--头像
);

彩色树种表创建语句如下:


--彩色树种表注释
create table t_tree(
	id int identity(1,1) primary key not null,--主键
	typesId int,--类型
	title varchar(100),--名称
	pic varchar(100),--图片
	v1 varchar(100),--根
	picv1 varchar(100),--根图片
	v2 varchar(100),--茎
	picv2 varchar(100),--茎图片
	v3 varchar(100),--叶
	picv3 varchar(100),--叶图片
	v4 varchar(100),--花
	picv4 varchar(100),--花图片
	v5 varchar(100),--果实
	picv5 varchar(100),--果实图片
	v6 varchar(100),--种子
	picv6 varchar(100),--种子图片
	status varchar(100),--状态
	customerId int--用户
);

树种类别表创建语句如下:


--树种类别表注释
create table t_types(
	id int identity(1,1) primary key not null,--主键
	typesName varchar(100)--类别名称
);

问题表创建语句如下:


--问题表注释
create table t_wt(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	pic varchar(100),--图片
	content varchar(100),--详细说明
	huifu varchar(100),--回复
	status varchar(100),--状态
	customerId int--用户
);

中级管理员表创建语句如下:


--中级管理员表注释
create table t_zjadmin(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	zjadminName varchar(100),--姓名
	sex varchar(100),--性别
	age varchar(100),--年龄
	phone varchar(100),--电话
	headPic varchar(100)--头像
);

彩色树种管理系统设计和实现登录后主页

彩色树种管理系统设计和实现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 sex;
//年龄
private String age;
//电话
private String phone;
//头像
private String headPic;
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 getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
}

彩色树种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_tree")
public class Tree {
//主键
@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 typesId;
//名称
private String title;
//图片
private String pic;
//根
private String v1;
//根图片
private String picv1;
//茎
private String v2;
//茎图片
private String picv2;
//叶
private String v3;
//叶图片
private String picv3;
//花
private String v4;
//花图片
private String picv4;
//果实
private String v5;
//果实图片
private String picv5;
//种子
private String v6;
//种子图片
private String picv6;
//状态
private String status;
//用户
private Integer customerId;
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
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 getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getPicv1() {return picv1;}
public void setPicv1(String picv1) {this.picv1 = picv1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getPicv2() {return picv2;}
public void setPicv2(String picv2) {this.picv2 = picv2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getPicv3() {return picv3;}
public void setPicv3(String picv3) {this.picv3 = picv3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getPicv4() {return picv4;}
public void setPicv4(String picv4) {this.picv4 = picv4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getPicv5() {return picv5;}
public void setPicv5(String picv5) {this.picv5 = picv5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getPicv6() {return picv6;}
public void setPicv6(String picv6) {this.picv6 = picv6;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
}

树种类别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_types")
public class Types {
//主键
@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 typesName;
public String getTypesName() {return typesName;}
public void setTypesName(String typesName) {this.typesName = typesName;}
}

问题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_wt")
public class Wt {
//主键
@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 String huifu;
//状态
private String status;
//用户
private Integer customerId;
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 String getHuifu() {return huifu;}
public void setHuifu(String huifu) {this.huifu = huifu;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
}

中级管理员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_zjadmin")
public class Zjadmin {
//主键
@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 zjadminName;
//性别
private String sex;
//年龄
private String age;
//电话
private String phone;
//头像
private String headPic;
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 getZjadminName() {return zjadminName;}
public void setZjadminName(String zjadminName) {this.zjadminName = zjadminName;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
}

彩色树种管理系统设计和实现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 sex;
//年龄
private String age;
//电话
private String phone;
//头像
private String headPic;
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 getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
}

彩色树种javaBean创建语句如下:


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

//彩色树种
public class Tree  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//类型
private Integer typesId;
//名称
private String title;
//图片
private String pic;
//根
private String v1;
//根图片
private String picv1;
//茎
private String v2;
//茎图片
private String picv2;
//叶
private String v3;
//叶图片
private String picv3;
//花
private String v4;
//花图片
private String picv4;
//果实
private String v5;
//果实图片
private String picv5;
//种子
private String v6;
//种子图片
private String picv6;
//状态
private String status;
//用户
private Integer customerId;
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
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 getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getPicv1() {return picv1;}
public void setPicv1(String picv1) {this.picv1 = picv1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getPicv2() {return picv2;}
public void setPicv2(String picv2) {this.picv2 = picv2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getPicv3() {return picv3;}
public void setPicv3(String picv3) {this.picv3 = picv3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getPicv4() {return picv4;}
public void setPicv4(String picv4) {this.picv4 = picv4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getPicv5() {return picv5;}
public void setPicv5(String picv5) {this.picv5 = picv5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getPicv6() {return picv6;}
public void setPicv6(String picv6) {this.picv6 = picv6;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
}

树种类别javaBean创建语句如下:


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

//树种类别
public class Types  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//类别名称
private String typesName;
public String getTypesName() {return typesName;}
public void setTypesName(String typesName) {this.typesName = typesName;}
}

问题javaBean创建语句如下:


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

//问题
public class Wt  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 String huifu;
//状态
private String status;
//用户
private Integer customerId;
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 String getHuifu() {return huifu;}
public void setHuifu(String huifu) {this.huifu = huifu;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
}

中级管理员javaBean创建语句如下:


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

//中级管理员
public class Zjadmin  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 zjadminName;
//性别
private String sex;
//年龄
private String age;
//电话
private String phone;
//头像
private String headPic;
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 getZjadminName() {return zjadminName;}
public void setZjadminName(String zjadminName) {this.zjadminName = zjadminName;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
}

源代码下载点这里

评论