Compare commits

...

2 Commits

Author SHA1 Message Date
71cef21472 图库查询问题修复 2025-11-25 17:18:21 +08:00
75795bad0e 图库查询问题修复 2025-11-25 17:18:20 +08:00

View File

@ -146,9 +146,14 @@ public class LibraryProductImpl extends BaseServiceImpl<LibraryProductMapper, Li
List<LibraryProduct> libraryProductList= page.getRecords();
if (CollectionUtil.isEmpty(libraryProductList)) {
return page;
}
List<Long> libraryProductIds= libraryProductList.stream().map(LibraryProduct::getId).collect(Collectors.toList());
QueryWrapper<LibraryProductImage> queryWrapperImage = new QueryWrapper<>();
queryWrapperImage.in("product_id", libraryProductIds);
queryWrapperImage.eq("is_main",0);
List<LibraryProductImage> libraryProductImageList= libraryProductImageService.list(queryWrapperImage);
Map<Long,List<LibraryProductImage>> listMap=new HashMap<>();