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 @@