20250808优化-充放电逻辑修改

This commit is contained in:
2025-09-01 16:10:17 +08:00
parent 26bbe6deee
commit 7374d7708b
11 changed files with 627 additions and 38 deletions

View File

@ -51,9 +51,4 @@ public class RedisKeyConstants
* BMSD原始数据 redis key
*/
public static final String ORIGINAL_BMSD = "BMSD_";
/**
* mqtt监听的原始报文
*/
public static final String MQTT_ORIGINAL = "mqtt_";
}

View File

@ -244,4 +244,12 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
}
return flag;
}
/**
* 将时间转换为月份YYYY-MM
*/
public static String formatMonth(LocalDateTime time) {
return time.format(DateTimeFormatter.ofPattern("yyyy-MM"));
}
}