|
|
@ -18,6 +18,7 @@ import com.shop.cereshop.app.service.index.IndexService; |
|
|
|
import com.shop.cereshop.app.service.product.CereProductClassifyService; |
|
|
|
import com.shop.cereshop.app.service.product.CereShopProductService; |
|
|
|
import com.shop.cereshop.app.service.shop.CerePlatformShopService; |
|
|
|
import com.shop.cereshop.app.utils.ContextUtil; |
|
|
|
import com.shop.cereshop.commons.cache.product.ProductBo; |
|
|
|
import com.shop.cereshop.commons.domain.buyer.CereBuyerSearch; |
|
|
|
import com.shop.cereshop.commons.domain.buyer.CereBuyerUser; |
|
|
@ -69,7 +70,7 @@ public class IndexServiceImpl implements IndexService { |
|
|
|
if(!EmptyUtils.isEmpty(shops)){ |
|
|
|
shops.stream() |
|
|
|
//查询该店销量最高商品数据 |
|
|
|
.peek(shop -> shop=cerePlatformShopservice.findVolumeProductByShopId(shop.getShopId())); |
|
|
|
.peek(shop -> shop=cerePlatformShopservice.findVolumeProductByShopId(ContextUtil.getProject(), shop.getShopId())); |
|
|
|
} |
|
|
|
//查询好物推荐数据(销量前10商品数据) |
|
|
|
List<RecommendShop> products=cerePlatformShopservice.findRecommendProducts(); |
|
|
|