- first version of order schedule.
This commit is contained in:
@@ -29,7 +29,7 @@ type GoodsOrder struct {
|
||||
SkuCount int // 商品类别数量,即有多少种商品(注意在某些情况下,相同SKU的商品由于售价不同,也会当成不同商品在这个值里)
|
||||
GoodsCount int // 商品个数
|
||||
Status int // 参见OrderStatus*相关的常量定义
|
||||
VendorStatus string `orm:"size(16)"`
|
||||
VendorStatus string `orm:"size(255)"`
|
||||
LockStatus int
|
||||
OrderSeq int // 门店订单序号
|
||||
BuyerComment string `orm:"size(255)"`
|
||||
@@ -42,6 +42,7 @@ type GoodsOrder struct {
|
||||
ModelTimeInfo
|
||||
OriginalData string `orm:"type(text)"`
|
||||
Skus []*OrderSku `orm:"-"`
|
||||
StatusTime time.Time `orm:"-"` // 用于传递数据,不实际存储
|
||||
}
|
||||
|
||||
func (o *GoodsOrder) TableUnique() [][]string {
|
||||
@@ -85,7 +86,7 @@ type Waybill struct {
|
||||
CourierName string `orm:"size(32)"`
|
||||
CourierMobile string `orm:"size(32)"`
|
||||
Status int // 参见WaybillStatus*相关的常量定义
|
||||
VendorStatus string `orm:"size(16)"`
|
||||
VendorStatus string `orm:"size(255)"`
|
||||
ActualFee int64 // 实际要支付给快递公司的实际费用
|
||||
DesiredFee int64 // 根据合同计算出来的预期费用
|
||||
DuplicatedCount int // 重复新订单消息数,这个一般不是由于消息重发造成的(消息重发由OrderStatus过滤),一般是业务逻辑造成的
|
||||
@@ -116,7 +117,7 @@ type OrderStatus struct {
|
||||
RefVendorOrderID string `orm:"column(ref_vendor_order_id);size(48)"`
|
||||
RefVendorID int `orm:"column(ref_vendor_id)"`
|
||||
Status int // 如果Status为OrderStatusEvent,表示VendorStatus只是一个通知事件,不是状态变化
|
||||
VendorStatus string `orm:"size(16)"`
|
||||
VendorStatus string `orm:"size(255)"`
|
||||
StatusTime time.Time `orm:"type(datetime);index"`
|
||||
DuplicatedCount int // 收到的重复状态转换(或消息)数,一般是由于重发造成的
|
||||
ModelTimeInfo
|
||||
|
||||
Reference in New Issue
Block a user