智慧小区访客管理系统

智慧小区访客管理系统登录注册界面

智慧小区访客管理系统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_fk(
	id int primary key auto_increment comment '主键',
	hzId int comment '户主',
	ewm varchar(100) comment '二维码',
	fkName varchar(100) comment '姓名',
	sex varchar(100) comment '性别',
	age varchar(100) comment '年龄',
	phone varchar(100) comment '电话',
	pic varchar(100) comment '头像',
	inDate varchar(100) comment '预来访日期',
	updateDate datetime comment '实时时间',
	status varchar(100) comment '状态',
	bz varchar(100) comment '备注'
) comment '访客';

户主表创建语句如下:


create table t_hz(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	hzName varchar(100) comment '姓名',
	sex varchar(100) comment '性别',
	age varchar(100) comment '年龄',
	phone varchar(100) comment '电话',
	pic varchar(100) comment '头像'
) comment '户主';

云养表创建语句如下:


create table t_yy(
	id int primary key auto_increment comment '主键',
	mgId int comment '猫狗',
	customerId int comment '用户',
	insertDate datetime comment '日期',
	jg int 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_fk(
	id integer,
	hzId int,
	ewm varchar(100),
	fkName varchar(100),
	sex varchar(100),
	age varchar(100),
	phone varchar(100),
	pic varchar(100),
	inDate varchar(100),
	updateDate datetime,
	status varchar(100),
	bz varchar(100)
);
--访客字段加注释
comment on column t_fk.id is '主键';
comment on column t_fk.hzId is '户主';
comment on column t_fk.ewm is '二维码';
comment on column t_fk.fkName is '姓名';
comment on column t_fk.sex is '性别';
comment on column t_fk.age is '年龄';
comment on column t_fk.phone is '电话';
comment on column t_fk.pic is '头像';
comment on column t_fk.inDate is '预来访日期';
comment on column t_fk.updateDate is '实时时间';
comment on column t_fk.status is '状态';
comment on column t_fk.bz is '备注';
--访客表加注释
comment on table t_fk is '访客';

户主表创建语句如下:


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

云养表创建语句如下:


create table t_yy(
	id integer,
	mgId int,
	customerId int,
	insertDate datetime,
	jg int
);
--云养字段加注释
comment on column t_yy.id is '主键';
comment on column t_yy.mgId is '猫狗';
comment on column t_yy.customerId is '用户';
comment on column t_yy.insertDate is '日期';
comment on column t_yy.jg is '价格';
--云养表加注释
comment on table t_yy is '云养';

oracle特有,对应序列如下:


create sequence s_t_fk;
create sequence s_t_hz;
create sequence s_t_yy;

智慧小区访客管理系统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_fk(
	id int identity(1,1) primary key not null,--主键
	hzId int,--户主
	ewm varchar(100),--二维码
	fkName varchar(100),--姓名
	sex varchar(100),--性别
	age varchar(100),--年龄
	phone varchar(100),--电话
	pic varchar(100),--头像
	inDate varchar(100),--预来访日期
	updateDate datetime,--实时时间
	status varchar(100),--状态
	bz varchar(100)--备注
);

户主表创建语句如下:


--户主表注释
create table t_hz(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	hzName varchar(100),--姓名
	sex varchar(100),--性别
	age varchar(100),--年龄
	phone varchar(100),--电话
	pic varchar(100)--头像
);

云养表创建语句如下:


--云养表注释
create table t_yy(
	id int identity(1,1) primary key not null,--主键
	mgId int,--猫狗
	customerId int,--用户
	insertDate datetime,--日期
	jg int--价格
);

智慧小区访客管理系统登录后主页

智慧小区访客管理系统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_fk")
public class Fk {
//主键
@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 hzId;
//二维码
private String ewm;
//姓名
private String fkName;
//性别
private String sex;
//年龄
private String age;
//电话
private String phone;
//头像
private String pic;
//预来访日期
private String inDate;
//实时时间
private Date updateDate;
//状态
private String status;
//备注
private String bz;
public Integer getHzId() {return hzId;}
public void setHzId(Integer hzId) {this.hzId = hzId;}
public String getEwm() {return ewm;}
public void setEwm(String ewm) {this.ewm = ewm;}
public String getFkName() {return fkName;}
public void setFkName(String fkName) {this.fkName = fkName;}
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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getInDate() {return inDate;}
public void setInDate(String inDate) {this.inDate = inDate;}
public Date getUpdateDate() {return updateDate;}
public void setUpdateDate(Date updateDate) {this.updateDate = updateDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getBz() {return bz;}
public void setBz(String bz) {this.bz = bz;}
}

户主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_hz")
public class Hz {
//主键
@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 hzName;
//性别
private String sex;
//年龄
private String age;
//电话
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 getHzName() {return hzName;}
public void setHzName(String hzName) {this.hzName = hzName;}
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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

云养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_yy")
public class Yy {
//主键
@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 mgId;
//用户
private Integer customerId;
//日期
private Date insertDate;
//价格
private Integer jg;
public Integer getMgId() {return mgId;}
public void setMgId(Integer mgId) {this.mgId = mgId;}
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 Integer getJg() {return jg;}
public void setJg(Integer jg) {this.jg = jg;}
}

智慧小区访客管理系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

访客javaBean创建语句如下:


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

//访客
public class Fk  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//户主
private Integer hzId;
//二维码
private String ewm;
//姓名
private String fkName;
//性别
private String sex;
//年龄
private String age;
//电话
private String phone;
//头像
private String pic;
//预来访日期
private String inDate;
//实时时间
private Date updateDate;
//状态
private String status;
//备注
private String bz;
public Integer getHzId() {return hzId;}
public void setHzId(Integer hzId) {this.hzId = hzId;}
public String getEwm() {return ewm;}
public void setEwm(String ewm) {this.ewm = ewm;}
public String getFkName() {return fkName;}
public void setFkName(String fkName) {this.fkName = fkName;}
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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getInDate() {return inDate;}
public void setInDate(String inDate) {this.inDate = inDate;}
public Date getUpdateDate() {return updateDate;}
public void setUpdateDate(Date updateDate) {this.updateDate = updateDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getBz() {return bz;}
public void setBz(String bz) {this.bz = bz;}
}

户主javaBean创建语句如下:


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

//户主
public class Hz  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 hzName;
//性别
private String sex;
//年龄
private String age;
//电话
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 getHzName() {return hzName;}
public void setHzName(String hzName) {this.hzName = hzName;}
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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

云养javaBean创建语句如下:


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

//云养
public class Yy  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//猫狗
private Integer mgId;
//用户
private Integer customerId;
//日期
private Date insertDate;
//价格
private Integer jg;
public Integer getMgId() {return mgId;}
public void setMgId(Integer mgId) {this.mgId = mgId;}
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 Integer getJg() {return jg;}
public void setJg(Integer jg) {this.jg = jg;}
}

源代码下载点这里

评论