diff --git a/src/main/java/cokr/xit/fims/rent/LsctAprv.java b/src/main/java/cokr/xit/fims/rent/LsctAprv.java index 96ff75e3..8a7793dc 100644 --- a/src/main/java/cokr/xit/fims/rent/LsctAprv.java +++ b/src/main/java/cokr/xit/fims/rent/LsctAprv.java @@ -222,6 +222,21 @@ public class LsctAprv extends AbstractEntity { */ private Integer atchFileSz4; + /** + * 요청 일자 + */ + private String dmndYmd; + + /** + * 요청 시각 + */ + private String dmndTm; + + /** + * 요청자 명 + */ + private String rqstrNm; + /** * 변경 승인 상태 */ diff --git a/src/main/java/cokr/xit/fims/rent/LsctMpng.java b/src/main/java/cokr/xit/fims/rent/LsctMpng.java index 37c69a39..3ae1858a 100644 --- a/src/main/java/cokr/xit/fims/rent/LsctMpng.java +++ b/src/main/java/cokr/xit/fims/rent/LsctMpng.java @@ -118,39 +118,49 @@ public class LsctMpng extends AbstractEntity { private Integer atchFileCnt; /** - * 변경 요청 여부 + * 요청 여부 */ - private String chgDmndYn; + private String dmndYn; /** - * 변경 요청 일시 + * 요청 일시 */ - private String chgDmndDt; + private String dmndDt; /** - * 변경 요청 등록자 + * 요청자 명 */ - private String chgDmndRgtr; + private String rqstrNm; /** - * 변경 요청 IP + * 요청자 ID */ - private String chgDmndIp; + private String rqstrId; /** - * 변경 요청 취소 일시 + * 요청 IP */ - private String chgDmndRtrcnDt; + private String dmndIp; /** - * 변경 요청 수정자 + * 요청 취소 일시 */ - private String chgDmndMdfr; + private String dmndRtrcnDt; /** - * 변경 요청 취소 IP + * 요청 취소 사용자 명 */ - private String chgDmndRtrcnIp; + private String dmndRtrcnUserNm; + + /** + * 요청 취소 사용자 ID + */ + private String dmndRtrcnUserId; + + /** + * 요청 취소 IP + */ + private String dmndRtrcnIp; /** * 변경 승인 상태 diff --git a/src/main/java/cokr/xit/fims/rent/service/bean/LsctMpngBean.java b/src/main/java/cokr/xit/fims/rent/service/bean/LsctMpngBean.java index e5cb9daf..c0918dc6 100644 --- a/src/main/java/cokr/xit/fims/rent/service/bean/LsctMpngBean.java +++ b/src/main/java/cokr/xit/fims/rent/service/bean/LsctMpngBean.java @@ -1,5 +1,6 @@ package cokr.xit.fims.rent.service.bean; +import java.text.SimpleDateFormat; import java.util.List; import javax.annotation.Resource; @@ -530,6 +531,9 @@ public class LsctMpngBean extends AbstractBean { int rtnNocs = -1; // 처리 결과 건수 String rtnMsg = ""; // 처리 결과 메시지 + // 사용자 정보 + FimsUser fimsUser = (FimsUser)currentUser().getUser(); + RentQuery req = new RentQuery(); req.setLsctMpngId(lsctAprv.getLsctMpngId()); // 임대차계약 매핑 ID req.setDelYn("N"); // 삭제 여부 @@ -618,6 +622,13 @@ public class LsctMpngBean extends AbstractBean { } } + // 현재 날짜 구하기 + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); + String dmndDateTime = dateFormat.format(System.currentTimeMillis()); + + lsctAprv.setDmndYmd(dmndDateTime.substring(0, 7)); // 요청 일자 + lsctAprv.setDmndTm(dmndDateTime.substring(8, 14)); // 요청 시각 + lsctAprv.setRqstrNm(fimsUser.getName()); // 요청자 명 lsctAprv.setChgAprvStts("RQ"); // 변경 승인 상태 // 연계 테이블명 @@ -636,15 +647,14 @@ public class LsctMpngBean extends AbstractBean { throw new RuntimeException("[F] 등록 작업에 실패하였습니다."); // 예외를 발생시켜서 DB Rollback } - // 사용자 정보 - FimsUser fimsUser = (FimsUser)currentUser().getUser(); - // 임대차계약(TB_LSCT) 대장의 변경요청 정보를 수정한다. LsctMpng lsctMpng = new LsctMpng(); lsctMpng.setLsctMpngId(lsctAprv.getLsctMpngId()); // 임대차계약 매핑 ID - lsctMpng.setChgDmndYn("Y"); // 변경 요청 여부 - lsctMpng.setChgDmndRgtr(fimsUser.getId()); // 변경 요청 등록자 - lsctMpng.setChgDmndIp(lsctAprv.getChgDmndIp()); // 변경 요청 IP + lsctMpng.setDmndYn("Y"); // 요청 여부 + lsctMpng.setDmndDt(dmndDateTime); // 요청 일시 + lsctMpng.setRqstrNm(fimsUser.getName()); // 요청자 명 + lsctMpng.setRqstrId(fimsUser.getId()); // 요청자 ID + lsctMpng.setDmndIp(lsctAprv.getChgDmndIp()); // 요청 IP lsctMpng.setChgAprvStts(lsctAprv.getChgAprvStts()); // 변경 승인 상태 lsctMpng.setLsctLinkTblNm(lsctAprv.getLsctLinkTblNm()); // 임대차계약 연계 테이블 명 lsctMpng.setLsctAprvId(lsctAprv.getAprvId()); // 임대차계약 승인 ID @@ -669,6 +679,9 @@ public class LsctMpngBean extends AbstractBean { int rtnNocs = -1; // 처리 결과 건수 String rtnMsg = ""; // 처리 결과 메시지 + // 사용자 정보 + FimsUser fimsUser = (FimsUser)currentUser().getUser(); + RentQuery req = new RentQuery(); req.setLsctMpngId(lsctAprv.getLsctMpngId()); // 임대차계약 매핑 ID req.setDelYn("N"); // 삭제 여부 @@ -715,15 +728,13 @@ public class LsctMpngBean extends AbstractBean { return rtnMsg; } - // 사용자 정보 - FimsUser fimsUser = (FimsUser)currentUser().getUser(); - // 임대차계약(TB_LSCT) 대장의 변경요청 정보를 수정한다. LsctMpng lsctMpng = new LsctMpng(); lsctMpng.setLsctMpngId(lsctAprv.getLsctMpngId()); // 임대차계약 매핑 ID - lsctMpng.setChgDmndYn("N"); // 변경 요청 여부 - lsctMpng.setChgDmndMdfr(fimsUser.getId()); // 변경 요청 수정자 - lsctMpng.setChgDmndRtrcnIp(lsctAprv.getChgDmndIp()); // 변경 요청 취소 IP + lsctMpng.setDmndYn("N"); // 요청 여부 + lsctMpng.setDmndRtrcnUserNm(fimsUser.getName()); // 요청 취소 사용자 명 + lsctMpng.setDmndRtrcnUserId(fimsUser.getId()); // 요청 취소 사용자 ID + lsctMpng.setDmndRtrcnIp(lsctAprv.getChgDmndIp()); // 변경 요청 취소 IP lsctMpng.setChgAprvStts(null); // 변경 승인 상태 lsctMpng.setLsctLinkTblNm(null); // 임대차계약 연계 테이블 명 lsctMpng.setLsctAprvId(null); // 임대차계약 승인 ID diff --git a/src/main/resources/sql/mapper/fims/rent/lsctAprv-mapper.xml b/src/main/resources/sql/mapper/fims/rent/lsctAprv-mapper.xml index 2ab5ec5b..57b1741d 100644 --- a/src/main/resources/sql/mapper/fims/rent/lsctAprv-mapper.xml +++ b/src/main/resources/sql/mapper/fims/rent/lsctAprv-mapper.xml @@ -50,6 +50,9 @@ + + + @@ -108,6 +111,9 @@ , LA.ATCH_FILE_NM4 , LA.ATCH_FILE_PATH4 , LA.ATCH_FILE_SZ4 + , LA.DMND_YMD + , LA.DMND_TM + , LA.RQSTR_NM , LA.CHG_APRV_STTS , LA.CHG_APRV_DT , LA.CHG_AUTZR_NM @@ -232,6 +238,9 @@ , ATCH_FILE_NM4 , ATCH_FILE_PATH4 , ATCH_FILE_SZ4 + , DMND_YMD + , DMND_TM + , RQSTR_NM , CHG_APRV_STTS , CHG_APRV_DT , CHG_AUTZR_NM @@ -286,6 +295,9 @@ , #{atchFileNm4} , #{atchFilePath4} , #{atchFileSz4} + , #{dmndYmd} + , #{dmndTm} + , #{rqstrNm} , #{chgAprvStts} , #{chgAprvDt} , #{chgAutzrNm} @@ -367,6 +379,7 @@ WHERE APRV_ID = #{aprvId} + AND CHG_APRV_STTS = 'RQ' AND DEL_YN = 'N' diff --git a/src/main/resources/sql/mapper/fims/rent/lsctMpng-mapper.xml b/src/main/resources/sql/mapper/fims/rent/lsctMpng-mapper.xml index 4aeb5139..d08c7279 100644 --- a/src/main/resources/sql/mapper/fims/rent/lsctMpng-mapper.xml +++ b/src/main/resources/sql/mapper/fims/rent/lsctMpng-mapper.xml @@ -20,9 +20,10 @@ - - - + + + + @@ -354,72 +355,74 @@ - SELECT C.CRDN_ID - , C.SGG_CD - , C.TASK_SE_CD + SELECT C.CRDN_ID + , C.SGG_CD + , C.TASK_SE_CD , (GET_CODE_NM('FIM054', C.TASK_SE_CD)) AS TASK_SE_NM - , C.CRDN_YMD + , C.CRDN_YMD , (CONCAT(C.CRDN_YMD, C.CRDN_TM)) AS CRDN_DT - , C.VHRNO - , C.CRDN_STDG_NM - , C.CRDN_ROAD_NM - , C.CRDN_PLC - , C.FFNLG_CRDN_AMT - , C.CRDN_STTS_CD + , C.VHRNO + , C.CRDN_STDG_NM + , C.CRDN_ROAD_NM + , C.CRDN_PLC + , C.FFNLG_CRDN_AMT + , C.CRDN_STTS_CD , (GET_CODE_NM('FIM010', C.CRDN_STTS_CD)) AS CRDN_STTS_NM - , C.NXRP_CRDN_LINK_YN - , C.NXRP_ACB_KEY - , C.MM_CODE - , V.VLTN_ID - , V.VLTN_CD - , V.VLTN_ARTCL - , P.RTPYR_ID - , P.RTPYR_SE_CD + , C.NXRP_CRDN_LINK_YN + , C.NXRP_ACB_KEY + , C.MM_CODE + , V.VLTN_ID + , V.VLTN_CD + , V.VLTN_ARTCL + , P.RTPYR_ID + , P.RTPYR_SE_CD , (GET_CODE_NM('FIM011', P.RTPYR_SE_CD)) AS RTPYR_SE_NM - , P.RTPYR_NO - , P.RTPYR_NM - , LM.LSCT_MPNG_ID - , (CASE WHEN LM.CHG_DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'RQ' THEN '기타(요청중)' - WHEN LM.CHG_DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'RT' THEN '기타(요청취소)' - WHEN LM.CHG_DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'AP' THEN '기타(승인)' - WHEN LM.CHG_DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'UA' THEN '기타(미승인)' - WHEN LM.CHG_DMND_YN = 'N' AND C.NXRP_CRDN_LINK_YN = 'N' THEN '계약서등록' - WHEN LM.CHG_DMND_YN = 'N' AND C.NXRP_CRDN_LINK_YN = 'Y' THEN '기타(세외수입)' + , P.RTPYR_NO + , P.RTPYR_NM + , LM.LSCT_MPNG_ID + , (CASE WHEN LM.DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'RQ' THEN '기타(요청중)' + WHEN LM.DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'RT' THEN '기타(요청취소)' + WHEN LM.DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'AP' THEN '기타(승인)' + WHEN LM.DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'UA' THEN '기타(미승인)' + WHEN LM.DMND_YN = 'N' AND C.NXRP_CRDN_LINK_YN = 'N' THEN '계약서등록' + WHEN LM.DMND_YN = 'N' AND C.NXRP_CRDN_LINK_YN = 'Y' THEN '기타(세외수입)' ELSE '대상' - END) AS TRGT_STTS_NM - , LM.LSCT_ID + END) AS TRGT_STTS_NM + , LM.LSCT_ID , (CASE WHEN LM.ENT_ID IS NULL THEN (SELECT RE.ENT_ID FROM TB_RENT_ENT RE WHERE RE.ENT_REG_NO = P.RTPYR_NO) ELSE LM.ENT_ID - END) AS ENT_ID - , LM.CHG_DMND_YN - , LM.CHG_DMND_DT - , LM.CHG_DMND_RGTR - , LM.CHG_DMND_IP - , LM.CHG_DMND_RTRCN_DT - , LM.CHG_DMND_MDFR - , LM.CHG_DMND_RTRCN_IP - , LM.CHG_APRV_STTS - , LM.CHG_APRV_DT - , LM.CHG_AUTZR_NM - , LM.CHG_APRV_RSN - , LM.CHG_APRV_IP - , LM.REG_DT - , LM.RGTR + END) AS ENT_ID + , LM.DMND_YN + , LM.DMND_DT + , LM.RQSTR_NM + , LM.RQSTR_ID + , LM.DMND_IP + , LM.DMND_RTRCN_DT + , LM.DMND_RTRCN_USER_NM + , LM.DMND_RTRCN_USER_ID + , LM.DMND_RTRCN_IP + , LM.CHG_APRV_STTS + , LM.CHG_APRV_DT + , LM.CHG_AUTZR_NM + , LM.CHG_APRV_RSN + , LM.CHG_APRV_IP + , LM.REG_DT + , LM.RGTR , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = LM.RGTR) AS RGTR_NM - , LM.MDFCN_DT - , LM.MDFR + , LM.MDFCN_DT + , LM.MDFR , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = LM.MDFR) AS MDFR_NM , (CONCAT(L.CTRT_BGNG_YMD, L.CTRT_BGNG_TM)) AS CTRT_BGNG_DT , (CONCAT(L.CTRT_END_YMD, L.CTRT_END_TM)) AS CTRT_END_DT , (SELECT GET_CODE_NM('FIM089', L.HIRER_SE_CD) FROM DUAL) AS HIRER_SE_NM - , L.HIRER_REG_NO - , L.HIRER_NM - , L.HIRER_TELNO - , L.HIRER_MBL_TELNO - , L.HIRER_EML_ADDR - , L.HIRER_ZIP - , L.HIRER_ADDR - , L.HIRER_DTL_ADDR + , L.HIRER_REG_NO + , L.HIRER_NM + , L.HIRER_TELNO + , L.HIRER_MBL_TELNO + , L.HIRER_EML_ADDR + , L.HIRER_ZIP + , L.HIRER_ADDR + , L.HIRER_DTL_ADDR FROM TB_CRDN C LEFT OUTER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID) LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID) @@ -444,7 +447,7 @@ AND LM.LSCT_MPNG_ID IS NOT NULL - AND LM.CHG_DMND_YN = 'N' + AND LM.DMND_YN = 'N' AND C.NXRP_CRDN_LINK_YN = 'N' @@ -452,7 +455,7 @@ AND LM.LSCT_MPNG_ID IS NOT NULL - AND (LM.CHG_DMND_YN = 'Y' OR LM.CHG_APRV_STTS IS NOT NULL OR C.NXRP_CRDN_LINK_YN = 'Y') + AND (LM.DMND_YN = 'Y' OR LM.CHG_APRV_STTS IS NOT NULL OR C.NXRP_CRDN_LINK_YN = 'Y') @@ -511,16 +514,16 @@ , LM.VHRNO , LM.RTPYR_NO , LM.RTPYR_NM - , LM.CHG_DMND_YN - , (GET_CODE_NM('CMN006', LM.CHG_DMND_YN)) AS CHG_DMND_NM - , LM.CHG_DMND_DT - , LM.CHG_DMND_RGTR - , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = LM.CHG_DMND_RGTR) AS CHG_DMND_RGTR_NM - , LM.CHG_DMND_IP - , LM.CHG_DMND_RTRCN_DT - , LM.CHG_DMND_MDFR - , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = LM.CHG_DMND_MDFR) AS CHG_DMND_MDFR_NM - , LM.CHG_DMND_RTRCN_IP + , LM.DMND_YN + , (GET_CODE_NM('CMN006', LM.DMND_YN)) AS DMND_NM + , LM.DMND_DT + , LM.RQSTR_NM + , LM.RQSTR_ID + , LM.DMND_IP + , LM.DMND_RTRCN_DT + , LM.DMND_RTRCN_USER_NM + , LM.DMND_RTRCN_USER_ID + , LM.DMND_RTRCN_IP , LM.CHG_APRV_STTS , (GET_CODE_NM('CMN010', LM.CHG_APRV_STTS)) AS CHG_APRV_STTS_NM , LM.CHG_APRV_DT @@ -536,11 +539,11 @@ , LM.MDFCN_DT , LM.MDFR , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = LM.MDFR) AS MDFR_NM - , (CASE WHEN LM.CHG_DMND_YN = 'N' AND LM.CHG_APRV_STTS IS NULL AND C.NXRP_CRDN_LINK_YN = 'N' THEN '대상' - WHEN LM.CHG_DMND_YN = 'N' AND LM.CHG_APRV_STTS = 'RT' AND C.NXRP_CRDN_LINK_YN = 'N' THEN '요청취소' - WHEN LM.CHG_DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'RQ' AND C.NXRP_CRDN_LINK_YN = 'N' THEN '요청중' - WHEN LM.CHG_DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'AP' AND C.NXRP_CRDN_LINK_YN = 'N' THEN '승인' - WHEN LM.CHG_DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'UA' AND C.NXRP_CRDN_LINK_YN = 'N' THEN '미승인' + , (CASE WHEN LM.DMND_YN = 'N' AND LM.CHG_APRV_STTS IS NULL AND C.NXRP_CRDN_LINK_YN = 'N' THEN '대상' + WHEN LM.DMND_YN = 'N' AND LM.CHG_APRV_STTS = 'RT' AND C.NXRP_CRDN_LINK_YN = 'N' THEN '요청취소' + WHEN LM.DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'RQ' AND C.NXRP_CRDN_LINK_YN = 'N' THEN '요청중' + WHEN LM.DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'AP' AND C.NXRP_CRDN_LINK_YN = 'N' THEN '승인' + WHEN LM.DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'UA' AND C.NXRP_CRDN_LINK_YN = 'N' THEN '미승인' WHEN C.NXRP_CRDN_LINK_YN = 'Y' THEN '기타(세외수입)' ELSE '기타' END) AS TRGT_STTS_NM @@ -617,27 +620,27 @@ - AND LM.CHG_DMND_YN = 'N' + AND LM.DMND_YN = 'N' AND LM.CHG_APRV_STTS IS NULL AND C.NXRP_CRDN_LINK_YN = 'N' - AND LM.CHG_DMND_YN = 'N' + AND LM.DMND_YN = 'N' AND LM.CHG_APRV_STTS = 'RT' AND C.NXRP_CRDN_LINK_YN = 'N' - AND LM.CHG_DMND_YN = 'Y' + AND LM.DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'RQ' AND C.NXRP_CRDN_LINK_YN = 'N' - AND LM.CHG_DMND_YN = 'Y' + AND LM.DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'AP' AND C.NXRP_CRDN_LINK_YN = 'N' - AND LM.CHG_DMND_YN = 'Y' + AND LM.DMND_YN = 'Y' AND LM.CHG_APRV_STTS = 'UA' AND C.NXRP_CRDN_LINK_YN = 'N' @@ -690,69 +693,73 @@ INSERT INTO TB_LSCT_MPNG ( - LSCT_MPNG_ID - , LSCT_ID - , ENT_ID - , CRDN_ID - , LEVY_ID - , SGG_CD - , TASK_SE_CD - , CRDN_YMD - , CRDN_TM - , VHRNO - , RTPYR_NO - , RTPYR_NM - , CHG_DMND_YN - , CHG_DMND_DT - , CHG_DMND_RGTR - , CHG_DMND_IP - , CHG_DMND_RTRCN_DT - , CHG_DMND_MDFR - , CHG_DMND_RTRCN_IP - , CHG_APRV_STTS - , CHG_APRV_DT - , CHG_AUTZR_NM - , CHG_APRV_RSN - , CHG_APRV_IP - , LSCT_LINK_TBL_NM - , LSCT_APRV_ID - , DEL_YN - , REG_DT - , RGTR - , MDFCN_DT - , MDFR + LSCT_MPNG_ID + , LSCT_ID + , ENT_ID + , CRDN_ID + , LEVY_ID + , SGG_CD + , TASK_SE_CD + , CRDN_YMD + , CRDN_TM + , VHRNO + , RTPYR_NO + , RTPYR_NM + , DMND_YN + , DMND_DT + , RQSTR_NM + , RQSTR_ID + , DMND_IP + , DMND_RTRCN_DT + , DMND_RTRCN_USER_NM + , DMND_RTRCN_USER_ID + , DMND_RTRCN_IP + , CHG_APRV_STTS + , CHG_APRV_DT + , CHG_AUTZR_NM + , CHG_APRV_RSN + , CHG_APRV_IP + , LSCT_LINK_TBL_NM + , LSCT_APRV_ID + , DEL_YN + , REG_DT + , RGTR + , MDFCN_DT + , MDFR ) VALUES ( - #{lsctMpngId} - , #{lsctId} - , #{entId} - , #{crdnId} - , #{levyId} - , #{sggCd} - , #{taskSeCd} - , #{crdnYmd} - , #{crdnTm} - , #{vhrno} - , #{rtpyrNo} - , #{rtpyrNm} - , 'N' - , #{chgDmndDt} - , #{chgDmndRgtr} - , #{chgDmndIp} - , #{chgDmndRtrcnDt} - , #{chgDmndMdfr} - , #{chgDmndRtrcnIp} - , #{chgAprvStts} - , #{chgAprvDt} - , #{chgAutzrNm} - , #{chgAprvRsn} - , #{chgAprvIp} - , #{lsctLinkTblNm} - , #{lsctAprvId} - , 'N' + #{lsctMpngId} + , #{lsctId} + , #{entId} + , #{crdnId} + , #{levyId} + , #{sggCd} + , #{taskSeCd} + , #{crdnYmd} + , #{crdnTm} + , #{vhrno} + , #{rtpyrNo} + , #{rtpyrNm} + , 'N' + , #{dmndDt} + , #{rqstrNm} + , #{rqstrId} + , #{dmndIp} + , #{dmndRtrcnDt} + , #{dmndRtrcnUserNm} + , #{dmndRtrcnUserId} + , #{dmndRtrcnIp} + , #{chgAprvStts} + , #{chgAprvDt} + , #{chgAutzrNm} + , #{chgAprvRsn} + , #{chgAprvIp} + , #{lsctLinkTblNm} + , #{lsctAprvId} + , 'N' , - , #{createdBy} + , #{createdBy} , - , #{modifiedBy} + , #{modifiedBy} ) @@ -763,13 +770,15 @@ , VHRNO = #{vhrno} , RTPYR_NO = #{rtpyrNo} , RTPYR_NM = #{rtpyrNm} - , CHG_DMND_YN = #{chgDmndYn} - , CHG_DMND_DT = #{chgDmndDt} - , CHG_DMND_RGTR = #{chgDmndRgtr} - , CHG_DMND_IP = #{chgDmndIp} - , CHG_DMND_RTRCN_DT = #{chgDmndRtrcnDt} - , CHG_DMND_MDFR = #{chgDmndMdfr} - , CHG_DMND_RTRCN_IP = #{chgDmndRtrcnIp} + , DMND_YN = #{dmndYn} + , DMND_DT = #{dmndDt} + , RQSTR_NM = #{rqstrNm} + , RQSTR_ID = #{rqstrId} + , DMND_IP = #{dmndIp} + , DMND_RTRCN_DT = #{dmndRtrcnDt} + , DMND_RTRCN_USER_NM= #{dmndRtrcnUserNm} + , DMND_RTRCN_USER_ID= #{dmndRtrcnUserId} + , DMND_RTRCN_IP = #{dmndRtrcnIp} , CHG_APRV_STTS = #{chgAprvStts} , CHG_APRV_DT = #{chgAprvDt} , CHG_AUTZR_NM = #{chgAutzrNm} @@ -785,32 +794,36 @@ /* 임대차계약 매핑 대장 변경 요청 수정(lsctMapper.updateLsctMpngChgDmnd) */ UPDATE TB_LSCT_MPNG - SET CHG_DMND_YN = #{chgDmndYn} - - , CHG_DMND_DT = - , CHG_DMND_RGTR = #{chgDmndRgtr} - , CHG_DMND_IP = #{chgDmndIp} - , CHG_DMND_RTRCN_DT = NULL - , CHG_DMND_MDFR = NULL - , CHG_DMND_RTRCN_IP = NULL + SET DMND_YN = #{dmndYn} + + , DMND_DT = #{dmndDt} + , RQSTR_NM = #{rqstrNm} + , RQSTR_ID = #{rqstrId} + , DMND_IP = #{dmndIp} + , DMND_RTRCN_DT = NULL + , DMND_RTRCN_USER_NM= NULL + , DMND_RTRCN_USER_ID= NULL + , DMND_RTRCN_IP = NULL , CHG_APRV_STTS = #{chgAprvStts} , LSCT_LINK_TBL_NM = #{lsctLinkTblNm} , LSCT_APRV_ID = #{lsctAprvId} - - , CHG_DMND_DT = NULL - , CHG_DMND_RGTR = NULL - , CHG_DMND_IP = NULL - , CHG_DMND_RTRCN_DT = - , CHG_DMND_MDFR = #{chgDmndMdfr} - , CHG_DMND_RTRCN_IP = #{chgDmndRtrcnIp} - , CHG_APRV_STTS = NULL - , LSCT_LINK_TBL_NM = NULL - , LSCT_APRV_ID = NULL + + , DMND_DT = NULL + , RQSTR_NM = NULL + , RQSTR_ID = NULL + , DMND_IP = NULL + , DMND_RTRCN_DT = + , DMND_RTRCN_USER_NM= #{dmndRtrcnUserNm} + , DMND_RTRCN_USER_ID= #{dmndRtrcnUserId} + , DMND_RTRCN_IP = #{dmndRtrcnIp} + , CHG_APRV_STTS = NULL + , LSCT_LINK_TBL_NM = NULL + , LSCT_APRV_ID = NULL , MDFCN_DT = - , MDFR = #{modifiedBy} - WHERE LSCT_MPNG_ID = #{lsctMpngId} + , MDFR = #{modifiedBy} + WHERE LSCT_MPNG_ID = #{lsctMpngId} AND DEL_YN = 'N'