拼错了

This commit is contained in:
苏尹岚
2020-08-18 17:11:22 +08:00
parent baf83d0ad0
commit 7e59970977
3 changed files with 8 additions and 8 deletions

View File

@@ -183,7 +183,7 @@ type ActStoreSkuMap struct {
ActualActPrice int64 `json:"actualActPrice"` // 单品级活动用,创建活动时商品的活动价格
EarningPrice int64 `json:"earningPrice"` // 活动商品设置,结算给门店老板的钱
TrendType int `json:"trendType"` //折扣活动使用涨跌趋势1为涨2为跌0为不动
TrendPrcie int `json:"trendPrice"` //涨跌具体多少
TrendPrice int `json:"trendPrice"` //涨跌具体多少
}
func (*ActStoreSkuMap) TableUnique() [][]string {
@@ -229,7 +229,7 @@ type ActStoreSku2 struct {
SpecUnit string `json:"-"`
Comment string `json:"-"`
TrendType int `json:"trendType"` //折扣活动使用涨跌趋势1为涨2为跌0为不动
TrendPrcie int `json:"trendPrice"` //涨跌具体多少
TrendPrice int `json:"trendPrice"` //涨跌具体多少
}
type StoreSkuAct struct {

View File

@@ -1369,7 +1369,7 @@ func UpdateActPrice4StoreSkuNameNew(db *DaoDB, storeIDs, skuIDs []int, skuNamesI
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
v.TrendPrice = actStoreSku.TrendPrice
}
if actStoreSku := actStoreSkuMap4EarningPrice.GetActStoreSku(skuName.StoreID, v.SkuID, -1); actStoreSku != nil {
v.EarningPrice = int(actStoreSku.EarningPrice)