From 5d834a4e26dc492a1e77f7d09f6b1f62802386e4 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Tue, 20 Aug 2024 18:30:50 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9C=A0=ED=9A=A8=EC=84=B1=EC=B2=B4?= =?UTF-8?q?=ED=81=AC=20SQL=20=ED=95=84=EB=93=9C=20=EB=A7=A4=ED=95=91=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/biz/ens-mysql-mapper.xml | 4 +-- .../mapper/biz/ens-oracle-mapper.xml | 27 ++++++++----------- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/mens-batch/src/main/resources/egovframework/mapper/biz/ens-mysql-mapper.xml b/mens-batch/src/main/resources/egovframework/mapper/biz/ens-mysql-mapper.xml index ef5b5ab..b9b7dff 100644 --- a/mens-batch/src/main/resources/egovframework/mapper/biz/ens-mysql-mapper.xml +++ b/mens-batch/src/main/resources/egovframework/mapper/biz/ens-mysql-mapper.xml @@ -1041,9 +1041,9 @@ ON tcsm.elctrn_ntic_sndng_id = tcsd.elctrn_ntic_sndng_id LEFT JOIN tb_ens_ci tec ON tcsd.elctrn_ntic_sndng_detail_id = tec.unity_sndng_detail_id - LEFT JOIN tb_ens_tmplat_manage tetm + JOIN tb_ens_tmplat_manage tetm ON tcsm.nht_tmplat_id = tetm.tmplat_id - LEFT JOIN tb_ens_rlaybsnm_manage term + JOIN tb_ens_rlaybsnm_manage term ON (tcsm.signgu_code = term.signgu_code AND tcsm.ffnlg_code = term.ffnlg_code) WHERE tcsm.elctrn_ntic_sndng_id = #{unitySndngMastrId} 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 e7e1f59..7fe6d3b 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 @@ -1155,34 +1155,29 @@ , tcsm.sndng_co , tcsm.sndng_dt , tcsm.clos_dt + , tcsd.elctrn_ntic_sndng_detail_id AS unitySndngDetailId , tcsd.main_code - , tcsd.vhcle_no - , tcsd.nm , tcsd.ffnlg_code AS ffnlg_code_de , tcsd.signgu_code AS signgu_code_de , ECL_DECRYPT(tcsd.ihidnum) AS ihidnum - , tcsd.moblphon_no + , tcsd.ihidnum AS encIhidnum , tcsd.mobile_page_cn - , tcsd.adres - , tcsd.detail_adres - , tcsd.zip , tetm.try1 , tetm.try2 , tetm.try3 , 1 AS try_seq , tec.ci - , tcsd.unity_sndng_detail_id - FROM tb_cntc_sndng_mastr tcsm - JOIN tb_cntc_sndng_detail tcsd - ON tcsm.unity_sndng_mastr_id = tcsd.unity_sndng_mastr_id + FROM tb_elctrn_ntic_sndng tcsm + JOIN tb_elctrn_ntic_sndng_detail tcsd + ON tcsm.elctrn_ntic_sndng_id = tcsd.elctrn_ntic_sndng_id LEFT JOIN tb_ens_ci tec - ON tcsd.unity_sndng_detail_id = tec.unity_sndng_detail_id - LEFT JOIN tb_ens_tmplat_manage tetm - ON tcsm.tmplat_id = tetm.tmplat_id - LEFT JOIN tb_ens_rlaybsnm_manage term + ON tcsd.elctrn_ntic_sndng_detail_id = tec.unity_sndng_detail_id + JOIN tb_ens_tmplat_manage tetm + ON tcsm.nht_tmplat_id = tetm.tmplat_id + JOIN tb_ens_rlaybsnm_manage term ON (tcsm.signgu_code = term.signgu_code - AND tcsm.ffnlg_code = term.ffnlg_code) - WHERE tcsm.unity_sndng_mastr_id = #{unitySndngMastrId} + AND tcsm.ffnlg_code = term.ffnlg_code) + WHERE tcsm.elctrn_ntic_sndng_id = #{unitySndngMastrId} AND tcsm.sndng_process_sttus = #{sndngProcessSttus}