食品连锁类门店配送车辆管理系统

食品连锁类门店配送车辆管理系统登录注册界面

食品连锁类门店配送车辆管理系统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;}
}

源代码下载点这里

评论