Browse Source

修复PC商城进入店铺查看所有商品bug

multiwx
dy-hu 1 year ago
parent
commit
87c4aaefc0
  1. 3
      cereshop-app/src/main/java/com/shop/cereshop/app/service/shop/impl/CerePlatformShopServiceImpl.java

3
cereshop-app/src/main/java/com/shop/cereshop/app/service/shop/impl/CerePlatformShopServiceImpl.java

@ -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);

Loading…
Cancel
Save