|
|
@ -32,7 +32,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
<insert id="insertCrdn" parameterType="map">
|
|
|
|
<insert id="insertCrdn" parameterType="map">
|
|
|
|
/* 단속 대장 등록(crdn05Mapper.insertCrdn) */
|
|
|
|
/* 단속 대장 등록(crdn05Mapper.insertCrdn) */
|
|
|
|
<selectKey resultType="string" keyProperty="crdn.crdnId" keyColumn="NEW_ID" order="BEFORE">
|
|
|
|
<selectKey resultType="string" keyProperty="crdn.crdnId" keyColumn="NEW_ID" order="BEFORE">
|
|
|
|
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
|
|
|
|
</selectKey>
|
|
|
|
</selectKey>
|
|
|
|
INSERT INTO TB_CRDN (
|
|
|
|
INSERT INTO TB_CRDN (
|
|
|
|
CRDN_ID <!-- 단속 ID -->
|
|
|
|
CRDN_ID <!-- 단속 ID -->
|
|
|
|