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