update 华为Service

This commit is contained in:
Lemon
2024-04-12 16:44:56 +08:00
parent 5f779eee1f
commit 8e016b6d4b

View File

@@ -760,7 +760,7 @@ public class HuaweiServiceV2 {
orderBasicInfoService.updateOrderBasicInfo(orderBasicInfo);
// 回复华为消息
JSONObject jsonObject = new JSONObject();
jsonObject.put("StartChargeSeq", "startChargeSeq");
jsonObject.put("StartChargeSeq", startChargeSeq);
jsonObject.put("SuccStat", 0);
jsonObject.put("FailReason", 0);
@@ -815,10 +815,17 @@ public class HuaweiServiceV2 {
// 将交易记录中的交易标识 05 传入实时数据对象,用于结算订单后解锁 vin 状态
data.setTransactionIdentifier("05");
}
// 异步结算订单
CompletableFuture.runAsync(() -> {
try {
String mode = pileMerchantInfoService.getDelayModeByMerchantId(orderBasicInfo.getMerchantId());
AbstractProgramLogic orderLogic = ProgramLogicFactory.getProgramLogic(mode);
orderLogic.settleOrderForThirdParty(data, orderBasicInfo);
} catch (Exception e) {
log.error("异步结算华为订单 error", e);
}
});
String mode = pileMerchantInfoService.getDelayModeByMerchantId(orderBasicInfo.getMerchantId());
AbstractProgramLogic orderLogic = ProgramLogicFactory.getProgramLogic(mode);
orderLogic.settleOrderForThirdParty(data, orderBasicInfo);
// orderBasicInfo.setChargeStartTime(DateUtils.parseDate(dto.getStartTime()));