Compare commits
No commits in common. "71cef214726cb5aa310a95bea01664149b131a18" and "200f66839b22b341d1ae49b0910193cbd6703b96" have entirely different histories.
71cef21472
...
200f66839b
@ -146,14 +146,9 @@ public class LibraryProductImpl extends BaseServiceImpl<LibraryProductMapper, Li
|
|||||||
|
|
||||||
List<LibraryProduct> libraryProductList= page.getRecords();
|
List<LibraryProduct> libraryProductList= page.getRecords();
|
||||||
|
|
||||||
if (CollectionUtil.isEmpty(libraryProductList)) {
|
|
||||||
return page;
|
|
||||||
}
|
|
||||||
|
|
||||||
List<Long> libraryProductIds= libraryProductList.stream().map(LibraryProduct::getId).collect(Collectors.toList());
|
List<Long> libraryProductIds= libraryProductList.stream().map(LibraryProduct::getId).collect(Collectors.toList());
|
||||||
QueryWrapper<LibraryProductImage> queryWrapperImage = new QueryWrapper<>();
|
QueryWrapper<LibraryProductImage> queryWrapperImage = new QueryWrapper<>();
|
||||||
queryWrapperImage.in("product_id", libraryProductIds);
|
queryWrapperImage.in("product_id", libraryProductIds);
|
||||||
queryWrapperImage.eq("is_main",0);
|
|
||||||
List<LibraryProductImage> libraryProductImageList= libraryProductImageService.list(queryWrapperImage);
|
List<LibraryProductImage> libraryProductImageList= libraryProductImageService.list(queryWrapperImage);
|
||||||
|
|
||||||
Map<Long,List<LibraryProductImage>> listMap=new HashMap<>();
|
Map<Long,List<LibraryProductImage>> listMap=new HashMap<>();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user