Compare commits
2 Commits
200f66839b
...
71cef21472
| Author | SHA1 | Date | |
|---|---|---|---|
| 71cef21472 | |||
| 75795bad0e |
@ -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<>();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user