|
|
@@ -51,6 +51,7 @@ CREATE TABLE `xhHdDeliveryOrder` (
|
|
|
`distance` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '距离,单位:米',
|
|
|
`fee` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '配送费用,单位:分',
|
|
|
`tip` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '小费,单位:分',
|
|
|
+ `cancelCost` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '取消扣费,单位:分',
|
|
|
`orderStatus` tinyint(2) NOT NULL DEFAULT '0' COMMENT '配送状态: 0订单生成 1系统已接单 2派单中 3待取货 4配送中 5已送达, -1已取消 -2异常, 10改派中 20已分配骑手 30骑手已到店 40申请取消中 50客服介入处理中',
|
|
|
PRIMARY KEY (`id`),
|
|
|
KEY `unix_mh` (`mainId`, `hdOrderId`),
|
|
|
@@ -75,4 +76,25 @@ xhGhsOrder 下的相关字段:
|
|
|
`sendTimeWant` date NOT NULL DEFAULT '0000-00-00' COMMENT '客户要求的发货时间',
|
|
|
`sendTip` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '运费里增加的小费',
|
|
|
|
|
|
+```
|
|
|
+
|
|
|
+
|
|
|
+### 需求强相关的表字段
|
|
|
+```
|
|
|
+#表 xhShopExt
|
|
|
+`hcFreeKm` smallint(6) NOT NULL DEFAULT '0' COMMENT '花材多少公里内免费配送',
|
|
|
+`hcMap` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '花材免费配送的阶梯',
|
|
|
+
|
|
|
+#表 xhShopExt
|
|
|
+`thirdSend` tinyint(4) NOT NULL DEFAULT '0' COMMENT '商城端下单选跑腿 0支持 1不支持',
|
|
|
+`thirdSendFee` tinyint(4) NOT NULL DEFAULT '0' COMMENT '商城端下单选跑腿,跑腿费用 0到付 1自动计算',
|
|
|
+
|
|
|
+
|
|
|
+```
|
|
|
+
|
|
|
+### 查询好用的 sql
|
|
|
+```
|
|
|
+select id, orderSn, status, sendStatus, deliveryId from xhGhsOrder where id=5085;
|
|
|
+
|
|
|
+
|
|
|
```
|