아이디 추출 select 수정

master
mjkhan21 2 months ago
parent 0b6cc0e115
commit 5009f51263

@ -67,8 +67,7 @@
<insert id="insertB01Req" parameterType="map">/* 체납상세세목정보_요청 등록(lntrisB01_03Mapper.insertB01Req) */
<selectKey keyProperty="b01.b01Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B01_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B01 A, (<include refid="utility.selectToday" />) B
WHERE B01_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B01 A ON B01_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B01 (
B01_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무구분코드 -->
@ -604,8 +603,7 @@ SELECT #{resp.b01Id} <!-- 일련번호 ID -->
<insert id="insertB02Req" parameterType="map">/* 수납 상세정보_요청 등록(lntrisB01_03Mapper.insertB02Req) */
<selectKey keyProperty="b02.b02Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B02_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B02 A, (<include refid="utility.selectToday" />) B
WHERE B02_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B02 A ON B02_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B02 (
B02_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무구분코드 -->
@ -1041,8 +1039,7 @@ SELECT #{resp.b02Id} <!-- 일련번호 ID -->
<insert id="insertB03Req" parameterType="map">/* 결손 상세세목정보_요청 등록(lntrisB01_03Mapper.insertB03Req) */
<selectKey keyProperty="b03.b03Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B03_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B03 A, (<include refid="utility.selectToday" />) B
WHERE B03_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B03 A ON B03_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B03 (
B03_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무구분코드 -->

@ -54,8 +54,7 @@
<insert id="insertB04Req" parameterType="map">/* 체납자독려정보_요청 등록(lntrisB04_06Mapper.insertB04Req) */
<selectKey keyProperty="b04.b04Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B04_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B04 A, (<include refid="utility.selectToday" />) B
WHERE B04_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B04 A ON B04_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B04 (
B04_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무구분코드 -->
@ -247,8 +246,7 @@ SELECT #{resp.b04Id} <!-- 일련번호 ID -->
<insert id="insertB05Req" parameterType="map">/* 압류정보_요청 등록(lntrisB04_06Mapper.insertB05Req) */
<selectKey keyProperty="b05.b05Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B05_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B05 A, (<include refid="utility.selectToday" />) B
WHERE B05_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B05 A ON B05_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B05 (
B05_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무구분코드 -->
@ -484,8 +482,7 @@ SELECT #{resp.b05Id} <!-- 일련번호 ID -->
<insert id="insertB06Req" parameterType="map">/* 압류시점 체납정보_요청 등록(lntrisB04_06Mapper.insertB06Req) */
<selectKey keyProperty="b06.b06Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B06_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B06 A, (<include refid="utility.selectToday" />) B
WHERE B06_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B06 A ON B06_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B06 (
B06_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무구분코드 -->

@ -50,8 +50,7 @@
<insert id="insertB07Req" parameterType="map">/* 과오납 상세정보 요청 등록(lntrisB07_09Mapper.insertB07Req) */
<selectKey keyProperty="b07.b07Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B07_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B07 A, (<include refid="utility.selectToday" />) B
WHERE B07_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B07 A ON B07_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B07 (
B07_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무 구분 코드 -->
@ -283,8 +282,7 @@ SELECT #{resp.b07Id} <!-- 일련번호 ID -->
<insert id="insertB08Req" parameterType="map">/* 영치정보 요청 등록(lntrisB07_09Mapper.insertB08Req) */
<selectKey keyProperty="b08.b08Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B08_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B08 A, (<include refid="utility.selectToday" />) B
WHERE B08_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B08 A ON B08_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B08 (
B08_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무 구분 코드 -->
@ -482,8 +480,7 @@ SELECT #{resp.b08Id} <!-- 일련번호 ID -->
<insert id="insertB09Req" parameterType="map">/* 고지발송정보 요청 등록(lntrisB07_09Mapper.insertB09Req) */
<selectKey keyProperty="b09.b09Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B09_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B09 A, (<include refid="utility.selectToday" />) B
WHERE B09_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B09 A ON B09_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B09 (
B09_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무 구분 코드 -->

@ -50,8 +50,7 @@
<insert id="insertB10Req" parameterType="map">/* 우편발송결과정보 요청 등록(lntrisB10_12Mapper.insertB10Req) */
<selectKey keyProperty="b10.b10Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B10_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B10 A, (<include refid="utility.selectToday" />) B
WHERE B10_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B10 A ON B10_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B10 (
B10_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무 구분 코드 -->
@ -301,8 +300,7 @@ SELECT #{resp.b10Id} <!-- 일련번호 ID -->
<insert id="insertB11Req" parameterType="map">/* 과태료대장 목록 요청 등록(lntrisB10_12Mapper.insertB11Req) */
<selectKey keyProperty="b11.b11Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B11_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B11 A, (<include refid="utility.selectToday" />) B
WHERE B11_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B11 A ON B11_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B11 (
B11_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무 구분 코드 -->
@ -564,8 +562,7 @@ SELECT #{resp.b11Id} <!-- 일련번호 ID -->
<insert id="insertB12Req" parameterType="map">/* 과태료대장 상세 요청 등록(lntrisB10_12Mapper.insertB12Req) */
<selectKey keyProperty="b12.b12Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B12_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B12 A, (<include refid="utility.selectToday" />) B
WHERE B12_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B12 A ON B12_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B12 (
B12_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무 구분 코드 -->

@ -38,8 +38,7 @@
<insert id="insertB13Req" parameterType="map">/* 주정차위반 과태료 대장 목록 요청 등록(lntrisB13_16Mapper.insertB13Req) */
<selectKey keyProperty="b13.b13Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B13_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B13 A, (<include refid="utility.selectToday" />) B
WHERE B13_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B13 A ON B13_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B13 (
B13_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무 구분 코드 -->
@ -304,8 +303,7 @@ SELECT #{resp.b13Id} <!-- 일련번호 ID -->
<insert id="insertB14Req" parameterType="map">/* 주정차위반 과태료 대장 상세 요청 등록(lntrisB13_16Mapper.insertB14Req) */
<selectKey keyProperty="b14.b14Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B14_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B14 A, (<include refid="utility.selectToday" />) B
WHERE B14_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B14 A ON B14_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B14 (
B14_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무 구분 코드 -->
@ -823,8 +821,7 @@ INSERT INTO TB_NIS_SPCL_B14RV (
<insert id="insertB15Req" parameterType="map">/* 전용차로위반 과태료 대장 목록 요청 등록(lntrisB13_16Mapper.insertB15Req) */
<selectKey keyProperty="b15.b15Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B15_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B15 A, (<include refid="utility.selectToday" />) B
WHERE B15_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B15 A ON B15_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B15 (
B15_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무 구분 코드 -->
@ -1084,8 +1081,7 @@ SELECT #{resp.b15Id} <!-- 일련번호 ID -->
<insert id="insertB16Req" parameterType="map">/* 전용차로위반 과태료 대장 상세 요청 등록(lntrisB13_16Mapper.insertB16Req) */
<selectKey keyProperty="b16.b16Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(NVL(SUBSTR(MAX(B16_ID), 9) + 1, 1), 22, '0')) NEW_ID
FROM TB_NIS_SPCL_B16 A, (<include refid="utility.selectToday" />) B
WHERE B16_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid="utility.selectToday" />) B LEFT OUTER JOIN TB_NIS_SPCL_B16 A ON B16_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B16 (
B16_ID <!-- 일련번호 ID -->
, TASK_SE_CD <!-- 업무 구분 코드 -->

Loading…
Cancel
Save