轴承振动加速度检测服务器程序设计

轴承振动加速度检测服务器程序设计登录注册界面

轴承振动加速度检测服务器程序设计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_gzxx(
	id int primary key auto_increment comment '主键',
	KIND varchar(100) comment '故障类型',
	D_value varchar(100) comment '故障状态',
	D_time varchar(100) comment '故障日期',
	T_time varchar(100) comment '故障时间',
	demo varchar(100) comment '是否通知',
	suggest varchar(100) comment '建议',
	Z_value varchar(100) comment '故障值'
) comment '故障类型';

用户表创建语句如下:


create table t_ptadmin(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码 ',
	ptadminName varchar(100) comment '姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话',
	pic 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_gzxx(
	id integer,
	KIND varchar(100),
	D_value varchar(100),
	D_time varchar(100),
	T_time varchar(100),
	demo varchar(100),
	suggest varchar(100),
	Z_value varchar(100)
);
--故障类型字段加注释
comment on column t_gzxx.id is '主键';
comment on column t_gzxx.KIND is '故障类型';
comment on column t_gzxx.D_value is '故障状态';
comment on column t_gzxx.D_time is '故障日期';
comment on column t_gzxx.T_time is '故障时间';
comment on column t_gzxx.demo is '是否通知';
comment on column t_gzxx.suggest is '建议';
comment on column t_gzxx.Z_value is '故障值';
--故障类型表加注释
comment on table t_gzxx is '故障类型';

用户表创建语句如下:


create table t_ptadmin(
	id integer,
	username varchar(100),
	password varchar(100),
	ptadminName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	pic varchar(100)
);
--用户字段加注释
comment on column t_ptadmin.id is '主键';
comment on column t_ptadmin.username is '账号';
comment on column t_ptadmin.password is '密码 ';
comment on column t_ptadmin.ptadminName is '姓名';
comment on column t_ptadmin.age is '年龄';
comment on column t_ptadmin.sex is '性别';
comment on column t_ptadmin.phone is '电话';
comment on column t_ptadmin.pic is '头像';
--用户表加注释
comment on table t_ptadmin is '用户';

oracle特有,对应序列如下:


create sequence s_t_gzxx;
create sequence s_t_ptadmin;

轴承振动加速度检测服务器程序设计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_gzxx(
	id int identity(1,1) primary key not null,--主键
	KIND varchar(100),--故障类型
	D_value varchar(100),--故障状态
	D_time varchar(100),--故障日期
	T_time varchar(100),--故障时间
	demo varchar(100),--是否通知
	suggest varchar(100),--建议
	Z_value varchar(100)--故障值
);

用户表创建语句如下:


--用户表注释
create table t_ptadmin(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码 
	ptadminName varchar(100),--姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100),--电话
	pic 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_gzxx")
public class Gzxx {
//主键
@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 KIND;
//故障状态
private String D_value;
//故障日期
private String D_time;
//故障时间
private String T_time;
//是否通知
private String demo;
//建议
private String suggest;
//故障值
private String Z_value;
public String getKIND() {return KIND;}
public void setKIND(String KIND) {this.KIND = KIND;}
public String getD_value() {return D_value;}
public void setD_value(String D_value) {this.D_value = D_value;}
public String getD_time() {return D_time;}
public void setD_time(String D_time) {this.D_time = D_time;}
public String getT_time() {return T_time;}
public void setT_time(String T_time) {this.T_time = T_time;}
public String getDemo() {return demo;}
public void setDemo(String demo) {this.demo = demo;}
public String getSuggest() {return suggest;}
public void setSuggest(String suggest) {this.suggest = suggest;}
public String getZ_value() {return Z_value;}
public void setZ_value(String Z_value) {this.Z_value = Z_value;}
}

用户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_ptadmin")
public class Ptadmin {
//主键
@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 ptadminName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//头像
private String pic;
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 getPtadminName() {return ptadminName;}
public void setPtadminName(String ptadminName) {this.ptadminName = ptadminName;}
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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

轴承振动加速度检测服务器程序设计spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

故障类型javaBean创建语句如下:


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

//故障类型
public class Gzxx  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//故障类型
private String KIND;
//故障状态
private String D_value;
//故障日期
private String D_time;
//故障时间
private String T_time;
//是否通知
private String demo;
//建议
private String suggest;
//故障值
private String Z_value;
public String getKIND() {return KIND;}
public void setKIND(String KIND) {this.KIND = KIND;}
public String getD_value() {return D_value;}
public void setD_value(String D_value) {this.D_value = D_value;}
public String getD_time() {return D_time;}
public void setD_time(String D_time) {this.D_time = D_time;}
public String getT_time() {return T_time;}
public void setT_time(String T_time) {this.T_time = T_time;}
public String getDemo() {return demo;}
public void setDemo(String demo) {this.demo = demo;}
public String getSuggest() {return suggest;}
public void setSuggest(String suggest) {this.suggest = suggest;}
public String getZ_value() {return Z_value;}
public void setZ_value(String Z_value) {this.Z_value = Z_value;}
}

用户javaBean创建语句如下:


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

//用户
public class Ptadmin  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 ptadminName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//头像
private String pic;
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 getPtadminName() {return ptadminName;}
public void setPtadminName(String ptadminName) {this.ptadminName = ptadminName;}
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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

源代码下载点这里

评论