fix: OtherMerge 오라클 컬럼 변경사항 적용

main
jhseo 10 months ago
parent e6a54782ea
commit 469ffd563d

@ -55,6 +55,30 @@ public class ElecnoticeDTO {
*
*/
private String upddate;
/**
*
*/
private String sndngdt;
/**
*
*/
private String sndngsecode;
/**
*
*/
private String tmplatid;
/**
*
*/
private String searchdate;
/**
*
*/
private String success;
/**
*
*/
private String message;
}
@ -68,14 +92,6 @@ public class ElecnoticeDTO {
*
*/
private String unitysndngdetailid;
/**
*
*/
private String sndngdt;
/**
*
*/
private String tmplatid;
/**
*
*/

@ -164,9 +164,15 @@
, date_format(tcsm.regist_dt, '%Y%m%d%H%i%S') as insdate
, 'ens' as upduser
, date_format(tcsm.updt_dt, '%Y%m%d%H%i%S') as upddate
, tcsd.unity_sndng_detail_id as unitysndngdetailid
, tcsm.sndng_dt as sndngdt
, CASE WHEN tcsm.signgu_code = '88328' THEN SUBSTRING(tcsm.tmplat_id, 3,1) /* 교통시설운영처 */
WHEN tcsm.signgu_code = '88316' THEN fn_get_code_nm('ETI003', SUBSTRING(tcsm.tmplat_id, 3,1)) /* 추모시설운영처 */
END as sndngsecode
, tcsm.tmplat_id as tmplatid
, date_format(now(), '%Y%m%d%H%i%S') as searchdate
, '' as success
, tcsm.error_mssage as message
, tcsd.unity_sndng_detail_id as unitysndngdetailid
, '' as gojidepth
, SUBSTRING(tcsd.main_code, 1, 7) AS taxnum1
, SUBSTRING(tcsd.main_code, 8, 8) AS taxnum2

@ -44,6 +44,8 @@
SET a.sndngprocesssttus = #{sndngprocesssttus}
, a.upduser = #{upduser}
, a.upddate = sysdate
, a.success = #{success}
, a.message = #{message}
WHERE a.sndngprocesssttus != #{sndngprocesssttus}
WHEN NOT MATCHED THEN
INSERT (a.unitysndngmastrid
@ -51,12 +53,24 @@
, a.sndngprocesssttus
, a.insuser
, a.insdate
, a.sndngdt
, a.sndngsecode
, a.tmplatid
, a.searchdate
, a.success
, a.message
)
VALUES (#{unitysndngmastrid}
, #{sndngco}
, #{sndngprocesssttus}
, #{insuser}
, sysdate
, TO_DATE(#{sndngdt},'YYYYMMDDHH24MISS')
, #{sndngsecode}
, #{tmplatid}
, TO_DATE(#{searchdate},'YYYYMMDDHH24MISS')
, #{success}
, #{message}
)
</insert>

Loading…
Cancel
Save