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

xiugai

parent 3ba8cb63
...@@ -661,11 +661,13 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR ...@@ -661,11 +661,13 @@ 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("调用电商接口报错");
} }
//只有数据不存在的时候返回data
if(StringUtils.isNotBlank(kJson.getString("data"))){
String kJsonResult = kJson.getString("data");
JSONObject kJsonObject = JSONObject.parseObject(kJsonResult); JSONObject kJsonObject = JSONObject.parseObject(kJsonResult);
List<TransactionReceiptRecord> errorList = (List<TransactionReceiptRecord>) kJsonObject.get("verifyErrorList"); List<TransactionReceiptRecord> errorList = (List<TransactionReceiptRecord>) kJsonObject.get("verifyErrorList");
if(errorList.size()>0){ if(errorList.size()>0){
...@@ -674,6 +676,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR ...@@ -674,6 +676,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
failList.add(record); failList.add(record);
continue; continue;
} }
}
record.setImportStatus(1); record.setImportStatus(1);
successList.add(record); successList.add(record);
}else{ }else{
......
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