守价订单表
This commit is contained in:
@@ -381,6 +381,25 @@ func (v *OrderSupplementFee) TableIndex() [][]string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PriceDefendOrder struct {
|
||||||
|
ModelIDCULD
|
||||||
|
|
||||||
|
VendorOrderID string `orm:"column(vendor_order_id);size(48)" json:"vendorOrderID"`
|
||||||
|
StoreID int `orm:"column(store_id)" json:"storeID"`
|
||||||
|
SkuID int `orm:"column(sku_id)" json:"skuID"`
|
||||||
|
AddressID int `orm:"column(address_id)" json:"addressID"`
|
||||||
|
Count int `json:"count"`
|
||||||
|
DefendPrice int64 `json:"defendPrice"`
|
||||||
|
ActualPayPrice int64 `json:"actualPayPrice"` // 单位为分 顾客实际支付
|
||||||
|
IsBuyNowPrice int `json:"isBuyNowPrice"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v *PriceDefendOrder) TableIndex() [][]string {
|
||||||
|
return [][]string{
|
||||||
|
[]string{"StoreID", "VendorOrderID", "SkuID"},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 判断是否是购买平台自有物流
|
// 判断是否是购买平台自有物流
|
||||||
// 对于京东,饿百来说,就是其自有的物流,对于微商城来说,是达达
|
// 对于京东,饿百来说,就是其自有的物流,对于微商城来说,是达达
|
||||||
func IsWaybillPlatformOwn(bill *Waybill) bool {
|
func IsWaybillPlatformOwn(bill *Waybill) bool {
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ func Init() {
|
|||||||
|
|
||||||
// 如下语句建表时要出错(INDEX名字太长了),暂时放一下,必须放最后一句
|
// 如下语句建表时要出错(INDEX名字太长了),暂时放一下,必须放最后一句
|
||||||
orm.RegisterModel(&model.OrderFinancial{}, &model.AfsOrder{}, &model.OrderDiscountFinancial{}, &model.OrderSkuFinancial{})
|
orm.RegisterModel(&model.OrderFinancial{}, &model.AfsOrder{}, &model.OrderDiscountFinancial{}, &model.OrderSkuFinancial{})
|
||||||
|
orm.RegisterModel(&model.PriceDefendOrder{})
|
||||||
orm.RegisterModel(&model.Act{}, &model.ActOrderRule{}, &model.ActStoreSku{})
|
orm.RegisterModel(&model.Act{}, &model.ActOrderRule{}, &model.ActStoreSku{})
|
||||||
orm.RegisterModel(&model.ActMap{}, &model.ActStoreSkuMap{})
|
orm.RegisterModel(&model.ActMap{}, &model.ActStoreSkuMap{})
|
||||||
if globals.IsStoreSkuAct {
|
if globals.IsStoreSkuAct {
|
||||||
|
|||||||
Reference in New Issue
Block a user