|
@@ -127,8 +127,10 @@ public class TechnologyServiceImpl extends ServiceImpl<TechnologyMapper, Technol
|
|
|
|
|
|
List<ApplicableProducts> list = applicableProductsService.list(q -> q.eq(ApplicableProducts::getTechnologyId, result.getId()));
|
|
|
List<Long> productList = list.stream().map(ApplicableProducts::getProductId).collect(Collectors.toList());
|
|
|
- List<ProductInfo> productInfos = productInfoService.listByIds(productList);
|
|
|
- result.setApplicableProductsList(productInfos);
|
|
|
+ if(ObjectUtil.isNotEmpty(productList)) {
|
|
|
+ List<ProductInfo> productInfos = productInfoService.listByIds(productList);
|
|
|
+ result.setApplicableProductsList(productInfos);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|