高于中位价1.2倍才刷新

This commit is contained in:
苏尹岚
2020-05-08 11:39:28 +08:00
parent e3486ce467
commit 17871d8e03

View File

@@ -2554,7 +2554,8 @@ func RefershStoreSkusMidPrice(ctx *jxcontext.Context, storeIDs []int, isCountry
return err
}
if len(priceReferList) > 0 {
if storeSku.UnitPrice > priceReferList[0].MidUnitPrice/payPercentage*100 {
//TODO 高于中位价20%才刷, 2020-05-08
if storeSku.UnitPrice > priceReferList[0].MidUnitPrice/payPercentage*120 {
skuBindInfo := &StoreSkuBindInfo{
NameID: priceReferList[0].NameID,
UnitPrice: priceReferList[0].MidUnitPrice / payPercentage * 100,