更多成品,定做java毕业设计,请咨询管理员qq:2812491287

图书馆自习室选座系统

图书馆自习室选座系统登录注册界面

图书馆自习室选座系统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 '密码',
	customerName varchar(100) comment '姓名',
	phone varchar(100) comment '电话',
	age varchar(100) comment '年龄'
) comment '学生';

预约选座表创建语句如下:


create table t_order(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	zuoweiId int comment '座位',
	yyDate datetime comment '预约时间',
	sjd varchar(100) comment '时间段',
	status varchar(100) comment '状态',
	isqd varchar(100) comment '是否签到',
	insertDate datetime comment ''
) comment '预约选座';

通知表创建语句如下:


create table t_tongzhi(
	id int primary key auto_increment comment '主键',
	v1 varchar(100) comment '标题',
	v2 varchar(100) comment '内容',
	showDate varchar(100) comment ''
) comment '通知';

自习座位表创建语句如下:


create table t_zuowei(
	id int primary key auto_increment comment '主键',
	v1 varchar(100) comment '楼层',
	v2 varchar(100) comment '自习室',
	v3 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),
	customerName varchar(100),
	phone varchar(100),
	age 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.phone is '电话';
comment on column t_customer.age is '年龄';
--学生表加注释
comment on table t_customer is '学生';

预约选座表创建语句如下:


create table t_order(
	id integer,
	customerId int,
	zuoweiId int,
	yyDate datetime,
	sjd varchar(100),
	status varchar(100),
	isqd varchar(100),
	insertDate datetime
);
--预约选座字段加注释
comment on column t_order.id is '主键';
comment on column t_order.customerId is '用户';
comment on column t_order.zuoweiId is '座位';
comment on column t_order.yyDate is '预约时间';
comment on column t_order.sjd is '时间段';
comment on column t_order.status is '状态';
comment on column t_order.isqd is '是否签到';
comment on column t_order.insertDate is '';
--预约选座表加注释
comment on table t_order is '预约选座';

通知表创建语句如下:


create table t_tongzhi(
	id integer,
	v1 varchar(100),
	v2 varchar(100),
	showDate varchar(100)
);
--通知字段加注释
comment on column t_tongzhi.id is '主键';
comment on column t_tongzhi.v1 is '标题';
comment on column t_tongzhi.v2 is '内容';
comment on column t_tongzhi.showDate is '';
--通知表加注释
comment on table t_tongzhi is '通知';

自习座位表创建语句如下:


create table t_zuowei(
	id integer,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100)
);
--自习座位字段加注释
comment on column t_zuowei.id is '主键';
comment on column t_zuowei.v1 is '楼层';
comment on column t_zuowei.v2 is '自习室';
comment on column t_zuowei.v3 is '位置';
--自习座位表加注释
comment on table t_zuowei is '自习座位';

oracle特有,对应序列如下:


create sequence s_t_customer;
create sequence s_t_order;
create sequence s_t_tongzhi;
create sequence s_t_zuowei;

图书馆自习室选座系统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),--密码
	customerName varchar(100),--姓名
	phone varchar(100),--电话
	age varchar(100)--年龄
);

预约选座表创建语句如下:


--预约选座表注释
create table t_order(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	zuoweiId int,--座位
	yyDate datetime,--预约时间
	sjd varchar(100),--时间段
	status varchar(100),--状态
	isqd varchar(100),--是否签到
	insertDate datetime--
);

通知表创建语句如下:


--通知表注释
create table t_tongzhi(
	id int identity(1,1) primary key not null,--主键
	v1 varchar(100),--标题
	v2 varchar(100),--内容
	showDate varchar(100)--
);

自习座位表创建语句如下:


--自习座位表注释
create table t_zuowei(
	id int identity(1,1) primary key not null,--主键
	v1 varchar(100),--楼层
	v2 varchar(100),--自习室
	v3 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 customerName;
//电话
private String phone;
//年龄
private String age;
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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
}

预约选座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_order")
public class Order {
//主键
@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 Integer zuoweiId;
//预约时间
private Date yyDate;
//时间段
private String sjd;
//状态
private String status;
//是否签到
private String isqd;
//
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getZuoweiId() {return zuoweiId;}
public void setZuoweiId(Integer zuoweiId) {this.zuoweiId = zuoweiId;}
public Date getYyDate() {return yyDate;}
public void setYyDate(Date yyDate) {this.yyDate = yyDate;}
public String getSjd() {return sjd;}
public void setSjd(String sjd) {this.sjd = sjd;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getIsqd() {return isqd;}
public void setIsqd(String isqd) {this.isqd = isqd;}
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_tongzhi")
public class Tongzhi {
//主键
@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 v1;
//内容
private String v2;
//
private String showDate;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getShowDate() {return showDate;}
public void setShowDate(String 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_zuowei")
public class Zuowei {
//主键
@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 v1;
//自习室
private String v2;
//位置
private String v3;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
}

图书馆自习室选座系统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 customerName;
//电话
private String phone;
//年龄
private String age;
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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
}

预约选座javaBean创建语句如下:


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

//预约选座
public class Order  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//座位
private Integer zuoweiId;
//预约时间
private Date yyDate;
//时间段
private String sjd;
//状态
private String status;
//是否签到
private String isqd;
//
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getZuoweiId() {return zuoweiId;}
public void setZuoweiId(Integer zuoweiId) {this.zuoweiId = zuoweiId;}
public Date getYyDate() {return yyDate;}
public void setYyDate(Date yyDate) {this.yyDate = yyDate;}
public String getSjd() {return sjd;}
public void setSjd(String sjd) {this.sjd = sjd;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getIsqd() {return isqd;}
public void setIsqd(String isqd) {this.isqd = isqd;}
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 Tongzhi  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String v1;
//内容
private String v2;
//
private String showDate;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getShowDate() {return showDate;}
public void setShowDate(String showDate) {this.showDate = showDate;}
}

自习座位javaBean创建语句如下:


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

//自习座位
public class Zuowei  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//楼层
private String v1;
//自习室
private String v2;
//位置
private String v3;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
}

评论