电池充电报告新增字段

This commit is contained in:
Lemon
2025-09-12 14:29:11 +08:00
parent d11383a04c
commit f4be531761
3 changed files with 25 additions and 3 deletions

View File

@@ -78,13 +78,14 @@ public class BatteryChargeReportService {
// 根据订单号查询订单信息
OrderVO orderVO = orderBasicInfoService.getChargeOrderInfoByOrderCode(orderCode);
if (orderVO == null) {
return "订单信息为空";
log.error("统一发送orderCode:{} 充电电池数据 error, 订单信息为空", orderCode);
return null;
}
// 先判断直流桩还是交流桩,如果是交流桩就不进行计算
PileDetailVO pileDetailVO = pileBasicInfoService.selectPileDetailByPileSn(orderVO.getPileSn());
if (StringUtils.equals(Constants.TWO, pileDetailVO.getChargePortType())) {
log.info("订单:{} 为交流桩订单,不进行充电算法计算", orderCode);
return "不进行计算";
return null;
}
// 查询站点信息