|
@@ -16,6 +16,7 @@ import com.cdf.httpClient.response.FdkkResponse;
|
|
|
import com.cdf.httpClient.response.cdf.CdfProduct;
|
|
|
import com.cdf.httpClient.response.cdf.CdfProductListRequest;
|
|
|
import com.cdf.httpClient.response.cdf.CdfProductListResponse;
|
|
|
+import com.cdf.httpClient.response.cdf.CdfProductVo;
|
|
|
import com.cdf.service.IFdkkUserService;
|
|
|
import com.cdf.service.IHotRelationService;
|
|
|
import com.cdf.util.JwtUtil;
|
|
@@ -130,17 +131,16 @@ public class FdkkSceneEditService {
|
|
|
continue;
|
|
|
}
|
|
|
JSONArray jsonArray = JSONObject.parseArray(relationIds);
|
|
|
- List<CdfProduct> products = new ArrayList<>();
|
|
|
+ List<CdfProductVo> products = new ArrayList<>();
|
|
|
for (Object o : jsonArray) {
|
|
|
String productId = (String) o;
|
|
|
CdfProductListRequest param = new CdfProductListRequest();
|
|
|
param.setKeyword(productId);
|
|
|
- CdfProductListResponse productList = cdfClient.getProductList(param);
|
|
|
- if(productList.getSearchResult().getType() == 0 && productList.getList().size() >0){
|
|
|
- CdfProduct cdfProduct = productList.getList().get(0);
|
|
|
- products.add(cdfProduct);
|
|
|
+ CdfProductVo cdfProductVo = cdfClient.getProductById(productId);
|
|
|
+ if(cdfProductVo == null || cdfProductVo.getState()==null || cdfProductVo.getState()!=0){
|
|
|
+ continue;
|
|
|
}
|
|
|
-
|
|
|
+ products.add(cdfProductVo);
|
|
|
}
|
|
|
if(products.size() >0){
|
|
|
tag.put("products",products);
|