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 (