From 59853b14b31c7156373daca89b25200f3a06a771 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Tue, 16 Jan 2024 11:19:43 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B3=80=EA=B2=BD=EB=90=9C=20=EC=BB=AC?= =?UTF-8?q?=EB=9F=BC=EB=AA=85=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sql/mapper/epost/emailRequest-mapper.xml | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/src/main/resources/sql/mapper/epost/emailRequest-mapper.xml b/src/main/resources/sql/mapper/epost/emailRequest-mapper.xml index 2e71394..1db40b6 100644 --- a/src/main/resources/sql/mapper/epost/emailRequest-mapper.xml +++ b/src/main/resources/sql/mapper/epost/emailRequest-mapper.xml @@ -68,7 +68,7 @@ SELECT CON_ORG , RECEV_BAR1D , RECEV_BAR2D - , RECEV_BILL_NUNBER + , RECEV_BILL_NUMBER , RECEV_DOC_CD1 , RECEV_DOC_CD2 , RECEV_DOC_CD3 @@ -136,8 +136,7 @@ SELECT CON_ORG FROM TB_EPOST_RCPT_REG A , TB_EPOST_RCPT_DTL B - , (SELECT @row_no := 0, @con_key := '', #{conOrg} CON_ORG) C - WHERE POST_PROC_STT = '01' + WHERE POST_PRCS_STTS_CD = '01' AND A.CON_KEY = B.CON_KEY ORDER BY A.CON_KEY, RGST_NMBR, RECEV_SEQ @@ -184,7 +183,7 @@ SELECT CON_ORG - + @@ -235,7 +234,7 @@ SELECT CON_ORG , REG_VAR_DATA4 , REG_VAR_DATA5 - , POST_PROC_STT + , POST_PRCS_STTS_CD , RCEPT_YMD , DEL_YN , REG_DT @@ -251,7 +250,7 @@ SELECT CON_ORG , REG_VAR_DATA4 , REG_VAR_DATA5 - , POST_PROC_STT + , POST_PRCS_STTS_CD , RCEPT_YMD , DEL_YN , REG_DT @@ -409,7 +408,7 @@ UPDATE TB_EPOST_RCPT_REG SET , REG_VAR_DATA3 = #{emailRequest.regVarData3} , REG_VAR_DATA4 = #{emailRequest.regVarData4} , REG_VAR_DATA5 = #{emailRequest.regVarData5} - , POST_PROC_STT = #{emailRequest.postProcStt} + , POST_PRCS_STTS__CD = #{emailRequest.postProcStt} , RCEPT_YMD = #{emailRequest.rceptYmd} , DEL_YN = #{emailRequest.delYn} , DEL_DT = #{emailRequest.removedAt} @@ -417,8 +416,8 @@ UPDATE TB_EPOST_RCPT_REG SET WHERE CON_KEY = #{emailRequest.conKey} /* 전자우편 신청 상태 변경(emailRequestMapper.updateRequestStatus) */ -UPDATE TB_EPOST_RCPT_REG SET - POST_PROC_STT = #{status} +UPDATE TB_EPOST_RCPT_REG + SET POST_PRCS_STTS_CD = #{status} , RCEPT_YMD = CASE CON_KEY WHEN #{result.reletcdata} THEN #{result.rceptYmd} ELSE RCEPT_YMD END @@ -429,12 +428,12 @@ UPDATE TB_EPOST_RCPT_REG SET #{result.conKey} #{result.reletcdata} ) - AND POST_PROC_STT < #{maxStatus} + AND POST_PRCS_STTS_CD < #{maxStatus} /* 전자우편 배달 완료 처리(emailRequestMapper.updateRequestAsDelivered) */ UPDATE TB_EPOST_RCPT_REG SET - POST_PROC_STT = #{status} - WHERE POST_PROC_STT = '27' + POST_PRCS_STTS_CD = #{status} + WHERE POST_PRCS_STTS_CD = '27' AND DEL_YN = 'N' AND REG_DT < CONCAT(DATE_FORMAT(DATE_SUB(CURRENT_DATE, INTERVAL #{expiryDays} DAY), '%Y%m%d'), '000000') @@ -452,7 +451,7 @@ UPDATE TB_EPOST_RCPT_REG SET - + @@ -522,7 +521,7 @@ UPDATE TB_EPOST_RCPT_REG SET , RECEV_CODE , RECEV_BAR1D , RECEV_BAR2D - , RECEV_BILL_NUNBER + , RECEV_BILL_NUMBER , RECEV_DOC_CD1 , RECEV_DOC_CD2 , RECEV_DOC_CD3 @@ -612,7 +611,7 @@ INSERT INTO TB_EPOST_RCPT_DTL ( , RECEV_CODE , RECEV_BAR1D , RECEV_BAR2D - , RECEV_BILL_NUNBER + , RECEV_BILL_NUMBER , RECEV_DOC_CD1 , RECEV_DOC_CD2 , RECEV_DOC_CD3 @@ -751,7 +750,7 @@ UPDATE TB_EPOST_RCPT_DTL SET , RECEV_CODE = #{emailRequestDetail.recevCode} , RECEV_BAR1D = #{emailRequestDetail.recevBar1d} , RECEV_BAR2D = #{emailRequestDetail.recevBar2d} - , RECEV_BILL_NUNBER = #{emailRequestDetail.recevBillNunber} + , RECEV_BILL_NUMBER = #{emailRequestDetail.recevBillNunber} , RECEV_DOC_CD1 = #{emailRequestDetail.recevDocCd1} , RECEV_DOC_CD2 = #{emailRequestDetail.recevDocCd2} , RECEV_DOC_CD3 = #{emailRequestDetail.recevDocCd3}