From f38ca8a9f8454ac2eebdc268c89efd0e436b3cf2 Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期三, 09 九月 2026 19:58:40 +0800
Subject: [PATCH] 修复化成报表漏识别导入充放电工步
---
battery-device-bts/src/main/java/com/battery/device/bts/BtsStepDirectionResolver.java | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/battery-device-bts/src/main/java/com/battery/device/bts/BtsStepDirectionResolver.java b/battery-device-bts/src/main/java/com/battery/device/bts/BtsStepDirectionResolver.java
index 87bd68a..dce72c4 100644
--- a/battery-device-bts/src/main/java/com/battery/device/bts/BtsStepDirectionResolver.java
+++ b/battery-device-bts/src/main/java/com/battery/device/bts/BtsStepDirectionResolver.java
@@ -12,6 +12,7 @@
public Direction resolve(String stepType)
{
String type = stepType == null ? "" : stepType.trim().toLowerCase(Locale.ROOT);
+ if ("rest".equals(type)) return Direction.REST;
if (Set.of("cc", "cv", "cccv", "cp", "cr", "charge", "charging").contains(type)) return Direction.CHARGE;
if (Set.of("dc", "dp", "dr", "dv", "cccd", "discharge", "discharging").contains(type)) return Direction.DISCHARGE;
return Direction.UNKNOWN;
--
Gitblit v1.7.1