|
|
@ -9,7 +9,7 @@
|
|
|
|
<sql id="sqlRtReglt">
|
|
|
|
<sql id="sqlRtReglt">
|
|
|
|
SELECT trr.reglt_id
|
|
|
|
SELECT trr.reglt_id
|
|
|
|
, trr.rtpyr_id -- 납부자ID
|
|
|
|
, trr.rtpyr_id -- 납부자ID
|
|
|
|
, trr.instt_code -- 기관코드
|
|
|
|
, trr.sgg_cd -- 기관코드
|
|
|
|
, trr.sys_se_cd -- 시스템코드
|
|
|
|
, trr.sys_se_cd -- 시스템코드
|
|
|
|
, trr.reglt_se_code -- 단속구분코드
|
|
|
|
, trr.reglt_se_code -- 단속구분코드
|
|
|
|
, trr.input_se_code -- 입력구분코드
|
|
|
|
, trr.input_se_code -- 입력구분코드
|
|
|
@ -46,12 +46,10 @@
|
|
|
|
, trr.regist_se_code
|
|
|
|
, trr.regist_se_code
|
|
|
|
, CONCAT(trr.reglt_de, trr.reglt_begin_time) AS regltDeTime
|
|
|
|
, CONCAT(trr.reglt_de, trr.reglt_begin_time) AS regltDeTime
|
|
|
|
FROM tb_rt_reglt trr
|
|
|
|
FROM tb_rt_reglt trr
|
|
|
|
-- LEFT OUTER JOIN tb_rt_erpp tre
|
|
|
|
|
|
|
|
-- ON trr.reglt_id = tre.reglt_id
|
|
|
|
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
/* TODO : 차적조회를 안하고 바로 자료 전송 하여 rtpyr를 알수 없음
|
|
|
|
/* TODO : 차적조회를 안하고 바로 자료 전송 하여 rtpyr를 알수 없음
|
|
|
|
JOIN old_payer trp
|
|
|
|
JOIN tb_payer trp
|
|
|
|
ON trr.rtpyr_id = trp.rtpyr_id
|
|
|
|
ON trr.rtpyr_id = trp.rtpyr_id
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
-->
|
|
|
|
-->
|
|
|
@ -108,7 +106,7 @@
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|insertRtReglt-단속 정보 등록|julim */
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|insertRtReglt-단속 정보 등록|julim */
|
|
|
|
insert into tb_rt_reglt(
|
|
|
|
insert into tb_rt_reglt(
|
|
|
|
reglt_id
|
|
|
|
reglt_id
|
|
|
|
, instt_code
|
|
|
|
, sgg_cd
|
|
|
|
, sys_se_cd
|
|
|
|
, sys_se_cd
|
|
|
|
, reglt_se_code
|
|
|
|
, reglt_se_code
|
|
|
|
, input_se_code
|
|
|
|
, input_se_code
|
|
|
@ -129,7 +127,7 @@
|
|
|
|
, rgtr
|
|
|
|
, rgtr
|
|
|
|
) VALUES (
|
|
|
|
) VALUES (
|
|
|
|
LPAD(NEXTVAL(seq_rt_reglt), 16, '0')
|
|
|
|
LPAD(NEXTVAL(seq_rt_reglt), 16, '0')
|
|
|
|
, #{insttCode}
|
|
|
|
, #{sggCd}
|
|
|
|
, #{sysSeCd}
|
|
|
|
, #{sysSeCd}
|
|
|
|
, #{regltSeCode}
|
|
|
|
, #{regltSeCode}
|
|
|
|
, #{inputSeCode}
|
|
|
|
, #{inputSeCode}
|
|
|
@ -188,7 +186,7 @@
|
|
|
|
INTO tb_rt_erpp (
|
|
|
|
INTO tb_rt_erpp (
|
|
|
|
erpp_id
|
|
|
|
erpp_id
|
|
|
|
, reglt_id
|
|
|
|
, reglt_id
|
|
|
|
, instt_code
|
|
|
|
, sgg_cd
|
|
|
|
, sys_se_cd
|
|
|
|
, sys_se_cd
|
|
|
|
, erpp_process_de
|
|
|
|
, erpp_process_de
|
|
|
|
, erpp_se_code
|
|
|
|
, erpp_se_code
|
|
|
@ -198,7 +196,7 @@
|
|
|
|
) VALUES (
|
|
|
|
) VALUES (
|
|
|
|
LPAD(NEXTVAL(seq_rt_erpp), 12, '0')
|
|
|
|
LPAD(NEXTVAL(seq_rt_erpp), 12, '0')
|
|
|
|
, #{regltId}
|
|
|
|
, #{regltId}
|
|
|
|
, #{insttCode}
|
|
|
|
, #{sggCd}
|
|
|
|
, #{sysSeCd}
|
|
|
|
, #{sysSeCd}
|
|
|
|
, #{erppProcessDe}
|
|
|
|
, #{erppProcessDe}
|
|
|
|
, #{erppSeCode}
|
|
|
|
, #{erppSeCode}
|
|
|
@ -209,12 +207,12 @@
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
* old_payer : 납부자
|
|
|
|
* tb_payer : 납부자
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
<select id="selectRtRtpyr" resultType="kr.xit.fims.biz.rt.RtDTO$Rtpyr">
|
|
|
|
<select id="selectRtRtpyr" resultType="kr.xit.fims.biz.rt.RtDTO$Rtpyr">
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|selectRtRtpyr-납부자 정보 조회|julim */
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|selectRtRtpyr-납부자 정보 조회|julim */
|
|
|
|
SELECT rtpyr_id
|
|
|
|
SELECT rtpyr_id
|
|
|
|
, instt_code
|
|
|
|
, sgg_cd
|
|
|
|
, sys_se_cd
|
|
|
|
, sys_se_cd
|
|
|
|
, rtpyr_se_cd
|
|
|
|
, rtpyr_se_cd
|
|
|
|
, rtpyr_no
|
|
|
|
, rtpyr_no
|
|
|
@ -245,7 +243,7 @@
|
|
|
|
, rgtr
|
|
|
|
, rgtr
|
|
|
|
, mdfcn_dt
|
|
|
|
, mdfcn_dt
|
|
|
|
, mdfr
|
|
|
|
, mdfr
|
|
|
|
FROM old_payer
|
|
|
|
FROM tb_payer
|
|
|
|
WHERE rtpyr_id = #{rtpyrId}
|
|
|
|
WHERE rtpyr_id = #{rtpyrId}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
@ -255,9 +253,9 @@
|
|
|
|
SELECT LPAD(NEXTVAL(seq_rt_rtpyr), 12, '0')
|
|
|
|
SELECT LPAD(NEXTVAL(seq_rt_rtpyr), 12, '0')
|
|
|
|
</selectKey>
|
|
|
|
</selectKey>
|
|
|
|
INSERT
|
|
|
|
INSERT
|
|
|
|
INTO old_payer (
|
|
|
|
INTO tb_payer (
|
|
|
|
rtpyr_id
|
|
|
|
rtpyr_id
|
|
|
|
, instt_code
|
|
|
|
, sgg_cd
|
|
|
|
, sys_se_cd
|
|
|
|
, sys_se_cd
|
|
|
|
, rtpyr_se_cd
|
|
|
|
, rtpyr_se_cd
|
|
|
|
, rtpyr_no
|
|
|
|
, rtpyr_no
|
|
|
@ -288,7 +286,7 @@
|
|
|
|
, rgtr
|
|
|
|
, rgtr
|
|
|
|
) VALUES (
|
|
|
|
) VALUES (
|
|
|
|
#{rtpyrId}
|
|
|
|
#{rtpyrId}
|
|
|
|
, #{insttCode}
|
|
|
|
, #{sggCd}
|
|
|
|
, #{sysSeCd}
|
|
|
|
, #{sysSeCd}
|
|
|
|
, #{rtpyrSeCd}
|
|
|
|
, #{rtpyrSeCd}
|
|
|
|
, #{rtpyrNo}
|
|
|
|
, #{rtpyrNo}
|
|
|
@ -322,7 +320,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateRtRtpyr">
|
|
|
|
<update id="updateRtRtpyr">
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|updateRtRtpyr-납부자 정보 변경|julim */
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|updateRtRtpyr-납부자 정보 변경|julim */
|
|
|
|
UPDATE old_payer
|
|
|
|
UPDATE tb_payer
|
|
|
|
SET rtpyr_se_cd = IF(rtpyr_se_cd = #{rtpyrSeCd}, rtpyr_se_cd, #{rtpyrSeCd})
|
|
|
|
SET rtpyr_se_cd = IF(rtpyr_se_cd = #{rtpyrSeCd}, rtpyr_se_cd, #{rtpyrSeCd})
|
|
|
|
, rtpyr_no = IF(rtpyr_no = #{rtpyrNo}, rtpyr_no, #{rtpyrNo})
|
|
|
|
, rtpyr_no = IF(rtpyr_no = #{rtpyrNo}, rtpyr_no, #{rtpyrNo})
|
|
|
|
, rtpyr_nm = IF(rtpyr_nm = #{rtpyrNm}, rtpyr_nm, #{rtpyrNm})
|
|
|
|
, rtpyr_nm = IF(rtpyr_nm = #{rtpyrNm}, rtpyr_nm, #{rtpyrNm})
|
|
|
@ -339,9 +337,9 @@
|
|
|
|
<insert id="saveRtRtpyr">
|
|
|
|
<insert id="saveRtRtpyr">
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|saveRtRtpyr-납부자 정보 등록 / 변경|julim */
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|saveRtRtpyr-납부자 정보 등록 / 변경|julim */
|
|
|
|
INSERT
|
|
|
|
INSERT
|
|
|
|
INTO old_payer (
|
|
|
|
INTO tb_payer (
|
|
|
|
rtpyr_id
|
|
|
|
rtpyr_id
|
|
|
|
, instt_code
|
|
|
|
, sgg_cd
|
|
|
|
, sys_se_cd
|
|
|
|
, sys_se_cd
|
|
|
|
, rtpyr_se_cd
|
|
|
|
, rtpyr_se_cd
|
|
|
|
, rtpyr_no
|
|
|
|
, rtpyr_no
|
|
|
@ -372,7 +370,7 @@
|
|
|
|
, rgtr
|
|
|
|
, rgtr
|
|
|
|
) VALUES (
|
|
|
|
) VALUES (
|
|
|
|
LPAD(NEXTVAL(seq_rt_rtpyr), 12, '0')
|
|
|
|
LPAD(NEXTVAL(seq_rt_rtpyr), 12, '0')
|
|
|
|
, #{insttCode}
|
|
|
|
, #{sggCd}
|
|
|
|
, #{sysSeCd}
|
|
|
|
, #{sysSeCd}
|
|
|
|
, #{rtpyrSeCd}
|
|
|
|
, #{rtpyrSeCd}
|
|
|
|
, #{rtpyrNo}
|
|
|
|
, #{rtpyrNo}
|
|
|
|