...
|
...
|
@@ -225,6 +225,12 @@ public class ProductServiceImpl implements ProductService { |
|
|
BigDecimal hkLeastPrice = hkLeastPriceList.stream().min((p1, p2) -> (p1.compareTo(p2))).get();
|
|
|
productInfo.setHkLeastPrice(hkLeastPrice);
|
|
|
}
|
|
|
|
|
|
List<BigDecimal> flashLeastPriceList = goodsSizes.stream().map(GoodsSize::getFlashLeastPrice).filter(Objects::nonNull).collect(Collectors.toList());
|
|
|
if(!CollectionUtils.isEmpty(flashLeastPriceList)) {
|
|
|
BigDecimal flashLeastPrice = flashLeastPriceList.stream().min((p1, p2) -> (p1.compareTo(p2))).get();
|
|
|
productInfo.setFlashLeastPrice(flashLeastPrice);
|
|
|
}
|
|
|
|
|
|
goodsSizes.sort(Comparator.comparing(GoodsSize::getOrderBy));
|
|
|
List<JSONObject> otherAddSizeList = getOtherSizeList(product.getMaxSortId(), product.getMidSortId(), goodsSizes);
|
...
|
...
|
@@ -978,6 +984,8 @@ public class ProductServiceImpl implements ProductService { |
|
|
storagePriceSecond = storagePriceSecondOld;
|
|
|
}
|
|
|
|
|
|
StoragePrice storagePriceFlash = storagePriceMap.get(storage.getId() + "_3_0");//大陆闪购
|
|
|
|
|
|
GoodsSize goodsSize = new GoodsSize();
|
|
|
goodsSize.setId(storage.getId());
|
|
|
goodsSize.setSizeId(storage.getSizeId());
|
...
|
...
|
@@ -1017,6 +1025,11 @@ public class ProductServiceImpl implements ProductService { |
|
|
goodsSize.setHkStatus(storagePriceHk == null ? null : storagePriceHk.getStatus());
|
|
|
goodsSize.setHkSkup(storagePriceHk == null ? null : storagePriceHk.getSkup());
|
|
|
goodsSize.setHkStorageNum(goodsSize.getHkSkup() == null || goodsSize.getHkSkup() == 0 ? 0: 1);
|
|
|
|
|
|
goodsSize.setFlashLeastPrice(storagePriceFlash == null ? null : storagePriceFlash.getPrice());
|
|
|
goodsSize.setFlashStatus(storagePriceFlash == null ? null : storagePriceFlash.getStatus());
|
|
|
goodsSize.setFlashSkup(storagePriceFlash == null ? null : storagePriceFlash.getSkup());
|
|
|
goodsSize.setFlashStorageNum(goodsSize.getFlashSkup() == null || goodsSize.getFlashSkup() == 0 ? 0: 1);
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|