From 6135c891ef64c13defcb2a5b93543f9a65dd9eca Mon Sep 17 00:00:00 2001 From: zjh <1084500556@qq.com> Date: 星期三, 16 十月 2024 14:44:25 +0800 Subject: [PATCH] zjh20241016 --- ltkj-common/src/main/java/com/ltkj/common/utils/IdUtils.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ltkj-common/src/main/java/com/ltkj/common/utils/IdUtils.java b/ltkj-common/src/main/java/com/ltkj/common/utils/IdUtils.java index 5be539f..8097d42 100644 --- a/ltkj-common/src/main/java/com/ltkj/common/utils/IdUtils.java +++ b/ltkj-common/src/main/java/com/ltkj/common/utils/IdUtils.java @@ -35,7 +35,7 @@ stringRedisTemplate.opsForValue().set(LIS_LAST_ID_KEY, String.valueOf(lastId)); } String yyMMdd = currentDate.substring(2); - return String.format("%s%06d", yyMMdd, lastId); + return String.format("9%s%05d", yyMMdd, lastId); } } -- Gitblit v1.8.0