基于javaweb的环境数据展示手机移动端的设计与实现
基于javaweb的环境数据展示手机移动端的设计与实现mysql数据库创建语句
基于javaweb的环境数据展示手机移动端的设计与实现oracle数据库创建语句
基于javaweb的环境数据展示手机移动端的设计与实现sqlserver数据库创建语句
基于javaweb的环境数据展示手机移动端的设计与实现spring+springMVC+hibernate框架对象(javaBean,pojo)设计
基于javaweb的环境数据展示手机移动端的设计与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计
基于javaweb的环境数据展示手机移动端的设计与实现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’);
SQLCopy
建议表创建语句如下:
create table t_contact(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
phone varchar(100) comment ‘联系方式’,
content varchar(100) comment ‘内容’,
insertDate datetime comment ‘日期’
) comment ‘建议’;
SQLCopy
客户表创建语句如下:
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 ‘性别’,
address varchar(100) comment ‘地址’,
phone varchar(100) comment ‘手机’,
account int comment ‘账户’,
jf int comment ‘积分’,
headPic varchar(100) comment ‘头像’
) comment ‘客户’;
SQLCopy
区域表创建语句如下:
create table t_quyu(
id int primary key auto_increment comment ‘主键’,
city varchar(100) comment ‘城市’,
v1 double comment ‘空气温度值’,
v2 double comment ‘空气湿度值’,
v3 double comment ‘PM2.5’,
v4 varchar(100) comment ‘其他1’,
v5 double comment ‘其他2’,
v6 double comment ‘其他3’,
v7 double comment ‘其他4’,
v8 double comment ‘其他4’,
showDate datetime comment ‘检测日期’
) comment ‘区域’;
SQLCopy
资讯表创建语句如下:
create table t_zx(
id int primary key auto_increment comment ‘主键’,
title varchar(100) comment ‘标题’,
content varchar(100) comment ‘内容’,
pic varchar(100) comment ‘图片’
) comment ‘资讯’;
SQLCopy
基于javaweb的环境数据展示手机移动端的设计与实现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 ‘超级管理员’;
SQLCopy
建议表创建语句如下:
create table t_contact(
id integer,
customerId int,
phone varchar(100),
content varchar(100),
insertDate datetime
);
–建议字段加注释
comment on column t_contact.id is ‘主键’;
comment on column t_contact.customerId is ‘用户’;
comment on column t_contact.phone is ‘联系方式’;
comment on column t_contact.content is ‘内容’;
comment on column t_contact.insertDate is ‘日期’;
–建议表加注释
comment on table t_contact is ‘建议’;
SQLCopy
客户表创建语句如下:
create table t_customer(
id integer,
username varchar(100),
password varchar(100),
customerName varchar(100),
sex varchar(100),
address varchar(100),
phone varchar(100),
account int,
jf int,
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.address is ‘地址’;
comment on column t_customer.phone is ‘手机’;
comment on column t_customer.account is ‘账户’;
comment on column t_customer.jf is ‘积分’;
comment on column t_customer.headPic is ‘头像’;
–客户表加注释
comment on table t_customer is ‘客户’;
SQLCopy
区域表创建语句如下:
create table t_quyu(
id integer,
city varchar(100),
v1 double,
v2 double,
v3 double,
v4 varchar(100),
v5 double,
v6 double,
v7 double,
v8 double,
showDate datetime
);
–区域字段加注释
comment on column t_quyu.id is ‘主键’;
comment on column t_quyu.city is ‘城市’;
comment on column t_quyu.v1 is ‘空气温度值’;
comment on column t_quyu.v2 is ‘空气湿度值’;
comment on column t_quyu.v3 is ‘PM2.5’;
comment on column t_quyu.v4 is ‘其他1’;
comment on column t_quyu.v5 is ‘其他2’;
comment on column t_quyu.v6 is ‘其他3’;
comment on column t_quyu.v7 is ‘其他4’;
comment on column t_quyu.v8 is ‘其他4’;
comment on column t_quyu.showDate is ‘检测日期’;
–区域表加注释
comment on table t_quyu is ‘区域’;
SQLCopy
资讯表创建语句如下:
create table t_zx(
id integer,
title varchar(100),
content varchar(100),
pic varchar(100)
);
–资讯字段加注释
comment on column t_zx.id is ‘主键’;
comment on column t_zx.title is ‘标题’;
comment on column t_zx.content is ‘内容’;
comment on column t_zx.pic is ‘图片’;
–资讯表加注释
comment on table t_zx is ‘资讯’;
SQLCopy
oracle特有,对应序列如下:
create sequence s_t_contact;
create sequence s_t_customer;
create sequence s_t_quyu;
create sequence s_t_zx;
SQLCopy
基于javaweb的环境数据展示手机移动端的设计与实现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’);
SQLCopy
建议表创建语句如下:
–建议表注释
create table t_contact(
id int identity(1,1) primary key not null,–主键
customerId int,–用户
phone varchar(100),–联系方式
content varchar(100),–内容
insertDate datetime–日期
);
SQLCopy
客户表创建语句如下:
–客户表注释
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),–性别
address varchar(100),–地址
phone varchar(100),–手机
account int,–账户
jf int,–积分
headPic varchar(100)–头像
);
SQLCopy
区域表创建语句如下:
–区域表注释
create table t_quyu(
id int identity(1,1) primary key not null,–主键
city varchar(100),–城市
v1 double,–空气温度值
v2 double,–空气湿度值
v3 double,–PM2.5
v4 varchar(100),–其他1
v5 double,–其他2
v6 double,–其他3
v7 double,–其他4
v8 double,–其他4
showDate datetime–检测日期
);
SQLCopy
资讯表创建语句如下:
–资讯表注释
create table t_zx(
id int identity(1,1) primary key not null,–主键
title varchar(100),–标题
content varchar(100),–内容
pic varchar(100)–图片
);
SQLCopy
基于javaweb的环境数据展示手机移动端的设计与实现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_contact”)
public class Contact {
//主键
@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 phone;
//内容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}
JavaCopy
客户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 address;
//手机
private String phone;
//账户
private Integer account;
//积分
private Integer jf;
//头像
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 getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public Integer getAccount() {return account;}
public void setAccount(Integer account) {this.account = account;}
public Integer getJf() {return jf;}
public void setJf(Integer jf) {this.jf = jf;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
}
JavaCopy
区域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_quyu”)
public class Quyu {
//主键
@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 city;
//空气温度值
private Double v1;
//空气湿度值
private Double v2;
//PM2.5
private Double v3;
//其他1
private String v4;
//其他2
private Double v5;
//其他3
private Double v6;
//其他4
private Double v7;
//其他4
private Double v8;
//检测日期
private Date showDate;
public String getCity() {return city;}
public void setCity(String city) {this.city = city;}
public Double getV1() {return v1;}
public void setV1(Double v1) {this.v1 = v1;}
public Double getV2() {return v2;}
public void setV2(Double v2) {this.v2 = v2;}
public Double getV3() {return v3;}
public void setV3(Double v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public Double getV5() {return v5;}
public void setV5(Double v5) {this.v5 = v5;}
public Double getV6() {return v6;}
public void setV6(Double v6) {this.v6 = v6;}
public Double getV7() {return v7;}
public void setV7(Double v7) {this.v7 = v7;}
public Double getV8() {return v8;}
public void setV8(Double v8) {this.v8 = v8;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}
JavaCopy
资讯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_zx”)
public class Zx {
//主键
@Id
@Column(name = “id”)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//内容
private String content;
//图片
private String pic;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}
JavaCopy
基于javaweb的环境数据展示手机移动端的设计与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计:
建议javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//建议
public class Contact extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//联系方式
private String phone;
//内容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}
JavaCopy
客户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 address;
//手机
private String phone;
//账户
private Integer account;
//积分
private Integer jf;
//头像
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 getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public Integer getAccount() {return account;}
public void setAccount(Integer account) {this.account = account;}
public Integer getJf() {return jf;}
public void setJf(Integer jf) {this.jf = jf;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
}
JavaCopy
区域javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//区域
public class Quyu extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//城市
private String city;
//空气温度值
private Double v1;
//空气湿度值
private Double v2;
//PM2.5
private Double v3;
//其他1
private String v4;
//其他2
private Double v5;
//其他3
private Double v6;
//其他4
private Double v7;
//其他4
private Double v8;
//检测日期
private Date showDate;
public String getCity() {return city;}
public void setCity(String city) {this.city = city;}
public Double getV1() {return v1;}
public void setV1(Double v1) {this.v1 = v1;}
public Double getV2() {return v2;}
public void setV2(Double v2) {this.v2 = v2;}
public Double getV3() {return v3;}
public void setV3(Double v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public Double getV5() {return v5;}
public void setV5(Double v5) {this.v5 = v5;}
public Double getV6() {return v6;}
public void setV6(Double v6) {this.v6 = v6;}
public Double getV7() {return v7;}
public void setV7(Double v7) {this.v7 = v7;}
public Double getV8() {return v8;}
public void setV8(Double v8) {this.v8 = v8;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}
JavaCopy
资讯javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//资讯
public class Zx extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//内容
private String content;
//图片
private String pic;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}
JavaCopy