getstoresskus查询趋势

This commit is contained in:
苏尹岚
2020-08-12 15:40:23 +08:00
parent 96a407d218
commit 770de8f26d
2 changed files with 25 additions and 19 deletions

View File

@@ -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)