fix: seq값 초기화 연도 수정

main
sjh88 11 months ago
parent 06db2be20c
commit 815a846f60

@ -170,7 +170,7 @@
sc_state sc_state
) VALUES ( ) VALUES (
gn_recall_sc_seq.NEXTVAL, gn_recall_sc_seq.NEXTVAL,
(SELECT RPAD(NVL(MAX(e.sc_seq), '2022'), 10, '0') + 1 (SELECT RPAD(NVL(MAX(e.sc_seq), #{curYear}), 10, '0') + 1
FROM gn_recall_sc e FROM gn_recall_sc e
WHERE e.sc_datagb = #{scDatagb} WHERE e.sc_datagb = #{scDatagb}
AND e.sc_seq LIKE #{curYear} ||'%'), AND e.sc_seq LIKE #{curYear} ||'%'),

Loading…
Cancel
Save