단속아이디 채번 수정

main
이범준 1 year ago
parent 268faeda49
commit b9a41e1964

@ -32,7 +32,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
<insert id="insertCrdn" parameterType="map">
/* 단속 대장 등록(crdn05Mapper.insertCrdn) */
<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>
INSERT INTO TB_CRDN (
CRDN_ID <!-- 단속 ID -->

Loading…
Cancel
Save