Explorar o código

2023-10-25 redis添加锁日志。

chaiyunlong %!s(int64=2) %!d(string=hai) anos
pai
achega
90be6d118f

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

@@ -145,7 +145,10 @@ public class RedisExpiredAndWorkListener extends KeyExpirationEventMessageListen
             map.put("riskPlanTriggerTime",dateFormat.format(date));
             map.put("riskPlanTriggerTime",dateFormat.format(date));
 
 
             String key = BaseConstants.REDIS_LOCK + ""+beaconStr[2];
             String key = BaseConstants.REDIS_LOCK + ""+beaconStr[2];
+            log.info("》》》》》》》》》》》》》》》》》》》》key:"+key);
             if (!redisService.hasKey(key)) {
             if (!redisService.hasKey(key)) {
+                log.info("》》》》》》》》》》》》》》》》》》》》key:"+redisService.hasKey(key));
+                System.out.println();
                 try{
                 try{
                     redisService.setCacheObject(key,key,5L, TimeUnit.MINUTES);
                     redisService.setCacheObject(key,key,5L, TimeUnit.MINUTES);