Commit 1f6474e1ab5ef498a6dff102bec8735541947eb8

Authored by alexyang
1 parent 9860d6c4

修改商品库接口

mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/GoodsRPC.java
... ... @@ -15,6 +15,8 @@ import com.diligrp.titan.sdk.domain.Category;
15 15 import com.diligrp.titan.sdk.domain.Product;
16 16 import com.diligrp.titan.sdk.input.CategoryInput;
17 17 import com.diligrp.titan.sdk.input.PopProductView;
  18 +import com.diligrp.titan.sdk.input.ProductSearchInput;
  19 +import com.diligrp.titan.sdk.output.PageOutput;
18 20  
19 21 import java.util.HashMap;
20 22 import java.util.List;
... ...
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/seller/impl/SellerGoodsServiceImpl.java
... ... @@ -203,7 +203,7 @@ public class SellerGoodsServiceImpl implements SellerGoodsService {
203 203 String jsonString = JSONArray.toJSONString(product.getSaleAtt());
204 204 goods.setSaleAtt(JSONArray.parseArray(jsonString, Attribute.class));
205 205  
206   - goods.setState(product.getStatus().longValue());
  206 + goods.setState(product.getStatus());
207 207 goods.setSkus(JSONArray.parseArray(JSONArray.toJSONString(product.getSkus()), SKUInfo.class));
208 208 result.add(goods);
209 209 }
... ...