最低价显示

This commit is contained in:
苏尹岚
2020-08-21 10:10:09 +08:00
parent 5f06161241
commit 9c0e0e71a2
4 changed files with 14 additions and 6 deletions

View File

@@ -260,9 +260,12 @@ type StoreSkuExt struct {
JxLockTime *time.Time `orm:"null" json:"jxLockTime,omitempty"`
YbLockTime *time.Time `orm:"null" json:"ybLockTime,omitempty"`
ActPrice int `json:"actPrice"`
ActID int `orm:"column(act_id)" json:"actID"`
ActType int `orm:"column(act_type)" json:"actType"`
ActPrice int `json:"actPrice"`
ActID int `orm:"column(act_id)" json:"actID"`
ActType int `orm:"column(act_type)" json:"actType"`
DiscountType int `json:"discountType"`
DiscountValue1 int `json:"discountValue1"`
DiscountValue2 int `json:"discountValue2"`
EarningPrice int `json:"earningPrice"`
EarningActID int `orm:"column(earning_act_id)" json:"earningActID"`
@@ -1370,6 +1373,9 @@ func UpdateActPrice4StoreSkuNameNew(db *DaoDB, storeIDs, skuIDs []int, skuNamesI
v.EarningPrice = int(jxutils.CaculateSkuEarningPrice(int64(v.BindPrice), int64(v.ActPrice), skuName.PayPercentage))
v.TrendType = actStoreSku.TrendType
v.TrendPrice = actStoreSku.TrendPrice
v.DiscountType = actStoreSku.DiscountType
v.DiscountValue1 = actStoreSku.DiscountValue1
v.DiscountValue2 = actStoreSku.DiscountValue2
}
if actStoreSku := actStoreSkuMap4EarningPrice.GetActStoreSku(skuName.StoreID, v.SkuID, -1); actStoreSku != nil {
v.EarningPrice = int(actStoreSku.EarningPrice)