Przeglądaj źródła

2023-10-25 redis锁修改成存执。

chaiyunlong 2 lat temu
rodzic
commit
5a303d80d3

+ 1 - 1
zd-modules/zd-modules-laboratory/src/main/java/com/zd/laboratory/event/RedisExpiredAndWorkListener.java

@@ -144,7 +144,7 @@ public class RedisExpiredAndWorkListener extends KeyExpirationEventMessageListen
             SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
             map.put("riskPlanTriggerTime",dateFormat.format(date));
 
-            String key = BaseConstants.REDIS_LOCK + ""+beaconStr[2];
+            String key = BaseConstants.REDIS_LOCK + ""+beaconStr[1];
             log.info("》》》》》》》》》》》》》》》》》》》》key:"+key);
             if (!redisService.hasKey(key)) {
                 log.info("》》》》》》》》》》》》》》》》》》》》key:"+redisService.hasKey(key));