图库查询问题修复

This commit is contained in:
liyj 2025-11-25 17:17:06 +08:00
parent 3943334324
commit 25ac606130

View File

@ -153,6 +153,7 @@ public class LibraryProductImpl extends BaseServiceImpl<LibraryProductMapper, Li
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<>();