@ -10,8 +10,7 @@
<insert id= "insertReceptionResult" parameterType= "cokr.xit.interfaces.epost.ReceptionResult" > /* 전자우편 신청 수신 결과 등록(emailResultMapper.insertReceptionResult) */
<selectKey resultType= "string" keyProperty= "rcptnRsltId" order= "BEFORE" >
SELECT NVL(MAX(RCPTN_RSLT_ID) + 1, CONCAT(TODAY, '0000001')) NEW_ID
FROM TB_EPOST_RCPTN_RSLT A, (<include refid= "utility.selectToday" /> ) B
WHERE RCPTN_RSLT_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid= "utility.selectToday" /> ) B LEFT OUTER JOIN TB_EPOST_RCPTN_RSLT A ON RCPTN_RSLT_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_EPOST_RCPTN_RSLT (
RCPTN_RSLT_ID <!-- 수신 결과 ID -->
, OUTSIDUSERID <!-- 연계기관코드 -->
@ -54,8 +53,7 @@ SELECT #{rcptnRsltId} <!-- 수신 결과 ID -->
<insert id= "insertRegistrationResult" parameterType= "cokr.xit.interfaces.epost.RegistrationResult" > /* 전자우편 신청 접수 결과 등록(emailResultMapper.insertRegistrationResult) */
<selectKey resultType= "string" keyProperty= "rcptRsltId" order= "BEFORE" >
SELECT NVL(MAX(RCPT_RSLT_ID) + 1, CONCAT(TODAY, '0000001')) NEW_ID
FROM TB_EPOST_RCPT_RSLT A, (<include refid= "utility.selectToday" /> ) B
WHERE RCPT_RSLT_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid= "utility.selectToday" /> ) B LEFT OUTER JOIN TB_EPOST_RCPT_RSLT A ON RCPT_RSLT_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_EPOST_RCPT_RSLT (
RCPT_RSLT_ID <!-- 접수 결과 ID -->
, CON_ORG <!-- 외부기관구분코드 -->
@ -130,8 +128,7 @@ SELECT #{conKey} <!-- 외부연계식별키 -->
<insert id= "insertDeliveryResult" parameterType= "cokr.xit.interfaces.epost.DeliveryResult" > /* 전자우편 배달 결과 등록(emailResultMapper.insertDeliveryResult) */
<selectKey resultType= "string" keyProperty= "dlvrRsltId" order= "BEFORE" >
SELECT NVL(MAX(DLVR_RSLT_ID) + 1, CONCAT(TODAY, '0000001')) NEW_ID
FROM TB_EPOST_DLVR_RSLT A, (<include refid= "utility.selectToday" /> ) B
WHERE DLVR_RSLT_ID LIKE CONCAT(TODAY, '%')</selectKey>
FROM (<include refid= "utility.selectToday" /> ) B LEFT OUTER JOIN TB_EPOST_DLVR_RSLT A ON DLVR_RSLT_ID LIKE CONCAT(TODAY, '%')</selectKey>
INSERT INTO TB_EPOST_DLVR_RSLT (
DLVR_RSLT_ID <!-- 배달 결과 ID -->
, CON_KEY <!-- 외부연계식별키 -->