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