diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java index fed172049..a5ba18ea8 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java @@ -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);