|
|
|
@ -188,8 +188,6 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public Map<String, Object> getGoodsDetail(String islicode) { |
|
|
|
//时间格式化
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
Map retmap= new HashMap(); |
|
|
|
/** |
|
|
|
* 联合查询的结果 |
|
|
|
@ -212,6 +210,7 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
for(GoodsSource gs:goodsSourceList){ |
|
|
|
// 解析json
|
|
|
|
JSONObject sdjson = JSONObject.parseObject(gs.getSourceData()); |
|
|
|
log.info("source :"+sdjson); |
|
|
|
log.info("goods source data :"+gs.getSourceData()); |
|
|
|
Integer datatype=gs.getDatatype(); |
|
|
|
log.info("goods source datatype :"+datatype); |
|
|
|
@ -220,7 +219,7 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
info.put("name",gs.getSourceName()); |
|
|
|
info.put("class",gs.getSourceType()); |
|
|
|
// 从json data 中获取
|
|
|
|
info.put("registerDate",sdf.format(sdjson.getString("registerDate"))); |
|
|
|
info.put("registerDate",sdjson.getString("registerDate")); |
|
|
|
info.put("identifier",sdjson.getString("identifier")); |
|
|
|
|
|
|
|
//符合条件的数量
|
|
|
|
@ -231,7 +230,7 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
Long filesize= sdjson.getLongValue("metadataFileSize"); |
|
|
|
info.put("name",gs.getSourceName()); |
|
|
|
info.put("class",gs.getSourceType()); |
|
|
|
info.put("registerDate",sdf.format(sdjson.getString("registerDate"))); |
|
|
|
info.put("registerDate",sdjson.getString("registerDate")); |
|
|
|
info.put("filesize",filesize); |
|
|
|
info.put("metadataFileFormat",sdjson.getString("metadataFileFormat")); |
|
|
|
oneSource.add(info); |
|
|
|
|