Authored by caoyan

爬虫平均价

@@ -287,7 +287,7 @@ public class ChannelSkuCompareServiceImpl implements IChannelSkuCompareService, @@ -287,7 +287,7 @@ public class ChannelSkuCompareServiceImpl implements IChannelSkuCompareService,
287 bo.setUfoCurrentPrice(getFormatPrice(storageMinPriceMap.get(csc.getSku()))); 287 bo.setUfoCurrentPrice(getFormatPrice(storageMinPriceMap.get(csc.getSku())));
288 BigDecimal ufoMinPrice = null == productMap.get(csc.getProductId()) ? null : productMap.get(csc.getProductId()).getMinPrice(); 288 BigDecimal ufoMinPrice = null == productMap.get(csc.getProductId()) ? null : productMap.get(csc.getProductId()).getMinPrice();
289 bo.setUfoMinPrice(getFormatPrice(ufoMinPrice)); 289 bo.setUfoMinPrice(getFormatPrice(ufoMinPrice));
290 - bo.setChannelAveragePrice(null == csc.getChannelAveragePrice() ? "" : getIntFormatPrice(csc.getChannelAveragePrice())); 290 + bo.setChannelAveragePrice(null == csc.getChannelAveragePrice() ? "" : getIntFormatPrice(csc.getChannelAveragePrice().multiply(BigDecimal.valueOf(0.95))));
291 //毒当前价低于UFO价格红线则为异常,那么显示上回的建议价 291 //毒当前价低于UFO价格红线则为异常,那么显示上回的建议价
292 BigDecimal suggestLowPrice = null == storageMap.get(csc.getSku()) ? null : storageMap.get(csc.getSku()).getSuggestLowPrice(); 292 BigDecimal suggestLowPrice = null == storageMap.get(csc.getSku()) ? null : storageMap.get(csc.getSku()).getSuggestLowPrice();
293 BigDecimal suggestHighPrice = null == storageMap.get(csc.getSku()) ? null : storageMap.get(csc.getSku()).getSuggestHighPrice(); 293 BigDecimal suggestHighPrice = null == storageMap.get(csc.getSku()) ? null : storageMap.get(csc.getSku()).getSuggestHighPrice();