오라클 SQL 지원

master
mjkhan21 11 months ago
parent 69419b55b0
commit 3479ad6ba5

@ -52,6 +52,15 @@
<artifactId>xit-lntris</artifactId> <artifactId>xit-lntris</artifactId>
<version>23.04.01-SNAPSHOT</version> <version>23.04.01-SNAPSHOT</version>
</dependency> </dependency>
<!--
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>12.1.0.2.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/test/resources/ojdbc6.jar</systemPath>
</dependency>
-->
</dependencies> </dependencies>
<build> <build>

@ -1,5 +1,6 @@
{ {
"useDatabase": false, "useDatabase": true,
"sendRequest": false,
"locals": [ "locals": [
{"organization": "4060000",/* 지역 자치단체 코드(7자리) */ {"organization": "4060000",/* 지역 자치단체 코드(7자리) */

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

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

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

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

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

@ -63,13 +63,14 @@
</root> </root>
<!-- logger name="jdbc" level="OFF" additivity="false"/--> <!-- logger name="jdbc" level="OFF" additivity="false"/-->
<logger name="jdbc.sqltiming" level="DEBUG" />
<logger name="jdbc.resultsettable" level="OFF" additivity="false"/>
<logger name="jdbc.sqlonly" level="OFF"/>
<logger name="jdbc.resultset" level="OFF" additivity="false"/>
<logger name="jdbc.connection" level="OFF" additivity="false"/>
<logger name="jdbc.audit" level="OFF" additivity="true"/>
<logger name="org.apache.commons" level="OFF" additivity="false"/> <logger name="org.apache.commons" level="OFF" additivity="false"/>
<logger name="jdbc.connection" level="OFF" additivity="false"/>
<logger name="jdbc.sqlonly" level="OFF" additivity="false"/>
<logger name="jdbc.resultset" level="OFF" additivity="false"/>
<logger name="jdbc.resultsettable" level="OFF" additivity="false"/>
<logger name="jdbc.audit" level="OFF" additivity="false"/>
<logger name="com.zaxxer" level="OFF" additivity="false"/>
<logger name="jdbc.sqltiming" level="DEBUG" />
<logger name="org.quartz" level="Error" additivity="false"/> <logger name="org.quartz" level="Error" additivity="false"/>
<!-- 특정패키지 로깅레벨 설정 --> <!-- 특정패키지 로깅레벨 설정 -->

@ -10,13 +10,13 @@
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="net.sf.log4jdbc.sql.jdbcapi.DriverSpy"/> <property name="driverClassName" value="net.sf.log4jdbc.sql.jdbcapi.DriverSpy"/>
<property name="url" value="jdbc:log4jdbc:oracle:thin:@211.119.124.117:1521/ora11g" />
<property name="username" value="xit_traffic"/>
<property name="password" value="traffic5"/>
<!--
<property name="url" value="jdbc:log4jdbc:mariadb://211.119.124.9:4407/platform?useUnicode=true&amp;characterEncoding=utf8&amp;serverTimezone=Asia/Seoul&amp;useSSL=false" /> <property name="url" value="jdbc:log4jdbc:mariadb://211.119.124.9:4407/platform?useUnicode=true&amp;characterEncoding=utf8&amp;serverTimezone=Asia/Seoul&amp;useSSL=false" />
<property name="username" value="fimsweb"/> <property name="username" value="fimsweb"/>
<property name="password" value="fimsweb!@"/> <property name="password" value="fimsweb!@"/>
<!--
<property name="url" value="jdbc:log4jdbc:mariadb://localhost:3306/xit-base?useUnicode=true&amp;characterEncoding=utf8&amp;serverTimezone=Asia/Seoul&amp;useSSL=false" />
<property name="username" value="root"/>
<property name="password" value="mjkhan"/>
--> -->
</bean> </bean>

Loading…
Cancel
Save