From 74250446691c7dde8a34a191eb326db434656fd4 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Wed, 13 Dec 2023 16:09:56 +0900 Subject: [PATCH] =?UTF-8?q?IFNULL=20->=20NVL,=20=EC=B6=94=EA=B0=80:=20now,?= =?UTF-8?q?=20today=20=EC=98=A4=EB=9D=BC=ED=81=B4=20=EB=B2=84=EC=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/sql/mapper/epost/emailResult-mapper.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/sql/mapper/epost/emailResult-mapper.xml b/src/main/resources/sql/mapper/epost/emailResult-mapper.xml index 73a2c9b..c615dab 100644 --- a/src/main/resources/sql/mapper/epost/emailResult-mapper.xml +++ b/src/main/resources/sql/mapper/epost/emailResult-mapper.xml @@ -9,7 +9,7 @@ /* 전자우편 신청 수신 결과 등록(emailResultMapper.insertReceptionResult) */ -SELECT IFNULL(MAX(RCPTN_RSLT_ID) + 1, CONCAT(TODAY, '0000001')) NEW_ID +SELECT NVL(MAX(RCPTN_RSLT_ID) + 1, CONCAT(TODAY, '0000001')) NEW_ID FROM TB_EPOST_RCPTN_RSLT A, () B WHERE RCPTN_RSLT_ID LIKE CONCAT(TODAY, '%') INSERT INTO TB_EPOST_RCPTN_RSLT ( @@ -53,7 +53,7 @@ SELECT #{rcptnRsltId} /* 전자우편 신청 접수 결과 등록(emailResultMapper.insertRegistrationResult) */ -SELECT IFNULL(MAX(RCPT_RSLT_ID) + 1, CONCAT(TODAY, '0000001')) NEW_ID +SELECT NVL(MAX(RCPT_RSLT_ID) + 1, CONCAT(TODAY, '0000001')) NEW_ID FROM TB_EPOST_RCPT_RSLT A, () B WHERE RCPT_RSLT_ID LIKE CONCAT(TODAY, '%') INSERT INTO TB_EPOST_RCPT_RSLT ( @@ -129,7 +129,7 @@ SELECT #{conKey} /* 전자우편 배달 결과 등록(emailResultMapper.insertDeliveryResult) */ -SELECT IFNULL(MAX(DLVR_RSLT_ID) + 1, CONCAT(TODAY, '0000001')) NEW_ID +SELECT NVL(MAX(DLVR_RSLT_ID) + 1, CONCAT(TODAY, '0000001')) NEW_ID FROM TB_EPOST_DLVR_RSLT A, () B WHERE DLVR_RSLT_ID LIKE CONCAT(TODAY, '%') INSERT INTO TB_EPOST_DLVR_RSLT (