Browse Source

!235 RedisService 删除Hash中的某条数据 方法返回值必为false问题修复
Merge pull request !235 from taest/N/A

若依 3 years ago
parent
commit
8345eed709

+ 1 - 1
ruoyi-common/ruoyi-common-redis/src/main/java/com/ruoyi/common/redis/service/RedisService.java

@@ -252,7 +252,7 @@ public class RedisService
252 252
      */
253 253
     public boolean deleteCacheMapValue(final String key, final String hKey)
254 254
     {
255
-        return Boolean.TRUE.equals(redisTemplate.opsForHash().delete(key, hKey));
255
+        return redisTemplate.opsForHash().delete(key, hKey) > 0;
256 256
     }
257 257
 
258 258
     /**