diff --git a/src/main/resources/sql/residentAndDisabled-mapper.xml b/src/main/resources/sql/residentAndDisabled-mapper.xml index 8acab9c..3670291 100644 --- a/src/main/resources/sql/residentAndDisabled-mapper.xml +++ b/src/main/resources/sql/residentAndDisabled-mapper.xml @@ -170,7 +170,7 @@ sc_state ) VALUES ( 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 WHERE e.sc_datagb = #{scDatagb} AND e.sc_seq LIKE #{curYear} ||'%'),