食品連鎖類門店配送車輛管理系統

qq_2812491287發表於2019-02-16
食品連鎖類門店配送車輛管理系統
食品連鎖類門店配送車輛管理系統登入註冊介面

食品連鎖類門店配送車輛管理系統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_car(
	id int primary key auto_increment comment '主鍵',
	cp varchar(100) comment '車牌號',
	jsr varchar(100) comment '駕駛人',
	lxdh varchar(100) comment '聯絡電話',
	cxtj varchar(100) comment '車廂體積',
	clxh varchar(100) comment '車輛型別',
	remark varchar(100) comment '備註'
) comment '車輛';

門店表建立語句如下:


create table t_md(
	id int primary key auto_increment comment '主鍵',
	mdmc varchar(100) comment '門店名稱',
	mddz varchar(100) comment '門店地址',
	jwd varchar(100) comment '經緯度',
	lxr varchar(100) comment '聯絡人',
	lxdh varchar(100) comment '聯絡電話',
	remark varchar(100) comment '備註'
) comment '門店';

配送資訊表建立語句如下:


create table t_psxx(
	id int primary key auto_increment comment '主鍵',
	carId int comment '配送車輛',
	jwd varchar(100) comment '起送點(經緯度)',
	mdId int comment '門店',
	v1 varchar(100) comment '批次號',
	v2 varchar(100) comment '食品體積',
	v3 varchar(100) comment '食品類別',
	remark varchar(100) comment '備註'
) comment '配送資訊';

普通管理員表建立語句如下:


create table t_ptadmin(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬號',
	password varchar(100) comment '密碼 ',
	ptadminName varchar(100) comment '姓名',
	age varchar(100) comment '年齡',
	sex varchar(100) comment '性別',
	phone 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_car(
	id integer,
	cp varchar(100),
	jsr varchar(100),
	lxdh varchar(100),
	cxtj varchar(100),
	clxh varchar(100),
	remark varchar(100)
);
--車輛欄位加註釋
comment on column t_car.id is '主鍵';
comment on column t_car.cp is '車牌號';
comment on column t_car.jsr is '駕駛人';
comment on column t_car.lxdh is '聯絡電話';
comment on column t_car.cxtj is '車廂體積';
comment on column t_car.clxh is '車輛型別';
comment on column t_car.remark is '備註';
--車輛表加註釋
comment on table t_car is '車輛';

門店表建立語句如下:


create table t_md(
	id integer,
	mdmc varchar(100),
	mddz varchar(100),
	jwd varchar(100),
	lxr varchar(100),
	lxdh varchar(100),
	remark varchar(100)
);
--門店欄位加註釋
comment on column t_md.id is '主鍵';
comment on column t_md.mdmc is '門店名稱';
comment on column t_md.mddz is '門店地址';
comment on column t_md.jwd is '經緯度';
comment on column t_md.lxr is '聯絡人';
comment on column t_md.lxdh is '聯絡電話';
comment on column t_md.remark is '備註';
--門店表加註釋
comment on table t_md is '門店';

配送資訊表建立語句如下:


create table t_psxx(
	id integer,
	carId int,
	jwd varchar(100),
	mdId int,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	remark varchar(100)
);
--配送資訊欄位加註釋
comment on column t_psxx.id is '主鍵';
comment on column t_psxx.carId is '配送車輛';
comment on column t_psxx.jwd is '起送點(經緯度)';
comment on column t_psxx.mdId is '門店';
comment on column t_psxx.v1 is '批次號';
comment on column t_psxx.v2 is '食品體積';
comment on column t_psxx.v3 is '食品類別';
comment on column t_psxx.remark is '備註';
--配送資訊表加註釋
comment on table t_psxx is '配送資訊';

普通管理員表建立語句如下:


create table t_ptadmin(
	id integer,
	username varchar(100),
	password varchar(100),
	ptadminName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100)
);
--普通管理員欄位加註釋
comment on column t_ptadmin.id is '主鍵';
comment on column t_ptadmin.username is '賬號';
comment on column t_ptadmin.password is '密碼 ';
comment on column t_ptadmin.ptadminName is '姓名';
comment on column t_ptadmin.age is '年齡';
comment on column t_ptadmin.sex is '性別';
comment on column t_ptadmin.phone is '電話';
--普通管理員表加註釋
comment on table t_ptadmin is '普通管理員';

oracle特有,對應序列如下:


create sequence s_t_car;
create sequence s_t_md;
create sequence s_t_psxx;
create sequence s_t_ptadmin;

食品連鎖類門店配送車輛管理系統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_car(
	id int identity(1,1) primary key not null,--主鍵
	cp varchar(100),--車牌號
	jsr varchar(100),--駕駛人
	lxdh varchar(100),--聯絡電話
	cxtj varchar(100),--車廂體積
	clxh varchar(100),--車輛型別
	remark varchar(100)--備註
);

門店表建立語句如下:


--門店表註釋
create table t_md(
	id int identity(1,1) primary key not null,--主鍵
	mdmc varchar(100),--門店名稱
	mddz varchar(100),--門店地址
	jwd varchar(100),--經緯度
	lxr varchar(100),--聯絡人
	lxdh varchar(100),--聯絡電話
	remark varchar(100)--備註
);

配送資訊表建立語句如下:


--配送資訊表註釋
create table t_psxx(
	id int identity(1,1) primary key not null,--主鍵
	carId int,--配送車輛
	jwd varchar(100),--起送點(經緯度)
	mdId int,--門店
	v1 varchar(100),--批次號
	v2 varchar(100),--食品體積
	v3 varchar(100),--食品類別
	remark varchar(100)--備註
);

普通管理員表建立語句如下:


--普通管理員表註釋
create table t_ptadmin(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬號
	password varchar(100),--密碼 
	ptadminName varchar(100),--姓名
	age varchar(100),--年齡
	sex varchar(100),--性別
	phone 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_car")
public class Car {
//主鍵
@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 cp;
//駕駛人
private String jsr;
//聯絡電話
private String lxdh;
//車廂體積
private String cxtj;
//車輛型別
private String clxh;
//備註
private String remark;
public String getCp() {return cp;}
public void setCp(String cp) {this.cp = cp;}
public String getJsr() {return jsr;}
public void setJsr(String jsr) {this.jsr = jsr;}
public String getLxdh() {return lxdh;}
public void setLxdh(String lxdh) {this.lxdh = lxdh;}
public String getCxtj() {return cxtj;}
public void setCxtj(String cxtj) {this.cxtj = cxtj;}
public String getClxh() {return clxh;}
public void setClxh(String clxh) {this.clxh = clxh;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

門店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_md")
public class Md {
//主鍵
@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 mdmc;
//門店地址
private String mddz;
//經緯度
private String jwd;
//聯絡人
private String lxr;
//聯絡電話
private String lxdh;
//備註
private String remark;
public String getMdmc() {return mdmc;}
public void setMdmc(String mdmc) {this.mdmc = mdmc;}
public String getMddz() {return mddz;}
public void setMddz(String mddz) {this.mddz = mddz;}
public String getJwd() {return jwd;}
public void setJwd(String jwd) {this.jwd = jwd;}
public String getLxr() {return lxr;}
public void setLxr(String lxr) {this.lxr = lxr;}
public String getLxdh() {return lxdh;}
public void setLxdh(String lxdh) {this.lxdh = lxdh;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

配送資訊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_psxx")
public class Psxx {
//主鍵
@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 carId;
//起送點(經緯度)
private String jwd;
//門店
private Integer mdId;
//批次號
private String v1;
//食品體積
private String v2;
//食品類別
private String v3;
//備註
private String remark;
public Integer getCarId() {return carId;}
public void setCarId(Integer carId) {this.carId = carId;}
public String getJwd() {return jwd;}
public void setJwd(String jwd) {this.jwd = jwd;}
public Integer getMdId() {return mdId;}
public void setMdId(Integer mdId) {this.mdId = mdId;}
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;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

普通管理員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_ptadmin")
public class Ptadmin {
//主鍵
@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 ptadminName;
//年齡
private String age;
//性別
private String sex;
//電話
private String phone;
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 getPtadminName() {return ptadminName;}
public void setPtadminName(String ptadminName) {this.ptadminName = ptadminName;}
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;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
}

食品連鎖類門店配送車輛管理系統spring springMVC mybatis框架物件(javaBean,pojo)設計:

車輛javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//車輛
public class Car  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//車牌號
private String cp;
//駕駛人
private String jsr;
//聯絡電話
private String lxdh;
//車廂體積
private String cxtj;
//車輛型別
private String clxh;
//備註
private String remark;
public String getCp() {return cp;}
public void setCp(String cp) {this.cp = cp;}
public String getJsr() {return jsr;}
public void setJsr(String jsr) {this.jsr = jsr;}
public String getLxdh() {return lxdh;}
public void setLxdh(String lxdh) {this.lxdh = lxdh;}
public String getCxtj() {return cxtj;}
public void setCxtj(String cxtj) {this.cxtj = cxtj;}
public String getClxh() {return clxh;}
public void setClxh(String clxh) {this.clxh = clxh;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

門店javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//門店
public class Md  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//門店名稱
private String mdmc;
//門店地址
private String mddz;
//經緯度
private String jwd;
//聯絡人
private String lxr;
//聯絡電話
private String lxdh;
//備註
private String remark;
public String getMdmc() {return mdmc;}
public void setMdmc(String mdmc) {this.mdmc = mdmc;}
public String getMddz() {return mddz;}
public void setMddz(String mddz) {this.mddz = mddz;}
public String getJwd() {return jwd;}
public void setJwd(String jwd) {this.jwd = jwd;}
public String getLxr() {return lxr;}
public void setLxr(String lxr) {this.lxr = lxr;}
public String getLxdh() {return lxdh;}
public void setLxdh(String lxdh) {this.lxdh = lxdh;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

配送資訊javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//配送資訊
public class Psxx  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//配送車輛
private Integer carId;
//起送點(經緯度)
private String jwd;
//門店
private Integer mdId;
//批次號
private String v1;
//食品體積
private String v2;
//食品類別
private String v3;
//備註
private String remark;
public Integer getCarId() {return carId;}
public void setCarId(Integer carId) {this.carId = carId;}
public String getJwd() {return jwd;}
public void setJwd(String jwd) {this.jwd = jwd;}
public Integer getMdId() {return mdId;}
public void setMdId(Integer mdId) {this.mdId = mdId;}
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;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

普通管理員javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//普通管理員
public class Ptadmin  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 ptadminName;
//年齡
private String age;
//性別
private String sex;
//電話
private String phone;
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 getPtadminName() {return ptadminName;}
public void setPtadminName(String ptadminName) {this.ptadminName = ptadminName;}
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;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
}

相關文章