更多成品,定做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_byke(
	id int primary key auto_increment comment '主键',
	bykeName varchar(100) comment '单车编号',
	xh varchar(100) comment '型号',
	status varchar(100) comment '状态'
) comment '单车';

用户表创建语句如下:


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 '年龄',
	sex varchar(100) comment '性别'
) comment '用户';

单车表创建语句如下:


create table t_order(
	id int primary key auto_increment comment '主键',
	orderName varchar(100) comment '租赁号',
	customerId int comment '用户',
	bykeName varchar(100) comment '单车编号',
	beginDate datetime comment '开始日期',
	endDate datetime comment '结束日期',
	status varchar(100) comment '状态',
	yj int comment '押金',
	yfk int comment '预付款',
	fee int comment '费用',
	sj int comment '使用时长',
	remark 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_byke(
	id integer,
	bykeName varchar(100),
	xh varchar(100),
	status varchar(100)
);
--单车字段加注释
comment on column t_byke.id is '主键';
comment on column t_byke.bykeName is '单车编号';
comment on column t_byke.xh is '型号';
comment on column t_byke.status is '状态';
--单车表加注释
comment on table t_byke is '单车';

用户表创建语句如下:


create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	customerName 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.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_order(
	id integer,
	orderName varchar(100),
	customerId int,
	bykeName varchar(100),
	beginDate datetime,
	endDate datetime,
	status varchar(100),
	yj int,
	yfk int,
	fee int,
	sj int,
	remark varchar(100)
);
--单车字段加注释
comment on column t_order.id is '主键';
comment on column t_order.orderName is '租赁号';
comment on column t_order.customerId is '用户';
comment on column t_order.bykeName is '单车编号';
comment on column t_order.beginDate is '开始日期';
comment on column t_order.endDate is '结束日期';
comment on column t_order.status is '状态';
comment on column t_order.yj is '押金';
comment on column t_order.yfk is '预付款';
comment on column t_order.fee is '费用';
comment on column t_order.sj is '使用时长';
comment on column t_order.remark is '备注';
--单车表加注释
comment on table t_order is '单车';

oracle特有,对应序列如下:


create sequence s_t_byke;
create sequence s_t_customer;
create sequence s_t_order;

共享单车监管系统的设计与开发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_byke(
	id int identity(1,1) primary key not null,--主键
	bykeName varchar(100),--单车编号
	xh varchar(100),--型号
	status varchar(100)--状态
);

用户表创建语句如下:


--用户表注释
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),--年龄
	sex varchar(100)--性别
);

单车表创建语句如下:


--单车表注释
create table t_order(
	id int identity(1,1) primary key not null,--主键
	orderName varchar(100),--租赁号
	customerId int,--用户
	bykeName varchar(100),--单车编号
	beginDate datetime,--开始日期
	endDate datetime,--结束日期
	status varchar(100),--状态
	yj int,--押金
	yfk int,--预付款
	fee int,--费用
	sj int,--使用时长
	remark 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_byke")
public class Byke {
//主键
@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 bykeName;
//型号
private String xh;
//状态
private String status;
public String getBykeName() {return bykeName;}
public void setBykeName(String bykeName) {this.bykeName = bykeName;}
public String getXh() {return xh;}
public void setXh(String xh) {this.xh = xh;}
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_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;
//性别
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 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_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 String orderName;
//用户
private Integer customerId;
//单车编号
private String bykeName;
//开始日期
private Date beginDate;
//结束日期
private Date endDate;
//状态
private String status;
//押金
private Integer yj;
//预付款
private Integer yfk;
//费用
private Integer fee;
//使用时长
private Integer sj;
//备注
private String remark;
public String getOrderName() {return orderName;}
public void setOrderName(String orderName) {this.orderName = orderName;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getBykeName() {return bykeName;}
public void setBykeName(String bykeName) {this.bykeName = bykeName;}
public Date getBeginDate() {return beginDate;}
public void setBeginDate(Date beginDate) {this.beginDate = beginDate;}
public Date getEndDate() {return endDate;}
public void setEndDate(Date endDate) {this.endDate = endDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getYj() {return yj;}
public void setYj(Integer yj) {this.yj = yj;}
public Integer getYfk() {return yfk;}
public void setYfk(Integer yfk) {this.yfk = yfk;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
public Integer getSj() {return sj;}
public void setSj(Integer sj) {this.sj = sj;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

共享单车监管系统的设计与开发spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

单车javaBean创建语句如下:


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

//单车
public class Byke  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//单车编号
private String bykeName;
//型号
private String xh;
//状态
private String status;
public String getBykeName() {return bykeName;}
public void setBykeName(String bykeName) {this.bykeName = bykeName;}
public String getXh() {return xh;}
public void setXh(String xh) {this.xh = xh;}
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 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;
//性别
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 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 Order  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//租赁号
private String orderName;
//用户
private Integer customerId;
//单车编号
private String bykeName;
//开始日期
private Date beginDate;
//结束日期
private Date endDate;
//状态
private String status;
//押金
private Integer yj;
//预付款
private Integer yfk;
//费用
private Integer fee;
//使用时长
private Integer sj;
//备注
private String remark;
public String getOrderName() {return orderName;}
public void setOrderName(String orderName) {this.orderName = orderName;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getBykeName() {return bykeName;}
public void setBykeName(String bykeName) {this.bykeName = bykeName;}
public Date getBeginDate() {return beginDate;}
public void setBeginDate(Date beginDate) {this.beginDate = beginDate;}
public Date getEndDate() {return endDate;}
public void setEndDate(Date endDate) {this.endDate = endDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getYj() {return yj;}
public void setYj(Integer yj) {this.yj = yj;}
public Integer getYfk() {return yfk;}
public void setYfk(Integer yfk) {this.yfk = yfk;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
public Integer getSj() {return sj;}
public void setSj(Integer sj) {this.sj = sj;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

评论