From 474faae41c89b84898d6dc11755cc82f48845bef Mon Sep 17 00:00:00 2001 From: JoJH Date: Fri, 1 Nov 2024 18:01:48 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=ED=83=80=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/payer/service/bean/PayerBean.java | 13 +++++++++++-- .../resources/sql/mapper/fims/payer-mapper.xml | 14 +++++++------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/main/java/cokr/xit/fims/payer/service/bean/PayerBean.java b/src/main/java/cokr/xit/fims/payer/service/bean/PayerBean.java index 0d6c2a8f..50d7fe55 100644 --- a/src/main/java/cokr/xit/fims/payer/service/bean/PayerBean.java +++ b/src/main/java/cokr/xit/fims/payer/service/bean/PayerBean.java @@ -271,6 +271,9 @@ public class PayerBean extends AbstractBean { ); String rtpyrNo = basicInfo.getMber_se_no(); payer.setRtpyrNo(rtpyrNo); + if ("01,02".contains(payer.getRtpyrSeCd())) { + payer.setRtpyrBrdt(rtpyrNo.substring(0, 6)); + } payer.setRtpyrNm(basicInfo.getMber_nm()); payer.setRtpyrTelno(basicInfo.getTelno()); payer.setRoadNmCd(basicInfo.getUse_strnghld_road_nm_code()); @@ -316,7 +319,6 @@ public class PayerBean extends AbstractBean { * @return 납부자 정보 */ private Payer getPayer(BasicInfoExtResponse.ExtInfo extInfo) { - Payer payer = new Payer(); payer.setSggCd(extInfo.getSggCd()); @@ -335,7 +337,10 @@ public class PayerBean extends AbstractBean { String rtpyrNo = extInfo.getMber_se_no(); payer.setRtpyrNo(rtpyrNo); - payer.setRtpyrNm(extInfo.getMber_nm()); + if ("01,02".contains(payer.getRtpyrSeCd())) { + payer.setRtpyrBrdt(rtpyrNo.substring(0, 6)); + } + payer.setRtpyrNm(extInfo.getMber_nm()); payer.setRtpyrTelno(extInfo.getTelno()); payer.setRoadNmCd(extInfo.getUse_strnghld_road_nm_code()); String str = extInfo.getUsgsrhld_undgrnd_buld_se_code(); @@ -403,6 +408,10 @@ public class PayerBean extends AbstractBean { boolean rtnScs = false; // DB 처리 결과 String strTemp = ""; + // 생년월일 + if ("01,02".contains(payer.getRtpyrSeCd())) { + payer.setRtpyrBrdt(payer.getRtpyrNo().substring(0, 6)); + } // 지하 구분 코드 strTemp = payer.getUdgdSeCd(); if (strTemp == null || strTemp.equals("")) { diff --git a/src/main/resources/sql/mapper/fims/payer-mapper.xml b/src/main/resources/sql/mapper/fims/payer-mapper.xml index 93efaf87..7f97c195 100644 --- a/src/main/resources/sql/mapper/fims/payer-mapper.xml +++ b/src/main/resources/sql/mapper/fims/payer-mapper.xml @@ -185,12 +185,12 @@ , (CONCAT(C.CRDN_YMD, C.CRDN_TM)) AS CRDN_YMD_TM , C.VHRNO , C.CRDN_STTS_CD - , (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM + , (GET_CODE_NM('FIM010', C.CRDN_STTS_CD)) AS CRDN_STTS_NM , P.RTPYR_ID , P.RTPYR_INPT_SE_CD - , (SELECT GET_CODE_NM('FIM015', P.RTPYR_INPT_SE_CD) FROM DUAL) AS RTPYR_INPT_SE_NM + , (GET_CODE_NM('FIM015', P.RTPYR_INPT_SE_CD)) AS RTPYR_INPT_SE_NM , P.RTPYR_SE_CD - , (SELECT GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM + , (GET_CODE_NM('FIM011', P.RTPYR_SE_CD)) AS RTPYR_SE_NM , P.RTPYR_NO , P.RTPYR_NM , P.RTPYR_TELNO @@ -198,7 +198,7 @@ , P.RTPYR_EML , P.RTPYR_BRDT , P.RTPYR_STTS_CD - , (SELECT GET_CODE_NM('FIM014', P.RTPYR_STTS_CD) FROM DUAL) AS RTPYR_STTS_NM + , (GET_CODE_NM('FIM014', P.RTPYR_STTS_CD)) AS RTPYR_STTS_NM , P.REG_DT , P.RGTR , P.MDFCN_DT @@ -252,7 +252,7 @@ , (CONCAT(C.CRDN_YMD, C.CRDN_TM)) AS CRDN_YMD_TM , C.VHRNO , C.CRDN_STTS_CD - , (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM + , (GET_CODE_NM('FIM010', C.CRDN_STTS_CD)) AS CRDN_STTS_NM , P.RTPYR_NO , PA.ADDR_INPT_SE_CD , PA.ZIP @@ -272,8 +272,8 @@ , CPH.RTPYR_ID , CPH.REG_DT , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = CPH.RGTR) AS RGTR_NM - , (SELECT GET_CODE_NM('FIM015', P.RTPYR_INPT_SE_CD) FROM DUAL) AS RTPYR_INPT_SE_NM - , (SELECT GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM + , (GET_CODE_NM('FIM015', P.RTPYR_INPT_SE_CD)) AS RTPYR_INPT_SE_NM + , (GET_CODE_NM('FIM011', P.RTPYR_SE_CD)) AS RTPYR_SE_NM , P.RTPYR_NO , P.RTPYR_NM , P.RTPYR_TELNO