|
|
|
@ -208,7 +208,7 @@ SELECT CASE WHEN LENGTH(STDG_LI_NM) > 0 THEN
|
|
|
|
|
<selectKey keyProperty="info.bsc_mttr_id" resultType="string" order="BEFORE">
|
|
|
|
|
SELECT CONCAT(
|
|
|
|
|
<include refid="utility.today" />
|
|
|
|
|
, LPAD(IFNULL(SUBSTRING(MAX(BSC_MTTR_ID), 9) + 1, 1), 22, '0')
|
|
|
|
|
, LPAD(NVL(SUBSTRING(MAX(BSC_MTTR_ID), 9) + 1, 1), 22, '0')
|
|
|
|
|
) NEW_ID
|
|
|
|
|
FROM TB_CAR_BSC_MTTR TCBM
|
|
|
|
|
WHERE BSC_MTTR_ID LIKE CONCAT(<include refid="utility.today" />, '%')</selectKey>
|
|
|
|
@ -618,7 +618,7 @@ SELECT PRYE <!-- 연식 -->
|
|
|
|
|
<selectKey keyProperty="info.bsc_mttr_id" resultType="string" order="BEFORE">
|
|
|
|
|
SELECT CONCAT(
|
|
|
|
|
<include refid="utility.today" />
|
|
|
|
|
, LPAD(IFNULL(SUBSTRING(MAX(BSC_MTTR_ID), 9) + 1, 1), 22, '0')
|
|
|
|
|
, LPAD(NVL(SUBSTRING(MAX(BSC_MTTR_ID), 9) + 1, 1), 22, '0')
|
|
|
|
|
) NEW_ID
|
|
|
|
|
FROM TB_CAR_BSC_MTTR TCBM
|
|
|
|
|
WHERE BSC_MTTR_ID LIKE CONCAT(<include refid="utility.today" />, '%')</selectKey>
|
|
|
|
|