diff --git a/src/main/resources/sql/mapper/epost/emailResult-mapper.xml b/src/main/resources/sql/mapper/epost/emailResult-mapper.xml index c615dab..7c6fcb1 100644 --- a/src/main/resources/sql/mapper/epost/emailResult-mapper.xml +++ b/src/main/resources/sql/mapper/epost/emailResult-mapper.xml @@ -10,8 +10,7 @@ /* 전자우편 신청 수신 결과 등록(emailResultMapper.insertReceptionResult) */ 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, '%') + FROM () B LEFT OUTER JOIN TB_EPOST_RCPTN_RSLT A ON RCPTN_RSLT_ID LIKE CONCAT(TODAY, '%') INSERT INTO TB_EPOST_RCPTN_RSLT ( RCPTN_RSLT_ID , OUTSIDUSERID @@ -54,8 +53,7 @@ SELECT #{rcptnRsltId} /* 전자우편 신청 접수 결과 등록(emailResultMapper.insertRegistrationResult) */ 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, '%') + FROM () B LEFT OUTER JOIN TB_EPOST_RCPT_RSLT A ON RCPT_RSLT_ID LIKE CONCAT(TODAY, '%') INSERT INTO TB_EPOST_RCPT_RSLT ( RCPT_RSLT_ID , CON_ORG @@ -130,8 +128,7 @@ SELECT #{conKey} /* 전자우편 배달 결과 등록(emailResultMapper.insertDeliveryResult) */ 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, '%') + FROM () B LEFT OUTER JOIN TB_EPOST_DLVR_RSLT A ON DLVR_RSLT_ID LIKE CONCAT(TODAY, '%') INSERT INTO TB_EPOST_DLVR_RSLT ( DLVR_RSLT_ID , CON_KEY