商品模块代码提交

This commit is contained in:
Tankaikai 2025-03-03 14:11:07 +08:00
parent 596df9e930
commit 9c35a6e2cc
1 changed files with 1 additions and 1 deletions

View File

@ -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);