Showing
1 changed file
with
1 additions
and
1 deletions
@@ -270,7 +270,7 @@ public class ChannelSkuCompareServiceImpl implements IChannelSkuCompareService, | @@ -270,7 +270,7 @@ public class ChannelSkuCompareServiceImpl implements IChannelSkuCompareService, | ||
270 | BigDecimal channelHighPrice = csc.getChannelPrice().multiply(BigDecimal.valueOf(1).add(csc.getHighRate())); | 270 | BigDecimal channelHighPrice = csc.getChannelPrice().multiply(BigDecimal.valueOf(1).add(csc.getHighRate())); |
271 | bo.setChannelPriceRange(getFormatPrice(channelLowPrice) + "~" + getFormatPrice(channelHighPrice)); | 271 | bo.setChannelPriceRange(getFormatPrice(channelLowPrice) + "~" + getFormatPrice(channelHighPrice)); |
272 | bo.setUfoCurrentPrice(getFormatPrice(storageMinPriceMap.get(csc.getSku()))); | 272 | bo.setUfoCurrentPrice(getFormatPrice(storageMinPriceMap.get(csc.getSku()))); |
273 | - BigDecimal ufoMinPrice = productMap.get(csc.getProductId()).getMinPrice(); | 273 | + BigDecimal ufoMinPrice = null == productMap.get(csc.getProductId()) ? null : productMap.get(csc.getProductId()).getMinPrice(); |
274 | bo.setUfoMinPrice(getFormatPrice(ufoMinPrice)); | 274 | bo.setUfoMinPrice(getFormatPrice(ufoMinPrice)); |
275 | //毒当前价低于UFO价格红线则为异常,那么显示上回的建议价 | 275 | //毒当前价低于UFO价格红线则为异常,那么显示上回的建议价 |
276 | BigDecimal suggestLowPrice = storageMap.get(csc.getSku()).getSuggestLowPrice(); | 276 | BigDecimal suggestLowPrice = storageMap.get(csc.getSku()).getSuggestLowPrice(); |
-
Please register or login to post a comment