1
This commit is contained in:
@@ -868,7 +868,7 @@ func updateSingleOrderEarningPrice(order *model.GoodsOrder, db *dao.DaoDB) {
|
||||
if actStoreSku := actStoreSkuMap.GetActStoreSku(jxStoreID, skuID, order.VendorID); actStoreSku != nil {
|
||||
v.EarningPrice = actStoreSku.EarningPrice
|
||||
if true { //v.StoreSubName != "" { // 之前这里为什么要加判断?
|
||||
v.StoreSubID = actStoreSku.ActID
|
||||
v.StoreSubID = int64(actStoreSku.ActID)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ func QueryOrders(db *DaoDB, vendorOrderID string, actID int, vendorIDs []int, st
|
||||
ID: v.OrderSkuID,
|
||||
VendorOrderID: v.VendorOrderID,
|
||||
VendorID: v.VendorID,
|
||||
StoreSubID: v.StoreSubID,
|
||||
StoreSubID: int64(v.StoreSubID),
|
||||
StoreSubName: v.StoreSubName,
|
||||
Count: v.Count,
|
||||
VendorSkuID: v.VendorSkuID,
|
||||
|
||||
@@ -196,7 +196,7 @@ type OrderSku struct {
|
||||
VendorOrderID string `orm:"column(vendor_order_id);size(48)" json:"vendorOrderID"`
|
||||
VendorSubOrderID string `orm:"column(vendor_sub_order_id);size(48)" json:"vendorSubOrderID"` // 子订单id
|
||||
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
|
||||
StoreSubID int `orm:"column(store_sub_id)" json:"storeSubID"` // EarningActID,当前这个字段被当成结算活动ID用
|
||||
StoreSubID int64 `orm:"column(store_sub_id)" json:"storeSubID"` // EarningActID,当前这个字段被当成结算活动ID用
|
||||
StoreSubName string `orm:"size(64)" json:"storeSubName"` // 当前这个字段被用作vendorActType
|
||||
Count int `json:"count"`
|
||||
VendorSkuID string `orm:"column(vendor_sku_id);size(48)" json:"vendorSkuID"`
|
||||
|
||||
@@ -148,7 +148,7 @@ func (p *PurchaseHandler) getOrder(vendorOrgCode string, vendorOrderID int64, ve
|
||||
}
|
||||
|
||||
if len(activityId) > 0 {
|
||||
sku.StoreSubID = int(activityId[0])
|
||||
sku.StoreSubID = activityId[0]
|
||||
sku.StoreSubName = strings.Join(activityName, ",")
|
||||
}
|
||||
if sku.Weight == 0 {
|
||||
|
||||
@@ -162,7 +162,7 @@ func (p *PurchaseHandler) getOrder(vendorOrgCode, vendorOrderID, vendorStoreID s
|
||||
activityName = append(activityName, utils.Int64ToStr(v.CampaignId)+":"+v.CampaignName)
|
||||
}
|
||||
if len(activityId) > 0 {
|
||||
sku.StoreSubID = int(activityId[0])
|
||||
sku.StoreSubID = activityId[0]
|
||||
sku.StoreSubName = strings.Join(activityName, ",")
|
||||
}
|
||||
if sku.Weight == 0 {
|
||||
|
||||
Reference in New Issue
Block a user