|
|
@ -8,7 +8,7 @@
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
<sql id="sqlRtReglt">
|
|
|
|
<sql id="sqlRtReglt">
|
|
|
|
SELECT trr.reglt_id
|
|
|
|
SELECT trr.reglt_id
|
|
|
|
, trr.payer_id -- 납부자ID
|
|
|
|
, trr.rtpyr_id -- 납부자ID
|
|
|
|
, trr.instt_code -- 기관코드
|
|
|
|
, trr.instt_code -- 기관코드
|
|
|
|
, trr.sys_se_cd -- 시스템코드
|
|
|
|
, trr.sys_se_cd -- 시스템코드
|
|
|
|
, trr.reglt_se_code -- 단속구분코드
|
|
|
|
, trr.reglt_se_code -- 단속구분코드
|
|
|
@ -50,9 +50,9 @@
|
|
|
|
-- ON trr.reglt_id = tre.reglt_id
|
|
|
|
-- ON trr.reglt_id = tre.reglt_id
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
/* TODO : 차적조회를 안하고 바로 자료 전송 하여 payer를 알수 없음
|
|
|
|
/* TODO : 차적조회를 안하고 바로 자료 전송 하여 rtpyr를 알수 없음
|
|
|
|
JOIN tb_rt_payer trp
|
|
|
|
JOIN tb_rt_payer trp
|
|
|
|
ON trr.payer_id = trp.payer_id
|
|
|
|
ON trr.rtpyr_id = trp.rtpyr_id
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
@ -211,18 +211,18 @@
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
* tb_rt_payer : 납부자
|
|
|
|
* tb_rt_payer : 납부자
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
<select id="selectRtPayer" resultType="kr.xit.fims.biz.rt.RtDTO$Payer">
|
|
|
|
<select id="selectRtRtpyr" resultType="kr.xit.fims.biz.rt.RtDTO$Rtpyr">
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|selectRtPayer-납부자 정보 조회|julim */
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|selectRtRtpyr-납부자 정보 조회|julim */
|
|
|
|
SELECT payer_id
|
|
|
|
SELECT rtpyr_id
|
|
|
|
, instt_code
|
|
|
|
, instt_code
|
|
|
|
, sys_se_cd
|
|
|
|
, sys_se_cd
|
|
|
|
, payer_se_code
|
|
|
|
, rtpyr_se_code
|
|
|
|
, payer_no
|
|
|
|
, rtpyr_no
|
|
|
|
, payer_nm
|
|
|
|
, rtpyr_nm
|
|
|
|
, payer_cttpc
|
|
|
|
, rtpyr_cttpc
|
|
|
|
, payer_cttpc_se_code
|
|
|
|
, rtpyr_cttpc_se_code
|
|
|
|
, payer_email_adres
|
|
|
|
, rtpyr_email_adres
|
|
|
|
, payer_sttus_code
|
|
|
|
, rtpyr_sttus_code
|
|
|
|
, lnm_road_adres_se_code
|
|
|
|
, lnm_road_adres_se_code
|
|
|
|
, zip
|
|
|
|
, zip
|
|
|
|
, rn_code
|
|
|
|
, rn_code
|
|
|
@ -240,32 +240,32 @@
|
|
|
|
, adres
|
|
|
|
, adres
|
|
|
|
, detail_adres
|
|
|
|
, detail_adres
|
|
|
|
, all_adres
|
|
|
|
, all_adres
|
|
|
|
, payer_regist_se_code
|
|
|
|
, rtpyr_regist_se_code
|
|
|
|
, reg_dt
|
|
|
|
, reg_dt
|
|
|
|
, rgtr
|
|
|
|
, rgtr
|
|
|
|
, mdfcn_dt
|
|
|
|
, mdfcn_dt
|
|
|
|
, mdfr
|
|
|
|
, mdfr
|
|
|
|
FROM tb_rt_payer
|
|
|
|
FROM tb_rt_payer
|
|
|
|
WHERE payer_id = #{payerId}
|
|
|
|
WHERE rtpyr_id = #{rtpyrId}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertRtPayer">
|
|
|
|
<insert id="insertRtRtpyr">
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|insertRtPayer-납부자 정보 등록|julim */
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|insertRtRtpyr-납부자 정보 등록|julim */
|
|
|
|
<selectKey resultType="string" keyProperty="payerId" order="BEFORE">
|
|
|
|
<selectKey resultType="string" keyProperty="rtpyrId" order="BEFORE">
|
|
|
|
SELECT LPAD(NEXTVAL(seq_rt_payer), 12, '0')
|
|
|
|
SELECT LPAD(NEXTVAL(seq_rt_rtpyr), 12, '0')
|
|
|
|
</selectKey>
|
|
|
|
</selectKey>
|
|
|
|
INSERT
|
|
|
|
INSERT
|
|
|
|
INTO tb_rt_payer (
|
|
|
|
INTO tb_rt_payer (
|
|
|
|
payer_id
|
|
|
|
rtpyr_id
|
|
|
|
, instt_code
|
|
|
|
, instt_code
|
|
|
|
, sys_se_cd
|
|
|
|
, sys_se_cd
|
|
|
|
, payer_se_code
|
|
|
|
, rtpyr_se_code
|
|
|
|
, payer_no
|
|
|
|
, rtpyr_no
|
|
|
|
, payer_nm
|
|
|
|
, rtpyr_nm
|
|
|
|
, payer_cttpc
|
|
|
|
, rtpyr_cttpc
|
|
|
|
, payer_cttpc_se_code
|
|
|
|
, rtpyr_cttpc_se_code
|
|
|
|
, payer_email_adres
|
|
|
|
, rtpyr_email_adres
|
|
|
|
, payer_sttus_code
|
|
|
|
, rtpyr_sttus_code
|
|
|
|
, lnm_road_adres_se_code
|
|
|
|
, lnm_road_adres_se_code
|
|
|
|
, zip
|
|
|
|
, zip
|
|
|
|
, rn_code
|
|
|
|
, rn_code
|
|
|
@ -283,20 +283,20 @@
|
|
|
|
, adres
|
|
|
|
, adres
|
|
|
|
, detail_adres
|
|
|
|
, detail_adres
|
|
|
|
, all_adres
|
|
|
|
, all_adres
|
|
|
|
, payer_regist_se_code
|
|
|
|
, rtpyr_regist_se_code
|
|
|
|
, reg_dt
|
|
|
|
, reg_dt
|
|
|
|
, rgtr
|
|
|
|
, rgtr
|
|
|
|
) VALUES (
|
|
|
|
) VALUES (
|
|
|
|
#{payerId}
|
|
|
|
#{rtpyrId}
|
|
|
|
, #{insttCode}
|
|
|
|
, #{insttCode}
|
|
|
|
, #{sysSeCd}
|
|
|
|
, #{sysSeCd}
|
|
|
|
, #{payerSeCode}
|
|
|
|
, #{rtpyrSeCode}
|
|
|
|
, #{payerNo}
|
|
|
|
, #{rtpyrNo}
|
|
|
|
, #{payerNm}
|
|
|
|
, #{rtpyrNm}
|
|
|
|
, #{payerCttpc}
|
|
|
|
, #{rtpyrCttpc}
|
|
|
|
, #{payerCttpcSeCode}
|
|
|
|
, #{rtpyrCttpcSeCode}
|
|
|
|
, #{payerEmailAdres}
|
|
|
|
, #{rtpyrEmailAdres}
|
|
|
|
, #{payerSttusCode}
|
|
|
|
, #{rtpyrSttusCode}
|
|
|
|
, #{lnmRoadAdresSeCode}
|
|
|
|
, #{lnmRoadAdresSeCode}
|
|
|
|
, #{zip}
|
|
|
|
, #{zip}
|
|
|
|
, #{rnCode}
|
|
|
|
, #{rnCode}
|
|
|
@ -314,42 +314,42 @@
|
|
|
|
, #{adres}
|
|
|
|
, #{adres}
|
|
|
|
, #{detailAdres}
|
|
|
|
, #{detailAdres}
|
|
|
|
, #{allAdres}
|
|
|
|
, #{allAdres}
|
|
|
|
, #{payerRegistSeCode}
|
|
|
|
, #{rtpyrRegistSeCode}
|
|
|
|
, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
|
|
|
|
, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
|
|
|
|
, #{rgtr}
|
|
|
|
, #{rgtr}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateRtPayer">
|
|
|
|
<update id="updateRtRtpyr">
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|updateRtPayer-납부자 정보 변경|julim */
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|updateRtRtpyr-납부자 정보 변경|julim */
|
|
|
|
UPDATE tb_rt_payer
|
|
|
|
UPDATE tb_rt_payer
|
|
|
|
SET payer_se_code = IF(payer_se_code = #{payerSeCode}, payer_se_code, #{payerSeCode})
|
|
|
|
SET rtpyr_se_code = IF(rtpyr_se_code = #{rtpyrSeCode}, rtpyr_se_code, #{rtpyrSeCode})
|
|
|
|
, payer_no = IF(payer_no = #{payerNo}, payer_no, #{payerNo})
|
|
|
|
, rtpyr_no = IF(rtpyr_no = #{rtpyrNo}, rtpyr_no, #{rtpyrNo})
|
|
|
|
, payer_nm = IF(payer_nm = #{payerNm}, payer_nm, #{payerNm})
|
|
|
|
, rtpyr_nm = IF(rtpyr_nm = #{rtpyrNm}, rtpyr_nm, #{rtpyrNm})
|
|
|
|
, payer_cttpc = IF(payer_cttpc = #{payerCttpc}, payer_cttpc, #{payerCttpc})
|
|
|
|
, rtpyr_cttpc = IF(rtpyr_cttpc = #{rtpyrCttpc}, rtpyr_cttpc, #{rtpyrCttpc})
|
|
|
|
, zip = IF(zip = #{zip}, zip, #{zip})
|
|
|
|
, zip = IF(zip = #{zip}, zip, #{zip})
|
|
|
|
, adres = IF(adres = #{adres}, adres, #{adres})
|
|
|
|
, adres = IF(adres = #{adres}, adres, #{adres})
|
|
|
|
, detail_adres = IF(detail_adres = #{adres}, detail_adres, #{detailAdres})
|
|
|
|
, detail_adres = IF(detail_adres = #{adres}, detail_adres, #{detailAdres})
|
|
|
|
, mdfcn_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
|
|
|
|
, mdfcn_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
|
|
|
|
, mdfr = #{mdfr}
|
|
|
|
, mdfr = #{mdfr}
|
|
|
|
WHERE payer_id = #{payerId}
|
|
|
|
WHERE rtpyr_id = #{rtpyrId}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="saveRtPayer">
|
|
|
|
<insert id="saveRtRtpyr">
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|saveRtPayer-납부자 정보 등록 / 변경|julim */
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|saveRtRtpyr-납부자 정보 등록 / 변경|julim */
|
|
|
|
INSERT
|
|
|
|
INSERT
|
|
|
|
INTO tb_rt_payer (
|
|
|
|
INTO tb_rt_payer (
|
|
|
|
payer_id
|
|
|
|
rtpyr_id
|
|
|
|
, instt_code
|
|
|
|
, instt_code
|
|
|
|
, sys_se_cd
|
|
|
|
, sys_se_cd
|
|
|
|
, payer_se_code
|
|
|
|
, rtpyr_se_code
|
|
|
|
, payer_no
|
|
|
|
, rtpyr_no
|
|
|
|
, payer_nm
|
|
|
|
, rtpyr_nm
|
|
|
|
, payer_cttpc
|
|
|
|
, rtpyr_cttpc
|
|
|
|
, payer_cttpc_se_code
|
|
|
|
, rtpyr_cttpc_se_code
|
|
|
|
, payer_email_adres
|
|
|
|
, rtpyr_email_adres
|
|
|
|
, payer_sttus_code
|
|
|
|
, rtpyr_sttus_code
|
|
|
|
, lnm_road_adres_se_code
|
|
|
|
, lnm_road_adres_se_code
|
|
|
|
, zip
|
|
|
|
, zip
|
|
|
|
, rn_code
|
|
|
|
, rn_code
|
|
|
@ -367,20 +367,20 @@
|
|
|
|
, adres
|
|
|
|
, adres
|
|
|
|
, detail_adres
|
|
|
|
, detail_adres
|
|
|
|
, all_adres
|
|
|
|
, all_adres
|
|
|
|
, payer_regist_se_code
|
|
|
|
, rtpyr_regist_se_code
|
|
|
|
, reg_dt
|
|
|
|
, reg_dt
|
|
|
|
, rgtr
|
|
|
|
, rgtr
|
|
|
|
) VALUES (
|
|
|
|
) VALUES (
|
|
|
|
LPAD(NEXTVAL(seq_rt_payer), 12, '0')
|
|
|
|
LPAD(NEXTVAL(seq_rt_rtpyr), 12, '0')
|
|
|
|
, #{insttCode}
|
|
|
|
, #{insttCode}
|
|
|
|
, #{sysSeCd}
|
|
|
|
, #{sysSeCd}
|
|
|
|
, #{payerSeCode}
|
|
|
|
, #{rtpyrSeCode}
|
|
|
|
, #{payerNo}
|
|
|
|
, #{rtpyrNo}
|
|
|
|
, #{payerNm}
|
|
|
|
, #{rtpyrNm}
|
|
|
|
, #{payerCttpc}
|
|
|
|
, #{rtpyrCttpc}
|
|
|
|
, #{payerCttpcSeCode}
|
|
|
|
, #{rtpyrCttpcSeCode}
|
|
|
|
, #{payerEmailAdres}
|
|
|
|
, #{rtpyrEmailAdres}
|
|
|
|
, #{payerSttusCode}
|
|
|
|
, #{rtpyrSttusCode}
|
|
|
|
, #{lnmRoadAdresSeCode}
|
|
|
|
, #{lnmRoadAdresSeCode}
|
|
|
|
, #{zip}
|
|
|
|
, #{zip}
|
|
|
|
, #{rnCode}
|
|
|
|
, #{rnCode}
|
|
|
@ -398,15 +398,15 @@
|
|
|
|
, #{adres}
|
|
|
|
, #{adres}
|
|
|
|
, #{detailAdres}
|
|
|
|
, #{detailAdres}
|
|
|
|
, #{allAdres}
|
|
|
|
, #{allAdres}
|
|
|
|
, #{payerRegistSeCode}
|
|
|
|
, #{rtpyrRegistSeCode}
|
|
|
|
, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
|
|
|
|
, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
|
|
|
|
, #{rgtr}
|
|
|
|
, #{rgtr}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
ON DUPLICATE KEY
|
|
|
|
ON DUPLICATE KEY
|
|
|
|
UPDATE payer_se_code = IF(payer_se_code = #{payerSeCode}, payer_se_code, #{payerSeCode})
|
|
|
|
UPDATE rtpyr_se_code = IF(rtpyr_se_code = #{rtpyrSeCode}, rtpyr_se_code, #{rtpyrSeCode})
|
|
|
|
, payer_no = IF(payer_no = #{payerNo}, payer_no, #{payerNo})
|
|
|
|
, rtpyr_no = IF(rtpyr_no = #{rtpyrNo}, rtpyr_no, #{rtpyrNo})
|
|
|
|
, payer_nm = IF(payer_nm = #{payerNm}, payer_nm, #{payerNm})
|
|
|
|
, rtpyr_nm = IF(rtpyr_nm = #{rtpyrNm}, rtpyr_nm, #{rtpyrNm})
|
|
|
|
, payer_cttpc = IF(payer_cttpc = #{payerCttpc}, payer_cttpc, #{payerCttpc})
|
|
|
|
, rtpyr_cttpc = IF(rtpyr_cttpc = #{rtpyrCttpc}, rtpyr_cttpc, #{rtpyrCttpc})
|
|
|
|
, zip = IF(zip = #{zip}, zip, #{zip})
|
|
|
|
, zip = IF(zip = #{zip}, zip, #{zip})
|
|
|
|
, adres = IF(adres = #{adres}, adres, #{adres})
|
|
|
|
, adres = IF(adres = #{adres}, adres, #{adres})
|
|
|
|
, detail_adres = IF(detail_adres = #{adres}, detail_adres, #{detailAdres})
|
|
|
|
, detail_adres = IF(detail_adres = #{adres}, detail_adres, #{detailAdres})
|
|
|
|