- big refactor for scheduler.

This commit is contained in:
gazebo
2018-07-25 20:43:41 +08:00
parent f3df85c8e0
commit c0770e9ab5
16 changed files with 515 additions and 321 deletions

View File

@@ -30,6 +30,28 @@ var (
VendorIDDada: "达达众包",
VendorIDMTPS: "美团配送",
}
OrderStatusName = map[int]string{
OrderStatusNew: "OrderStatusNew",
OrderStatusAdjust: "OrderStatusAdjust",
OrderStatusAccepted: "OrderStatusAccepted",
OrderStatusFinishedPickup: "OrderStatusFinishedPickup",
OrderStatusDelivering: "OrderStatusDelivering",
OrderStatusDelivered: "OrderStatusDelivered",
OrderStatusFinished: "OrderStatusFinished",
OrderStatusCanceled: "OrderStatusCanceled",
OrderStatusFailed: "OrderStatusFailed",
}
WaybillStatusName = map[int]string{
WaybillStatusNew: "WaybillStatusNew",
WaybillStatusAcceptCanceled: "WaybillStatusAcceptCanceled",
WaybillStatusAccepted: "WaybillStatusAccepted",
WaybillStatusCourierArrived: "WaybillStatusCourierArrived",
WaybillStatusDelivering: "WaybillStatusDelivering",
WaybillStatusDelivered: "WaybillStatusDelivered",
WaybillStatusCanceled: "WaybillStatusCanceled",
WaybillStatusFailed: "WaybillStatusFailed",
}
)
const (
@@ -93,3 +115,8 @@ const (
WaybillStatusCanceled = 115
WaybillStatusFailed = 120
)
const (
BusinessTypeImmediate = 1
BusinessTypeDingshida = 2
)