From 852664df1caf38831793b341edcada9dd7b6c22a Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期三, 06 五月 2026 19:28:33 +0800
Subject: [PATCH] #dfs
---
src/main/java/com/zy/core/utils/DeviceLogRedisKeyBuilder.java | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/main/java/com/zy/core/utils/DeviceLogRedisKeyBuilder.java b/src/main/java/com/zy/core/utils/DeviceLogRedisKeyBuilder.java
index 4c1dd53..23f2627 100644
--- a/src/main/java/com/zy/core/utils/DeviceLogRedisKeyBuilder.java
+++ b/src/main/java/com/zy/core/utils/DeviceLogRedisKeyBuilder.java
@@ -4,8 +4,6 @@
import com.zy.core.enums.RedisKeyType;
import com.zy.core.enums.SlaveType;
-import java.util.UUID;
-
public class DeviceLogRedisKeyBuilder {
public static String build(DeviceDataLog deviceDataLog) {
@@ -16,11 +14,9 @@
? "unknown"
: String.valueOf(deviceDataLog.getDeviceNo());
String stationPart = buildStationPart(deviceDataLog, type);
- long millis = deviceDataLog != null && deviceDataLog.getCreateTime() != null
- ? deviceDataLog.getCreateTime().getTime()
- : System.currentTimeMillis();
- String uuid = UUID.randomUUID().toString().replace("-", "");
- return RedisKeyType.DEVICE_LOG_KEY.key + type + ":" + deviceNo + stationPart + ":" + millis + ":" + uuid;
+ // 鏃ュ織鍙戝竷鍣ㄦ寜 lane 鍙繚鐣欐渶鏂板揩鐓э紝Redis key 蹇呴』绋冲畾锛屽惁鍒欎細鎶婃瘡娆¢噰鏍烽兘鍫嗘垚鐙珛 key锛�
+ // 璁� DeviceLogScheduler 鐨勬秷璐归�熷害姘歌繙杩戒笉涓婂啓鍏ラ�熷害锛屾渶缁堟妸 Redis 鍐呭瓨鎵撶垎銆�
+ return RedisKeyType.DEVICE_LOG_KEY.key + type + ":" + deviceNo + stationPart;
}
private static String buildStationPart(DeviceDataLog deviceDataLog, String type) {
--
Gitblit v1.9.1