master:app次级销量分类列表返回数据空指针问题解决;

pull/1121/head
liujiang 2025-09-12 12:24:39 +08:00
parent 62c06ef02a
commit bbfcc429fc
1 changed files with 1 additions and 1 deletions

View File

@ -615,7 +615,7 @@ public class WebsiteAPPServiceImpl implements IWebsiteAPPService {
Map<String, UserFavorites> finalCollectMap = collectMap;
// ES 中存的 商品信息
Map<String, ESProductDTO> esProdMap = page.getList().stream().collect(Collectors.toMap(ESProductDTO::getStoreProdId, Function.identity()));
return prodIdList.stream().map(prodId -> {
return prodIdList.stream().filter(x -> ObjectUtils.isNotEmpty(esProdMap.get(x))).map(prodId -> {
ESProductDTO esProd = esProdMap.get(prodId);
return BeanUtil.toBean(esProd, APPProdCateSubDTO.class)
// 是否为档口会员