基于微信平台的咨询企业门户微网站
- 基于微信平台的咨询企业门户微网站mysql数据库创建语句
- 基于微信平台的咨询企业门户微网站oracle数据库创建语句
- 基于微信平台的咨询企业门户微网站sqlserver数据库创建语句
- 基于微信平台的咨询企业门户微网站spring springMVC hibernate框架对象(javaBean,pojo)设计
- 基于微信平台的咨询企业门户微网站spring springMVC mybatis框架对象(javaBean,pojo)设计
基于微信平台的咨询企业门户微网站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 '密码',
name varchar(100) comment '姓名',
sex varchar(100) comment '性别',
address varchar(100) comment '地址',
mobile varchar(100) comment '手机'
) comment '用户';
类型表创建语句如下:
create table t_lx(
id int primary key auto_increment comment '主键',
lxName varchar(100) comment '类型名称',
types varchar(100) comment '层级',
parentId int comment '父级'
) comment '类型';
留言表创建语句如下:
create table t_ly(
id int primary key auto_increment comment '主键',
customerId int comment '用户',
insertDate datetime comment '日期',
myword varchar(100) comment '留言内容',
content varchar(100) comment '回复',
status 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 '新闻';
资料表创建语句如下:
create table t_zl(
id int primary key auto_increment comment '主键',
lxId int comment '类型',
zlName varchar(100) comment '资料名称',
zlUrl 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),
name varchar(100),
sex varchar(100),
address varchar(100),
mobile 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.name is '姓名';
comment on column t_customer.sex is '性别';
comment on column t_customer.address is '地址';
comment on column t_customer.mobile is '手机';
--用户表加注释
comment on table t_customer is '用户';
类型表创建语句如下:
create table t_lx(
id integer,
lxName varchar(100),
types varchar(100),
parentId int
);
--类型字段加注释
comment on column t_lx.id is '主键';
comment on column t_lx.lxName is '类型名称';
comment on column t_lx.types is '层级';
comment on column t_lx.parentId is '父级';
--类型表加注释
comment on table t_lx is '类型';
留言表创建语句如下:
create table t_ly(
id integer,
customerId int,
insertDate datetime,
myword varchar(100),
content varchar(100),
status varchar(100)
);
--留言字段加注释
comment on column t_ly.id is '主键';
comment on column t_ly.customerId is '用户';
comment on column t_ly.insertDate is '日期';
comment on column t_ly.myword is '留言内容';
comment on column t_ly.content is '回复';
comment on column t_ly.status is '状态';
--留言表加注释
comment on table t_ly 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 '新闻';
资料表创建语句如下:
create table t_zl(
id integer,
lxId int,
zlName varchar(100),
zlUrl varchar(100)
);
--资料字段加注释
comment on column t_zl.id is '主键';
comment on column t_zl.lxId is '类型';
comment on column t_zl.zlName is '资料名称';
comment on column t_zl.zlUrl is '资料';
--资料表加注释
comment on table t_zl is '资料';
oracle特有,对应序列如下:
create sequence s_t_customer;
create sequence s_t_lx;
create sequence s_t_ly;
create sequence s_t_xw;
create sequence s_t_zl;
基于微信平台的咨询企业门户微网站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),--密码
name varchar(100),--姓名
sex varchar(100),--性别
address varchar(100),--地址
mobile varchar(100)--手机
);
类型表创建语句如下:
--类型表注释
create table t_lx(
id int identity(1,1) primary key not null,--主键
lxName varchar(100),--类型名称
types varchar(100),--层级
parentId int--父级
);
留言表创建语句如下:
--留言表注释
create table t_ly(
id int identity(1,1) primary key not null,--主键
customerId int,--用户
insertDate datetime,--日期
myword varchar(100),--留言内容
content varchar(100),--回复
status 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--显示日期
);
资料表创建语句如下:
--资料表注释
create table t_zl(
id int identity(1,1) primary key not null,--主键
lxId int,--类型
zlName varchar(100),--资料名称
zlUrl 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 name;
//性别
private String sex;
//地址
private String address;
//手机
private String mobile;
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 getName() {return name;}
public void setName(String name) {this.name = name;}
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 getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
}
类型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_lx")
public class Lx {
//主键
@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 lxName;
//层级
private String types;
//父级
private Integer parentId;
public String getLxName() {return lxName;}
public void setLxName(String lxName) {this.lxName = lxName;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public Integer getParentId() {return parentId;}
public void setParentId(Integer parentId) {this.parentId = parentId;}
}
留言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_ly")
public class Ly {
//主键
@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 insertDate;
//留言内容
private String myword;
//回复
private String content;
//状态
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getMyword() {return myword;}
public void setMyword(String myword) {this.myword = myword;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
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_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;}
}
资料javaBean创建语句如下:
package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//资料
@Table(name = "t_zl")
public class Zl {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//类型
private Integer lxId;
//资料名称
private String zlName;
//资料
private String zlUrl;
public Integer getLxId() {return lxId;}
public void setLxId(Integer lxId) {this.lxId = lxId;}
public String getZlName() {return zlName;}
public void setZlName(String zlName) {this.zlName = zlName;}
public String getZlUrl() {return zlUrl;}
public void setZlUrl(String zlUrl) {this.zlUrl = zlUrl;}
}
基于微信平台的咨询企业门户微网站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 name;
//性别
private String sex;
//地址
private String address;
//手机
private String mobile;
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 getName() {return name;}
public void setName(String name) {this.name = name;}
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 getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
}
类型javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//类型
public class Lx extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//类型名称
private String lxName;
//层级
private String types;
//父级
private Integer parentId;
public String getLxName() {return lxName;}
public void setLxName(String lxName) {this.lxName = lxName;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public Integer getParentId() {return parentId;}
public void setParentId(Integer parentId) {this.parentId = parentId;}
}
留言javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//留言
public class Ly extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//日期
private Date insertDate;
//留言内容
private String myword;
//回复
private String content;
//状态
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getMyword() {return myword;}
public void setMyword(String myword) {this.myword = myword;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
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 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;}
}
资料javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//资料
public class Zl extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//类型
private Integer lxId;
//资料名称
private String zlName;
//资料
private String zlUrl;
public Integer getLxId() {return lxId;}
public void setLxId(Integer lxId) {this.lxId = lxId;}
public String getZlName() {return zlName;}
public void setZlName(String zlName) {this.zlName = zlName;}
public String getZlUrl() {return zlUrl;}
public void setZlUrl(String zlUrl) {this.zlUrl = zlUrl;}
}