fix : 테이블명 변경

main
이범준 1 year ago
parent 4efe98b8be
commit fa4cc89ac5

@ -1,7 +1,7 @@
DELETE from tb_cmm_file_detail; DELETE from tb_cmm_file_detail;
DELETE from tb_cmm_file_mastr; 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_detail;
DELETE FROM tb_ec_ctzn_sttemnt; DELETE FROM tb_ec_ctzn_sttemnt;
DELETE FROM tb_ec_ctzn_sttemnt_answer; 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_detail;
select * FROM tb_ec_ctzn_sttemnt; select * FROM tb_ec_ctzn_sttemnt;
select * from tb_ec_ctzn_sttemnt_answer; select * from tb_ec_ctzn_sttemnt_answer;

@ -16,6 +16,7 @@ public interface EcNatlNewspaperMapper {
int insertEsbInterface(final NatlNewspaperRcvXmlDTO dto); int insertEsbInterface(final NatlNewspaperRcvXmlDTO dto);
int insertEsbInterfaceFile(final NatlNewspaperRcvXmlDTO dto);
} }

@ -123,6 +123,7 @@ public class EcNatlNewspaperServiceBean extends AbstractServiceBean implements E
xmlDto.setRegD(xmlDto.getRegD().replaceAll("[-: ]", "")); xmlDto.setRegD(xmlDto.getRegD().replaceAll("[-: ]", ""));
xmlDto.setRgtr(getUserInfo().getUniqId()); xmlDto.setRgtr(getUserInfo().getUniqId());
mapper.insertEsbInterface(xmlDto); mapper.insertEsbInterface(xmlDto);
mapper.insertEsbInterfaceFile(xmlDto);
//------------------------------------------------------------- //-------------------------------------------------------------
//시민 신고 마스터 데이타 생성 //시민 신고 마스터 데이타 생성

@ -50,8 +50,8 @@
, tecs.cvpl_rcept_dt -- 접수일자 , tecs.cvpl_rcept_dt -- 접수일자
, tecs.cvpl_applcnt_nm -- 신고자 , tecs.cvpl_applcnt_nm -- 신고자
, tecs.cvpl_process_pd -- 처리기한 , tecs.cvpl_process_pd -- 처리기한
, teei.duty_id_v -- 담당자 , tei.duty_id_v -- 담당자
, teei.pcd_tel_v -- 담당자 전화번호 , tei.pcd_tel_v -- 담당자 전화번호
, tre.erpp_id , tre.erpp_id
, tre.erpp_se_code -- 서손구분코드 , tre.erpp_se_code -- 서손구분코드
, tre.erpp_resn_detail -- 서손사유상세 , tre.erpp_resn_detail -- 서손사유상세
@ -87,8 +87,8 @@
ON trr.crdn_id = tecsd.crdn_id ON trr.crdn_id = tecsd.crdn_id
LEFT JOIN tb_ec_ctzn_sttemnt tecs LEFT JOIN tb_ec_ctzn_sttemnt tecs
ON tecsd.interface_seq_n = tecs.interface_seq_n ON tecsd.interface_seq_n = tecs.interface_seq_n
LEFT JOIN tb_ec_esb_interface teei LEFT JOIN tb_esb_interface tei
ON tecs.interface_seq_n = teei.interface_seq_n ON tecs.interface_seq_n = tei.interface_seq_n
LEFT JOIN tb_rt_erpp tre LEFT JOIN tb_rt_erpp tre
ON trr.crdn_id = tre.crdn_id ON trr.crdn_id = tre.crdn_id
LEFT JOIN tb_payer trp LEFT JOIN tb_payer trp
@ -289,25 +289,25 @@
, cvpl_process_compt_dt , cvpl_process_compt_dt
, reg_dt , reg_dt
, rgtr , rgtr
) SELECT teei.interface_seq_n ) SELECT tei.interface_seq_n
, #{sggCd} , #{sggCd}
, #{sysSeCd} , #{sysSeCd}
, teei.peti_gubun_c -- 민원구분 , tei.peti_gubun_c -- 민원구분
, teei.peti_no_c -- 민원신청번호 , tei.peti_no_c -- 민원신청번호
, teei.civil_no_c -- 민원접수번호 , tei.civil_no_c -- 민원접수번호
, teei.civil_gist_v -- 민원요지 , tei.civil_gist_v -- 민원요지
, teei.civil_abstract_l -- 민원처리요약 , tei.civil_abstract_l -- 민원처리요약
, teei.pcd_dept_v -- 처리부서코드 , tei.pcd_dept_v -- 처리부서코드
, teei.pcd_dept_nm_v -- 민원처리부서명 , tei.pcd_dept_nm_v -- 민원처리부서명
, teei.duty_id_v -- 담당자명 , tei.duty_id_v -- 담당자명
, teei.pcd_email_v -- 담당자이메일 , tei.pcd_email_v -- 담당자이메일
, teei.pcd_tel_v -- 담당자전화번호 , tei.pcd_tel_v -- 담당자전화번호
, REPLACE(#{cvplProcessResult}, '[전화번호]', teei.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')
, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s') , DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, #{rgtr} , #{rgtr}
FROM tb_ec_esb_interface teei FROM tb_esb_interface tei
WHERE teei.interface_seq_n = #{interfaceSeqN} WHERE tei.interface_seq_n = #{interfaceSeqN}
ON DUPLICATE KEY ON DUPLICATE KEY
UPDATE cvpl_process_result = #{cvplProcessResult} UPDATE cvpl_process_result = #{cvplProcessResult}
@ -359,11 +359,11 @@
, tecsa.charger_tlphon_no -- 담당자전화번호 , tecsa.charger_tlphon_no -- 담당자전화번호
, tecsa.cvpl_process_result -- 민원처리결과 , tecsa.cvpl_process_result -- 민원처리결과
, tecsa.cvpl_process_compt_dt -- 처리완료일시 , tecsa.cvpl_process_compt_dt -- 처리완료일시
, teei.sys_gubun_c , tei.sys_gubun_c
, teei.anc_code_v , tei.anc_code_v
FROM tb_ec_ctzn_sttemnt_answer tecsa FROM tb_ec_ctzn_sttemnt_answer tecsa
JOIN tb_ec_esb_interface teei JOIN tb_esb_interface tei
ON tecsa.interface_seq_n = teei.interface_seq_n ON tecsa.interface_seq_n = tei.interface_seq_n
WHERE tecsa.interface_seq_n = #{interfaceSeqN} WHERE tecsa.interface_seq_n = #{interfaceSeqN}
</select> </select>

@ -326,22 +326,22 @@
<select id="selectCreateEcCtznSttemntAnswer" resultType="kr.xit.fims.biz.ec.CtznStmtDTO$Ans"> <select id="selectCreateEcCtznSttemntAnswer" resultType="kr.xit.fims.biz.ec.CtznStmtDTO$Ans">
/* ec-ctzn-sttemnt-mysql-mapper|selectCreateEcCtznSttemntAnswer-시민신고답변 생성 데이타 조회|cjm */ /* ec-ctzn-sttemnt-mysql-mapper|selectCreateEcCtznSttemntAnswer-시민신고답변 생성 데이타 조회|cjm */
SELECT teei.interface_seq_n SELECT tei.interface_seq_n
, teei.sys_gubun_c -- sysSeCd , tei.sys_gubun_c -- sysSeCd
, teei.anc_code_v -- sggCd , tei.anc_code_v -- sggCd
, teei.peti_gubun_c AS cvplSe -- 민원구분 , tei.peti_gubun_c AS cvplSe -- 민원구분
, teei.peti_no_c AS cvplReqstNo -- 민원신청번호 , tei.peti_no_c AS cvplReqstNo -- 민원신청번호
, teei.civil_no_c AS cvplRceptNo -- 민원접수번호 , tei.civil_no_c AS cvplRceptNo -- 민원접수번호
-- , teei.civil_gist_v AS cvplOutline -- 민원요지 -- , tei.civil_gist_v AS cvplOutline -- 민원요지
, teei.civil_gist_v AS cvplOutline -- 민원요지 , tei.civil_gist_v AS cvplOutline -- 민원요지
-- , teei.civil_abstract_l AS cvplProcessSumry -- 민원처리요약 -- , tei.civil_abstract_l AS cvplProcessSumry -- 민원처리요약
, teei.civil_abstract_l AS cvplProcessSumry -- 민원처리요약 , tei.civil_abstract_l AS cvplProcessSumry -- 민원처리요약
, teei.pcd_dept_v AS processDeptCode -- 처리부서코드 , tei.pcd_dept_v AS processDeptCode -- 처리부서코드
, teei.pcd_dept_nm_v AS cvplProcessDeptnm -- 민원처리부서명 , tei.pcd_dept_nm_v AS cvplProcessDeptnm -- 민원처리부서명
, teei.duty_id_v AS chargerNm -- 담당자명 , tei.duty_id_v AS chargerNm -- 담당자명
, teei.pcd_email_v AS chargerEmail -- 담당자이메일 , tei.pcd_email_v AS chargerEmail -- 담당자이메일
, teei.pcd_tel_v AS chargerTlphonNo -- 담당자전화번호 , tei.pcd_tel_v AS chargerTlphonNo -- 담당자전화번호
-- , teei.pcd_rst_cont_l AS cvplProcessResult -- 민원처리결과 -- , tei.pcd_rst_cont_l AS cvplProcessResult -- 민원처리결과
, '1. 교통질서 확립에 힘써주신 점에 대해 감사드립니다. , '1. 교통질서 확립에 힘써주신 점에 대해 감사드립니다.
2. 귀하께서 안전신문고를 통해 신청하신 민원에 대한 검토 결과를 다음과 같이 알려드립니다. 2. 귀하께서 안전신문고를 통해 신청하신 민원에 대한 검토 결과를 다음과 같이 알려드립니다.
@ -353,8 +353,8 @@
나. 따라서, 위반 차량에 대해 주정차 위반 과태료 부과 처분이 이루어졌음을 알려드립니다. 나. 따라서, 위반 차량에 대해 주정차 위반 과태료 부과 처분이 이루어졌음을 알려드립니다.
5. 안전을 위한 시민 정신에 감사드리며, 답변 내용에 대한 추가 설명이 필요한 경우 군포시청 차량관리과 주차단속팀 박효주 주무관(☏031-390-0291)에게 연락 주시면 친절히 안내해 드리도록 하겠습니다. 감사합니다.' AS cvplProcessResult -- 민원처리결과 5. 안전을 위한 시민 정신에 감사드리며, 답변 내용에 대한 추가 설명이 필요한 경우 군포시청 차량관리과 주차단속팀 박효주 주무관(☏031-390-0291)에게 연락 주시면 친절히 안내해 드리도록 하겠습니다. 감사합니다.' AS cvplProcessResult -- 민원처리결과
FROM tb_ec_esb_interface teei FROM tb_esb_interface tei
WHERE teei.interface_seq_n = #{interfaceSeqN} WHERE tei.interface_seq_n = #{interfaceSeqN}
</select> </select>
<select id="selectEcCtznSttemntAnswer" resultType="kr.xit.fims.biz.ec.CtznStmtDTO$Ans"> <select id="selectEcCtznSttemntAnswer" resultType="kr.xit.fims.biz.ec.CtznStmtDTO$Ans">

@ -4,88 +4,90 @@
<mapper namespace="kr.xit.fims.biz.ec.dao.EcNatlNewspaperMapper"> <mapper namespace="kr.xit.fims.biz.ec.dao.EcNatlNewspaperMapper">
<!-- ************************************************************************************************************* <!-- *************************************************************************************************************
* tb_ec_esb_interface : 민원연계(국민신문고) 인터페이스 * tb_esb_interface : 민원연계(국민신문고) 인터페이스
************************************************************************************************************** --> ************************************************************************************************************** -->
<sql id="sqlEsbInterface"> <sql id="sqlEsbInterface">
SELECT teei.interface_seq_n SELECT tei.interface_seq_n
, teei.sys_gubun_c , tei.sys_gubun_c
, teei.anc_code_v , tei.anc_code_v
, teei.peti_gubun_c , tei.peti_gubun_c
, teei.peti_anc_code_v , tei.peti_anc_code_v
, teei.peti_no_c , tei.peti_no_c
, teei.civil_no_c , tei.civil_no_c
, teei.peter_name_v , tei.peter_name_v
, teei.zip_code_c , tei.zip_code_c
, teei.address_v , tei.address_v
, teei.email_v , tei.email_v
, teei.cel_no_v , tei.cel_no_v
, teei.tel_no_v , tei.tel_no_v
, teei.peti_title_v , tei.peti_title_v
, teei.peti_reason_l , tei.peti_reason_l
, teei.open_yn_c , tei.open_yn_c
, teei.peti_reg_d , tei.peti_reg_d
, teei.peti_reason_attach_yn_c , tei.peti_reason_attach_yn_c
, teei.peti_file_size_n , tei.civil_gist_v
, teei.peti_file_path1_v , tei.civil_abstract_l
, teei.peti_file_path2_v , tei.pcd_dept_v
, teei.peti_file_path3_v , tei.pcd_dept_nm_v
, teei.peti_file_path4_v , tei.duty_id_v
, teei.peti_file_path5_v , tei.pcd_email_v
, teei.civil_gist_v , tei.pcd_tel_v
, teei.civil_abstract_l , tei.pcd_rst_cont_l
, teei.pcd_dept_v , tei.do_reg_d
, teei.pcd_dept_nm_v , tei.pcd_rst_cont_attach_yn_c
, teei.duty_id_v , tei.pcd_anc_code_v
, teei.pcd_email_v , tei.peti_proc_dur_n
, teei.pcd_tel_v , tei.peti_end_d
, teei.pcd_rst_cont_l , tei.anc_reg_d
, teei.do_reg_d , tei.more_again_v
, teei.pcd_rst_cont_attach_yn_c , tei.satisfy_c
, teei.pcd_file_size_n , tei.satisfy2_c
, teei.pcd_file_path1_v , tei.satisfy3_c
, teei.pcd_file_path2_v , tei.satisfy_reg_d
, teei.pcd_file_path3_v , tei.reg_d
, teei.pcd_file_path4_v , tei.send_yn_c
, teei.pcd_file_path5_v , tei.send_d
, teei.pcd_anc_code_v , tei.apply_d
, teei.peti_proc_dur_n , tei.apply_gubun_c
, teei.peti_end_d , tei.pcd_gubun_v
, teei.anc_reg_d , tei.pcd_gubun2_v
, teei.more_again_v , tei.pcd_gubun3_v
, teei.satisfy_c , tei.peti_path_gubun_c
, teei.satisfy2_c , tei.reg_dt
, teei.satisfy3_c , tei.rgtr
, teei.satisfy_reg_d , teif.peti_file_size_n
, teei.reg_d , teif.peti_file_path1_v
, teei.send_yn_c , teif.peti_file_path2_v
, teei.send_d , teif.peti_file_path3_v
, teei.apply_d , teif.peti_file_path4_v
, teei.apply_gubun_c , teif.peti_file_path5_v
, teei.pcd_gubun_v , teif.pcd_file_size_n
, teei.pcd_gubun2_v , teif.pcd_file_path1_v
, teei.pcd_gubun3_v , teif.pcd_file_path2_v
, teei.peti_path_gubun_c , teif.pcd_file_path3_v
, teei.reg_dt , teif.pcd_file_path4_v
, teei.rgtr , teif.pcd_file_path5_v
FROM tb_ec_esb_interface teei FROM tb_esb_interface tei
INNER JOIN tb_esb_interface_file teif
ON tei.interface_seq_n = teif.interface_seq_n
</sql> </sql>
<select id="selectEsbInterfaces" resultType="kr.xit.fims.biz.ec.NatlNewspaperRcvDTO"> <select id="selectEsbInterfaces" resultType="kr.xit.fims.biz.ec.NatlNewspaperRcvDTO">
/* ec-esb-interface-mysql-mapper|selectEsbInterfaces-민원연계(국민신문고) 목록 조회|julim */ /* ec-esb-interface-mysql-mapper|selectEsbInterfaces-민원연계(국민신문고) 목록 조회|julim */
<include refid="sqlEsbInterface"/> <include refid="sqlEsbInterface"/>
ORDER BY teei.interface_seq_n ORDER BY tei.interface_seq_n
</select> </select>
<select id="selectEsbInterface" resultType="kr.xit.fims.biz.ec.NatlNewspaperRcvDTO"> <select id="selectEsbInterface" resultType="kr.xit.fims.biz.ec.NatlNewspaperRcvDTO">
/* ec-esb-interface-mysql-mapper|selectEsbInterface-민원연계(국민신문고) 정보 조회|julim */ /* ec-esb-interface-mysql-mapper|selectEsbInterface-민원연계(국민신문고) 정보 조회|julim */
<include refid="sqlEsbInterface"/> <include refid="sqlEsbInterface"/>
WHERE teei.interface_seq_n = #{interfaceSeqN} WHERE tei.interface_seq_n = #{interfaceSeqN}
</select> </select>
<insert id="insertEsbInterface"> <insert id="insertEsbInterface">
/* ec-esb-interface-mysql-mapper|insertEsbInterface-민원연계(국민신문고) 등록|julim */ /* ec-esb-interface-mysql-mapper|insertEsbInterface-민원연계(국민신문고) 등록|julim */
INSERT INSERT
INTO tb_ec_esb_interface ( INTO tb_esb_interface (
interface_seq_n interface_seq_n
, sys_gubun_c , sys_gubun_c
, anc_code_v , anc_code_v
@ -104,12 +106,6 @@
, open_yn_c , open_yn_c
, peti_reg_d , peti_reg_d
, peti_reason_attach_yn_c , 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_gist_v
, civil_abstract_l , civil_abstract_l
, pcd_dept_v , pcd_dept_v
@ -157,12 +153,6 @@
, #{openYnC} , #{openYnC}
, #{petiRegD} , #{petiRegD}
, #{petiReasonAttachYnC} , #{petiReasonAttachYnC}
, #{petiFileSizeN}
, #{petiFilePath1V}
, #{petiFilePath2V}
, #{petiFilePath3V}
, #{petiFilePath4V}
, #{petiFilePath5V}
, #{civilGistV} , #{civilGistV}
, #{civilAbstractL} , #{civilAbstractL}
, #{pcdDeptV} , #{pcdDeptV}
@ -194,6 +184,27 @@
) )
</insert> </insert>
<insert id="insertEsbInterfaceFile">
/* 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}
)
</insert>
</mapper> </mapper>

Loading…
Cancel
Save