mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-12 19:29:52 +08:00
update 首页数据大屏
This commit is contained in:
@@ -226,6 +226,8 @@ public class RedisCache {
|
||||
List<?> dataList = entry.getValue();
|
||||
|
||||
if (dataList != null && !dataList.isEmpty()) {
|
||||
// 先删除旧数据,避免rightPushAll追加导致重复
|
||||
redisTemplate.delete(key);
|
||||
Long count = redisTemplate.opsForList().rightPushAll(key, dataList);
|
||||
totalCount += (count != null ? count : 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user