- 《电单车在线管理系统》的设计与实现mysql数据库创建语句
- 《电单车在线管理系统》的设计与实现oracle数据库创建语句
- 《电单车在线管理系统》的设计与实现sqlserver数据库创建语句
- 《电单车在线管理系统》的设计与实现spring+springMVC+hibernate框架对象(javaBean,pojo)设计
- 《电单车在线管理系统》的设计与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计
《电单车在线管理系统》的设计与实现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_cdjl(
id int primary key auto_increment comment '主键',
ddcName varchar(100) comment '电单车编号',
showDate datetime comment '充电日期',
remark text comment '备注',
czr varchar(100) comment '操作人'
) comment '充电记录';
电单车表创建语句如下:
create table t_ddc(
id int primary key auto_increment comment '主键',
ddcName varchar(100) comment '电单车编号',
cp varchar(100) comment '车牌号',
cx varchar(100) comment '车型',
remark text comment '备注',
status varchar(100) comment '状态'
) comment '电单车';
禁止停放区域表创建语句如下:
create table t_jztf(
id int primary key auto_increment comment '主键',
jztfName varchar(100) comment '禁止停放编号',
address varchar(100) comment '详细地址说明',
jwd varchar(100) comment '经纬度',
fw int comment '范围大小米'
) comment '禁止停放区域';
可以停放区域表创建语句如下:
create table t_kytf(
id int primary key auto_increment comment '主键',
kytfName varchar(100) comment '可以停放编号',
address varchar(100) comment '详细地址说明',
jwd varchar(100) comment '经纬度',
fw int comment '范围大小米'
) comment '可以停放区域';
使用记录表创建语句如下:
create table t_syjl(
id int primary key auto_increment comment '主键',
ddcName varchar(100) comment '电单车编号',
beginDate datetime comment '开始日期',
endDate datetime comment '结束日期',
remark text comment '备注',
syr 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_cdjl(
id integer,
ddcName varchar(100),
showDate datetime,
remark text,
czr varchar(100)
);
--充电记录字段加注释
comment on column t_cdjl.id is '主键';
comment on column t_cdjl.ddcName is '电单车编号';
comment on column t_cdjl.showDate is '充电日期';
comment on column t_cdjl.remark is '备注';
comment on column t_cdjl.czr is '操作人';
--充电记录表加注释
comment on table t_cdjl is '充电记录';
电单车表创建语句如下:
create table t_ddc(
id integer,
ddcName varchar(100),
cp varchar(100),
cx varchar(100),
remark text,
status varchar(100)
);
--电单车字段加注释
comment on column t_ddc.id is '主键';
comment on column t_ddc.ddcName is '电单车编号';
comment on column t_ddc.cp is '车牌号';
comment on column t_ddc.cx is '车型';
comment on column t_ddc.remark is '备注';
comment on column t_ddc.status is '状态';
--电单车表加注释
comment on table t_ddc is '电单车';
禁止停放区域表创建语句如下:
create table t_jztf(
id integer,
jztfName varchar(100),
address varchar(100),
jwd varchar(100),
fw int
);
--禁止停放区域字段加注释
comment on column t_jztf.id is '主键';
comment on column t_jztf.jztfName is '禁止停放编号';
comment on column t_jztf.address is '详细地址说明';
comment on column t_jztf.jwd is '经纬度';
comment on column t_jztf.fw is '范围大小米';
--禁止停放区域表加注释
comment on table t_jztf is '禁止停放区域';
可以停放区域表创建语句如下:
create table t_kytf(
id integer,
kytfName varchar(100),
address varchar(100),
jwd varchar(100),
fw int
);
--可以停放区域字段加注释
comment on column t_kytf.id is '主键';
comment on column t_kytf.kytfName is '可以停放编号';
comment on column t_kytf.address is '详细地址说明';
comment on column t_kytf.jwd is '经纬度';
comment on column t_kytf.fw is '范围大小米';
--可以停放区域表加注释
comment on table t_kytf is '可以停放区域';
使用记录表创建语句如下:
create table t_syjl(
id integer,
ddcName varchar(100),
beginDate datetime,
endDate datetime,
remark text,
syr varchar(100)
);
--使用记录字段加注释
comment on column t_syjl.id is '主键';
comment on column t_syjl.ddcName is '电单车编号';
comment on column t_syjl.beginDate is '开始日期';
comment on column t_syjl.endDate is '结束日期';
comment on column t_syjl.remark is '备注';
comment on column t_syjl.syr is '使用人';
--使用记录表加注释
comment on table t_syjl is '使用记录';
oracle特有,对应序列如下:
create sequence s_t_cdjl;
create sequence s_t_ddc;
create sequence s_t_jztf;
create sequence s_t_kytf;
create sequence s_t_syjl;
《电单车在线管理系统》的设计与实现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_cdjl(
id int identity(1,1) primary key not null,--主键
ddcName varchar(100),--电单车编号
showDate datetime,--充电日期
remark text,--备注
czr varchar(100)--操作人
);
电单车表创建语句如下:
--电单车表注释
create table t_ddc(
id int identity(1,1) primary key not null,--主键
ddcName varchar(100),--电单车编号
cp varchar(100),--车牌号
cx varchar(100),--车型
remark text,--备注
status varchar(100)--状态
);
禁止停放区域表创建语句如下:
--禁止停放区域表注释
create table t_jztf(
id int identity(1,1) primary key not null,--主键
jztfName varchar(100),--禁止停放编号
address varchar(100),--详细地址说明
jwd varchar(100),--经纬度
fw int--范围大小米
);
可以停放区域表创建语句如下:
--可以停放区域表注释
create table t_kytf(
id int identity(1,1) primary key not null,--主键
kytfName varchar(100),--可以停放编号
address varchar(100),--详细地址说明
jwd varchar(100),--经纬度
fw int--范围大小米
);
使用记录表创建语句如下:
--使用记录表注释
create table t_syjl(
id int identity(1,1) primary key not null,--主键
ddcName varchar(100),--电单车编号
beginDate datetime,--开始日期
endDate datetime,--结束日期
remark text,--备注
syr 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_cdjl")
public class Cdjl {
//主键
@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 ddcName;
//充电日期
private Date showDate;
//备注
private String remark;
//操作人
private String czr;
public String getDdcName() {return ddcName;}
public void setDdcName(String ddcName) {this.ddcName = ddcName;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getCzr() {return czr;}
public void setCzr(String czr) {this.czr = czr;}
}
电单车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_ddc")
public class Ddc {
//主键
@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 ddcName;
//车牌号
private String cp;
//车型
private String cx;
//备注
private String remark;
//状态
private String status;
public String getDdcName() {return ddcName;}
public void setDdcName(String ddcName) {this.ddcName = ddcName;}
public String getCp() {return cp;}
public void setCp(String cp) {this.cp = cp;}
public String getCx() {return cx;}
public void setCx(String cx) {this.cx = cx;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
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_jztf")
public class Jztf {
//主键
@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 jztfName;
//详细地址说明
private String address;
//经纬度
private String jwd;
//范围大小米
private Integer fw;
public String getJztfName() {return jztfName;}
public void setJztfName(String jztfName) {this.jztfName = jztfName;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getJwd() {return jwd;}
public void setJwd(String jwd) {this.jwd = jwd;}
public Integer getFw() {return fw;}
public void setFw(Integer fw) {this.fw = fw;}
}
可以停放区域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_kytf")
public class Kytf {
//主键
@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 kytfName;
//详细地址说明
private String address;
//经纬度
private String jwd;
//范围大小米
private Integer fw;
public String getKytfName() {return kytfName;}
public void setKytfName(String kytfName) {this.kytfName = kytfName;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getJwd() {return jwd;}
public void setJwd(String jwd) {this.jwd = jwd;}
public Integer getFw() {return fw;}
public void setFw(Integer fw) {this.fw = fw;}
}
使用记录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_syjl")
public class Syjl {
//主键
@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 ddcName;
//开始日期
private Date beginDate;
//结束日期
private Date endDate;
//备注
private String remark;
//使用人
private String syr;
public String getDdcName() {return ddcName;}
public void setDdcName(String ddcName) {this.ddcName = ddcName;}
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 getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getSyr() {return syr;}
public void setSyr(String syr) {this.syr = syr;}
}
《电单车在线管理系统》的设计与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计:
充电记录javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//充电记录
public class Cdjl extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//电单车编号
private String ddcName;
//充电日期
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date showDate;
//备注
private String remark;
//操作人
private String czr;
public String getDdcName() {return ddcName;}
public void setDdcName(String ddcName) {this.ddcName = ddcName;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getCzr() {return czr;}
public void setCzr(String czr) {this.czr = czr;}
}
电单车javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//电单车
public class Ddc extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//电单车编号
private String ddcName;
//车牌号
private String cp;
//车型
private String cx;
//备注
private String remark;
//状态
private String status;
public String getDdcName() {return ddcName;}
public void setDdcName(String ddcName) {this.ddcName = ddcName;}
public String getCp() {return cp;}
public void setCp(String cp) {this.cp = cp;}
public String getCx() {return cx;}
public void setCx(String cx) {this.cx = cx;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
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 Jztf extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//禁止停放编号
private String jztfName;
//详细地址说明
private String address;
//经纬度
private String jwd;
//范围大小米
private Integer fw;
public String getJztfName() {return jztfName;}
public void setJztfName(String jztfName) {this.jztfName = jztfName;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getJwd() {return jwd;}
public void setJwd(String jwd) {this.jwd = jwd;}
public Integer getFw() {return fw;}
public void setFw(Integer fw) {this.fw = fw;}
}
可以停放区域javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//可以停放区域
public class Kytf extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//可以停放编号
private String kytfName;
//详细地址说明
private String address;
//经纬度
private String jwd;
//范围大小米
private Integer fw;
public String getKytfName() {return kytfName;}
public void setKytfName(String kytfName) {this.kytfName = kytfName;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getJwd() {return jwd;}
public void setJwd(String jwd) {this.jwd = jwd;}
public Integer getFw() {return fw;}
public void setFw(Integer fw) {this.fw = fw;}
}
使用记录javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//使用记录
public class Syjl extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//电单车编号
private String ddcName;
//开始日期
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date beginDate;
//结束日期
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date endDate;
//备注
private String remark;
//使用人
private String syr;
public String getDdcName() {return ddcName;}
public void setDdcName(String ddcName) {this.ddcName = ddcName;}
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 getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getSyr() {return syr;}
public void setSyr(String syr) {this.syr = syr;}
}