Commit 3ba8cb63 authored by 吴琼's avatar 吴琼

xiugai

parent 6b88fc53
...@@ -71,8 +71,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR ...@@ -71,8 +71,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
@Autowired @Autowired
private UserSdkImpl userSdk; private UserSdkImpl userSdk;
//@Value("${kdsp-operation}") @Value("${kdsp-operation}")
private String kdspOperationUrl ="http://kdsp-operation-qa2.liangkebang.net"; private String kdspOperationUrl;
@Value("${pdf.quantgroup.cn.http}") @Value("${pdf.quantgroup.cn.http}")
private String contractUrl; private String contractUrl;
...@@ -300,7 +300,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR ...@@ -300,7 +300,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
Integer userId = record.getUserId(); Integer userId = record.getUserId();
String orderNo = record.getOrderNo(); String orderNo = record.getOrderNo();
//调用kdsp接口获取交易凭证订单信息 //调用kdsp接口获取交易凭证订单信息
String url = kdspOperationUrl + "/api/kdsp/op/fa-cui/transaction-proof/query"; //String url = kdspOperationUrl + "/api/kdsp/op/fa-cui/transaction-proof/query";
String url = "http://kdsp-operation-qa2.liangkebang.net/api/kdsp/op/fa-cui/transaction-proof/query";
try { try {
Map<String, String> header = Maps.newHashMap(); Map<String, String> header = Maps.newHashMap();
header.put("Content-type", "application/json"); header.put("Content-type", "application/json");
...@@ -317,6 +318,9 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR ...@@ -317,6 +318,9 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
//得到json字符串 //得到json字符串
String result = httpService.post(url, header, paramList); String result = httpService.post(url, header, paramList);
//转换成json 对象 //转换成json 对象
if(StringUtils.isBlank(result)){
throw new RuntimeException("未查询到订单数据");
}
JSONObject json = JSONObject.parseObject(result); JSONObject json = JSONObject.parseObject(result);
String jsonResult = json.getString("data"); String jsonResult = json.getString("data");
String businessCode = json.getString("businessCode"); String businessCode = json.getString("businessCode");
...@@ -621,7 +625,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR ...@@ -621,7 +625,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
//调用天津自牧用户中心接口 //调用天津自牧用户中心接口
Map param = Maps.newHashMap(); Map param = Maps.newHashMap();
param.put("userIds",record.getUserId()); param.put("userIds",record.getUserId());
String userUrl = userSysUrl + "/api/sync/listByUserIds"; //String userUrl = userSysUrl + "/api/sync/listByUserIds";
String userUrl = "http://passportapi-qa2.liangkebang.net/api/sync/listByUserIds";
String userResult = httpService.get(userUrl, param); String userResult = httpService.get(userUrl, param);
if (StringUtils.isEmpty(userResult)) { if (StringUtils.isEmpty(userResult)) {
record.setImportStatus(2); record.setImportStatus(2);
...@@ -646,7 +651,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR ...@@ -646,7 +651,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
header.put("Content-type", "application/json"); header.put("Content-type", "application/json");
header.put("qg-tenant-id", "560761"); header.put("qg-tenant-id", "560761");
//调用电商接口 //调用电商接口
String kUrl = kdspOperationUrl + "/api/kdsp/op/fa-cui/transaction-proof/check"; //String kUrl = kdspOperationUrl + "/api/kdsp/op/fa-cui/transaction-proof/check";
String kUrl = "http://kdsp-operation-qa2.liangkebang.net/api/kdsp/op/fa-cui/transaction-proof/check";
//得到json字符串 //得到json字符串
Map param1 = Maps.newHashMap(); Map param1 = Maps.newHashMap();
param1.put("userId",record.getUserId()); param1.put("userId",record.getUserId());
......
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