|
|
@ -5,6 +5,7 @@ |
|
|
|
*/ |
|
|
|
package com.shop.cereshop.app.service.shop.impl; |
|
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.luciad.imageio.webp.WebPReadParam; |
|
|
@ -138,6 +139,7 @@ public class CerePlatformShopServiceImpl implements CerePlatformShopService { |
|
|
|
product.setUsers(activityProduct.getUsers()); |
|
|
|
} |
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(user)){ |
|
|
|
CereBuyerCollect collect = cereBuyerCollectService.findByUserProduct(user.getBuyerUserId(),product.getProductId()); |
|
|
|
if(collect!=null){ |
|
|
|
product.setCollectId(collect.getCollectId()); |
|
|
@ -145,6 +147,7 @@ public class CerePlatformShopServiceImpl implements CerePlatformShopService { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
PageInfo<Product> pageInfo=new PageInfo<>(list); |
|
|
|
Page page=new Page(pageInfo.getList(),pageInfo.getTotal()); |
|
|
|
shop.setPage(page); |
|
|
|