mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
update 华为Service
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user