From 211aafe0cb765b1deb5f2ef54949d64e9b0de8c3 Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期三, 03 十二月 2025 17:56:36 +0800
Subject: [PATCH] yys1.海川开心-修改首页库存与采购数据不显示问题 2.海川开心-优化选择审批人时增加模糊查询 3.海川开心-协同办公部门改为可手动输入 4.海川开心-修改回款流水导出没数据问题
---
src/main/java/com/ruoyi/framework/redis/RedisCache.java | 18 +++---------------
1 files changed, 3 insertions(+), 15 deletions(-)
diff --git a/src/main/java/com/ruoyi/framework/redis/RedisCache.java b/src/main/java/com/ruoyi/framework/redis/RedisCache.java
index da5329a..121b27b 100644
--- a/src/main/java/com/ruoyi/framework/redis/RedisCache.java
+++ b/src/main/java/com/ruoyi/framework/redis/RedisCache.java
@@ -124,9 +124,9 @@
* @param collection 澶氫釜瀵硅薄
* @return
*/
- public long deleteObject(final Collection collection)
+ public boolean deleteObject(final Collection collection)
{
- return redisTemplate.delete(collection);
+ return redisTemplate.delete(collection) > 0;
}
/**
@@ -232,18 +232,6 @@
}
/**
- * 鍒犻櫎Hash涓殑鏁版嵁
- *
- * @param key
- * @param hKey
- */
- public void delCacheMapValue(final String key, final String hKey)
- {
- HashOperations hashOperations = redisTemplate.opsForHash();
- hashOperations.delete(key, hKey);
- }
-
- /**
* 鑾峰彇澶氫釜Hash涓殑鏁版嵁
*
* @param key Redis閿�
@@ -264,7 +252,7 @@
*/
public boolean deleteCacheMapValue(final String key, final String hKey)
{
- return Boolean.TRUE.equals(redisTemplate.opsForHash().delete(key, hKey));
+ return redisTemplate.opsForHash().delete(key, hKey) > 0;
}
/**
--
Gitblit v1.9.3