|
|
|
@ -494,8 +494,6 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
// 日期时间格式
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
int count = 0; //统计更新数量
|
|
|
|
// 产品详情地址
|
|
|
|
String gdurl = host + "/consign/exchange/v1/selectEntrustDetails"; |
|
|
|
// 循环查询商品的详情
|
|
|
|
if (jsonObject != null && jsonObject.containsKey("data")) { |
|
|
|
// json的data节点
|
|
|
|
@ -511,9 +509,7 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
// 从sourcedata节点中提取商品唯一编号
|
|
|
|
String goodsId = nsdjson.getString("identifier"); |
|
|
|
// 以identifier为主键查询详情
|
|
|
|
String gdetailUrl = gdurl + "/" + goodsId; |
|
|
|
// 请求商品的详情
|
|
|
|
JSONObject gdJson = RequestUtils.GetData(gdetailUrl, hmap, true); |
|
|
|
JSONObject gdJson=SzwhApiUtils.apiGoodsDetail(goodsId); |
|
|
|
log.info(goodsId + "详情:" + gdJson); |
|
|
|
//处理返回的结果
|
|
|
|
//JSONArray gdArr = gdJson.getJSONArray("data");
|
|
|
|
|