IFNULL -> NVL, 추가: now, today 오라클 버젼

master
mjkhan21 11 months ago
parent e76b70dcbc
commit 9e5ba3f1f6

@ -20,16 +20,23 @@ SELECT FOUND_ROWS() TOT_CNT</select>
<sql id="orderBy"><if test="fetchSize == null or fetchSize &lt; 1"><include refid="utility.sortBy" /></if></sql> <sql id="orderBy"><if test="fetchSize == null or fetchSize &lt; 1"><include refid="utility.sortBy" /></if></sql>
<sql id="now">DATE_FORMAT(CURRENT_TIMESTAMP(), '%Y%m%d%H%i%s')</sql> <!-- 마리아 DB -->
<sql id="now">DATE_FORMAT(CURRENT_TIMESTAMP, '%Y%m%d%H%i%s')</sql>
<sql id="selectNow">SELECT<include refid="utility.now" />NOW</sql>
<sql id="today">DATE_FORMAT(CURRENT_DATE, '%Y%m%d')</sql> <sql id="today">DATE_FORMAT(CURRENT_DATE, '%Y%m%d')</sql>
<sql id="selectToday">SELECT<include refid="utility.today" />TODAY</sql> <!-- 오라클
<sql id="now">TO_CHAR(CURRENT_TIMESTAMP, 'YYYYMMDDHH24MISS')</sql>
<sql id="today">TO_CHAR(CURRENT_DATE, 'YYYYMMDD')</sql>
-->
<sql id="selectNow">SELECT<include refid="utility.now" />NOW FROM DUAL</sql>
<sql id="selectToday">SELECT<include refid="utility.today" />TODAY FROM DUAL</sql>
<sql id="thisDay">IFNULL(#{thisDay},<include refid="utility.today" />)</sql> <sql id="thisDay">NVL(#{thisDay},<include refid="utility.today" />)</sql>
<sql id="selectThisDay">SELECT<include refid="utility.thisDay" />THIS_DAY</sql> <sql id="selectThisDay">SELECT<include refid="utility.thisDay" />THIS_DAY FROM DUAL</sql>
</mapper> </mapper>

@ -66,7 +66,7 @@
<insert id="insertB01Req" parameterType="map">/* 체납상세세목정보_요청 등록(lntrisB01_03Mapper.insertB01Req) */ <insert id="insertB01Req" parameterType="map">/* 체납상세세목정보_요청 등록(lntrisB01_03Mapper.insertB01Req) */
<selectKey keyProperty="b01.b01Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b01.b01Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B01_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B01 A, (<include refid="utility.selectToday" />) B
WHERE B01_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B01_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B01 ( INSERT INTO TB_NIS_SPCL_B01 (
@ -551,7 +551,7 @@ SELECT #{resp.b01Id} <!-- 일련번호 ID -->
, #{currentUser.id} <!-- 등록자 --> , #{currentUser.id} <!-- 등록자 -->
, <include refid="utility.now" /> <!-- 수정 일시 --> , <include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 --> , #{currentUser.id} <!-- 수정자 -->
</foreach></insert> FROM DUAL</foreach></insert>
<resultMap id="b02ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB02"> <!-- 수납 상세정보_요청 --> <resultMap id="b02ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB02"> <!-- 수납 상세정보_요청 -->
<result property="b02Id" column="B02_ID" /> <!-- 일련번호 ID --> <result property="b02Id" column="B02_ID" /> <!-- 일련번호 ID -->
@ -595,7 +595,7 @@ SELECT #{resp.b01Id} <!-- 일련번호 ID -->
<insert id="insertB02Req" parameterType="map">/* 수납 상세정보_요청 등록(lntrisB01_03Mapper.insertB02Req) */ <insert id="insertB02Req" parameterType="map">/* 수납 상세정보_요청 등록(lntrisB01_03Mapper.insertB02Req) */
<selectKey keyProperty="b02.b02Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b02.b02Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B02_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B02 A, (<include refid="utility.selectToday" />) B
WHERE B02_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B02_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B02 ( INSERT INTO TB_NIS_SPCL_B02 (
@ -979,7 +979,7 @@ SELECT #{resp.b02Id} <!-- 일련번호 ID -->
, #{currentUser.id} <!-- 등록자 --> , #{currentUser.id} <!-- 등록자 -->
,<include refid="utility.now" /> <!-- 수정 일시 --> ,<include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 --> , #{currentUser.id} <!-- 수정자 -->
</foreach></insert> FROM DUAL</foreach></insert>
<resultMap id="b03ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB03"> <!-- 결손 상세세목정보_요청 --> <resultMap id="b03ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB03"> <!-- 결손 상세세목정보_요청 -->
<result property="b03Id" column="B03_ID" /> <!-- 일련번호 ID --> <result property="b03Id" column="B03_ID" /> <!-- 일련번호 ID -->
@ -1023,7 +1023,7 @@ SELECT #{resp.b02Id} <!-- 일련번호 ID -->
<insert id="insertB03Req" parameterType="map">/* 결손 상세세목정보_요청 등록(lntrisB01_03Mapper.insertB03Req) */ <insert id="insertB03Req" parameterType="map">/* 결손 상세세목정보_요청 등록(lntrisB01_03Mapper.insertB03Req) */
<selectKey keyProperty="b03.b03Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b03.b03Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B03_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B03 A, (<include refid="utility.selectToday" />) B
WHERE B03_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B03_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B03 ( INSERT INTO TB_NIS_SPCL_B03 (
@ -1211,6 +1211,6 @@ SELECT #{resp.b03Id} <!-- 일련번호 ID -->
, #{currentUser.id} <!-- 등록자 --> , #{currentUser.id} <!-- 등록자 -->
,<include refid="utility.now" /> <!-- 수정 일시 --> ,<include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 --> , #{currentUser.id} <!-- 수정자 -->
</foreach></insert> FROM DUAL</foreach></insert>
</mapper> </mapper>

@ -53,7 +53,7 @@
<insert id="insertB04Req" parameterType="map">/* 체납자독려정보_요청 등록(lntrisB04_06Mapper.insertB04Req) */ <insert id="insertB04Req" parameterType="map">/* 체납자독려정보_요청 등록(lntrisB04_06Mapper.insertB04Req) */
<selectKey keyProperty="b04.b04Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b04.b04Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B04_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B04 A, (<include refid="utility.selectToday" />) B
WHERE B04_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B04_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B04 ( INSERT INTO TB_NIS_SPCL_B04 (
@ -209,7 +209,7 @@ SELECT #{resp.b04Id} <!-- 일련번호 ID -->
, #{currentUser.id} <!-- 등록자 --> , #{currentUser.id} <!-- 등록자 -->
, <include refid="utility.now" /> <!-- 수정 일시 --> , <include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 --> , #{currentUser.id} <!-- 수정자 -->
</foreach></insert> FROM DUAL</foreach></insert>
<resultMap id="b05ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB05"> <!-- 압류정보_요청 --> <resultMap id="b05ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB05"> <!-- 압류정보_요청 -->
<result property="b05Id" column="B05_ID" /> <!-- 일련번호 ID --> <result property="b05Id" column="B05_ID" /> <!-- 일련번호 ID -->
@ -237,7 +237,7 @@ SELECT #{resp.b04Id} <!-- 일련번호 ID -->
<insert id="insertB05Req" parameterType="map">/* 압류정보_요청 등록(lntrisB04_06Mapper.insertB05Req) */ <insert id="insertB05Req" parameterType="map">/* 압류정보_요청 등록(lntrisB04_06Mapper.insertB05Req) */
<selectKey keyProperty="b05.b05Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b05.b05Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B05_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B05 A, (<include refid="utility.selectToday" />) B
WHERE B05_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B05_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B05 ( INSERT INTO TB_NIS_SPCL_B05 (
@ -437,7 +437,7 @@ SELECT #{resp.b05Id} <!-- 일련번호 ID -->
, #{currentUser.id} <!-- 등록자 --> , #{currentUser.id} <!-- 등록자 -->
,<include refid="utility.now" /> <!-- 수정 일시 --> ,<include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 --> , #{currentUser.id} <!-- 수정자 -->
</foreach></insert> FROM DUAL</foreach></insert>
<resultMap id="b06ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB06"> <!-- 압류시점 체납정보_요청 --> <resultMap id="b06ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB06"> <!-- 압류시점 체납정보_요청 -->
<result property="b06Id" column="B06_ID" /> <!-- 일련번호 ID --> <result property="b06Id" column="B06_ID" /> <!-- 일련번호 ID -->
@ -465,7 +465,7 @@ SELECT #{resp.b05Id} <!-- 일련번호 ID -->
<insert id="insertB06Req" parameterType="map">/* 압류시점 체납정보_요청 등록(lntrisB04_06Mapper.insertB06Req) */ <insert id="insertB06Req" parameterType="map">/* 압류시점 체납정보_요청 등록(lntrisB04_06Mapper.insertB06Req) */
<selectKey keyProperty="b06.b06Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b06.b06Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B06_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B06 A, (<include refid="utility.selectToday" />) B
WHERE B06_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B06_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B06 ( INSERT INTO TB_NIS_SPCL_B06 (
@ -585,6 +585,6 @@ SELECT #{resp.b06Id} <!-- 일련번호 ID -->
, #{currentUser.id} <!-- 등록자 --> , #{currentUser.id} <!-- 등록자 -->
,<include refid="utility.now" /> <!-- 수정 일시 --> ,<include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 --> , #{currentUser.id} <!-- 수정자 -->
</foreach></insert> FROM DUAL</foreach></insert>
</mapper> </mapper>

@ -49,7 +49,7 @@
<insert id="insertB07Req" parameterType="map">/* 과오납 상세정보 요청 등록(lntrisB07_09Mapper.insertB07Req) */ <insert id="insertB07Req" parameterType="map">/* 과오납 상세정보 요청 등록(lntrisB07_09Mapper.insertB07Req) */
<selectKey keyProperty="b07.b07Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b07.b07Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B07_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B07 A, (<include refid="utility.selectToday" />) B
WHERE B07_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B07_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B07 ( INSERT INTO TB_NIS_SPCL_B07 (
@ -245,7 +245,7 @@ SELECT #{resp.b07Id} <!-- 일련번호 ID -->
, #{currentUser.id} <!-- 등록자 --> , #{currentUser.id} <!-- 등록자 -->
,<include refid="utility.now" /> <!-- 수정 일시 --> ,<include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 --> , #{currentUser.id} <!-- 수정자 -->
</foreach></insert> FROM DUAL</foreach></insert>
<resultMap id="b08ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB08"> <!-- 영치정보 요청 --> <resultMap id="b08ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB08"> <!-- 영치정보 요청 -->
<result property="b08Id" column="B08_ID" /> <!-- 일련번호 ID --> <result property="b08Id" column="B08_ID" /> <!-- 일련번호 ID -->
@ -273,7 +273,7 @@ SELECT #{resp.b07Id} <!-- 일련번호 ID -->
<insert id="insertB08Req" parameterType="map">/* 영치정보 요청 등록(lntrisB07_09Mapper.insertB08Req) */ <insert id="insertB08Req" parameterType="map">/* 영치정보 요청 등록(lntrisB07_09Mapper.insertB08Req) */
<selectKey keyProperty="b08.b08Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b08.b08Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B08_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B08 A, (<include refid="utility.selectToday" />) B
WHERE B08_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B08_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B08 ( INSERT INTO TB_NIS_SPCL_B08 (
@ -419,7 +419,7 @@ SELECT #{resp.b08Id} <!-- 일련번호 ID -->
, #{currentUser.id} <!-- 등록자 --> , #{currentUser.id} <!-- 등록자 -->
,<include refid="utility.now" /> <!-- 수정 일시 --> ,<include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 --> , #{currentUser.id} <!-- 수정자 -->
</foreach></insert> FROM DUAL</foreach></insert>
<resultMap id="b09ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB09"> <!-- 고지발송정보 요청 --> <resultMap id="b09ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB09"> <!-- 고지발송정보 요청 -->
<result property="b09Id" column="B09_ID" /> <!-- 일련번호 ID --> <result property="b09Id" column="B09_ID" /> <!-- 일련번호 ID -->
@ -463,7 +463,7 @@ SELECT #{resp.b08Id} <!-- 일련번호 ID -->
<insert id="insertB09Req" parameterType="map">/* 고지발송정보 요청 등록(lntrisB07_09Mapper.insertB09Req) */ <insert id="insertB09Req" parameterType="map">/* 고지발송정보 요청 등록(lntrisB07_09Mapper.insertB09Req) */
<selectKey keyProperty="b09.b09Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b09.b09Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B09_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B09 A, (<include refid="utility.selectToday" />) B
WHERE B09_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B09_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B09 ( INSERT INTO TB_NIS_SPCL_B09 (
@ -603,6 +603,6 @@ SELECT #{resp.b09Id} <!-- 일련번호 ID -->
, #{currentUser.id} <!-- 등록자 --> , #{currentUser.id} <!-- 등록자 -->
,<include refid="utility.now" /> <!-- 수정 일시 --> ,<include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 --> , #{currentUser.id} <!-- 수정자 -->
</foreach></insert> FROM DUAL</foreach></insert>
</mapper> </mapper>

@ -49,7 +49,7 @@
<insert id="insertB10Req" parameterType="map">/* 우편발송결과정보 요청 등록(lntrisB10_12Mapper.insertB10Req) */ <insert id="insertB10Req" parameterType="map">/* 우편발송결과정보 요청 등록(lntrisB10_12Mapper.insertB10Req) */
<selectKey keyProperty="b10.b10Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b10.b10Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B10_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B10 A, (<include refid="utility.selectToday" />) B
WHERE B10_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B10_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B10 ( INSERT INTO TB_NIS_SPCL_B10 (
@ -257,7 +257,7 @@ SELECT #{resp.b10Id} <!-- 일련번호 ID -->
, #{currentUser.id} <!-- 등록자 --> , #{currentUser.id} <!-- 등록자 -->
,<include refid="utility.now" /> <!-- 수정 일시 --> ,<include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 --> , #{currentUser.id} <!-- 수정자 -->
</foreach></insert> FROM DUAL</foreach></insert>
<resultMap id="b11ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB11"> <!-- 과태료대장 목록 요청 --> <resultMap id="b11ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB11"> <!-- 과태료대장 목록 요청 -->
<result property="b11Id" column="B11_ID" /> <!-- 일련번호 ID --> <result property="b11Id" column="B11_ID" /> <!-- 일련번호 ID -->
@ -291,7 +291,7 @@ SELECT #{resp.b10Id} <!-- 일련번호 ID -->
<insert id="insertB11Req" parameterType="map">/* 과태료대장 목록 요청 등록(lntrisB10_12Mapper.insertB11Req) */ <insert id="insertB11Req" parameterType="map">/* 과태료대장 목록 요청 등록(lntrisB10_12Mapper.insertB11Req) */
<selectKey keyProperty="b11.b11Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b11.b11Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B11_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B11 A, (<include refid="utility.selectToday" />) B
WHERE B11_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B11_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B11 ( INSERT INTO TB_NIS_SPCL_B11 (
@ -517,7 +517,7 @@ SELECT #{resp.b11Id} <!-- 일련번호 ID -->
, #{currentUser.id} <!-- 등록자 --> , #{currentUser.id} <!-- 등록자 -->
,<include refid="utility.now" /> <!-- 수정 일시 --> ,<include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 --> , #{currentUser.id} <!-- 수정자 -->
</foreach></insert> FROM DUAL</foreach></insert>
<resultMap id="b12ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB12"> <!-- 과태료대장 상세 요청 --> <resultMap id="b12ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB12"> <!-- 과태료대장 상세 요청 -->
<result property="b12Id" column="B12_ID" /> <!-- 일련번호 ID --> <result property="b12Id" column="B12_ID" /> <!-- 일련번호 ID -->
@ -545,7 +545,7 @@ SELECT #{resp.b11Id} <!-- 일련번호 ID -->
<insert id="insertB12Req" parameterType="map">/* 과태료대장 상세 요청 등록(lntrisB10_12Mapper.insertB12Req) */ <insert id="insertB12Req" parameterType="map">/* 과태료대장 상세 요청 등록(lntrisB10_12Mapper.insertB12Req) */
<selectKey keyProperty="b12.b12Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b12.b12Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B12_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B12 A, (<include refid="utility.selectToday" />) B
WHERE B12_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B12_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B12 ( INSERT INTO TB_NIS_SPCL_B12 (
@ -1001,6 +1001,6 @@ SELECT #{resp.b12Id} <!-- 일련번호 ID -->
, #{currentUser.id} <!-- 등록자 --> , #{currentUser.id} <!-- 등록자 -->
,<include refid="utility.now" /> <!-- 수정 일시 --> ,<include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 --> , #{currentUser.id} <!-- 수정자 -->
</foreach></insert> FROM DUAL</foreach></insert>
</mapper> </mapper>

@ -37,7 +37,7 @@
<insert id="insertB13Req" parameterType="map">/* 주정차위반 과태료 대장 목록 요청 등록(lntrisB13_16Mapper.insertB13Req) */ <insert id="insertB13Req" parameterType="map">/* 주정차위반 과태료 대장 목록 요청 등록(lntrisB13_16Mapper.insertB13Req) */
<selectKey keyProperty="b13.b13Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b13.b13Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B13_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B13 A, (<include refid="utility.selectToday" />) B
WHERE B13_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B13_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B13 ( INSERT INTO TB_NIS_SPCL_B13 (
@ -268,7 +268,7 @@ SELECT #{resp.b13Id} <!-- 일련번호 ID -->
, #{currentUser.id} <!-- 등록자 --> , #{currentUser.id} <!-- 등록자 -->
,<include refid="utility.now" /> <!-- 수정 일시 --> ,<include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 --> , #{currentUser.id} <!-- 수정자 -->
</foreach></insert> FROM DUAL</foreach></insert>
<resultMap id="b14ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB14"> <!-- 주정차위반 과태료 대장 상세 요청 --> <resultMap id="b14ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB14"> <!-- 주정차위반 과태료 대장 상세 요청 -->
<result property="b14Id" column="B14_ID" /> <!-- 일련번호 ID --> <result property="b14Id" column="B14_ID" /> <!-- 일련번호 ID -->
@ -294,7 +294,7 @@ SELECT #{resp.b13Id} <!-- 일련번호 ID -->
<insert id="insertB14Req" parameterType="map">/* 주정차위반 과태료 대장 상세 요청 등록(lntrisB13_16Mapper.insertB14Req) */ <insert id="insertB14Req" parameterType="map">/* 주정차위반 과태료 대장 상세 요청 등록(lntrisB13_16Mapper.insertB14Req) */
<selectKey keyProperty="b14.b14Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b14.b14Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B14_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B14 A, (<include refid="utility.selectToday" />) B
WHERE B14_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B14_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B14 ( INSERT INTO TB_NIS_SPCL_B14 (
@ -804,7 +804,7 @@ INSERT INTO TB_NIS_SPCL_B14RV (
<insert id="insertB15Req" parameterType="map">/* 전용차로위반 과태료 대장 목록 요청 등록(lntrisB13_16Mapper.insertB15Req) */ <insert id="insertB15Req" parameterType="map">/* 전용차로위반 과태료 대장 목록 요청 등록(lntrisB13_16Mapper.insertB15Req) */
<selectKey keyProperty="b15.b15Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b15.b15Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B15_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B15 A, (<include refid="utility.selectToday" />) B
WHERE B15_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B15_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B15 ( INSERT INTO TB_NIS_SPCL_B15 (
@ -1030,7 +1030,8 @@ SELECT #{resp.b15Id} <!-- 일련번호 ID -->
, #{currentUser.id} <!-- 등록자 --> , #{currentUser.id} <!-- 등록자 -->
,<include refid="utility.now" /> <!-- 수정 일시 --> ,<include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 --> , #{currentUser.id} <!-- 수정자 -->
</foreach></insert> FROM DUAL</foreach></insert>
<resultMap id="b16ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB16"> <!-- 전용차로위반 과태료 대장 상세 요청 --> <resultMap id="b16ReqRow" type="cokr.xit.interfaces.lntris.special.b.LntrisB16"> <!-- 전용차로위반 과태료 대장 상세 요청 -->
<result property="b16Id" column="B16_ID" /> <!-- 일련번호 ID --> <result property="b16Id" column="B16_ID" /> <!-- 일련번호 ID -->
<result property="taskSeCd" column="TASK_SE_CD" /> <!-- 업무 구분 코드 --> <result property="taskSeCd" column="TASK_SE_CD" /> <!-- 업무 구분 코드 -->
@ -1055,7 +1056,7 @@ SELECT #{resp.b15Id} <!-- 일련번호 ID -->
<insert id="insertB16Req" parameterType="map">/* 전용차로위반 과태료 대장 상세 요청 등록(lntrisB13_16Mapper.insertB16Req) */ <insert id="insertB16Req" parameterType="map">/* 전용차로위반 과태료 대장 상세 요청 등록(lntrisB13_16Mapper.insertB16Req) */
<selectKey keyProperty="b16.b16Id" keyColumn="NEW_ID" resultType="string" order="BEFORE"> <selectKey keyProperty="b16.b16Id" keyColumn="NEW_ID" resultType="string" order="BEFORE">
SELECT CONCAT(TODAY, LPAD(IFNULL(SUBSTR(MAX(B16_ID), 9) + 1, 1), 22, '0')) NEW_ID 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 FROM TB_NIS_SPCL_B16 A, (<include refid="utility.selectToday" />) B
WHERE B16_ID LIKE CONCAT(TODAY, '%')</selectKey> WHERE B16_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_NIS_SPCL_B16 ( INSERT INTO TB_NIS_SPCL_B16 (
@ -1519,6 +1520,6 @@ SELECT #{resp.b16Id} <!-- 일련번호 ID -->
, #{currentUser.id} <!-- 등록자 --> , #{currentUser.id} <!-- 등록자 -->
,<include refid="utility.now" /> <!-- 수정 일시 --> ,<include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 --> , #{currentUser.id} <!-- 수정자 -->
</foreach></insert> FROM DUAL</foreach></insert>
</mapper> </mapper>
Loading…
Cancel
Save