diff --git a/src/main/resources/sql/mapper/fims/numbering.xml b/src/main/resources/sql/mapper/fims/numbering.xml index eced5a79..ee494cd1 100644 --- a/src/main/resources/sql/mapper/fims/numbering.xml +++ b/src/main/resources/sql/mapper/fims/numbering.xml @@ -32,7 +32,7 @@ FROM DUAL -SELECT CONCAT(, LPAD(CAST( +SELECT CONCAT(${sggCd}, , LPAD(CAST( CASE WHEN (SELECT MAX(SUBSTRING(${TABLE_KEY}, 9+1)) + 1 FROM ${TABLE_NAME} WHERE ${TABLE_KEY} LIKE CONCAT(${sggCd}, , '%')) IS NULL OR