!9 充电桩与 BMS 充电错误报文更新

* 测试用例修改
* Merge remote-tracking branch 'refs/remotes/upstream/master' into feat_15bmserror
* 充电桩与 BMS 充电错误报文更新
* 充电桩与 BMS 充电错误报文更新
* 充电桩与 BMS 充电错误报文更新
This commit is contained in:
Norman
2025-08-01 06:36:31 +00:00
committed by 三丙
parent f28aeee87c
commit 975d9223ea
6 changed files with 174 additions and 0 deletions

View File

@@ -79,6 +79,11 @@ public interface PileProtocolService {
*/
void setPricing(String pileCode, SetPricingRequest setPricingRequest);
/**
* 充电桩与 BMS 充电错误上报
*/
void onBmsChargingErrorProto(UplinkQueueMessage uplinkQueueMsg, Callback callback);
/**
* 充电桩与 BMS 参数配置阶段报文
*/

View File

@@ -314,6 +314,14 @@ public class DefaultPileProtocolService implements PileProtocolService {
downlinkCallService.sendDownlinkMessage(downlinkRequestMessageBuilder, pileCode);
}
@Override
public void onBmsChargingErrorProto(UplinkQueueMessage uplinkQueueMessage, Callback callback) {
log.info("充电桩与 BMS 充电错误上报 {}", uplinkQueueMessage);
// TODO 处理相关业务逻辑
callback.onSuccess();
}
private static Period createPeriod(int sn, LocalTime beginTime, LocalTime endTime, PricingModelFlag flag) {
Period period = new Period();

View File

@@ -192,6 +192,10 @@ public class ProtocolUplinkConsumerService extends AbstractConsumerService imple
pileProtocolService.onTransactionRecord(uplinkQueueMsg, callback);
} else if (uplinkQueueMsg.hasBmsChargingErrorProto()) {
pileProtocolService.onBmsChargingErrorProto(uplinkQueueMsg, callback);
} else if (uplinkQueueMsg.hasBmsParamConfigReport()) {
pileProtocolService.onBmsParamConfigReport(uplinkQueueMsg, callback);