商品模块代码提交

This commit is contained in:
Tankaikai 2025-02-24 18:34:50 +08:00
parent 46742bbf45
commit ede1aaf3bd
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,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);