果园可以批量

This commit is contained in:
苏尹岚
2020-10-29 10:45:50 +08:00
parent ebdead42cb
commit 791a41cb83

View File

@@ -1079,11 +1079,13 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs
if err != nil || storeDetail == nil { if err != nil || storeDetail == nil {
continue continue
} }
if beego.BConfig.RunMode == "prod" {
if len(storeIDs) > 1 { if len(storeIDs) > 1 {
if storeDetail.StoreLevel == "D" || storeDetail.StoreLevel == "E" { if storeDetail.StoreLevel == "D" || storeDetail.StoreLevel == "E" {
continue continue
} }
} }
}
scaleFactor := float64(1) scaleFactor := float64(1)
if isScale { if isScale {
scaleFactor = 100 / float64(jxutils.ConstrainPayPercentage(storeDetail.PayPercentage)) scaleFactor = 100 / float64(jxutils.ConstrainPayPercentage(storeDetail.PayPercentage))