Commit 12ec2c64 authored by 吴琼's avatar 吴琼

xiugai

parent 3ba8cb63
...@@ -661,18 +661,21 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR ...@@ -661,18 +661,21 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
paramList.add(param1); paramList.add(param1);
String kResult = httpService.post(kUrl, header, paramList); String kResult = httpService.post(kUrl, header, paramList);
JSONObject kJson =JSONObject.parseObject(kResult); JSONObject kJson =JSONObject.parseObject(kResult);
String kJsonResult = kJson.getString("data");
String businessCode = kJson.getString("businessCode"); String businessCode = kJson.getString("businessCode");
if(!"0000".equals(businessCode)){ if(!"0000".equals(businessCode)){
throw new RuntimeException("调用电商接口报错"); throw new RuntimeException("调用电商接口报错");
} }
JSONObject kJsonObject = JSONObject.parseObject(kJsonResult); //只有数据不存在的时候返回data
List<TransactionReceiptRecord> errorList = (List<TransactionReceiptRecord>) kJsonObject.get("verifyErrorList"); if(StringUtils.isNotBlank(kJson.getString("data"))){
if(errorList.size()>0){ String kJsonResult = kJson.getString("data");
record.setImportStatus(2); JSONObject kJsonObject = JSONObject.parseObject(kJsonResult);
record.setExportStatus(2); List<TransactionReceiptRecord> errorList = (List<TransactionReceiptRecord>) kJsonObject.get("verifyErrorList");
failList.add(record); if(errorList.size()>0){
continue; record.setImportStatus(2);
record.setExportStatus(2);
failList.add(record);
continue;
}
} }
record.setImportStatus(1); record.setImportStatus(1);
successList.add(record); successList.add(record);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment