|
|
|
@ -40,19 +40,30 @@ public class ApiGoodsUtils { |
|
|
|
goodsSource.setSourceName(innerJson.getString("sourceName")); |
|
|
|
//
|
|
|
|
goodsSource.setSourceIdentify(innerJson.getString("sourceIdentify")); |
|
|
|
goodsSource.setSourceFragment(innerJson.getString("sourceFragment")); |
|
|
|
goodsSource.setTargetName(innerJson.getString("targetName")); |
|
|
|
goodsSource.setTargetNameType(innerJson.getString("targetNameType")); |
|
|
|
goodsSource.setTargetIdentify(innerJson.getString("targetIdentify")); |
|
|
|
String sourceFragment=innerJson.getString("sourceFragment"); |
|
|
|
goodsSource.setSourceFragment(StringUtils.isNotBlank(sourceFragment)?sourceFragment:" "); |
|
|
|
String targetName=innerJson.getString("targetName"); |
|
|
|
goodsSource.setTargetName(StringUtils.isNotBlank(targetName)?targetName:" "); |
|
|
|
//
|
|
|
|
goodsSource.setTargetFragment(innerJson.getString("targetFragment")); |
|
|
|
goodsSource.setTargetFormat(innerJson.getString("targetFormat")); |
|
|
|
String targetNameType=innerJson.getString("targetNameType"); |
|
|
|
goodsSource.setTargetNameType(StringUtils.isNotBlank(targetNameType)?targetNameType:" "); |
|
|
|
//
|
|
|
|
String targetIdentify=innerJson.getString("targetIdentify"); |
|
|
|
goodsSource.setTargetIdentify(StringUtils.isNotBlank(targetIdentify)?targetIdentify:" "); |
|
|
|
//
|
|
|
|
String targetFragment=innerJson.getString("targetFragment"); |
|
|
|
goodsSource.setTargetFragment(StringUtils.isNotBlank(targetFragment)?targetFragment:" "); |
|
|
|
String targetFormat=innerJson.getString("targetFormat"); |
|
|
|
goodsSource.setTargetFormat(StringUtils.isNotBlank(targetFormat)?targetFormat:""); |
|
|
|
// 存放了json字符串
|
|
|
|
goodsSource.setSourceData(innerJson.getString("sourceData")); |
|
|
|
goodsSource.setTargetData(innerJson.getString("targetData")); |
|
|
|
//
|
|
|
|
goodsSource.setMetadataXml(innerJson.getString("metadataXml")); |
|
|
|
goodsSource.setCancellationReason(innerJson.getString("cancellationReason")); |
|
|
|
String metadataXml=innerJson.getString("metadataXml"); |
|
|
|
goodsSource.setMetadataXml(StringUtils.isNotBlank(metadataXml)?metadataXml:" "); |
|
|
|
//
|
|
|
|
String cancelReason = innerJson.getString("cancellationReason"); |
|
|
|
goodsSource.setCancellationReason(StringUtils.isNotBlank(cancelReason)?cancelReason:" "); |
|
|
|
// 字符串转为日期时间格式
|
|
|
|
String aldate =innerJson.getString("allocationDate"); |
|
|
|
try { |
|
|
|
@ -61,7 +72,8 @@ public class ApiGoodsUtils { |
|
|
|
}catch (Exception ex){ |
|
|
|
// do nothing
|
|
|
|
} |
|
|
|
goodsSource.setSourceType(innerJson.getString("dataType")); |
|
|
|
//Integer dataType =innerJson.getInteger("dataType");
|
|
|
|
goodsSource.setDatatype(innerJson.getInteger("dataType")); |
|
|
|
try{ |
|
|
|
String cldate = innerJson.getString("cancellationDate"); |
|
|
|
Date cndate =sdf.parse(cldate); |
|
|
|
|