getstoresskus查询趋势
This commit is contained in:
@@ -265,7 +265,9 @@ type StoreSkuExt struct {
|
||||
EarningPrice int `json:"earningPrice"`
|
||||
EarningActID int `orm:"column(earning_act_id)" json:"earningActID"`
|
||||
|
||||
EclpID string `orm:"column(eclp_id)" json:"eclpID"`
|
||||
EclpID string `orm:"column(eclp_id)" json:"eclpID"`
|
||||
TrendType int `json:"trendType"`
|
||||
TrendPrice int `json:"trendPrice"`
|
||||
}
|
||||
|
||||
type SkuNameAndPlace struct {
|
||||
@@ -1363,6 +1365,8 @@ func UpdateActPrice4StoreSkuNameNew(db *DaoDB, storeIDs, skuIDs []int, skuNamesI
|
||||
v.ActID = actStoreSku.ActID
|
||||
v.ActType = actStoreSku.Type
|
||||
v.EarningPrice = int(jxutils.CaculateSkuEarningPrice(int64(v.BindPrice), int64(v.ActPrice), skuName.PayPercentage))
|
||||
v.TrendType = actStoreSku.TrendType
|
||||
v.TrendPrice = actStoreSku.TrendPrcie
|
||||
}
|
||||
if actStoreSku := actStoreSkuMap4EarningPrice.GetActStoreSku(skuName.StoreID, v.SkuID, -1); actStoreSku != nil {
|
||||
v.EarningPrice = int(actStoreSku.EarningPrice)
|
||||
|
||||
Reference in New Issue
Block a user