This commit is contained in:
gazebo
2019-12-04 18:38:19 +08:00
parent c2787d64b7
commit 358e6723f3

View File

@@ -960,8 +960,7 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs
} }
scaleFactor := float64(1) scaleFactor := float64(1)
if isScale { if isScale {
scaleFactor = float64(jxutils.ConstrainPayPercentage(storeDetail.PayPercentage) / 100) scaleFactor = float64(jxutils.ConstrainPayPercentage(storeDetail.PayPercentage)) / 100
globals.SugarLogger.Debugf("updateStoresSkusWithoutSync scaleFactor:%f", scaleFactor)
} }
for _, skuBindInfo := range skuBindInfos { for _, skuBindInfo := range skuBindInfos {
// 关注且没有给价时需要尝试从store_sku_bind中得到已有的单价 // 关注且没有给价时需要尝试从store_sku_bind中得到已有的单价