基于SSM物流管理系统
Posted qq_1262330535
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基于SSM物流管理系统相关的知识,希望对你有一定的参考价值。
介绍:
spring+springmvc+mybatis+mysql+eclipse。
截图:
数据库表:
CREATE TABLE centeraddress
(
cid
int(11) NOT NULL AUTO_INCREMENT COMMENT ‘中间id’,
centerAddress
varchar(255) DEFAULT NULL COMMENT ‘中间站点名’,
distance
double DEFAULT NULL COMMENT ‘距离’,
cTime
varchar(255) DEFAULT NULL COMMENT ‘距离下一站时间’,
rid
int(11) DEFAULT NULL COMMENT ‘总路线id’,
PRIMARY KEY (cid
),
KEY FK_centeraddress
(centerAddress
),
KEY FK_centeraddress5
(rid
),
CONSTRAINT FK_centeraddress
FOREIGN KEY (centerAddress
) REFERENCES site
(sname
),
CONSTRAINT FK_centeraddress5
FOREIGN KEY (rid
) REFERENCES route
(rid
)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
/*Data for the table centeraddress
*/
insert into centeraddress
(cid
,centerAddress
,distance
,cTime
,rid
) values (11,‘天津’,30,‘30’,9),(12,‘上海’,30,‘30’,9),(13,‘郑州’,300,‘50’,10),(14,‘西安’,300,‘65’,10),(16,‘咸阳’,30,‘20’,16),(17,‘宝鸡’,20,‘30’,16),(18,‘上海’,50,‘60’,17),(19,‘广州’,30,‘99’,17);
/*Table structure for table freightrule
*/
DROP TABLE IF EXISTS freightrule
;
CREATE TABLE freightrule
(
innerFkg
double DEFAULT NULL COMMENT ‘省内首重’,
innerNkg
double DEFAULT NULL COMMENT ‘省内续重’,
outerFkg
double DEFAULT NULL COMMENT ‘省外首重’,
outerNkg
double DEFAULT NULL COMMENT ‘省外续重’,
fid
int(11) NOT NULL DEFAULT ‘1’ COMMENT ‘运费规则id’,
PRIMARY KEY (fid
)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table freightrule
*/
insert into freightrule
(innerFkg
,innerNkg
,outerFkg
,outerNkg
,fid
) values (8,1,20,10,1);
/*Table structure for table orders
*/
DROP TABLE IF EXISTS orders
;
CREATE TABLE orders
(
oid
int(22) NOT NULL AUTO_INCREMENT COMMENT ‘订单号’,
cunm
varchar(255) DEFAULT NULL COMMENT ‘客户名’,
cuphone
varchar(11) DEFAULT NULL COMMENT ‘客户电话’,
initsite
varchar(255) DEFAULT NULL COMMENT ‘发货站点’,
destination
varchar(255) DEFAULT NULL COMMENT ‘收货站点’,
phone
varchar(11) DEFAULT NULL COMMENT ‘收货电话’,
detailedAddress
varchar(255) DEFAULT NULL COMMENT ‘收货详细地址’,
kg
double DEFAULT NULL COMMENT ‘重量’,
cargoL
double DEFAULT NULL COMMENT ‘长’,
cargoW
double DEFAULT NULL COMMENT ‘宽’,
cargoH
double DEFAULT NULL COMMENT ‘高’,
otime
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT ‘订单录入时间’,
comment
varchar(255) DEFAULT NULL COMMENT ‘备注’,
ostatus
int(11) DEFAULT ‘1’ COMMENT ‘订单状态’,
wid
int(11) DEFAULT NULL COMMENT ‘运单id’,
PRIMARY KEY (oid
),
KEY FK_order
(initsite
),
KEY FK_ss
(destination
),
KEY FK_orders
(wid
),
CONSTRAINT FK_order
FOREIGN KEY (initsite
) REFERENCES site
(sname
),
CONSTRAINT FK_orders
FOREIGN KEY (wid
) REFERENCES waybill
(wid
),
CONSTRAINT FK_ss
FOREIGN KEY (destination
) REFERENCES site
(sname
)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8;
以上是关于基于SSM物流管理系统的主要内容,如果未能解决你的问题,请参考以下文章