fix : 기존 시퀀스 제거

main
이범준 1 year ago
parent d7c4e0c151
commit 118dc382cc

@ -317,7 +317,8 @@
<insert id="insertCtznSttemntCmplt">
/* cmm-fims-crackdown-mysql-mapper|insertCtznSttemntCmplt-민원등록|julim */
<selectKey resultType="string" keyProperty="cmpltId" order="BEFORE">
SELECT LPAD(NEXTVAL(seq_ec_ctzn_sttemnt_cmplt), 12, '0')
SELECT LPAD(IFNULL(MAX(CAST(cmplt_id AS UNSIGNED))+1, 1), 12, '0') AS cmpltId
FROM tb_ec_ctzn_sttemnt_cmplt
</selectKey>
INSERT
INTO tb_ec_ctzn_sttemnt_cmplt (

Loading…
Cancel
Save