pc充值品牌余额
This commit is contained in:
@@ -14,8 +14,9 @@ const (
|
||||
PayTypeWX = 1 // 微信支付
|
||||
PayTypeTL = 2 // 通联宝支付
|
||||
|
||||
PayTypeTL_DiscountCard = 3 // 通联宝支付(会员折扣卡)
|
||||
PayTypeTL_StoreAcctPay = 4 // 通联宝支付(门店账户充值)
|
||||
PayTypeTL_DiscountCard = 3 // 通联宝支付(会员折扣卡)
|
||||
PayTypeTL_StoreAcctPay = 4 // 通联宝支付(门店账户充值)
|
||||
PayTypeTL_BrandBillCharge = 5 //品牌账户充值(pc扫码支付)
|
||||
|
||||
PayStatusNo = 0
|
||||
PayStatusYes = 1
|
||||
@@ -41,6 +42,7 @@ const (
|
||||
OrderTypeSupplyGoods = 2 //进货订单
|
||||
OrderTypeDefendPrice = 3 //守价订单
|
||||
OrderTypeStoreAcct = 4 //门店账户订单
|
||||
OrderTypeBrand = 5 //品牌账户订单
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -513,6 +515,25 @@ func (v *StoreAcctOrder) TableUnique() [][]string {
|
||||
}
|
||||
}
|
||||
|
||||
type BrandOrder struct {
|
||||
ModelIDCUL
|
||||
|
||||
VendorOrderID string `orm:"column(vendor_order_id);size(48)" json:"vendorOrderID"`
|
||||
BrandID int `orm:"column(vendor_id)" json:"vendorID"`
|
||||
ActualPayPrice int `json:"actualPayPrice"` // 单位为分 顾客实际支付
|
||||
UserID string `orm:"column(user_id);size(48);index" json:"userID"`
|
||||
OrderType int `json:"orderType"`
|
||||
Status int `json:"status"` // 参见OrderStatus*相关的常量定义
|
||||
OrderFinishedAt time.Time `orm:"type(datetime)" json:"orderFinishedAt"`
|
||||
}
|
||||
|
||||
func (v *BrandOrder) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"VendorOrderID", "BrandID"},
|
||||
[]string{"CreatedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
// 判断是否是购买平台自有物流
|
||||
// 对于京东,饿百来说,就是其自有的物流,对于微商城来说,是达达
|
||||
func IsWaybillPlatformOwn(bill *Waybill) bool {
|
||||
|
||||
Reference in New Issue
Block a user