1. 程式人生 > >基於Java軟體開發平臺設計與實現溫溼度檢測系統

基於Java軟體開發平臺設計與實現溫溼度檢測系統

**基於Java軟體開發平臺設計與實現溫溼度檢測系統** 基於Java軟體開發平臺設計與實現溫溼度檢測系統,具有實時溫溼度顯示、歷史溫溼度曲線、歷史溫度儲存統計。具有一定的資料管理功能。 基於Java軟體開發平臺設計與實現溫溼度檢測系統登入註冊介面

基於Java軟體開發平臺設計與實現溫溼度檢測系統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_wsd(
	id int primary key auto_increment comment '主鍵',
	wd int comment '溫度',
	sd int comment '溼度',
	insertDate datetime comment '日期'
) comment '溫溼度';

預警閾值表建立語句如下:


create table t_yjfz(
	id int primary key auto_increment comment '主鍵',
	title varchar(100) comment '預警名稱',
	fz int comment '閾值',
	types varchar(100) comment '向上、向下預警'
) comment '預警閾值';

預警資訊表建立語句如下:


create table t_yjxx(
	id int primary key auto_increment comment '主鍵',
	title varchar(100) comment '預警名稱',
	types varchar(100) comment '型別',
	insertDate datetime comment '日期'
) comment '預警資訊';

基於Java軟體開發平臺設計與實現溫溼度檢測系統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_wsd(
	id integer,
	wd int,
	sd int,
	insertDate datetime
);
--溫溼度欄位加註釋
comment on column t_wsd.id is '主鍵';
comment on column t_wsd.wd is '溫度';
comment on column t_wsd.sd is '溼度';
comment on column t_wsd.insertDate is '日期';
--溫溼度表加註釋
comment on table t_wsd is '溫溼度';

預警閾值表建立語句如下:


create table t_yjfz(
	id integer,
	title varchar(100),
	fz int,
	types varchar(100)
);
--預警閾值欄位加註釋
comment on column t_yjfz.id is '主鍵';
comment on column t_yjfz.title is '預警名稱';
comment on column t_yjfz.fz is '閾值';
comment on column t_yjfz.types is '向上、向下預警';
--預警閾值表加註釋
comment on table t_yjfz is '預警閾值';

預警資訊表建立語句如下:


create table t_yjxx(
	id integer,
	title varchar(100),
	types varchar(100),
	insertDate datetime
);
--預警資訊欄位加註釋
comment on column t_yjxx.id is '主鍵';
comment on column t_yjxx.title is '預警名稱';
comment on column t_yjxx.types is '型別';
comment on column t_yjxx.insertDate is '日期';
--預警資訊表加註釋
comment on table t_yjxx is '預警資訊';

oracle特有,對應序列如下:


create sequence s_t_wsd;
create sequence s_t_yjfz;
create sequence s_t_yjxx;

基於Java軟體開發平臺設計與實現溫溼度檢測系統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_wsd(
	id int identity(1,1) primary key not null,--主鍵
	wd int,--溫度
	sd int,--溼度
	insertDate datetime--日期
);

預警閾值表建立語句如下:


--預警閾值表註釋
create table t_yjfz(
	id int identity(1,1) primary key not null,--主鍵
	title varchar(100),--預警名稱
	fz int,--閾值
	types varchar(100)--向上、向下預警
);

預警資訊表建立語句如下:


--預警資訊表註釋
create table t_yjxx(
	id int identity(1,1) primary key not null,--主鍵
	title varchar(100),--預警名稱
	types varchar(100),--型別
	insertDate datetime--日期
);

基於Java軟體開發平臺設計與實現溫溼度檢測系統登入後主頁

基於Java軟體開發平臺設計與實現溫溼度檢測系統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_wsd")
public class Wsd {
//主鍵
@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 wd;
//溼度
private Integer sd;
//日期
private Date insertDate;
public Integer getWd() {return wd;}
public void setWd(Integer wd) {this.wd = wd;}
public Integer getSd() {return sd;}
public void setSd(Integer sd) {this.sd = sd;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

預警閾值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_yjfz")
public class Yjfz {
//主鍵
@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 Integer fz;
//向上、向下預警
private String types;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public Integer getFz() {return fz;}
public void setFz(Integer fz) {this.fz = fz;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
}

預警資訊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_yjxx")
public class Yjxx {
//主鍵
@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 types;
//日期
private Date insertDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

基於Java軟體開發平臺設計與實現溫溼度檢測系統spring springMVC mybatis框架物件(javaBean,pojo)設計:

溫溼度javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//溫溼度
public class Wsd  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//溫度
private Integer wd;
//溼度
private Integer sd;
//日期
private Date insertDate;
public Integer getWd() {return wd;}
public void setWd(Integer wd) {this.wd = wd;}
public Integer getSd() {return sd;}
public void setSd(Integer sd) {this.sd = sd;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

預警閾值javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//預警閾值
public class Yjfz  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//預警名稱
private String title;
//閾值
private Integer fz;
//向上、向下預警
private String types;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public Integer getFz() {return fz;}
public void setFz(Integer fz) {this.fz = fz;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
}

預警資訊javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//預警資訊
public class Yjxx  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//預警名稱
private String title;
//型別
private String types;
//日期
private Date insertDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}