fix : 테이블명 변경

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

@ -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;

@ -16,6 +16,7 @@ public interface EcNatlNewspaperMapper {
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.setRgtr(getUserInfo().getUniqId());
mapper.insertEsbInterface(xmlDto);
mapper.insertEsbInterfaceFile(xmlDto);
//-------------------------------------------------------------
//시민 신고 마스터 데이타 생성

@ -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}
</select>

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

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

Loading…
Cancel
Save