中位价低于5块的不刷
This commit is contained in:
@@ -2555,12 +2555,14 @@ func RefershStoreSkusMidPrice(ctx *jxcontext.Context, storeIDs []int, isCountry
|
||||
}
|
||||
if len(priceReferList) > 0 {
|
||||
//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,
|
||||
if priceReferList[0].MidUnitPrice >= 500 {
|
||||
if storeSku.UnitPrice > priceReferList[0].MidUnitPrice/payPercentage*120 {
|
||||
skuBindInfo := &StoreSkuBindInfo{
|
||||
NameID: priceReferList[0].NameID,
|
||||
UnitPrice: priceReferList[0].MidUnitPrice / payPercentage * 100,
|
||||
}
|
||||
skuBindInfos = append(skuBindInfos, skuBindInfo)
|
||||
}
|
||||
skuBindInfos = append(skuBindInfos, skuBindInfo)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user