From fa4cc89ac5141cac78dfd87b45eecc2dce09d6ef Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 1 Jun 2023 09:26:01 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=ED=85=8C=EC=9D=B4=EB=B8=94=EB=AA=85?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/sql/외부연계.sql | 4 +- .../biz/ec/dao/EcNatlNewspaperMapper.java | 1 + .../bean/EcNatlNewspaperServiceBean.java | 1 + .../cmm/cmm-fims-crackdown-mysql-mapper.xml | 44 ++--- .../biz/ec/ec-ctzn-sttemnt-mysql-mapper.xml | 36 ++-- .../biz/ec/ec-esb-interface-mysql-mapper.xml | 167 ++++++++++-------- 6 files changed, 133 insertions(+), 120 deletions(-) diff --git a/db/sql/외부연계.sql b/db/sql/외부연계.sql index 3b5fa3f3..1955bf3f 100644 --- a/db/sql/외부연계.sql +++ b/db/sql/외부연계.sql @@ -1,7 +1,7 @@ DELETE from tb_cmm_file_detail; DELETE from tb_cmm_file_mastr; -delete from tb_ec_esb_interface; +delete from tb_esb_interface; DELETE FROM tb_ec_ctzn_sttemnt_detail; DELETE FROM tb_ec_ctzn_sttemnt; DELETE FROM tb_ec_ctzn_sttemnt_answer; @@ -20,7 +20,7 @@ select * from tb_cmm_file_mastr; /*--------------------------------*/ -select * from tb_ec_esb_interface; +select * from tb_esb_interface; select * FROM tb_ec_ctzn_sttemnt_detail; select * FROM tb_ec_ctzn_sttemnt; select * from tb_ec_ctzn_sttemnt_answer; diff --git a/src/main/java/kr/xit/fims/biz/ec/dao/EcNatlNewspaperMapper.java b/src/main/java/kr/xit/fims/biz/ec/dao/EcNatlNewspaperMapper.java index efeb4f2a..03b85106 100644 --- a/src/main/java/kr/xit/fims/biz/ec/dao/EcNatlNewspaperMapper.java +++ b/src/main/java/kr/xit/fims/biz/ec/dao/EcNatlNewspaperMapper.java @@ -16,6 +16,7 @@ public interface EcNatlNewspaperMapper { int insertEsbInterface(final NatlNewspaperRcvXmlDTO dto); + int insertEsbInterfaceFile(final NatlNewspaperRcvXmlDTO dto); } diff --git a/src/main/java/kr/xit/fims/biz/ec/service/bean/EcNatlNewspaperServiceBean.java b/src/main/java/kr/xit/fims/biz/ec/service/bean/EcNatlNewspaperServiceBean.java index 533b8d45..63c5114e 100644 --- a/src/main/java/kr/xit/fims/biz/ec/service/bean/EcNatlNewspaperServiceBean.java +++ b/src/main/java/kr/xit/fims/biz/ec/service/bean/EcNatlNewspaperServiceBean.java @@ -123,6 +123,7 @@ public class EcNatlNewspaperServiceBean extends AbstractServiceBean implements E xmlDto.setRegD(xmlDto.getRegD().replaceAll("[-: ]", "")); xmlDto.setRgtr(getUserInfo().getUniqId()); mapper.insertEsbInterface(xmlDto); + mapper.insertEsbInterfaceFile(xmlDto); //------------------------------------------------------------- //시민 신고 마스터 데이타 생성 diff --git a/src/main/resources/sql/mapper/biz/cmm/cmm-fims-crackdown-mysql-mapper.xml b/src/main/resources/sql/mapper/biz/cmm/cmm-fims-crackdown-mysql-mapper.xml index 115e0721..8950e366 100644 --- a/src/main/resources/sql/mapper/biz/cmm/cmm-fims-crackdown-mysql-mapper.xml +++ b/src/main/resources/sql/mapper/biz/cmm/cmm-fims-crackdown-mysql-mapper.xml @@ -50,8 +50,8 @@ , tecs.cvpl_rcept_dt -- 접수일자 , tecs.cvpl_applcnt_nm -- 신고자 , tecs.cvpl_process_pd -- 처리기한 - , teei.duty_id_v -- 담당자 - , teei.pcd_tel_v -- 담당자 전화번호 + , tei.duty_id_v -- 담당자 + , tei.pcd_tel_v -- 담당자 전화번호 , tre.erpp_id , tre.erpp_se_code -- 서손구분코드 , tre.erpp_resn_detail -- 서손사유상세 @@ -87,8 +87,8 @@ ON trr.crdn_id = tecsd.crdn_id LEFT JOIN tb_ec_ctzn_sttemnt tecs ON tecsd.interface_seq_n = tecs.interface_seq_n - LEFT JOIN tb_ec_esb_interface teei - ON tecs.interface_seq_n = teei.interface_seq_n + LEFT JOIN tb_esb_interface tei + ON tecs.interface_seq_n = tei.interface_seq_n LEFT JOIN tb_rt_erpp tre ON trr.crdn_id = tre.crdn_id LEFT JOIN tb_payer trp @@ -289,25 +289,25 @@ , cvpl_process_compt_dt , reg_dt , rgtr - ) SELECT teei.interface_seq_n + ) SELECT tei.interface_seq_n , #{sggCd} , #{sysSeCd} - , teei.peti_gubun_c -- 민원구분 - , teei.peti_no_c -- 민원신청번호 - , teei.civil_no_c -- 민원접수번호 - , teei.civil_gist_v -- 민원요지 - , teei.civil_abstract_l -- 민원처리요약 - , teei.pcd_dept_v -- 처리부서코드 - , teei.pcd_dept_nm_v -- 민원처리부서명 - , teei.duty_id_v -- 담당자명 - , teei.pcd_email_v -- 담당자이메일 - , teei.pcd_tel_v -- 담당자전화번호 - , REPLACE(#{cvplProcessResult}, '[전화번호]', teei.pcd_tel_v) -- 민원처리결과 + , tei.peti_gubun_c -- 민원구분 + , tei.peti_no_c -- 민원신청번호 + , tei.civil_no_c -- 민원접수번호 + , tei.civil_gist_v -- 민원요지 + , tei.civil_abstract_l -- 민원처리요약 + , tei.pcd_dept_v -- 처리부서코드 + , tei.pcd_dept_nm_v -- 민원처리부서명 + , tei.duty_id_v -- 담당자명 + , tei.pcd_email_v -- 담당자이메일 + , tei.pcd_tel_v -- 담당자전화번호 + , REPLACE(#{cvplProcessResult}, '[전화번호]', tei.pcd_tel_v) -- 민원처리결과 , DATE_FORMAT(NOW(), '%Y%m%d%H%i%s') , DATE_FORMAT(NOW(), '%Y%m%d%H%i%s') , #{rgtr} - FROM tb_ec_esb_interface teei - WHERE teei.interface_seq_n = #{interfaceSeqN} + FROM tb_esb_interface tei + WHERE tei.interface_seq_n = #{interfaceSeqN} ON DUPLICATE KEY UPDATE cvpl_process_result = #{cvplProcessResult} @@ -359,11 +359,11 @@ , tecsa.charger_tlphon_no -- 담당자전화번호 , tecsa.cvpl_process_result -- 민원처리결과 , tecsa.cvpl_process_compt_dt -- 처리완료일시 - , teei.sys_gubun_c - , teei.anc_code_v + , tei.sys_gubun_c + , tei.anc_code_v FROM tb_ec_ctzn_sttemnt_answer tecsa - JOIN tb_ec_esb_interface teei - ON tecsa.interface_seq_n = teei.interface_seq_n + JOIN tb_esb_interface tei + ON tecsa.interface_seq_n = tei.interface_seq_n WHERE tecsa.interface_seq_n = #{interfaceSeqN} diff --git a/src/main/resources/sql/mapper/biz/ec/ec-ctzn-sttemnt-mysql-mapper.xml b/src/main/resources/sql/mapper/biz/ec/ec-ctzn-sttemnt-mysql-mapper.xml index 5ccff310..b769f969 100644 --- a/src/main/resources/sql/mapper/biz/ec/ec-ctzn-sttemnt-mysql-mapper.xml +++ b/src/main/resources/sql/mapper/biz/ec/ec-ctzn-sttemnt-mysql-mapper.xml @@ -326,22 +326,22 @@ /* ec-esb-interface-mysql-mapper|selectEsbInterfaces-민원연계(국민신문고) 목록 조회|julim */ - ORDER BY teei.interface_seq_n + ORDER BY tei.interface_seq_n /* ec-esb-interface-mysql-mapper|insertEsbInterface-민원연계(국민신문고) 등록|julim */ INSERT - INTO tb_ec_esb_interface ( + INTO tb_esb_interface ( interface_seq_n , sys_gubun_c , anc_code_v @@ -104,12 +106,6 @@ , open_yn_c , peti_reg_d , peti_reason_attach_yn_c - , peti_file_size_n - , peti_file_path1_v - , peti_file_path2_v - , peti_file_path3_v - , peti_file_path4_v - , peti_file_path5_v , civil_gist_v , civil_abstract_l , pcd_dept_v @@ -157,12 +153,6 @@ , #{openYnC} , #{petiRegD} , #{petiReasonAttachYnC} - , #{petiFileSizeN} - , #{petiFilePath1V} - , #{petiFilePath2V} - , #{petiFilePath3V} - , #{petiFilePath4V} - , #{petiFilePath5V} , #{civilGistV} , #{civilAbstractL} , #{pcdDeptV} @@ -194,6 +184,27 @@ ) - + + /* ec-esb-interface-mysql-mapper|insertEsbInterface-민원연계(국민신문고) 등록|julim */ + INSERT + INTO tb_esb_interface_file ( + interface_seq_n + , peti_file_size_n + , peti_file_path1_v + , peti_file_path2_v + , peti_file_path3_v + , peti_file_path4_v + , peti_file_path5_v + ) + VALUES ( + #{interfaceSeqN} + , #{petiFileSizeN} + , #{petiFilePath1V} + , #{petiFilePath2V} + , #{petiFilePath3V} + , #{petiFilePath4V} + , #{petiFilePath5V} + ) +