mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix 修复 redisson发号器未初始化发号器步长导致过期时间未生效的问题
Signed-off-by: 秋辞未寒 <545073804@qq.com>
This commit is contained in:
		@@ -59,10 +59,10 @@ public class SequenceUtils {
 | 
			
		||||
            stepValue = DEFAULT_STEP_VALUE;
 | 
			
		||||
        }
 | 
			
		||||
        RIdGenerator idGenerator = REDISSON_CLIENT.getIdGenerator(key);
 | 
			
		||||
        // 设置过期时间
 | 
			
		||||
        idGenerator.expire(expireTime);
 | 
			
		||||
        // 设置初始值和步长
 | 
			
		||||
        idGenerator.tryInit(initValue, stepValue);
 | 
			
		||||
        // 设置过期时间
 | 
			
		||||
        idGenerator.expire(expireTime);
 | 
			
		||||
        return idGenerator;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user