【同步】BOOT 和 CLOUD 的功能

This commit is contained in:
YunaiV
2025-05-23 10:02:08 +08:00
parent 70c2ddf66d
commit 7a0d5bd29a
76 changed files with 2199 additions and 640 deletions

View File

@@ -51,7 +51,7 @@ public class BpmProcessIdRedisDAO {
String noPrefix = processIdRule.getPrefix() + infix + processIdRule.getPostfix();
String key = RedisKeyConstants.BPM_PROCESS_ID + noPrefix;
Long no = stringRedisTemplate.opsForValue().increment(key);
if (StrUtil.isEmpty(infix)) {
if (StrUtil.isNotEmpty(infix)) {
// 特殊:没有前缀,则不能过期,不能每次都是从 0 开始
stringRedisTemplate.expire(key, Duration.ofDays(1L));
}