中位价低于5块的不刷

This commit is contained in:
苏尹岚
2020-05-12 11:01:05 +08:00
parent 971cc8afa0
commit 95af9fe84e

View File

@@ -2555,6 +2555,7 @@ func RefershStoreSkusMidPrice(ctx *jxcontext.Context, storeIDs []int, isCountry
} }
if len(priceReferList) > 0 { if len(priceReferList) > 0 {
//TODO 高于中位价20%才刷, 2020-05-08 //TODO 高于中位价20%才刷, 2020-05-08
if priceReferList[0].MidUnitPrice >= 500 {
if storeSku.UnitPrice > priceReferList[0].MidUnitPrice/payPercentage*120 { if storeSku.UnitPrice > priceReferList[0].MidUnitPrice/payPercentage*120 {
skuBindInfo := &StoreSkuBindInfo{ skuBindInfo := &StoreSkuBindInfo{
NameID: priceReferList[0].NameID, NameID: priceReferList[0].NameID,
@@ -2564,6 +2565,7 @@ func RefershStoreSkusMidPrice(ctx *jxcontext.Context, storeIDs []int, isCountry
} }
} }
} }
}
updateStoresSkusWithoutSync(ctx, db, []int{v}, skuBindInfos, false) updateStoresSkusWithoutSync(ctx, db, []int{v}, skuBindInfos, false)
} }
if err == nil { if err == nil {