From 2bb12b1ca40b29b7edcf06ef3f3d6de24dde1c4c Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 24 九月 2025 14:59:17 +0800
Subject: [PATCH] 原材料订单拆分功能v1
---
ruoyi-common/src/main/java/com/ruoyi/common/utils/RedisUtil.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/RedisUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/RedisUtil.java
index ad77b81..b00aaf2 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/RedisUtil.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/RedisUtil.java
@@ -153,6 +153,7 @@
public static boolean set(String key, Object value) {
try {
+
redisTemplate.opsForValue().set(key, value);
return true;
} catch (Exception e) {
@@ -470,7 +471,7 @@
* @param start 寮�濮�
* @param end 缁撴潫 0 鍒� -1浠h〃鎵�鏈夊��
*/
- public static List<Object> lGet(String key, long start, long end) {
+ public static List<?> lGet(String key, long start, long end) {
try {
return redisTemplate.opsForList().range(key, start, end);
} catch (Exception e) {
@@ -556,7 +557,7 @@
* @param value 鍊�
* @return true 瀛樻斁鎴愬姛 false瀛樻斁澶辫触
*/
- public static boolean lSet(String key, List<Object> value) {
+ public static boolean lSet(String key, List<?> value) {
try {
redisTemplate.opsForList().rightPushAll(key, value);
return true;
@@ -576,7 +577,7 @@
* @param time 鏃堕棿(绉�)
* @return true 瀛樻斁鎴愬姛 false瀛樻斁澶辫触
*/
- public static boolean lSet(String key, List<Object> value, long time) {
+ public static boolean lSet(String key, List<?> value, long time) {
try {
if (time > 0) {
redisTemplate.opsForList().rightPushAll(key, value);
--
Gitblit v1.9.3