Authored by Lixiaodi

增加预售区分 bug修改

... ... @@ -56,7 +56,7 @@ public interface StoragePriceMapper {
* @return
*/
List<StoragePrice> selectBatchLeastPrice(@Param("skuList") Collection<Integer> skuList);
List<StoragePrice> selectPreSaleBatchLeastPrice(@Param("skuList") Collection<Integer> skuList);
List<StoragePrice> selectBatchPreSaleLeastPrice(@Param("skuList") Collection<Integer> skuList);
List<StoragePrice> selectByStorageIdsPlus(@Param("list") List<Integer> integers, @Param("storageId") Integer storageId, @Param("sellerUid") Integer sellerUid);
... ...
... ... @@ -229,7 +229,7 @@ public class ProductServiceImpl implements ProductService {
List<StoragePrice> storagePrices = storagePriceMapper.selectBatchLeastPrice(skuList);
List<StoragePrice> preSaleStoragePrices = storagePriceMapper.selectPreSaleBatchLeastPrice(skuList);
List<StoragePrice> preSaleStoragePrices = storagePriceMapper.selectBatchPreSaleLeastPrice(skuList);
Map<Integer, BigDecimal> priceMap = storagePrices.stream().collect(Collectors.toMap(StoragePrice::getStorageId, StoragePrice::getPrice));
... ...