오라클 SQL 지원

master
mjkhan21 11 months ago
parent ca37ab439a
commit 2759fdeb77

@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.16</version>
<version>2.7.18</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

@ -18,7 +18,7 @@ public class LntrisInterfaceApplication extends FoundationApplication {
public OpenAPI openAPI() {
return new OpenAPI()
.info(new Info()
.title("세외수입 연계시스템")
.title("지방 세외수입 연계 시스템")
);
}
}

@ -1,5 +1,6 @@
{
"useDatabase": false, /* 데이터베이스 사용여부 */
"sendRequest": true, /* 연계 요청 여부 */
"locals": [
{"organization": "4060000", /* 지역 자치단체 코드(7자리) */

@ -399,7 +399,7 @@ INSERT INTO TB_NIS_INDIV_A01 (
)</insert>
<update id="updateA01Status" parameterType="map">/* 과태료 대장 단속 정보 연계상태 수정(lntrisAMapper.updateA01Status) */
UPDATE TB_NIS_INDIV_A01 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_INDIV_A01 A
, (<foreach collection="a01s" item="a01" separator=" UNION">
SELECT #{a01.a01Id} A01_ID, #{a01.response.resVo1.linkMngKey} LINK_MNG_KEY, #{a01.response.linkRstCd} LINK_RST_CD, #{a01.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -407,7 +407,16 @@ UPDATE TB_NIS_INDIV_A01 A
, A.LINK_MNG_KEY = B.LINK_MNG_KEY <!-- 연계 관리키 -->
, A.LINK_RST_CD = B.LINK_RST_CD <!-- 연계 결과 코드 -->
, A.LINK_RST_MSG = B.LINK_RST_MSG <!-- 연계 결과 메시지 -->
WHERE A.A01_ID = B.A01_ID</update>
WHERE A.A01_ID = B.A01_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_INDIV_A01 A USING
(<foreach collection="a01s" item="a01" separator=" UNION">
SELECT #{a01.a01Id} A01_ID, #{a01.response.resVo1.linkMngKey} LINK_MNG_KEY, #{a01.response.linkRstCd} LINK_RST_CD, #{a01.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.A01_ID = B.A01_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_DT =<include refid="utility.now" /> <!-- 연계 결과 일시 -->
, A.LINK_MNG_KEY = B.LINK_MNG_KEY <!-- 연계 관리키 -->
, A.LINK_RST_CD = B.LINK_RST_CD <!-- 연계 결과 코드 -->
, A.LINK_RST_MSG = B.LINK_RST_MSG <!-- 연계 결과 메시지 --></if></update>
<resultMap id="a02Row" type="cokr.xit.interfaces.lntris.basic.a.LntrisA02"> <!-- 과태료 대장 전일자 변동자료 -->
<result property="a02Id" column="A02_ID" /> <!-- 일련번호 ID -->

@ -112,7 +112,7 @@ INSERT INTO TB_NIS_SPCL_B01 (
)</insert>
<update id="updateB01ReqStatus" parameterType="map">/* 체납상세세목정보_요청 연계상태 수정(lntrisB01_03Mapper.updateB01ReqStatus) */
UPDATE TB_NIS_SPCL_B01 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B01 A
, (<foreach collection="b01s" item="b01" separator=" UNION">
SELECT #{b01.b01Id} B01_ID, #{b01.response.linkRstCd} LINK_RST_CD, #{b01.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -120,8 +120,16 @@ UPDATE TB_NIS_SPCL_B01 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B01_ID = B.B01_ID
</update>
WHERE A.B01_ID = B.B01_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B01 A USING
(<foreach collection="b01s" item="b01" separator=" UNION">
SELECT #{b01.b01Id} B01_ID, #{b01.response.linkRstCd} LINK_RST_CD, #{b01.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.B01_ID = B.B01_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b01RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB01$B01RespDetail"> <!-- 체납상세세목정보_응답 -->
<result property="b01Id" column="B01_ID" /> <!-- 일련번호 ID -->
@ -641,7 +649,7 @@ INSERT INTO TB_NIS_SPCL_B02 (
)</insert>
<update id="updateB02ReqStatus" parameterType="map">/* 수납 상세정보_요청 연계상태 수정(lntrisB01_03Mapper.updateB02ReqStatus) */
UPDATE TB_NIS_SPCL_B02 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B02 A
, (<foreach collection="b02s" item="b02" separator=" UNION">
SELECT #{b02.b02Id} B02_ID, #{b02.response.linkRstCd} LINK_RST_CD, #{b02.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -649,7 +657,16 @@ UPDATE TB_NIS_SPCL_B02 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B02_ID = B.B02_ID</update>
WHERE A.B02_ID = B.B02_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B02 A USING
(<foreach collection="b02s" item="b02" separator=" UNION">
SELECT #{b02.b02Id} B02_ID, #{b02.response.linkRstCd} LINK_RST_CD, #{b02.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.B02_ID = B.B02_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b02RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB02$B02RespDetail"> <!-- 수납상세정보_응답 -->
<result property="b02Id" column="B02_ID" /> <!-- 일련번호 ID -->
@ -1069,7 +1086,7 @@ INSERT INTO TB_NIS_SPCL_B03 (
)</insert>
<update id="updateB03ReqStatus" parameterType="map">/* 결손 상세세목정보_요청 연계상태 수정(lntrisB01_03Mapper.updateB03ReqStatus) */
UPDATE TB_NIS_SPCL_B03 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B03 A
, (<foreach collection="b03s" item="b03" separator=" UNION">
SELECT #{b03.b03Id} B03_ID, #{b03.response.linkRstCd} LINK_RST_CD, #{b03.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -1077,7 +1094,16 @@ UPDATE TB_NIS_SPCL_B03 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B03_ID = B.B03_ID</update>
WHERE A.B03_ID = B.B03_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B03 A USING
(<foreach collection="b03s" item="b03" separator=" UNION">
SELECT #{b03.b03Id} B03_ID, #{b03.response.linkRstCd} LINK_RST_CD, #{b03.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.B03_ID = B.B03_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b03RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB03$B03RespDetail"> <!-- 수납상세정보_응답 -->
<result property="b03Id" column="B03_ID" /> <!-- 일련번호 ID -->

@ -103,7 +103,7 @@ INSERT INTO TB_NIS_SPCL_B04 (
)</insert>
<update id="updateB04ReqStatus" parameterType="map">/* 체납자독려정보_요청 연계상태 수정(lntrisB04_06Mapper.updateB04ReqStatus) */
UPDATE TB_NIS_SPCL_B04 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B04 A
, (<foreach collection="b04s" item="b04" separator=" UNION">
SELECT #{b04.b04Id} B04_ID, #{b04.response.linkRstCd} LINK_RST_CD, #{b04.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -111,7 +111,16 @@ UPDATE TB_NIS_SPCL_B04 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B04_ID = B.B04_ID</update>
WHERE A.B04_ID = B.B04_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B04 A USING
(<foreach collection="b04s" item="b04" separator=" UNION">
SELECT #{b04.b04Id} B04_ID, #{b04.response.linkRstCd} LINK_RST_CD, #{b04.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.B04_ID = B.B04_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b04RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB04$B04RespDetail"> <!-- 체납자독려정보_응답 -->
<result property="b04Id" column="B04_ID" /> <!-- 일련번호 ID -->
@ -267,7 +276,7 @@ INSERT INTO TB_NIS_SPCL_B05 (
)</insert>
<update id="updateB05ReqStatus" parameterType="map">/* 압류정보_요청 연계상태 수정(lntrisB04_06Mapper.updateB05ReqStatus) */
UPDATE TB_NIS_SPCL_B05 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B05 A
, (<foreach collection="b05s" item="b05" separator=" UNION">
SELECT #{b05.b05Id} B05_ID, #{b05.response.linkRstCd} LINK_RST_CD, #{b05.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -275,7 +284,16 @@ UPDATE TB_NIS_SPCL_B05 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B05_ID = B.B05_ID</update>
WHERE A.B05_ID = B.B05_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B05 A USING
(<foreach collection="b05s" item="b05" separator=" UNION">
SELECT #{b05.b05Id} B05_ID, #{b05.response.linkRstCd} LINK_RST_CD, #{b05.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.B05_ID = B.B05_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b05RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB05$B05RespDetail"> <!-- 압류정보_응답 -->
<result property="b05Id" column="B05_ID" /> <!-- 일련번호 ID -->
@ -495,7 +513,7 @@ INSERT INTO TB_NIS_SPCL_B06 (
)</insert>
<update id="updateB06ReqStatus" parameterType="map">/* 압류시점 체납정보_요청 연계상태 수정(lntrisB04_06Mapper.updateB06ReqStatus) */
UPDATE TB_NIS_SPCL_B06 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B06 A
, (<foreach collection="b06s" item="b06" separator=" UNION">
SELECT #{b06.b06Id} B06_ID, #{b06.response.linkRstCd} LINK_RST_CD, #{b06.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -503,7 +521,16 @@ UPDATE TB_NIS_SPCL_B06 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B06_ID = B.B06_ID</update>
WHERE A.B06_ID = B.B06_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B06 A USING
(<foreach collection="b06s" item="b06" separator=" UNION">
SELECT #{b06.b06Id} B06_ID, #{b06.response.linkRstCd} LINK_RST_CD, #{b06.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.B06_ID = B.B06_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b06RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB06$B06RespDetail"> <!-- 압류시점 체납정보_응답 -->
<result property="b06Id" column="B06_ID" /> <!-- 일련번호 ID -->

@ -95,7 +95,7 @@ INSERT INTO TB_NIS_SPCL_B07 (
)</insert>
<update id="updateB07ReqStatus" parameterType="map">/* 과오납 상세정보 요청 연계상태 수정(lntrisB07_09Mapper.updateB07ReqStatus) */
UPDATE TB_NIS_SPCL_B07 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B07 A
, (<foreach collection="b07s" item="b07" separator=" UNION">
SELECT #{b07.b07Id} B07_ID, #{b07.response.linkRstCd} LINK_RST_CD, #{b07.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -103,7 +103,16 @@ UPDATE TB_NIS_SPCL_B07 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B07_ID = B.B07_ID</update>
WHERE A.B07_ID = B.B07_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B07 A USING
(<foreach collection="b07s" item="b07" separator=" UNION">
SELECT #{b07.b07Id} B07_ID, #{b07.response.linkRstCd} LINK_RST_CD, #{b07.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.B07_ID = B.B07_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b07RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB07$B07RespDetail"> <!-- 과오납 상세정보 응답 -->
<result property="b07Id" column="B07_ID" /> <!-- 일련번호 ID -->
@ -303,7 +312,7 @@ INSERT INTO TB_NIS_SPCL_B08 (
)</insert>
<update id="updateB08ReqStatus" parameterType="map">/* 영치정보 요청 연계상태 수정(lntrisB07_09Mapper.updateB08ReqStatus) */
UPDATE TB_NIS_SPCL_B08 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B08 A
, (<foreach collection="b08s" item="b08" separator=" UNION">
SELECT #{b08.b08Id} B08_ID, #{b08.response.linkRstCd} LINK_RST_CD, #{b08.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -311,7 +320,16 @@ UPDATE TB_NIS_SPCL_B08 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B08_ID = B.B08_ID</update>
WHERE A.B08_ID = B.B08_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B08 A USING
(<foreach collection="b08s" item="b08" separator=" UNION">
SELECT #{b08.b08Id} B08_ID, #{b08.response.linkRstCd} LINK_RST_CD, #{b08.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.B08_ID = B.B08_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b08RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB08$B08RespDetail"> <!-- 영치정보 응답 -->
<result property="b08Id" column="B08_ID" /> <!-- 일련번호 ID -->
@ -509,7 +527,7 @@ INSERT INTO TB_NIS_SPCL_B09 (
)</insert>
<update id="updateB09ReqStatus" parameterType="map">/* 고지발송정보 요청 연계상태 수정(lntrisB07_09Mapper.updateB09ReqStatus) */
UPDATE TB_NIS_SPCL_B09 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B09 A
, (<foreach collection="b09s" item="b09" separator=" UNION">
SELECT #{b09.b09Id} B09_ID, #{b09.response.linkRstCd} LINK_RST_CD, #{b09.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -517,7 +535,16 @@ UPDATE TB_NIS_SPCL_B09 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B09_ID = B.B09_ID</update>
WHERE A.B09_ID = B.B09_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B09 A USING
(<foreach collection="b09s" item="b09" separator=" UNION">
SELECT #{b09.b09Id} B09_ID, #{b09.response.linkRstCd} LINK_RST_CD, #{b09.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.B09_ID = B.B09_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b09RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB09$B09RespDetail"> <!-- 고지발송정보 응답 -->
<result property="b09Id" column="B09_ID" /> <!-- 일련번호 ID -->

@ -95,7 +95,7 @@ INSERT INTO TB_NIS_SPCL_B10 (
)</insert>
<update id="updateB10ReqStatus" parameterType="map">/* 우편발송결과정보 요청 연계상태 수정(lntrisB10_12Mapper.updateB10ReqStatus) */
UPDATE TB_NIS_SPCL_B10 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B10 A
, (<foreach collection="b10s" item="b10" separator=" UNION">
SELECT #{b10.b10Id} B10_ID, #{b10.response.linkRstCd} LINK_RST_CD, #{b10.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -103,7 +103,16 @@ UPDATE TB_NIS_SPCL_B10 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B10_ID = B.B10_ID</update>
WHERE A.B10_ID = B.B10_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B10 A USING
(<foreach collection="b10s" item="b10" separator=" UNION">
SELECT #{b10.b10Id} B10_ID, #{b10.response.linkRstCd} LINK_RST_CD, #{b10.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.B10_ID = B.B10_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b10RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB10$B10RespDetail"> <!-- 우편발송결과정보 응답 -->
<result property="b10Id" column="B10_ID" /> <!-- 일련번호 ID -->
@ -325,7 +334,7 @@ INSERT INTO TB_NIS_SPCL_B11 (
)</insert>
<update id="updateB11ReqStatus" parameterType="map">/* 과태료대장 목록 요청 연계상태 수정(lntrisB10_12Mapper.updateB11ReqStatus) */
UPDATE TB_NIS_SPCL_B11 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B11 A
, (<foreach collection="b11s" item="b11" separator=" UNION">
SELECT #{b11.b11Id} B11_ID, #{b11.response.linkRstCd} LINK_RST_CD, #{b11.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -333,7 +342,16 @@ UPDATE TB_NIS_SPCL_B11 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B11_ID = B.B11_ID</update>
WHERE A.B11_ID = B.B11_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B11 A USING
(<foreach collection="b11s" item="b11" separator=" UNION">
SELECT #{b11.b11Id} B11_ID, #{b11.response.linkRstCd} LINK_RST_CD, #{b11.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.B11_ID = B.B11_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b11RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB11$B11RespDetail"> <!-- 과태료대장 목록 응답 -->
<result property="b11Id" column="B11_ID" /> <!-- 일련번호 ID -->
@ -573,7 +591,7 @@ INSERT INTO TB_NIS_SPCL_B12 (
)</insert>
<update id="updateB12ReqStatus" parameterType="map">/* 과태료대장 상세 요청 연계상태 수정(lntrisB10_12Mapper.updateB12ReqStatus) */
UPDATE TB_NIS_SPCL_B12 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B12 A
, (<foreach collection="b12s" item="b12" separator=" UNION">
SELECT #{b12.b12Id} B12_ID, #{b12.response.linkRstCd} LINK_RST_CD, #{b12.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -581,7 +599,16 @@ UPDATE TB_NIS_SPCL_B12 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B12_ID = B.B12_ID</update>
WHERE A.B12_ID = B.B12_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B12 A USING
(<foreach collection="b12s" item="b12" separator=" UNION">
SELECT #{b12.b12Id} B12_ID, #{b12.response.linkRstCd} LINK_RST_CD, #{b12.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.B12_ID = B.B12_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b12RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB12$B12RespDetail"> <!-- 과태료대장 상세 응답 -->
<result property="b12Id" column="B12_ID" /> <!-- 일련번호 ID -->

@ -69,7 +69,7 @@ INSERT INTO TB_NIS_SPCL_B13 (
)</insert>
<update id="updateB13ReqStatus" parameterType="map">/* 주정차위반 과태료 대장 목록 요청 연계상태 수정(lntrisB13_16Mapper.updateB13ReqStatus) */
UPDATE TB_NIS_SPCL_B13 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B13 A
, (<foreach collection="b13s" item="b13" separator=" UNION">
SELECT #{b13.b13Id} B13_ID, #{b13.response.linkRstCd} LINK_RST_CD, #{b13.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -77,7 +77,16 @@ UPDATE TB_NIS_SPCL_B13 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B13_ID = B.B13_ID</update>
WHERE A.B13_ID = B.B13_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B13 A USING
(<foreach collection="b13s" item="b13" separator=" UNION">
SELECT #{b13.b13Id} B13_ID, #{b13.response.linkRstCd} LINK_RST_CD, #{b13.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.B13_ID = B.B13_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b13RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB13$B13RespDetail"> <!-- 주정차위반 과태료 대장 목록 응답 -->
<result property="b13Id" column="B13_ID" /> <!-- 일련번호 ID -->
@ -322,7 +331,7 @@ INSERT INTO TB_NIS_SPCL_B14 (
)</insert>
<update id="updateB14ReqStatus" parameterType="map">/* 주정차위반 과태료 대장 상세 요청 연계상태 수정(lntrisB13_16Mapper.updateB14ReqStatus) */
UPDATE TB_NIS_SPCL_B14 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B14 A
, (<foreach collection="b14s" item="b14" separator=" UNION">
SELECT #{b14.b14Id} B14_ID, #{b14.response.linkRstCd} LINK_RST_CD, #{b14.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -330,7 +339,16 @@ UPDATE TB_NIS_SPCL_B14 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B14_ID = B.B14_ID</update>
WHERE A.B14_ID = B.B14_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B14 A USING
(<foreach collection="b14s" item="b14" separator=" UNION">
SELECT #{b14.b14Id} B14_ID, #{b14.response.linkRstCd} LINK_RST_CD, #{b14.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.B14_ID = B.B14_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b14RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB14$B14RespDetail"> <!-- 주정차위반 과태료 대장 상세 응답 -->
<result property="b14Id" column="B14_ID" /> <!-- 일련번호 ID -->
@ -836,7 +854,7 @@ INSERT INTO TB_NIS_SPCL_B15 (
)</insert>
<update id="updateB15ReqStatus" parameterType="map">/* 전용차로위반 과태료 대장 목록 요청 연계상태 수정(lntrisB13_16Mapper.updateB15ReqStatus) */
UPDATE TB_NIS_SPCL_B15 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B15 A
, (<foreach collection="b15s" item="b15" separator=" UNION">
SELECT #{b15.b15Id} B15_ID, #{b15.response.linkRstCd} LINK_RST_CD, #{b15.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -844,7 +862,16 @@ UPDATE TB_NIS_SPCL_B15 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B15_ID = B.B15_ID</update>
WHERE A.B15_ID = B.B15_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B15 A USING
(<foreach collection="b15s" item="b15" separator=" UNION">
SELECT #{b15.b15Id} B15_ID, #{b15.response.linkRstCd} LINK_RST_CD, #{b15.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B (A.B15_ID = B.B15_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b15RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB15$B15RespDetail"> <!-- 전용차로위반 과태료 대장 목록 응답 -->
<result property="b15Id" column="B15_ID" /> <!-- 일련번호 ID -->
@ -1084,7 +1111,7 @@ INSERT INTO TB_NIS_SPCL_B16 (
)</insert>
<update id="updateB16ReqStatus" parameterType="map">/* 전용차로위반 과태료 대장 상세 요청 연계상태 수정(lntrisB13_16Mapper.updateB16ReqStatus) */
UPDATE TB_NIS_SPCL_B16 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_SPCL_B16 A
, (<foreach collection="b16s" item="b16" separator=" UNION">
SELECT #{b16.b16Id} B16_ID, #{b16.response.linkRstCd} LINK_RST_CD, #{b16.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -1092,7 +1119,16 @@ UPDATE TB_NIS_SPCL_B16 A
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE A.B16_ID = B.B16_ID</update>
WHERE A.B16_ID = B.B16_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_SPCL_B16 A USING
(<foreach collection="b16s" item="b16" separator=" UNION">
SELECT #{b16.b16Id} B16_ID, #{b16.response.linkRstCd} LINK_RST_CD, #{b16.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.B16_ID = B.B16_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_CD = B.LINK_RST_CD
, A.LINK_RST_MSG = B.LINK_RST_MSG
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}</if></update>
<resultMap id="b16RespRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB16$B16RespDetail"> <!-- 전용차로위반 과태료 대장 상세 응답 -->
<result property="b16Id" column="B16_ID" /> <!-- 일련번호 ID -->

@ -387,7 +387,7 @@ INSERT INTO TB_NIS_INDIV_D01 (
)</insert>
<update id="updateD01Status" parameterType="map">/* 부과정보 연계상태 수정(lntrisDMapper.updateD01) */
UPDATE TB_NIS_INDIV_D01 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_INDIV_D01 A
, (<foreach collection="d01s" item="d01" separator=" UNION">
SELECT #{d01.d01Id} D01_ID, #{d01.response.resVo.linkMngKey} LINK_MNG_KEY, #{d01.response.resVo.linkRstCd} LINK_RST_CD, #{d01.response.resVo.linkRstMsg} LINK_RST_MSG</foreach>
) B
@ -395,7 +395,16 @@ UPDATE TB_NIS_INDIV_D01 A
, A.LINK_MNG_KEY = B.LINK_MNG_KEY <!-- 연계 관리키 -->
, A.LINK_RST_CD = B.LINK_RST_CD <!-- 연계 결과 코드 -->
, A.LINK_RST_MSG = B.LINK_RST_MSG <!-- 연계 결과 메시지 -->
WHERE A.D01_ID = B.D01_ID</update>
WHERE A.D01_ID = B.D01_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_INDIV_D01 A USING
(<foreach collection="d01s" item="d01" separator=" UNION">
SELECT #{d01.d01Id} D01_ID, #{d01.response.resVo.linkMngKey} LINK_MNG_KEY, #{d01.response.resVo.linkRstCd} LINK_RST_CD, #{d01.response.resVo.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.D01_ID = B.D01_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_DT =<include refid="utility.now" /> <!-- 연계 결과 일시 -->
, A.LINK_MNG_KEY = B.LINK_MNG_KEY <!-- 연계 관리키 -->
, A.LINK_RST_CD = B.LINK_RST_CD <!-- 연계 결과 코드 -->
, A.LINK_RST_MSG = B.LINK_RST_MSG <!-- 연계 결과 메시지 --></if></update>
<resultMap id="d02Row" type="cokr.xit.interfaces.lntris.basic.d.LntrisD02"> <!-- 부과 수납정보 -->
<result property="d02Id" column="D02_ID" /> <!-- 일련번호 ID -->
@ -801,14 +810,22 @@ INSERT INTO TB_NIS_INDIV_D02 (
)</insert>
<update id="updateD02Status" parameterType="map">/* 부과수납 정보 연계상태 수정(lntrisDMapper.updateD02Status) */
UPDATE TB_NIS_INDIV_D02 A
<if test="_databaseId == 'mariadb'">UPDATE TB_NIS_INDIV_D02 A
, (<foreach collection="d02s" item="d02" separator=" UNION">
SELECT #{d02.d02Id} D02_ID, #{d02.response.linkRstCd} LINK_RST_CD, #{d02.response.linkRstMsg} LINK_RST_MSG</foreach>
) B
SET A.LINK_RST_DT =<include refid="utility.now" /> <!-- 연계 결과 일시 -->
, A.LINK_RST_CD = B.LINK_RST_CD <!-- 연계 결과 코드 -->
, A.LINK_RST_MSG = B.LINK_RST_MSG <!-- 연계 결과 메시지 -->
WHERE A.D02_ID = B.D02_ID</update>
WHERE A.D02_ID = B.D02_ID</if>
<if test="_databaseId == 'oracle'">MERGE INTO TB_NIS_INDIV_D02 A USING
(<foreach collection="d02s" item="d02" separator=" UNION">
SELECT #{d02.d02Id} D02_ID, #{d02.response.linkRstCd} LINK_RST_CD, #{d02.response.linkRstMsg} LINK_RST_MSG FROM DUAL</foreach>
) B ON (A.D02_ID = B.D02_ID)
WHEN MATCHED THEN UPDATE
SET A.LINK_RST_DT =<include refid="utility.now" /> <!-- 연계 결과 일시 -->
, A.LINK_RST_CD = B.LINK_RST_CD <!-- 연계 결과 코드 -->
, A.LINK_RST_MSG = B.LINK_RST_MSG <!-- 연계 결과 메시지 --></if></update>
<resultMap id="d03Row" type="cokr.xit.interfaces.lntris.basic.d.LntrisD03"> <!-- 부과결과정보 -->
<result property="d03Id" column="D03_ID" /> <!-- 일련번호 ID -->
@ -957,7 +974,7 @@ UPDATE TB_NIS_INDIV_D02 A
<include refid="utility.paging-prefix" />
<include refid="selectD03" />
WHERE TASK_APLCN_CD = '999'
<include refid="utility.paging-prefix" /></select>
<include refid="utility.paging-suffix" /></select>
<insert id="insertD03" parameterType="map">/* 부과결과정보 등록(lntrisDMapper.insertD03) */
<selectKey keyProperty="d03.d03Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
@ -1041,7 +1058,7 @@ INSERT INTO TB_NIS_INDIV_D03 (
, #{req.taxnNo} <!-- 과세번호 -->
, #{req.untyTaxnNo} <!-- 통합과세번호 -->
, #{req.dptCd} <!-- 부서코드 -->
, #{req.spclFisBizCd} <!-- 특별회계사업코드 -->
, #{req.spclFisBizCd} <!-- 특별회계사업코드 -->
, #{req.fyr} <!-- 회계연도 -->
, #{req.actSeCd} <!-- 회계구분코드 -->
, #{req.rprsTxmCd} <!-- 대표세입과목코드 -->
@ -1587,35 +1604,35 @@ INSERT INTO TB_NIS_INDIV_D06 (
, MDFR <!-- 수정자 -->
) VALUES (
#{d06.d06Id} <!-- 일련번호 ID -->
, #{req.sgbCd} <!-- 자치단체코드 -->
, #{req.sgbNm} <!-- 자치단체명 -->
, #{req.linkMngKey} <!-- 연계관리키 -->
, #{req.taxnNo} <!-- 과세번호 -->
, #{req.untyTaxnNo} <!-- 통합과세번호 -->
, #{req.dptCd} <!-- 부서코드 -->
, #{req.dptNm} <!-- 부서명 -->
, #{req.spclFisBizCd} <!-- 특별회계사업코드 -->
, #{req.spclFisBizNm} <!-- 특별회계사업명 -->
, #{req.fyr} <!-- 회계연도 -->
, #{req.actSeCd} <!-- 회계구분코드 -->
, #{req.actSeNm} <!-- 회계구분명 -->
, #{req.rprsTxmCd} <!-- 대표세입과목코드 -->
, #{req.rprsTxmNm} <!-- 세입과목명 -->
, #{req.operItemCd} <!-- 운영항목코드 -->
, #{req.operItemNm} <!-- 운영항목명 -->
, #{req.lvyNo} <!-- 부과번호 -->
, #{req.itmNo} <!-- 분납번호 -->
, #{req.rdcYmd} <!-- 감액일자 -->
, #{req.rdcPctAmt} <!-- 감액본세금액 -->
, #{req.rdcAdtnAmt} <!-- 감액가산금액 -->
, #{req.rdcIntrAmt} <!-- 감액이자금액 -->
, #{req.rdcAmt} <!-- 감액금액 -->
, #{req.rdcRsnCn} <!-- 감액사유내용 -->
, #{req.rsveItem1} <!-- 예비항목1 -->
, #{req.rsveItem2} <!-- 예비항목2 -->
, #{req.rsveItem3} <!-- 예비항목3 -->
, #{req.rsveItem4} <!-- 예비항목4 -->
, #{req.rsveItem5} <!-- 예비항목5 -->
, #{req.sgbCd} <!-- 자치단체코드 -->
, #{req.sgbNm} <!-- 자치단체명 -->
, #{req.linkMngKey} <!-- 연계관리키 -->
, #{req.taxnNo} <!-- 과세번호 -->
, #{req.untyTaxnNo} <!-- 통합과세번호 -->
, #{req.dptCd} <!-- 부서코드 -->
, #{req.dptNm} <!-- 부서명 -->
, #{req.spclFisBizCd} <!-- 특별회계사업코드 -->
, #{req.spclFisBizNm} <!-- 특별회계사업명 -->
, #{req.fyr} <!-- 회계연도 -->
, #{req.actSeCd} <!-- 회계구분코드 -->
, #{req.actSeNm} <!-- 회계구분명 -->
, #{req.rprsTxmCd} <!-- 대표세입과목코드 -->
, #{req.rprsTxmNm} <!-- 세입과목명 -->
, #{req.operItemCd} <!-- 운영항목코드 -->
, #{req.operItemNm} <!-- 운영항목명 -->
, #{req.lvyNo} <!-- 부과번호 -->
, #{req.itmNo} <!-- 분납번호 -->
, #{req.rdcYmd} <!-- 감액일자 -->
, #{req.rdcPctAmt} <!-- 감액본세금액 -->
, #{req.rdcAdtnAmt} <!-- 감액가산금액 -->
, #{req.rdcIntrAmt} <!-- 감액이자금액 -->
, #{req.rdcAmt} <!-- 감액금액 -->
, #{req.rdcRsnCn} <!-- 감액사유내용 -->
, #{req.rsveItem1} <!-- 예비항목1 -->
, #{req.rsveItem2} <!-- 예비항목2 -->
, #{req.rsveItem3} <!-- 예비항목3 -->
, #{req.rsveItem4} <!-- 예비항목4 -->
, #{req.rsveItem5} <!-- 예비항목5 -->
, #{d06.linkRsltDt} <!-- 연계 결과 일시 -->
, #{d06.response.resVo.linkRstCd} <!-- 연계 결과 코드 -->
, #{d06.response.resVo.linkRstMsg} <!-- 연계 결과 메시지 -->

Loading…
Cancel
Save