1
This commit is contained in:
@@ -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) {
|
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 { // 避免重新计算
|
if inSku.VendorPrice <= 0 { // 避免重新计算
|
||||||
inSku.VendorPrice = int64(jxutils.CaculatePriceByPricePack(pricePercentagePack, pricePercentage, int(inSku.Price)))
|
inSku.VendorPrice = int64(jxutils.CaculatePriceByPricePack(pricePercentagePack, pricePercentage, int(inSku.Price)))
|
||||||
if inSku.VendorPrice <= 0 {
|
if inSku.VendorPrice <= 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user