From bc0492bd162f9089ba8f5eb1e4d311efc8674da9 Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Thu, 22 Jan 2026 16:02:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[=E5=9F=BA=E7=A1=80=E5=86=85=E5=AE=B9]?= =?UTF-8?q?=20=E7=BC=96=E5=8F=B7=E6=94=B9=E6=88=903=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/hxhq/business/service/impl/SnGenServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/SnGenServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/SnGenServiceImpl.java index 88398be..9df468d 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/SnGenServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/SnGenServiceImpl.java @@ -49,7 +49,7 @@ public class SnGenServiceImpl extends ServiceImpl implements baseMapper.addSn(date,type); sort = getOne(queryWrapper,false).getSn(); } - return date+"-"+String.format("%04d", sort); + return date+"-"+String.format("%03d", sort); } catch (Exception e) { log.error("getNewSn执行被中断", e); } finally {