From b9a41e196446e8a99c0ebcd8d77d2518b5c18dd4 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 20 Jul 2023 13:32:12 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8B=A8=EC=86=8D=EC=95=84=EC=9D=B4=EB=94=94?= =?UTF-8?q?=20=EC=B1=84=EB=B2=88=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/sql/mapper/fims/crdn/crdn05-mapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/sql/mapper/fims/crdn/crdn05-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/crdn05-mapper.xml index 5fe620b2..3db81ae5 100644 --- a/src/main/resources/sql/mapper/fims/crdn/crdn05-mapper.xml +++ b/src/main/resources/sql/mapper/fims/crdn/crdn05-mapper.xml @@ -32,7 +32,7 @@ SELECT C.CRDN_ID /* 단속 대장 등록(crdn05Mapper.insertCrdn) */ -SELECT CAST(IFNULL(MAX(CRDN_ID) + 1, 1) AS INT) AS NEW_ID FROM TB_CRDN +SELECT LPAD(IFNULL(MAX(TB_CRDN) + 1, 1), 20, '0') NEW_ID FROM TB_CRDN INSERT INTO TB_CRDN ( CRDN_ID