From 63b01db83d9aad8a15276b4236a9a22e4aeef065 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期二, 05 五月 2026 12:30:59 +0800
Subject: [PATCH] # Agent数据分析V3.0.1.7

---
 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