...
|
...
|
@@ -5,6 +5,7 @@ import com.yoho.tools.common.beans.ApiResponse; |
|
|
import com.yohoufo.common.caller.UfoServiceCaller;
|
|
|
import com.yohoufo.user.requestVO.FavoriteRequestVO;
|
|
|
import com.yohoufo.user.service.IFavoriteService;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
...
|
...
|
@@ -51,9 +52,18 @@ public class FavoriteController { |
|
|
|
|
|
//分页获取收藏的商品id,
|
|
|
List<String> productIds= favoriteService.listFavorite(vo);
|
|
|
String product_id = StringUtils.join(productIds,",");
|
|
|
int type=7;
|
|
|
int limit = productIds==null?0:productIds.size();
|
|
|
int page=1;
|
|
|
|
|
|
//调用商品接口返回商品list
|
|
|
ApiResponse productApiResponse = serviceCaller.call("ufo.product.batch.data",
|
|
|
ApiResponse.class, productIds);
|
|
|
ApiResponse productApiResponse = serviceCaller.call("ufo.product.search.list",
|
|
|
ApiResponse.class,
|
|
|
type,null, product_id,null
|
|
|
,null,null,null,null,null,null,null
|
|
|
,limit,page
|
|
|
);
|
|
|
return productApiResponse;
|
|
|
}
|
|
|
|
...
|
...
|
|