From 0a39830452a365d1d77ecce322338144ed199475 Mon Sep 17 00:00:00 2001 From: jjh Date: Thu, 19 Oct 2023 11:17:51 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=94=EB=93=9C=EB=AA=85=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=20=ED=95=A8=EC=88=98=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/fims/cmmn/crdnSttsHstry-mapper.xml | 6 +- .../sql/mapper/fims/cmmn/vltnInfo-mapper.xml | 2 +- .../fims/cvlc/saCvlcptIndviDmnd-mapper.xml | 12 ++-- .../sql/mapper/fims/excl/crdnReReg-mapper.xml | 6 +- .../sql/mapper/fims/excl/levyExcl-mapper.xml | 22 +++--- .../sql/mapper/fims/excl/opnnSbmsn-mapper.xml | 28 ++++---- .../sql/mapper/fims/levy/levy-mapper.xml | 2 +- .../sql/mapper/fims/levy/rduct-mapper.xml | 6 +- .../sql/mapper/fims/payer-mapper.xml | 10 +-- .../sql/mapper/fims/rcvm/rcvmt-mapper.xml | 8 +-- .../sql/mapper/fims/sndb/sndng-mapper.xml | 70 ++++++++++--------- .../sql/mapper/fims/sndb/svbtc-mapper.xml | 4 +- .../mapper/fims/sprt/cvlcptDscsnCn-mapper.xml | 2 +- .../sql/mapper/fims/sprt/totalInfo-mapper.xml | 34 ++++----- .../sql/mapper/fims/sprt/unityInq-mapper.xml | 30 ++++---- 15 files changed, 123 insertions(+), 119 deletions(-) diff --git a/src/main/resources/sql/mapper/fims/cmmn/crdnSttsHstry-mapper.xml b/src/main/resources/sql/mapper/fims/cmmn/crdnSttsHstry-mapper.xml index 63b30a1e..31e86396 100644 --- a/src/main/resources/sql/mapper/fims/cmmn/crdnSttsHstry-mapper.xml +++ b/src/main/resources/sql/mapper/fims/cmmn/crdnSttsHstry-mapper.xml @@ -26,13 +26,13 @@ SELECT CSH.STTS_HSTRY_ID /* 상태 이력 ID */ , CSH.CRDN_ID /* 단속 ID */ , CSH.BFR_STTS_CD /* 이전 상태 코드 */ - , (SELECT FN_GET_CODE_NM('FIM010', CSH.BFR_STTS_CD) FROM DUAL) AS BFR_STTS_NM /* 이전 상태 명 */ + , (SELECT GET_CODE_NM('FIM010', CSH.BFR_STTS_CD) FROM DUAL) AS BFR_STTS_NM /* 이전 상태 명 */ , CSH.BFR_STTS_CHG_DT /* 이전 상태 변경 일시 */ , CSH.CRDN_STTS_CD /* 단속 상태 코드 */ - , (SELECT FN_GET_CODE_NM('FIM010', CSH.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM /* 단속 상태 명 */ + , (SELECT GET_CODE_NM('FIM010', CSH.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM /* 단속 상태 명 */ , CSH.TASK_DTL_ID /* 업무 상세 ID */ , CSH.USE_YN /* 사용 여부 */ - , (SELECT FN_GET_CODE_NM('CMM003', CSH.USE_YN) FROM DUAL) AS USE_YN_NM /* 사용 여부 명 */ + , (SELECT GET_CODE_NM('CMM003', CSH.USE_YN) FROM DUAL) AS USE_YN_NM /* 사용 여부 명 */ , CSH.ETC_CN /* 기타 내용 */ , CSH.REG_DT /* 등록 일시 */ , CSH.RGTR /* 등록자 */ diff --git a/src/main/resources/sql/mapper/fims/cmmn/vltnInfo-mapper.xml b/src/main/resources/sql/mapper/fims/cmmn/vltnInfo-mapper.xml index a428599a..39c963fe 100644 --- a/src/main/resources/sql/mapper/fims/cmmn/vltnInfo-mapper.xml +++ b/src/main/resources/sql/mapper/fims/cmmn/vltnInfo-mapper.xml @@ -36,7 +36,7 @@ SELECT VI.VLTN_ID , VI.SGG_CD , VI.TASK_SE_CD - , (SELECT FN_GET_CODE_NM('FIM054', VI.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM + , (SELECT GET_CODE_NM('FIM054', VI.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM , VI.VLTN_CD , VI.VLTN_ARTCL , VI.VLTN_LAW_NM diff --git a/src/main/resources/sql/mapper/fims/cvlc/saCvlcptIndviDmnd-mapper.xml b/src/main/resources/sql/mapper/fims/cvlc/saCvlcptIndviDmnd-mapper.xml index f6efe78a..7d93ef92 100644 --- a/src/main/resources/sql/mapper/fims/cvlc/saCvlcptIndviDmnd-mapper.xml +++ b/src/main/resources/sql/mapper/fims/cvlc/saCvlcptIndviDmnd-mapper.xml @@ -11,14 +11,14 @@ SELECT SA.INDIV_ID , SA.PST_NO , SA.CRDN_ID , SA.STTS_CD - , FN_GET_CODE_NM('FIM063', SA.STTS_CD) AS STTS_NM + , GET_CODE_NM('FIM063', SA.STTS_CD) AS STTS_NM , SA.RSPNS_DT - , (SELECT USER_NM - FROM TB_USER + , (SELECT USER_NM + FROM TB_USER WHERE USER_ID = SA.RGTR ) AS RGTR FROM TB_SA_CVLCPT_INDIV_DMND SA - WHERE SA.DEL_YN = 'N' + WHERE SA.DEL_YN = 'N' AND SA.SGG_CD = #{sggCd} AND SA.TASK_SE_CD = #{taskSeCd} @@ -33,7 +33,7 @@ SELECT SA.INDIV_ID SELECT CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y'), LPAD(CAST(IFNULL(MAX(SUBSTRING(INDIV_ID, 5)) + 1, 1) AS INT), 26, '0')) - AS NEW_ID + AS NEW_ID FROM TB_SA_CVLCPT_INDIV_DMND /* 새올요청자료 등록(saCvlcptIndviDmndMapper.insertDmndDataInfo) */ @@ -51,7 +51,7 @@ INSERT , RGTR , MDFCN_DT , MDFR - ) + ) VALUES ( #{indivId} , #{sggCd} diff --git a/src/main/resources/sql/mapper/fims/excl/crdnReReg-mapper.xml b/src/main/resources/sql/mapper/fims/excl/crdnReReg-mapper.xml index b6e8cd13..7925ab3e 100644 --- a/src/main/resources/sql/mapper/fims/excl/crdnReReg-mapper.xml +++ b/src/main/resources/sql/mapper/fims/excl/crdnReReg-mapper.xml @@ -29,7 +29,7 @@ , CRR.CRDN_ID , CRR.RE_REG_YMD , CRR.CRDN_REG_SE_CD - , (SELECT FN_GET_CODE_NM('FIM026', CRR.CRDN_REG_SE_CD) FROM DUAL) AS CRDN_REG_SE_NM + , (SELECT GET_CODE_NM('FIM026', CRR.CRDN_REG_SE_CD) FROM DUAL) AS CRDN_REG_SE_NM , CRR.ETC_CN , CRR.DEL_YN , CRR.REG_DT @@ -42,7 +42,7 @@ , C.SGG_CD , C.TASK_SE_CD , C.CRDN_INPT_SE_CD - , (SELECT FN_GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) FROM DUAL) AS CRDN_INPT_SE_NM + , (SELECT GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) FROM DUAL) AS CRDN_INPT_SE_NM , C.CRDN_YMD , C.CRDN_TM , (CONCAT(C.CRDN_YMD, C.CRDN_TM)) AS CRDN_YMD_TM @@ -55,7 +55,7 @@ , C.FFNLG_AMT , C.ADVNTCE_AMT , C.CRDN_STTS_CD - , (SELECT FN_GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM + , (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM FROM TB_CRDN_RE_REG CRR INNER JOIN TB_CRDN C ON (CRR.CRDN_ID = C.CRDN_ID) diff --git a/src/main/resources/sql/mapper/fims/excl/levyExcl-mapper.xml b/src/main/resources/sql/mapper/fims/excl/levyExcl-mapper.xml index b5181c6d..6fc5234d 100644 --- a/src/main/resources/sql/mapper/fims/excl/levyExcl-mapper.xml +++ b/src/main/resources/sql/mapper/fims/excl/levyExcl-mapper.xml @@ -35,9 +35,9 @@ , LE.TASK_SE_CD , LE.LEVY_EXCL_YMD , LE.LEVY_EXCL_SE_CD - , (SELECT FN_GET_CODE_NM('FIM021', LE.LEVY_EXCL_SE_CD) FROM DUAL) AS LEVY_EXCL_SE_NM + , (SELECT GET_CODE_NM('FIM021', LE.LEVY_EXCL_SE_CD) FROM DUAL) AS LEVY_EXCL_SE_NM , LE.LEVY_EXCL_RSN_CD - , (SELECT FN_GET_CODE_NM('FIM022', LE.LEVY_EXCL_RSN_CD) FROM DUAL) AS LEVY_EXCL_RSN_NM + , (SELECT GET_CODE_NM('FIM022', LE.LEVY_EXCL_RSN_CD) FROM DUAL) AS LEVY_EXCL_RSN_NM , LE.ETC_CN , LE.DEL_YN , LE.REG_DT @@ -52,9 +52,9 @@ , LE.DEL_RSN , C.CRDN_ID , C.CRDN_REG_SE_CD - , (SELECT FN_GET_CODE_NM('FIM026', C.CRDN_REG_SE_CD) FROM DUAL) AS CRDN_REG_SE_NM + , (SELECT GET_CODE_NM('FIM026', C.CRDN_REG_SE_CD) FROM DUAL) AS CRDN_REG_SE_NM , C.CRDN_INPT_SE_CD - , (SELECT FN_GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) FROM DUAL) AS CRDN_INPT_SE_NM + , (SELECT GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) FROM DUAL) AS CRDN_INPT_SE_NM , C.CRDN_YMD , C.CRDN_TM , (CONCAT(C.CRDN_YMD, C.CRDN_TM)) AS CRDN_YMD_TM @@ -65,19 +65,19 @@ , C.FFNLG_CRDN_AMT , C.FFNLG_AMT , C.CRDN_STTS_CD - , (SELECT FN_GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM + , (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM , CA.CRDN_SE_CD - , (SELECT FN_GET_CODE_NM('FIM002', CA.CRDN_SE_CD) FROM DUAL) AS CRDN_SE_NM + , (SELECT GET_CODE_NM('FIM002', CA.CRDN_SE_CD) FROM DUAL) AS CRDN_SE_NM , CA.CRDN_SPAREA_CD - , (SELECT FN_GET_CODE_NM('FIM007', CA.CRDN_SPAREA_CD) FROM DUAL) AS CRDN_SPAREA_NM + , (SELECT GET_CODE_NM('FIM007', CA.CRDN_SPAREA_CD) FROM DUAL) AS CRDN_SPAREA_NM , CA.PARKNG_PSBLTY_RSLT_CD - , (SELECT FN_GET_CODE_NM('FIM034', CA.PARKNG_PSBLTY_RSLT_CD) FROM DUAL) AS PARKNG_PSBLTY_RSLT_NM + , (SELECT GET_CODE_NM('FIM034', CA.PARKNG_PSBLTY_RSLT_CD) FROM DUAL) AS PARKNG_PSBLTY_RSLT_NM , VI.VLTN_ID , VI.VLTN_CD , VI.VLTN_ARTCL , P.RTPYR_ID , P.RTPYR_SE_CD - , (SELECT FN_GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM + , (SELECT GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM , P.RTPYR_NO , P.RTPYR_NM , P.RTPYR_BRDT @@ -339,7 +339,7 @@ , C.CRDN_TM , C.VHRNO , C.CRDN_STTS_CD - , (SELECT FN_GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM + , (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM , C.CRDN_STTS_CHG_DT , CA.CRDN_SE_CD , CA.CRDN_SPAREA_CD @@ -370,7 +370,7 @@