商品模块代码提交
This commit is contained in:
parent
596df9e930
commit
9c35a6e2cc
|
|
@ -121,7 +121,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
|||
}
|
||||
|
||||
private void buildProductExtInfo(List<ProductDTO> records) {
|
||||
records.parallelStream().forEach(record -> {
|
||||
records.forEach(record -> {
|
||||
List<ProdSkuDTO> skuList = prodSkuMapper.selectListByQueryAs(query().eq(ProdSku::getProductId, record.getId()).eq(ProdSku::getIsDel, DeleteEnum.NORMAL.value()), ProdSkuDTO.class);
|
||||
if (CollUtil.isNotEmpty(skuList)) {
|
||||
Optional<BigDecimal> lowPriceIsPresent = skuList.stream().map(obj -> NumberUtil.nullToZero(obj.getSalePrice())).min(BigDecimal::compareTo);
|
||||
|
|
|
|||
Loading…
Reference in New Issue