|
|
@ -446,6 +446,7 @@ public class PortalOfCostApplication { |
|
|
|
String json = ThirtyVerificationUtil.buildJson(supplier, subject, verification.getAmount() |
|
|
|
, activity.getActTitle(),activity.getActStartDate().atStartOfDay(),activity.getActEndDate().atTime(23,59,59), verification); |
|
|
|
SysSyncLog syncLog = ThirtyVerificationUtil.requestToPayment("to支付请求",verification.getVerificationCode(), COST_TO_PAY_API, json); |
|
|
|
syncLog.setTodoState(0); |
|
|
|
sysSyncLogService.save(syncLog); |
|
|
|
// //发送请求到中间服务
|
|
|
|
// XltApticlaim apticlaim = new XltApticlaim();
|
|
|
@ -834,6 +835,22 @@ public class PortalOfCostApplication { |
|
|
|
String COST_TO_PAY_API = projectApisProperties.getCostToPay(); |
|
|
|
log.info("COST_TO_PAY_API 支付单信息:{} 数据:{}", verification.getVerificationCode(), json); |
|
|
|
String rs = HttpUtil.doPost(COST_TO_PAY_API, json, null); |
|
|
|
|
|
|
|
SysSyncLog syncLog = new SysSyncLog(); |
|
|
|
syncLog.setFrom("to支付请求"); |
|
|
|
syncLog.setUrl(COST_TO_PAY_API); |
|
|
|
syncLog.setRequestJson(json); |
|
|
|
if(rs==null||!rs.contains("200")){ |
|
|
|
log.error("COST_TO_PAY_API \n 请求参数:{},\n 支付单信息:{},\n 结果:{}", json, verification.getVerificationCode(),rs); |
|
|
|
syncLog.setEntityClass("ThirtyVerification"); |
|
|
|
syncLog.setFailReason(rs); |
|
|
|
syncLog.setRemark("支付失败:["+ verification.getVerificationCode()+"]"); |
|
|
|
}else { |
|
|
|
syncLog.setSuccessStatus(1); |
|
|
|
syncLog.setRemark("支付完成:["+ verification.getVerificationCode()+"]"); |
|
|
|
} |
|
|
|
sysSyncLogService.save(syncLog); |
|
|
|
|
|
|
|
if (rs == null || !rs.contains("200")) { |
|
|
|
log.error("COST_TO_PAY_API \n 请求参数:{},\n 支付单信息:{},\n 结果:{}", json, verification.getVerificationCode(), rs); |
|
|
|
//核销调度接口事务补偿
|
|
|
|