Showing
1 changed file
with
12 additions
and
2 deletions
@@ -5,6 +5,7 @@ import com.yoho.tools.common.beans.ApiResponse; | @@ -5,6 +5,7 @@ import com.yoho.tools.common.beans.ApiResponse; | ||
5 | import com.yohoufo.common.caller.UfoServiceCaller; | 5 | import com.yohoufo.common.caller.UfoServiceCaller; |
6 | import com.yohoufo.user.requestVO.FavoriteRequestVO; | 6 | import com.yohoufo.user.requestVO.FavoriteRequestVO; |
7 | import com.yohoufo.user.service.IFavoriteService; | 7 | import com.yohoufo.user.service.IFavoriteService; |
8 | +import org.apache.commons.lang3.StringUtils; | ||
8 | import org.slf4j.Logger; | 9 | import org.slf4j.Logger; |
9 | import org.slf4j.LoggerFactory; | 10 | import org.slf4j.LoggerFactory; |
10 | import org.springframework.beans.factory.annotation.Autowired; | 11 | import org.springframework.beans.factory.annotation.Autowired; |
@@ -51,9 +52,18 @@ public class FavoriteController { | @@ -51,9 +52,18 @@ public class FavoriteController { | ||
51 | 52 | ||
52 | //分页获取收藏的商品id, | 53 | //分页获取收藏的商品id, |
53 | List<String> productIds= favoriteService.listFavorite(vo); | 54 | List<String> productIds= favoriteService.listFavorite(vo); |
55 | + String product_id = StringUtils.join(productIds,","); | ||
56 | + int type=7; | ||
57 | + int limit = productIds==null?0:productIds.size(); | ||
58 | + int page=1; | ||
59 | + | ||
54 | //调用商品接口返回商品list | 60 | //调用商品接口返回商品list |
55 | - ApiResponse productApiResponse = serviceCaller.call("ufo.product.batch.data", | ||
56 | - ApiResponse.class, productIds); | 61 | + ApiResponse productApiResponse = serviceCaller.call("ufo.product.search.list", |
62 | + ApiResponse.class, | ||
63 | + type,null, product_id,null | ||
64 | + ,null,null,null,null,null,null,null | ||
65 | + ,limit,page | ||
66 | + ); | ||
57 | return productApiResponse; | 67 | return productApiResponse; |
58 | } | 68 | } |
59 | 69 |
-
Please register or login to post a comment