- empty scheduler added.
This commit is contained in:
64
business/model/const.go
Normal file
64
business/model/const.go
Normal file
@@ -0,0 +1,64 @@
|
||||
package model
|
||||
|
||||
const (
|
||||
VenderIDUnknown = -1
|
||||
VendorIDPurchaseBegin = 0
|
||||
VendorIDJD = 0
|
||||
VendorIDMTWM = 1
|
||||
VendorIDELM = 2
|
||||
VendorIDPurchaseEnd = 2
|
||||
|
||||
VendorIDDeliveryBegin = 101
|
||||
VendorIDDada = 101
|
||||
VendorIDMTPS = 102
|
||||
VendorIDDeliveryEnd = 102
|
||||
)
|
||||
|
||||
const (
|
||||
OrderTypeOrder = 1
|
||||
OrderTypeWaybill = 2
|
||||
)
|
||||
|
||||
const (
|
||||
CoordinateTypeMars = 0 // 火星坐标
|
||||
CoordinateTypeReal = 1 // 真实坐标
|
||||
)
|
||||
|
||||
const (
|
||||
OrderStatusApplyUrgeOrder = -15
|
||||
OrderStatusApplyRefund = -10
|
||||
OrderStatusApplyCancel = -5
|
||||
|
||||
OrderStatusUnknown = 0
|
||||
|
||||
OrderStatusNew = 5 // 新定单
|
||||
OrderStatusAdjust = 8 // 定单调整
|
||||
OrderStatusAccepted = 10 // 已经接单,也即待出库,待拣货
|
||||
OrderStatusFinishedPickup = 15 // 拣货完成
|
||||
OrderStatusDelivering = 20 // 开始配送,配送员已取货,从这里开始就是运单消息了
|
||||
|
||||
OrderStatusEndBegin = 100 // 以上的状态就是结束状态
|
||||
OrderStatusDelivered = 105 // 妥投
|
||||
OrderStatusFinished = 110 // 定单已完成
|
||||
OrderStatusCanceled = 115 // 定单已取消
|
||||
OrderStatusFailed = 120 // 定单已失败
|
||||
)
|
||||
|
||||
const (
|
||||
LockStatusUnlocked = 0
|
||||
LockStatusLocked = 1
|
||||
)
|
||||
|
||||
const (
|
||||
WaybillStatusUnknown = 0
|
||||
|
||||
WaybillStatusNew = 5
|
||||
WaybillStatusAcceptCanceled = 8
|
||||
WaybillStatusAccepted = 10
|
||||
WaybillStatusCourierArrived = 15 // 此状态是可选的,明确写出来是因为还是较重要的状态,但业务逻辑不应依赖此状态
|
||||
WaybillStatusDelivering = 20
|
||||
|
||||
WaybillStatusDelivered = 105
|
||||
WaybillStatusCanceled = 115
|
||||
WaybillStatusFailed = 120
|
||||
)
|
||||
Reference in New Issue
Block a user