|
|
|
@ -272,7 +272,7 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
info.put("identifier", sdjson.getString("identifier")); |
|
|
|
|
|
|
|
//符合条件的数量
|
|
|
|
int count = goodsSourceMapper.countGoodSource(gdv.getGoods_islicode(), 1, gs.getSourceidentify()); |
|
|
|
int count = goodsSourceMapper.countGoodSource(gdv.getGoods_islicode(), 1, gs.getSourceIdentify()); |
|
|
|
info.put("count", count); |
|
|
|
gatherarr.add(info); |
|
|
|
} else { |
|
|
|
@ -284,7 +284,7 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
info.put("identifier", sdjson.getString("identifier")); |
|
|
|
info.put("metadataFileFormat", sdjson.getString("metadataFileFormat")); |
|
|
|
//符合条件的数量
|
|
|
|
int count = goodsSourceMapper.countGoodSource(gdv.getGoods_islicode(), 1, gs.getSourceidentify()); |
|
|
|
int count = goodsSourceMapper.countGoodSource(gdv.getGoods_islicode(), 1, gs.getSourceIdentify()); |
|
|
|
info.put("count", count); |
|
|
|
|
|
|
|
oneSource.add(info); |
|
|
|
@ -503,11 +503,11 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
} else { |
|
|
|
JSONObject nsdjson = JSONObject.parseObject(nsdstr); |
|
|
|
// 从sourcedata节点中提取商品唯一编号
|
|
|
|
String goodsId = nsdjson.getString("identifier"); |
|
|
|
String goodsId = nsdjson.getString("identifiers"); |
|
|
|
// 以identifier为主键查询详情
|
|
|
|
JSONObject rqjson = new JSONObject(); |
|
|
|
rqjson.put("isliCode", goodsId); |
|
|
|
JSONObject gdJson = SzwhApiUtils.apiGoodsDetail(rqjson.toJSONString()); |
|
|
|
//JSONObject rqjson = new JSONObject();
|
|
|
|
//rqjson.put("isliCode", goodsId);
|
|
|
|
JSONObject gdJson = SzwhApiUtils.apiGoodsDetail(goodsId); |
|
|
|
log.info(goodsId + "详情:" + gdJson); |
|
|
|
//处理返回的结果
|
|
|
|
JSONArray gdArr = gdJson.getJSONArray("data"); |
|
|
|
|