From b718a61d33757f9e192cb0057c4890a0e1982901 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Tue, 20 Aug 2024 18:13:36 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=B6=98=EC=B2=9C/=EC=B2=9C=EC=95=88?= =?UTF-8?q?=20SQL=20=EC=BD=94=EB=93=9C=20=EB=8F=99=EA=B8=B0=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/biz/ens-oracle-mapper.xml | 60 ++++++++----------- 1 file changed, 25 insertions(+), 35 deletions(-) diff --git a/mens-batch/src/main/resources/egovframework/mapper/biz/ens-oracle-mapper.xml b/mens-batch/src/main/resources/egovframework/mapper/biz/ens-oracle-mapper.xml index b9e64c1..c141514 100644 --- a/mens-batch/src/main/resources/egovframework/mapper/biz/ens-oracle-mapper.xml +++ b/mens-batch/src/main/resources/egovframework/mapper/biz/ens-oracle-mapper.xml @@ -18,9 +18,9 @@ , tetm.try3 , tetm.try2_minute , tetm.try3_minute - FROM tb_cntc_sndng_mastr tcsm + FROM tb_elctrn_ntic_sndng tcsm JOIN tb_ens_tmplat_manage tetm - ON tcsm.tmplat_id = tetm.tmplat_id + ON tcsm.nht_tmplat_id = tetm.tmplat_id WHERE tcsm.sndng_process_sttus = #{sndngProcessSttus} AND tcsm.signgu_code = #{signguCode} AND tcsm.ffnlg_code = #{ffnlgCode} @@ -48,10 +48,10 @@ regist_dt, register ) - SELECT tcsm.unity_sndng_mastr_id /* 통합발송마스터 ID */ + SELECT tcsm.elctrn_ntic_sndng_id /* 통합발송마스터 ID */ , tcsm.signgu_code /* 시군구 코드 */ , tcsm.ffnlg_code /* 과태료 코드 */ - , tcsm.tmplat_id /* 템플릿 Id */ + , tcsm.nht_tmplat_id /* 템플릿 Id */ , tetm.sndng_ty_code /* 발송유형 코드 */ , tcsm.sndng_co /* 발송건수 */ , 'accept-ok' /* 발송처리 상태 */ @@ -68,10 +68,10 @@ , clos_dt /* 마감일시 */ , sysdate , 'batch' - FROM tb_cntc_sndng_mastr tcsm - JOIN tb_ens_tmplat_manage tetm - ON tcsm.tmplat_id = tetm.tmplat_id - WHERE tcsm.unity_sndng_mastr_id = #{unitySndngMastrId} + FROM tb_elctrn_ntic_sndng tcsm + JOIN tb_ens_tmplat_manage tetm + ON tcsm.nht_tmplat_id = tetm.tmplat_id + WHERE tcsm.elctrn_ntic_sndng_id = #{unitySndngMastrId} AND tcsm.sndng_process_sttus = #{sndngProcessSttus} @@ -83,52 +83,42 @@ signgu_code, /* 시군구 코드 */ ffnlg_code, /* 과태료 코드 */ main_code, - vhcle_no, /* 차량번호 */ ihidnum, /* 주민번호 */ - moblphon_no, /* 전화번호 */ - nm, /* 이름 */ - adres, /* 주소 */ - detail_adres, /* 상세주소 */ - zip, /* 우편번호 */ tmplt_msg_data, /* 템플릿메세지 데이타 */ mobile_page_cn, /* 모바일페이지내용 */ use_instt_idntfc_id, /* 이용기관식별Id*/ regist_dt, register ) - SELECT tcsd.unity_sndng_detail_id /* 통합발송상세 ID*/ - , tcsd.unity_sndng_mastr_id /* 통합발송마스터 ID */ - , tcsd.signgu_code /* 시군구 코드 */ - , tcsd.ffnlg_code /* 과태료 코드 */ + SELECT tcsd.elctrn_ntic_sndng_detail_id /* 통합발송상세 ID*/ + , tcsd.elctrn_ntic_sndng_id /* 통합발송마스터 ID */ + , tetm.signgu_code /* 시군구 코드 */ + , tetm.ffnlg_code /* 과태료 코드 */ , tcsd.main_code - , tcsd.vhcle_no /* 차량번호 */ , tcsd.ihidnum /* 주민번호 */ - , tcsd.moblphon_no /* 전화번호 */ - , tcsd.nm /* 이름 */ - , tcsd.adres /* 주소 */ - , tcsd.detail_adres /* 상세주소 */ - , tcsd.zip /* 우편번호 */ , tcsd.tmplt_msg_data /* 템플릿메세지 데이타 */ , tcsd.mobile_page_cn /* 모바일페이지내용 */ , tcsd.use_instt_idntfc_id /* 이용기관식별Id*/ , sysdate , 'batch' - FROM tb_cntc_sndng_mastr tcsm - JOIN tb_cntc_sndng_detail tcsd - ON tcsm.unity_sndng_mastr_id = tcsd.unity_sndng_mastr_id - WHERE tcsm.unity_sndng_mastr_id = #{unitySndngMastrId} - AND tcsm.sndng_process_sttus = #{sndngProcessSttus} + FROM tb_elctrn_ntic_sndng tcsm + JOIN tb_ens_tmplat_manage tetm + ON tcsm.nht_tmplat_id = tetm.tmplat_id + JOIN tb_elctrn_ntic_sndng_detail tcsd + ON tcsm.elctrn_ntic_sndng_id = tcsd.elctrn_ntic_sndng_id + WHERE tcsm.elctrn_ntic_sndng_id = #{unitySndngMastrId} + AND tcsm.sndng_process_sttus = #{sndngProcessSttus} /** ens-oracle-mapper|updateProcessSttusCntcSndngMst-연계발송마스터 상태 변경|julim */ - UPDATE tb_cntc_sndng_mastr + UPDATE tb_elctrn_ntic_sndng SET sndng_process_sttus = #{newSndngProcessSttus} - , error_code = #{errorCode} - , error_mssage = #{errorMssage} - , updt_dt = sysdate - , updusr = 'batch' - WHERE unity_sndng_mastr_id = #{unitySndngMastrId} + , error_cn = #{errorCode} + , error_dtls = #{errorMssage} + , updt_dt = sysdate + , updusr = 'batch' + WHERE elctrn_ntic_sndng_id = #{unitySndngMastrId}