Authored by caoyan

爬虫平均价

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