@ -32,7 +32,7 @@ FROM DUAL
</sql>
<sql id="keyBySggAndYear">
SELECT CONCAT(<include refid="utility.currentYear" />, LPAD(CAST(
SELECT CONCAT(${sggCd}, <include refid="utility.currentYear" />, LPAD(CAST(
CASE
WHEN (SELECT MAX(SUBSTRING(${TABLE_KEY}, 9+1)) + 1 FROM ${TABLE_NAME}
WHERE ${TABLE_KEY} LIKE CONCAT(${sggCd}, <include refid="utility.currentYear" />, '%')) IS NULL OR