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