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

基于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_customer(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	customerName varchar(100) comment '姓名',
	headPic varchar(100) comment '头像',
	phone varchar(100) comment '电话',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别'
) comment '用户';

公告表创建语句如下:


create table t_gg(
	id int primary key auto_increment comment '主键',
	v1 varchar(100) comment '标题',
	showDate datetime comment '日期',
	v3 varchar(100) comment '内容'
) comment '公告';

自习室抢座表创建语句如下:


create table t_order(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	zxsId int comment '自习室',
	wz varchar(100) comment '自习室位置',
	insertDate datetime comment '占座开始日期',
	outDate datetime comment '离开日期',
	status varchar(100) comment '状态'
) comment '自习室抢座';

投诉建议表创建语句如下:


create table t_tsjy(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	title varchar(100) comment '标题',
	pic varchar(100) comment '图片',
	insertDate datetime comment '提交日期',
	content varchar(100) comment '详细内容说明',
	status varchar(100) comment '状态',
	back varchar(100) comment '回复'
) comment '投诉建议';

自习室表创建语句如下:


create table t_zxs(
	id int primary key auto_increment comment '主键',
	zsxName varchar(100) comment '自习室名称',
	address varchar(100) comment '位置',
	rs int 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_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	customerName varchar(100),
	headPic varchar(100),
	phone varchar(100),
	age varchar(100),
	sex 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.headPic is '头像';
comment on column t_customer.phone is '电话';
comment on column t_customer.age is '年龄';
comment on column t_customer.sex is '性别';
--用户表加注释
comment on table t_customer is '用户';

公告表创建语句如下:


create table t_gg(
	id integer,
	v1 varchar(100),
	showDate datetime,
	v3 varchar(100)
);
--公告字段加注释
comment on column t_gg.id is '主键';
comment on column t_gg.v1 is '标题';
comment on column t_gg.showDate is '日期';
comment on column t_gg.v3 is '内容';
--公告表加注释
comment on table t_gg is '公告';

自习室抢座表创建语句如下:


create table t_order(
	id integer,
	customerId int,
	zxsId int,
	wz varchar(100),
	insertDate datetime,
	outDate datetime,
	status varchar(100)
);
--自习室抢座字段加注释
comment on column t_order.id is '主键';
comment on column t_order.customerId is '用户';
comment on column t_order.zxsId is '自习室';
comment on column t_order.wz is '自习室位置';
comment on column t_order.insertDate is '占座开始日期';
comment on column t_order.outDate is '离开日期';
comment on column t_order.status is '状态';
--自习室抢座表加注释
comment on table t_order is '自习室抢座';

投诉建议表创建语句如下:


create table t_tsjy(
	id integer,
	customerId int,
	title varchar(100),
	pic varchar(100),
	insertDate datetime,
	content varchar(100),
	status varchar(100),
	back varchar(100)
);
--投诉建议字段加注释
comment on column t_tsjy.id is '主键';
comment on column t_tsjy.customerId is '用户';
comment on column t_tsjy.title is '标题';
comment on column t_tsjy.pic is '图片';
comment on column t_tsjy.insertDate is '提交日期';
comment on column t_tsjy.content is '详细内容说明';
comment on column t_tsjy.status is '状态';
comment on column t_tsjy.back is '回复';
--投诉建议表加注释
comment on table t_tsjy is '投诉建议';

自习室表创建语句如下:


create table t_zxs(
	id integer,
	zsxName varchar(100),
	address varchar(100),
	rs int
);
--自习室字段加注释
comment on column t_zxs.id is '主键';
comment on column t_zxs.zsxName is '自习室名称';
comment on column t_zxs.address is '位置';
comment on column t_zxs.rs is '最多人数';
--自习室表加注释
comment on table t_zxs is '自习室';

oracle特有,对应序列如下:


create sequence s_t_customer;
create sequence s_t_gg;
create sequence s_t_order;
create sequence s_t_tsjy;
create sequence s_t_zxs;

基于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_customer(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	customerName varchar(100),--姓名
	headPic varchar(100),--头像
	phone varchar(100),--电话
	age varchar(100),--年龄
	sex varchar(100)--性别
);

公告表创建语句如下:


--公告表注释
create table t_gg(
	id int identity(1,1) primary key not null,--主键
	v1 varchar(100),--标题
	showDate datetime,--日期
	v3 varchar(100)--内容
);

自习室抢座表创建语句如下:


--自习室抢座表注释
create table t_order(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	zxsId int,--自习室
	wz varchar(100),--自习室位置
	insertDate datetime,--占座开始日期
	outDate datetime,--离开日期
	status varchar(100)--状态
);

投诉建议表创建语句如下:


--投诉建议表注释
create table t_tsjy(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	title varchar(100),--标题
	pic varchar(100),--图片
	insertDate datetime,--提交日期
	content varchar(100),--详细内容说明
	status varchar(100),--状态
	back varchar(100)--回复
);

自习室表创建语句如下:


--自习室表注释
create table t_zxs(
	id int identity(1,1) primary key not null,--主键
	zsxName varchar(100),--自习室名称
	address varchar(100),--位置
	rs int--最多人数
);

基于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_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 headPic;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
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 getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
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;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
}

公告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_gg")
public class Gg {
//主键
@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 Date showDate;
//内容
private String v3;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
}

自习室抢座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 zxsId;
//自习室位置
private String wz;
//占座开始日期
private Date insertDate;
//离开日期
private Date outDate;
//状态
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getZxsId() {return zxsId;}
public void setZxsId(Integer zxsId) {this.zxsId = zxsId;}
public String getWz() {return wz;}
public void setWz(String wz) {this.wz = wz;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public Date getOutDate() {return outDate;}
public void setOutDate(Date outDate) {this.outDate = outDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

投诉建议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_tsjy")
public class Tsjy {
//主键
@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 title;
//图片
private String pic;
//提交日期
private Date insertDate;
//详细内容说明
private String content;
//状态
private String status;
//回复
private String back;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getBack() {return back;}
public void setBack(String back) {this.back = back;}
}

自习室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_zxs")
public class Zxs {
//主键
@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 zsxName;
//位置
private String address;
//最多人数
private Integer rs;
public String getZsxName() {return zsxName;}
public void setZsxName(String zsxName) {this.zsxName = zsxName;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public Integer getRs() {return rs;}
public void setRs(Integer rs) {this.rs = rs;}
}

基于Java的自习室管理系统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 headPic;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
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 getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
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;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
}

公告javaBean创建语句如下:


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

//公告
public class Gg  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String v1;
//日期
private Date showDate;
//内容
private String v3;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
}

自习室抢座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 zxsId;
//自习室位置
private String wz;
//占座开始日期
private Date insertDate;
//离开日期
private Date outDate;
//状态
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getZxsId() {return zxsId;}
public void setZxsId(Integer zxsId) {this.zxsId = zxsId;}
public String getWz() {return wz;}
public void setWz(String wz) {this.wz = wz;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public Date getOutDate() {return outDate;}
public void setOutDate(Date outDate) {this.outDate = outDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

投诉建议javaBean创建语句如下:


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

//投诉建议
public class Tsjy  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//标题
private String title;
//图片
private String pic;
//提交日期
private Date insertDate;
//详细内容说明
private String content;
//状态
private String status;
//回复
private String back;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getBack() {return back;}
public void setBack(String back) {this.back = back;}
}

自习室javaBean创建语句如下:


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

//自习室
public class Zxs  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//自习室名称
private String zsxName;
//位置
private String address;
//最多人数
private Integer rs;
public String getZsxName() {return zsxName;}
public void setZsxName(String zsxName) {this.zsxName = zsxName;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public Integer getRs() {return rs;}
public void setRs(Integer rs) {this.rs = rs;}
}

评论