This commit is contained in:
suyl
2021-08-13 17:18:14 +08:00
parent adec1bf126
commit 70ac32e833

View File

@@ -1470,10 +1470,15 @@ func UpdateActPrice4StoreSkuNameNew(db *DaoDB, storeIDs, skuIDs []int, skuNamesI
} }
if (actVendorID == -1 || actVendorID == model.VendorIDMTWM) && v.ActPrice == 0 { if (actVendorID == -1 || actVendorID == model.VendorIDMTWM) && v.ActPrice == 0 {
mtact := mtactMap[skuName.StoreID][v.SkuID] if mtactMap != nil {
v.ActPrice = int(jxutils.StandardPrice2Int(mtact.ActPrice)) mtact := mtactMap[skuName.StoreID][v.SkuID]
v.ActType = mtact.ActType if mtact != nil {
v.ActID = int(utils.Str2Int64(mtact.ItemID) % 1000) v.ActPrice = int(jxutils.StandardPrice2Int(mtact.ActPrice))
v.ActType = mtact.ActType
v.ActID = int(utils.Str2Int64(mtact.ItemID) % 1000)
v.EarningPrice = int(jxutils.StandardPrice2Int(mtact.OriginPrice))
}
}
} }
if globals.IsStoreSkuAct { if globals.IsStoreSkuAct {