This commit is contained in:
邹宗楠
2022-12-15 14:12:01 +08:00
parent be956f084a
commit 4f55e66ca4

View File

@@ -281,6 +281,9 @@ func storeSkuSyncInfo2Bare(inSku *dao.StoreSkuSyncInfo) (outSku *partner.StoreSk
}
func calVendorPrice4StoreSku(inSku *dao.StoreSkuSyncInfo, pricePercentagePack model.PricePercentagePack, pricePercentage int) (outSku *dao.StoreSkuSyncInfo) {
globals.SugarLogger.Debugf("=======calVendorPrice4StoreSku==inSku== %s", utils.Format4Output(inSku, false))
globals.SugarLogger.Debugf("=======calVendorPrice4StoreSku==pricePercentagePack== %s", utils.Format4Output(pricePercentagePack, false))
globals.SugarLogger.Debugf("=======calVendorPrice4StoreSku==VendorPrice== %d", inSku.VendorPrice)
if inSku.VendorPrice <= 0 { // 避免重新计算
inSku.VendorPrice = int64(jxutils.CaculatePriceByPricePack(pricePercentagePack, pricePercentage, int(inSku.Price)))
if inSku.VendorPrice <= 0 {