- 京东售后单第一版
This commit is contained in:
@@ -216,11 +216,12 @@ const (
|
||||
OrderStatusEndBegin = 100 // 以下的状态就是结束状态
|
||||
OrderStatusFinished = 110 // 订单已完成
|
||||
OrderStatusCanceled = 115 // 订单已取消
|
||||
OrderStatusEndEnd = 120
|
||||
|
||||
AfsOrderStatusWait4Approve = 150 // 待审核售后单
|
||||
AfsOrderStatusNew = 155 // 已审核售后单,或不需要审核的新售后单
|
||||
AfsOrderStatusWait4ReceiveGoods = 160 // 退款退货的,需要商家确认收到货
|
||||
AfsOrderStatusReceivedGoods = 162 // 已确认收到货
|
||||
AfsOrderStatusWait4Approve = 155 // 待审核售后单
|
||||
AfsOrderStatusNew = 160 // 已审核或不需要审核售后单
|
||||
AfsOrderStatusWait4ReceiveGoods = 165 // 退款退货的,需要商家确认收到货
|
||||
AfsOrderStatusReceivedGoods = 167 // 已确认收到货
|
||||
AfsOrderStatusFinished = 180 // 售后单成功完成
|
||||
AfsOrderStatusFailed = 190 // 售后单失败
|
||||
)
|
||||
@@ -345,7 +346,7 @@ func IsOrderMainStatus(status int) bool {
|
||||
}
|
||||
|
||||
func IsOrderFinalStatus(status int) bool {
|
||||
return status >= OrderStatusEndBegin
|
||||
return status >= OrderStatusEndBegin && status <= OrderStatusEndEnd
|
||||
}
|
||||
|
||||
func IsOrderImportantStatus(status int) bool {
|
||||
@@ -360,3 +361,7 @@ func WaybillVendorID2Mask(vendorID int) (mask int8) {
|
||||
}
|
||||
return mask
|
||||
}
|
||||
|
||||
func IsAfsOrderFinalStatus(status int) bool {
|
||||
return status >= AfsOrderStatusFinished && status <= AfsOrderStatusFailed
|
||||
}
|
||||
|
||||
@@ -74,20 +74,22 @@ type AfsOrder struct {
|
||||
VendorOrderID string `orm:"column(vendor_order_id);size(48)" json:"vendorOrderID"` // 关联原始订单ID
|
||||
VendorOrderID2 string `orm:"column(vendor_order_id2);size(48);index" json:"vendorOrderID2"` // 关联原始订单ID2,饿百独有
|
||||
AfsOrderID string `orm:"column(afs_order_id);size(48)" json:"afsOrderID"` // 售后订单ID
|
||||
AfsCreateAt time.Time `orm:"type(datetime);index" json:"afsCreateAt"` // 订单生成时间
|
||||
AfsCreateAt time.Time `orm:"type(datetime);index" json:"afsCreateAt"` // 售后单生成时间
|
||||
AfsFinishedAt time.Time `orm:"type(datetime);index" json:"afsFinishedAt"` // 售后单结束时间
|
||||
VendorStoreID string `orm:"column(vendor_store_id);size(48)" json:"vendorStoreID"` // 外部系统里记录的storeid
|
||||
StoreID int `orm:"column(store_id)" json:"storeID"` // 接口返回的京西门店ID
|
||||
JxStoreID int `orm:"column(jx_store_id)" json:"jxStoreID"` // 根据VendorStoreID在本地系统里查询出来的 jxstoreid
|
||||
|
||||
// Status int `json:"status"`
|
||||
// VendorStatus string `orm:"size(255)" json:"vendorStatus"`
|
||||
// ReasonType int8 `json:"reasonType"` // 售后原因
|
||||
// VendorReasonType string `orm:"size(255)" json:"vendorReasonType"`
|
||||
// ReasonDesc string `orm:"size(1024)" json:"reasonDesc"` // 售后原因描述
|
||||
// ReasonImgList string `orm:"size(1024)" json:"reasonImgList"` // 售后描述图片
|
||||
// AppealType int8 `json:"appealType"` // 售后方式
|
||||
// VendorAppealType string `orm:"size(255)" json:"vendorAppealType"`
|
||||
// Flag int `json:"flag"`
|
||||
// IsNeedApprove int8 `json:"isNeedApprove"` // 售后单是否需要商家审核
|
||||
Status int `json:"status"`
|
||||
VendorStatus string `orm:"size(255)" json:"vendorStatus"`
|
||||
ReasonType int8 `json:"reasonType"` // 售后原因
|
||||
VendorReasonType string `orm:"size(255)" json:"vendorReasonType"`
|
||||
ReasonDesc string `orm:"size(1024)" json:"reasonDesc"` // 售后原因描述
|
||||
ReasonImgList string `orm:"size(1024)" json:"reasonImgList"` // 售后描述图片
|
||||
AppealType int8 `json:"appealType"` // 售后方式
|
||||
VendorAppealType string `orm:"size(255)" json:"vendorAppealType"`
|
||||
Flag int `json:"flag"`
|
||||
|
||||
SkuUserMoney int64 `json:"skuUserMoney"` // 用户支付菜品金额
|
||||
FreightUserMoney int64 `json:"freightUserMoney"` // 用户支付运费金额
|
||||
@@ -153,6 +155,7 @@ type OrderSkuFinancial struct {
|
||||
func (o *OrderSkuFinancial) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"VendorOrderID", "VendorSkuID"},
|
||||
[]string{"AfsOrderID", "VendorSkuID"},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user