支付成功后就下发计费模板

This commit is contained in:
Guoqs
2024-11-03 10:18:53 +08:00
parent 3c650411ec
commit 8e4cdb6fd1

View File

@@ -3178,8 +3178,15 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
}
orderInfo.setPayTime(new Date());
String pileSn = orderInfo.getPileSn();
// 发送启动充电指令前,再次下发计费模板
BillingTemplateVO billingTemplateVO = pileBillingTemplateService.selectBillingTemplateDetailByPileSn(pileSn);
pileRemoteService.publishPileBillingTemplate(pileSn, billingTemplateVO);
logger.info("发送启动充电指令前,再次下发计费模板, transactionCode:{}, 计费模板:{}", orderInfo.getTransactionCode(), JSON.toJSONString(billingTemplateVO));
if (sendStartCharging) {
String pileSn = orderInfo.getPileSn();
// String pileSn = orderInfo.getPileSn();
String pileConnectorCode = orderInfo.getPileConnectorCode();
// 获取桩信息
PileConnectorDetailVO pileConnectorDetailVO = pileBasicInfoService.queryPileConnectorDetail(pileConnectorCode);