From 72a30e666def803f41f90d72267cc077f0e59c00 Mon Sep 17 00:00:00 2001 From: myname Date: Wed, 20 Aug 2025 12:37:38 +0900 Subject: [PATCH] =?UTF-8?q?2025-08-20=2012:37=20=EC=B4=88=EA=B8=B0=20?= =?UTF-8?q?=EC=85=8B=ED=8C=85=20=EC=9E=91=EC=97=85=20=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../log/clg/web/EgovLoginLogController.java | 2 +- .../uss/ion/cnt/web/EgovCntController.java | 2 + .../sql-map-config-postgresql-sym-ccm-cde.xml | 7 + .../sql-map-config-postgresql-sym-log-clg.xml | 7 + .../sql-map-config-postgresql-uss-ion-cnt.xml | 7 + .../sql-map-config-postgresql-uss-olp-qmc.xml | 7 + .../sql-map-config-postgresql-uss-olp-qrm.xml | 7 + .../sql-map-config-postgresql-ve.xml | 9 + .../postgresql/sql-map-config-postgresql.xml | 2 +- .../ram/EgovAuthorManage_SQL_Postgresql.xml | 58 +- ...govCmmnDetailCodeManage_SQL_Postgresql.xml | 231 ++ .../log/clg}/EgovLoginLog_SQL_Postgresql.xml | 556 +++- .../uss/ion/cnt/CntManage_SQL_Postgresql.xml | 286 ++ .../qmc/EgovQustnrManage_SQL_Postgresql.xml | 291 ++ ...EgovQustnrRespondManage_SQL_Postgresql.xml | 189 ++ .../ve/instr/VEInstrDetail_SQL_Postgresql.xml | 669 ++++ .../ve/instr/VEInstr_MIX_SQL_Postgresql.xml | 2732 +++++++++++++++++ .../ve/lctr/VELctr_MIX_SQL_Postgresql.xml | 379 +++ .../ve/rsdnc/VERsdnc_MIX_SQL_Postgresql.xml | 336 ++ 19 files changed, 5627 insertions(+), 150 deletions(-) create mode 100644 src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-sym-ccm-cde.xml create mode 100644 src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-sym-log-clg.xml create mode 100644 src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-uss-ion-cnt.xml create mode 100644 src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-uss-olp-qmc.xml create mode 100644 src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-uss-olp-qrm.xml create mode 100644 src/main/resources/egovframework/sqlmap/let/sym/ccm/cde/EgovCmmnDetailCodeManage_SQL_Postgresql.xml rename src/main/resources/egovframework/sqlmap/{config/postgresql => let/sym/log/clg}/EgovLoginLog_SQL_Postgresql.xml (55%) create mode 100644 src/main/resources/egovframework/sqlmap/let/uss/ion/cnt/CntManage_SQL_Postgresql.xml create mode 100644 src/main/resources/egovframework/sqlmap/let/uss/olp/qmc/EgovQustnrManage_SQL_Postgresql.xml create mode 100644 src/main/resources/egovframework/sqlmap/let/uss/olp/qrm/EgovQustnrRespondManage_SQL_Postgresql.xml create mode 100644 src/main/resources/egovframework/sqlmap/ve/instr/VEInstrDetail_SQL_Postgresql.xml create mode 100644 src/main/resources/egovframework/sqlmap/ve/instr/VEInstr_MIX_SQL_Postgresql.xml create mode 100644 src/main/resources/egovframework/sqlmap/ve/lctr/VELctr_MIX_SQL_Postgresql.xml create mode 100644 src/main/resources/egovframework/sqlmap/ve/rsdnc/VERsdnc_MIX_SQL_Postgresql.xml diff --git a/src/main/java/kcc/let/sym/log/clg/web/EgovLoginLogController.java b/src/main/java/kcc/let/sym/log/clg/web/EgovLoginLogController.java index 561f9831..833dcc67 100644 --- a/src/main/java/kcc/let/sym/log/clg/web/EgovLoginLogController.java +++ b/src/main/java/kcc/let/sym/log/clg/web/EgovLoginLogController.java @@ -107,7 +107,7 @@ public class EgovLoginLogController { loginLog.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); if("".equals(loginLog.getSearchSortCnd())){ //최초조회시 최신것 조회List - loginLog.setSearchSortCnd("b.CREAT_DT"); + loginLog.setSearchSortCnd("a.CREAT_DT"); loginLog.setSearchSortOrd("desc"); } diff --git a/src/main/java/kcc/let/uss/ion/cnt/web/EgovCntController.java b/src/main/java/kcc/let/uss/ion/cnt/web/EgovCntController.java index 607409a0..278f895f 100644 --- a/src/main/java/kcc/let/uss/ion/cnt/web/EgovCntController.java +++ b/src/main/java/kcc/let/uss/ion/cnt/web/EgovCntController.java @@ -97,6 +97,8 @@ public class EgovCntController { @RequestMapping(value = "/uss/ion/cnt/contentList.do") public String selectContentList(@ModelAttribute("cntManageVO") CntManageVO cntManageVO, ModelMap model, HttpSession session) throws Exception { + + System.out.println("uss/ion/cnt/cntManageList"); if(cntManageVO.getPageUnit() != 10) { cntManageVO.setPageUnit(cntManageVO.getPageUnit()); diff --git a/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-sym-ccm-cde.xml b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-sym-ccm-cde.xml new file mode 100644 index 00000000..68cbac7b --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-sym-ccm-cde.xml @@ -0,0 +1,7 @@ + + + + + + diff --git a/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-sym-log-clg.xml b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-sym-log-clg.xml new file mode 100644 index 00000000..05dc6b12 --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-sym-log-clg.xml @@ -0,0 +1,7 @@ + + + + + + diff --git a/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-uss-ion-cnt.xml b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-uss-ion-cnt.xml new file mode 100644 index 00000000..935b1624 --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-uss-ion-cnt.xml @@ -0,0 +1,7 @@ + + + + + + diff --git a/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-uss-olp-qmc.xml b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-uss-olp-qmc.xml new file mode 100644 index 00000000..d4877839 --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-uss-olp-qmc.xml @@ -0,0 +1,7 @@ + + + + + + diff --git a/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-uss-olp-qrm.xml b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-uss-olp-qrm.xml new file mode 100644 index 00000000..434fdb80 --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-uss-olp-qrm.xml @@ -0,0 +1,7 @@ + + + + + + diff --git a/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-ve.xml b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-ve.xml index c526aba2..0e3a21cd 100644 --- a/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-ve.xml +++ b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-ve.xml @@ -8,4 +8,13 @@ + + + + + + + + + diff --git a/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql.xml b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql.xml index 4855dd1a..94742d11 100644 --- a/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql.xml +++ b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql.xml @@ -6,7 +6,7 @@ - + diff --git a/src/main/resources/egovframework/sqlmap/let/sec/ram/EgovAuthorManage_SQL_Postgresql.xml b/src/main/resources/egovframework/sqlmap/let/sec/ram/EgovAuthorManage_SQL_Postgresql.xml index 8e3479f8..904e2a6f 100644 --- a/src/main/resources/egovframework/sqlmap/let/sec/ram/EgovAuthorManage_SQL_Postgresql.xml +++ b/src/main/resources/egovframework/sqlmap/let/sec/ram/EgovAuthorManage_SQL_Postgresql.xml @@ -1,7 +1,7 @@ - + @@ -25,10 +25,14 @@ - + /* authorManageDAO.selectAuthorList */ SELECT - AUTHOR_CODE, AUTHOR_NM, AUTHOR_DC, + AUTHOR_CODE, AUTHOR_NM, AUTHOR_DC, + AUTHOR_CREAT_DE, + /* TO_CHAR(AUTHOR_CREAT_DE , 'YYYY-MM-DD') AUTHOR_CREAT_DE , + */ SORT_NUM FROM LETTNAUTHORINFO WHERE 1=1 @@ -36,19 +40,22 @@ AND AUTHOR_SET = #authorSet# - AUTHOR_NM LIKE '%' || #searchKeyword# || '%' + AUTHOR_NM LIKE '%'||#searchKeyword#||'%' - ORDER BY 1=1 + ORDER BY 1 ,$searchSortCnd$ $searchSortOrd$ - LIMIT #recordCountPerPage# OFFSET #firstIndex# + /* + LIMIT recordCountPerPage OFFSET firstIndex + */ + OFFSET #firstIndex# ROWS FETCH NEXT #recordCountPerPage# ROWS ONLY; - + - + - + - - + /* authorManageDAO.selectAuthorListTotCnt */ SELECT COUNT(*) totcnt FROM LETTNAUTHORINFO WHERE 1=1 - AUTHOR_NM LIKE '%' || #searchKeyword# || '%' + AUTHOR_NM LIKE CONCAT('%' , #searchKeyword#, '%') - + /* authorManageDAO.selectAuthorAllList */ SELECT AUTHOR_CODE, AUTHOR_NM, AUTHOR_DC, AUTHOR_CREAT_DE, SORT_NUM @@ -107,7 +116,8 @@ ORDER BY SORT_NUM DESC - + /* authorManageDAO.selectAuthorHrcList */ SELECT A.AUTHOR_CODE, A.AUTHOR_NM, A.AUTHOR_DC, A.AUTHOR_CREAT_DE, A.SORT_NUM, B.PARNTS_ROLE, B.CHLDRN_ROLE FROM LETTNAUTHORINFO A @@ -117,7 +127,7 @@ - + UPDATE LETTNAUTHORINFO SET @@ -130,7 +140,7 @@ - + - + - + - + - \ No newline at end of file + diff --git a/src/main/resources/egovframework/sqlmap/let/sym/ccm/cde/EgovCmmnDetailCodeManage_SQL_Postgresql.xml b/src/main/resources/egovframework/sqlmap/let/sym/ccm/cde/EgovCmmnDetailCodeManage_SQL_Postgresql.xml new file mode 100644 index 00000000..83e822a5 --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/let/sym/ccm/cde/EgovCmmnDetailCodeManage_SQL_Postgresql.xml @@ -0,0 +1,231 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /* CmmnDetailCodeManageDAO.updateCmmnDetailCodePk */ + UPDATE LETTCCMMNDETAILCODE + SET CODE_NM = #codeNm# + + , CODE_DC = #codeDc# + + + , USE_AT = #useAt# + + + , SORT = #sort# + + , LAST_UPDT_PNTTM = SYSDATE + , LAST_UPDUSR_ID = #lastUpdusrId# + , CODE = #code# + WHERE CODE_ID = #codeId# + AND CODE = #tempCodeId# + + + + + + + \ No newline at end of file diff --git a/src/main/resources/egovframework/sqlmap/config/postgresql/EgovLoginLog_SQL_Postgresql.xml b/src/main/resources/egovframework/sqlmap/let/sym/log/clg/EgovLoginLog_SQL_Postgresql.xml similarity index 55% rename from src/main/resources/egovframework/sqlmap/config/postgresql/EgovLoginLog_SQL_Postgresql.xml rename to src/main/resources/egovframework/sqlmap/let/sym/log/clg/EgovLoginLog_SQL_Postgresql.xml index b7e7f9dc..38485f4d 100644 --- a/src/main/resources/egovframework/sqlmap/config/postgresql/EgovLoginLog_SQL_Postgresql.xml +++ b/src/main/resources/egovframework/sqlmap/let/sym/log/clg/EgovLoginLog_SQL_Postgresql.xml @@ -60,15 +60,19 @@ ,#menuNm# - , NOW()) + , SYSDATE) + /* LoginLogDAO.selectLoginLogInf */ - + USER_AT = #userAt# @@ -114,7 +119,7 @@ - /* 임시.*NOT_SQL_LOG.* */ + /* 임시.*NOT_SQL_LOG.* LoginLogDAO.selectLoginUserLog */ - /* 임시.*NOT_SQL_LOG.* */ + /* 임시.*NOT_SQL_LOG.* LoginLogDAO.selectMainAmdinLogTotCnt */ SELECT COUNT(a.LOG_ID) FROM @@ -190,7 +195,7 @@ - /* 임시.*NOT_SQL_LOG.* */ + /* 임시.*NOT_SQL_LOG.* LoginLogDAO.logInsertAdminLoginLog */ /* LoginLogDAO.logInsertAdminLoginLog */ INSERT INTO LETTNLOGINLOG ( LOG_ID @@ -225,18 +230,87 @@ ,( SELECT B.MENU_NM FROM LETTNPROGRMLIST A INNER JOIN LETTNMENUINFO B WHERE A.PROGRM_FILE_NM = B.PROGRM_FILE_NM AND A.URL = #url# LIMIT 1 ) - , now()) + , SYSDATE) + + + + + + + + + - /* 임시.*NOT_SQL_LOG.* */ + /* 임시.*NOT_SQL_LOG.* LoginLogDAO.updateLogMethod */ UPDATE LETTNADMINMETHOD SET METHOD_NM = #methodNm# , PARAM = #param# , MENU_NM = #menuNm# , APPRO_NM = #approNm# , PRIVACY = #privacy# + , USE_YN = #useYn# + + , sort_num = CAST(#sortNum# as int) + WHERE ADMOT_ID = #admotId# - /* 임시.*NOT_SQL_LOG.* */ + /* 임시.*NOT_SQL_LOG.* LoginLogDAO.insertLogMethod */ INSERT INTO LETTNADMINMETHOD ( ADMOT_ID, @@ -384,7 +583,9 @@ PARAM, MENU_NM, APPRO_NM, - PRIVACY + PRIVACY, + use_yn, + sort_num ) VALUES ( @@ -393,7 +594,9 @@ #param#, #menuNm#, #approNm#, - #privacy# + #privacy#, + #useYn#, + #sortNum# ) @@ -404,7 +607,11 @@ - /* 임시.*NOT_SQL_LOG.* */ + /* 임시.*NOT_SQL_LOG.* LoginLogDAO.selectWebLogList */ SELECT COUNT(A.MENU_NM) OVER() AS totCnt, COUNT(B.CREAT_DT) menuCnt, A.MENU_NM AS menuNm, - TO_CHAR(B.CREAT_DT , 'YYYY-MM-DD') AS creatDt, + DATE_FORMAT(B.CREAT_DT , "%Y-%m-%d") AS creatDt, A.PROGRM_FILE_NM as progrmFileNm, A.MENU_NO as logId /** 임시정렬번호 */ FROM ( @@ -621,7 +831,7 @@ WHERE 1=1 - GROUP BY menuNm, creatDt + GROUP BY menuNm /** , creatDt */ ORDER BY 1=1 ,$searchSortCnd$ @@ -630,30 +840,90 @@ $searchSortOrd$ LIMIT #recordCountPerPage# OFFSET #firstIndex# - - + + + + - /* 임시.*NOT_SQL_LOG.* */ + /* 임시.*NOT_SQL_LOG.* LoginLogDAO.selectLogCnt */ SELECT A.todayLogCnt , B.totalLogCnt from ( SELECT COUNT(*) todayLogCnt , 'TEMP' AS TEMP FROM LETTNLOGINLOG - WHERE TO_CHAR(CREAT_DT, 'YYYY-MM-DD') = TO_CHAR(now() , 'YYYY-MM-DD') ) A + WHERE TO_CHAR(CREAT_DT, 'YYYY-MM-DD') = TO_CHAR(SYSDATE , 'YYYY-MM-DD') ) A INNER JOIN (SELECT COUNT(LOG_ID) AS totalLogCnt ,'TEMP' AS TEMP FROM LETTNLOGINLOG WHERE 1=1 ) B ON A.TEMP = B.TEMP - \ No newline at end of file + + diff --git a/src/main/resources/egovframework/sqlmap/let/uss/ion/cnt/CntManage_SQL_Postgresql.xml b/src/main/resources/egovframework/sqlmap/let/uss/ion/cnt/CntManage_SQL_Postgresql.xml new file mode 100644 index 00000000..e31de5df --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/let/uss/ion/cnt/CntManage_SQL_Postgresql.xml @@ -0,0 +1,286 @@ + + + + + + + + + + + + + + + + + INSERT INTO CNT_MANAGE + ( + CNT_ID, + CNTDT_ID, + CNT_NAME, + CNT_FILE_FOLDER, + CNT_CN, + REGISTER_ID, + REGIST_PNTTM, + USE_AT, + MENU_NO + )VALUES( + #cntId#, + #cntDtId#, + #cntName#, + #cntFileFolder#, + #cntCn#, + #registerId#, + NOW(), + 'Y', + (SELECT MENU_NO FROM CNT_MANAGE A + WHERE A.CNT_ID = #cntId# + LIMIT 1 + ) + ) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /* cntManageDAO.updateCntMail */ + MERGE INTO CNT_MANAGE + USING DUAL + ON( + CNT_ID = #cntId# + AND CNTDT_ID = #cntDtId# + ) + + WHEN NOT MATCHED THEN + INSERT + ( + CNT_ID + , CNTDT_ID + , CNT_CN + , REGISTER_ID + , REGIST_PNTTM + ) + VALUES( + #cntId#, + #cntDtId#, + + #cntCn#, + + #registerId#, + SYSDATE + ) + WHEN MATCHED THEN + UPDATE + SET CNT_CN = #cntCn# + + + + \ No newline at end of file diff --git a/src/main/resources/egovframework/sqlmap/let/uss/olp/qmc/EgovQustnrManage_SQL_Postgresql.xml b/src/main/resources/egovframework/sqlmap/let/uss/olp/qmc/EgovQustnrManage_SQL_Postgresql.xml new file mode 100644 index 00000000..c913de44 --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/let/uss/olp/qmc/EgovQustnrManage_SQL_Postgresql.xml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM LETTNQUSTNRRESPONDINFO WHERE QESTNR_ID = #qestnrId# + + + + DELETE FROM LETTNQUSTNRRSPNSRESULT WHERE QESTNR_ID = #qestnrId# + + + + DELETE FROM LETTNQUSTNRIEM WHERE QESTNR_ID = #qestnrId# + + + + DELETE FROM LETTNQUSTNRQESITM WHERE QESTNR_ID = #qestnrId# + + + + + + + + + + UPDATE LETTNQESTNRINFO + SET + QUSTNR_SJ=#qestnrSj#, + QUSTNR_PURPS=#qestnrPurps#, + QUSTNR_TMPLAT_ID=#qestnrTmplatId#, + QUSTNR_WRITNG_GUIDANCE_CN=#qestnrWritngGuidanceCn#, + QUSTNR_BGNDE=REPLACE(#qestnrBeginDe#,'-',''), + QUSTNR_TRGET=#qestnrTrget#, + QUSTNR_VIEW_TRGET=#qestnrViewTrget#, + QUSTNR_ENDDE=REPLACE(#qestnrEndDe#,'-',''), + LAST_UPDT_PNTTM = SYSDATE, + SITE_ID = #siteId#, + LAST_UPDUSR_ID = #lastUpdusrId#, + STTUS = #sttus#, + BEFORE_AND_AFTER = #beforeAndAfter#, + ATCH_FILE_ID = #atchFileId# + WHERE QESTNR_ID = #qestnrId# + + + + + + + + INSERT INTO LETTNQESTNRINFO ( + QESTNR_ID, + QUSTNR_SJ, + QUSTNR_PURPS, + QUSTNR_WRITNG_GUIDANCE_CN, + QUSTNR_BGNDE, + QUSTNR_ENDDE, + QUSTNR_TRGET, + QUSTNR_VIEW_TRGET, + QUSTNR_TMPLAT_ID, + SITE_ID, + FRST_REGIST_PNTTM, + FRST_REGISTER_ID, + LAST_UPDT_PNTTM, + LAST_UPDUSR_ID, + ATCH_FILE_ID + )VALUES( + #qestnrId#, + #qestnrSj#, + #qestnrPurps#, + #qestnrWritngGuidanceCn#, + REPLACE(#qestnrBeginDe#,'-',''), + REPLACE(#qestnrEndDe#,'-',''), + #qestnrTrget#, + #qestnrViewTrget#, + #qestnrTmplatId#, + #siteId#, + SYSDATE, + #frstRegisterId#, + SYSDATE, + #lastUpdusrId#, + #atchFileId# + ) + + + + \ No newline at end of file diff --git a/src/main/resources/egovframework/sqlmap/let/uss/olp/qrm/EgovQustnrRespondManage_SQL_Postgresql.xml b/src/main/resources/egovframework/sqlmap/let/uss/olp/qrm/EgovQustnrRespondManage_SQL_Postgresql.xml new file mode 100644 index 00000000..df9ec869 --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/let/uss/olp/qrm/EgovQustnrRespondManage_SQL_Postgresql.xml @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + /*QustnrRespondManage.updateQustnrRespondManage*/ + UPDATE LETTNQUSTNRRESPONDINFO + SET + LAST_UPDT_PNTTM = SYSDATE + , LAST_UPDUSR_ID = #lastUpdusrId# + + , QESTNR_RESPONDENT_COUNT = #qestnrParticipant# + + + , QESTNR_PARTICIPANT_COUNT = #qestnrRespondent# + + WHERE 1=1 + AND QUSTNR_RESPOND_ID = #qestnrRespondId# + + + + + + + + + + + + + + /* QustnrRespondManage.insertQustnrRespondManage */ + + + + + + /* QustnrRespondManage.insertSubjRespond */ + + MERGE INTO VEA_SUL_OPINION + USING DUAL + ON( + QUSTNR_TMPLAT_ID=#qestnrTmplatId# + AND qestnr_Id=#qestnrId# + AND edu_aplct_ord=#eduAplctOrd# + AND edu_chasi_ord=#eduChasiOrd# + AND user_Id=#userId# + ) + + WHEN NOT MATCHED THEN + INSERT + ( + QUSTNR_TMPLAT_ID + , QESTNR_ID + , EDU_APLCT_ORD + , EDU_CHASI_ORD + , USER_ID + + , QUSTNR_CN + + , FRST_REGIST_PNTTM + , FRST_REGISTER_ID + , LAST_UPDT_PNTTM + , LAST_UPDUSR_ID + ) + VALUES( + #qestnrTmplatId# + , #qestnrId# + , #eduAplctOrd# + , #eduChasiOrd# + , #userId# + + , #qustnrCn# + + , SYSDATE + , #frstRegisterId# + , SYSDATE + , #lastUpdusrId# + ) + WHEN MATCHED THEN + UPDATE + SET last_updusr_id = #lastUpdusrId# + , last_updt_pnttm = SYSDATE + , QUSTNR_CN = #qustnrCn# + + + \ No newline at end of file diff --git a/src/main/resources/egovframework/sqlmap/ve/instr/VEInstrDetail_SQL_Postgresql.xml b/src/main/resources/egovframework/sqlmap/ve/instr/VEInstrDetail_SQL_Postgresql.xml new file mode 100644 index 00000000..50aaf992 --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/ve/instr/VEInstrDetail_SQL_Postgresql.xml @@ -0,0 +1,669 @@ + + + + + + + + + + + ve_instr_detail + + + + + instr_div, + user_id, + instr_detail_ord, + + instr_nm, + phone, + email, + post, + addr, + addr_detail, + rsdne, + d_birth, + final_schol, + mjr, + appt_yr, + appt_div, + actvt_carer, + mn_lctr_cn, + pht_atch_file_id, + blng, + pstn, + prfsn_fld, + sbmt_yn, + sbmt_pnttm, + aprvl_cd, + aprvl_pnttm, + aprvl_id, + aprvl_cn, + frst_regist_pnttm, + frst_register_id, + last_updt_pnttm, + last_updusr_id, + + use_yn, + qlfct_end_yn, + qlfct_end_pnttm, + qlfct_end_cn, + div_cd, + appt_dt, + hchk_dt, + rmrks, + memo, + sig_memo, + hope_edu_fld + + + + + + a.instr_div AS instrDiv, + a.user_id AS userId, + (SELECT user_nm FROM COMVNUSERMASTER WHERE USER_ID = a.user_id) AS userNm, + a.instr_detail_ord AS instrDetailOrd, + a.instr_nm AS instrNm, + a.phone AS phone, + a.email AS email, + a.post AS post, + a.addr AS addr, + a.addr_detail AS addrDetail, + a.rsdne AS rsdne, + a.d_birth AS dBirth, + /* + a.d_birth AS Birth, + */ + /* + IF (length(a.d_birth)=8,DATE_FORMAT(STR_TO_DATE(a.d_birth, '%Y%m%d'),'%Y-%m-%d'),IF (length(a.d_birth)=6,DATE_FORMAT(STR_TO_DATE(a.d_birth, '%y%m%d'),'%Y-%m-%d'),'')) AS Birth, + */ + '' AS Birth, + a.final_schol AS finalSchol, + a.mjr AS mjr, + a.appt_yr AS apptYr, + + a.actvt_carer AS actvtCarer, + a.mn_lctr_cn AS mnLctrCn, + a.pht_atch_file_id AS phtAtchFileId, + a.blng AS blng, + a.pstn AS pstn, + a.prfsn_fld AS prfsnFld, + a.sbmt_yn AS sbmtYn, + a.sbmt_pnttm AS sbmtPnttm, + a.aprvl_cd AS aprvlCd, + + TO_CHAR(a.aprvl_pnttm,'YYYY-MM-DD') AS aprvlPnttm, + + a.aprvl_id AS aprvlId, + a.aprvl_cn AS aprvlCn, + + TO_CHAR(a.frst_regist_pnttm,'YYYY-MM-DD') AS frstRegistPnttm, + a.frst_register_id AS frstRegisterId, + TO_CHAR(a.last_updt_pnttm,'YYYY-MM-DD') AS lastUpdtPnttm, + a.last_updusr_id AS lastUpdusrId, + + + (SELECT a0.code_nm + FROM LETTCCMMNDETAILCODE a0 + WHERE a0.code_id='VE0018' + AND a0.code =a.div_cd + ) + AS divCd, + (SELECT a0.code_nm + FROM LETTCCMMNDETAILCODE a0 + WHERE a0.code_id='VE0002' + AND a0.code =a.appt_div + ) + AS apptDiv, + + + a.div_cd AS divCd, + a.appt_div AS apptDiv, + + + a.use_yn AS useYn, + a.qlfct_end_yn AS qlfctEndYn, + a.qlfct_end_pnttm AS qlfctEndPnttm, + a.qlfct_end_cn AS qlfctEndCn, + + a.appt_dt AS apptDt, + a.hchk_dt AS hchkDt, + a.rmrks AS rmrks, + a.memo AS memo, + a.sig_memo AS sigMemo, + a.hope_edu_fld AS hopeEduFld + + + + + + /* VEInstrDetailDAO.insert */ + + + INSERT INTO ( + + + )VALUES( + #instrDiv#, + #userId#, + #instrDetailOrd#, + + #instrNm#, + #phone#, + #email#, + #post#, + #addr#, + #addrDetail#, + #rsdne#, + #dBirth#, + #finalSchol#, + #mjr#, + #apptYr#, + #apptDiv#, + #actvtCarer#, + #mnLctrCn#, + #phtAtchFileId#, + #blng#, + #pstn#, + #prfsnFld#, + #sbmtYn#, + #sbmtPnttm#, + #aprvlCd#, + #aprvlPnttm#, + #aprvlId#, + #aprvlCn#, + + + SYSDATE, + #frstRegisterId#, + SYSDATE, + #lastUpdusrId#, + + + #useYn#, + + + 'N', + + #qlfctEndYn#, + #qlfctEndPnttm#, + #qlfctEndCn#, + #divCd#, + #apptDt#, + #hchkDt#, + #rmrks#, + #memo#, + #sigMemo#, + #hopeEduFld# + ) + + + + + + /* VEInstrDetailDAO.insertDup */ + + MERGE INTO + USING DUAL + ON(instr_nm=#instrNm# AND phone=#phone#) + + WHEN NOT MATCHED THEN + INSERT + ( + + ) + VALUES( + #instrDiv#, + #userId#, + #instrDetailOrd#, + + #instrNm#, + #phone#, + #email#, + #post#, + #addr#, + #addrDetail#, + #rsdne#, + #dBirth#, + #finalSchol#, + #mjr#, + #apptYr#, + #apptDiv#, + #actvtCarer#, + #mnLctrCn#, + #phtAtchFileId#, + #blng#, + #pstn#, + #prfsnFld#, + #sbmtYn#, + #sbmtPnttm#, + #aprvlCd#, + #aprvlPnttm#, + #aprvlId#, + #aprvlCn#, + + + SYSDATE, + #frstRegisterId#, + SYSDATE, + #lastUpdusrId#, + + + #useYn#, + + + 'N', + + #qlfctEndYn#, + #qlfctEndPnttm#, + #qlfctEndCn#, + #divCd#, + #apptDt#, + #hchkDt#, + #rmrks#, + #memo#, + #sigMemo#, + #hopeEduFld# + ) + WHEN MATCHED THEN + UPDATE + SET last_updusr_id = #frstRegisterId# + , last_updt_pnttm = SYSDATE + + + , email =#email# + + , post =#post# + + , addr =#addr# + + , addr_detail =#addrDetail# + + , rsdne =#rsdne# + + , d_birth =#dBirth# + + , final_schol =#finalSchol# + + , mjr =#mjr# + + , appt_yr =#apptYr# + + , appt_div =#apptDiv# + + , actvt_carer =#actvtCarer# + + , mn_lctr_cn =#mnLctrCn# + + , blng =#blng# + + , pstn =#pstn# + + , prfsn_fld =#prfsnFld# + + , div_cd =#divCd# + + , rmrks =#rmrks# + + , memo =#memo# + + , sig_memo =#sigMemo# + + , hope_edu_fld =#hopeEduFld# + + + + + + + + + + + + + UPDATE + + SET + + + + + user_id = #rqstId#, + + + + instr_nm = #instrNm#, + + + + phone = #phone#, + + + + email = #email#, + + + + post = #post#, + + + + addr = #addr#, + + + + addr_detail = #addrDetail#, + + rsdne = #rsdne#, + + d_birth = #dBirth#, + + final_schol = #finalSchol#, + + mjr = #mjr#, + + appt_yr = #apptYr#, + + appt_div = #apptDiv#, + + actvt_carer = #actvtCarer#, + + mn_lctr_cn = #mnLctrCn#, + + pht_atch_file_id = #phtAtchFileId#, + + blng = #blng#, + + pstn = #pstn#, + + prfsn_fld = #prfsnFld#, + + sbmt_yn = #sbmtYn#, + + sbmt_pnttm = #sbmtPnttm#, + + aprvl_cd = #aprvlCd#, + + aprvl_pnttm = #aprvlPnttm#, + + aprvl_id = #aprvlId#, + + aprvl_cn = #aprvlCn#, + + use_yn = #useYn#, + + qlfct_end_yn = #qlfctEndYn#, + + qlfct_end_pnttm = #qlfctEndPnttm#, + + qlfct_end_cn = #qlfctEndCn#, + + div_cd = #divCd#, + + appt_dt = #apptDt#, + + hchk_dt = #hchkDt#, + + rmrks = #rmrks#, + + hope_edu_fld = #hopeEduFld#, + + + + + + + + aprvl_cn = '', + + + LAST_UPDT_PNTTM = SYSDATE + ,LAST_UPDUSR_ID = #lastUpdusrId# + + WHERE + instr_div = #instrDiv# + AND user_id = #userId# + AND instr_detail_ord = #instrDetailOrd# + + + + + DELETE FROM + + WHERE + instr_div = #instrDiv# + AND user_id = #userId# + AND instr_detail_ord = #instrDetailOrd# + + + + + + + + + + + + + INSERT INTO VE_EDU_SCLTN_TEACHER ( + edu_aplct_ord + ,div_cd + ,awards_hist + ,unfth_yn + ,extra_pay_yn + ,rmrks + ,frst_regist_pnttm + ,frst_register_id + ,rprt_score + )VALUES( + #eduAplctOrd#, + #divCd#, + #awardsHist#, + #unfthYn#, + #extraPayYn#, + #rmrks#, + SYSDATE, + #frstRegisterId#, + #rprtScore# + ) + + + + + + DELETE FROM + VE_EDU_SCLTN_TEACHER + WHERE + edu_aplct_ord = #eduAplctOrd# + AND div_cd = #divCd# + + + + + + + UPDATE + VE_INSTR_DETAIL + SET + MEMO = #memo# + WHERE + USER_ID = #userId# + AND + INSTR_DETAIL_ORD = #instrDetailOrd# + AND + INSTR_DIV = #instrDiv# + + + + + UPDATE + VE_INSTR_DETAIL + SET + SIG_MEMO = #sigMemo# + WHERE + USER_ID = #userId# + AND + INSTR_DETAIL_ORD = #instrDetailOrd# + AND + INSTR_DIV = #instrDiv# + + + + diff --git a/src/main/resources/egovframework/sqlmap/ve/instr/VEInstr_MIX_SQL_Postgresql.xml b/src/main/resources/egovframework/sqlmap/ve/instr/VEInstr_MIX_SQL_Postgresql.xml new file mode 100644 index 00000000..826bd832 --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/ve/instr/VEInstr_MIX_SQL_Postgresql.xml @@ -0,0 +1,2732 @@ + + + + + + + + + + + + + + ve_instr + + + + + user_id, + tngr_instr_yn, + adult_instr_yn, + frst_regist_pnttm, + frst_register_id, + last_updt_pnttm, + last_updusr_id + + + + + + a.user_id AS userId, + a.tngr_instr_yn AS tngrInstrYn, + a.adult_instr_yn AS adultInstrYn, + + TO_CHAR(a.frst_regist_pnttm,'YYYY-MM-DD') AS frstRegistPnttm, + a.frst_register_id AS frstRegisterId, + TO_CHAR(a.last_updt_pnttm,'YYYY-MM-DD') AS lastUpdtPnttm, + a.last_updusr_id AS lastUpdusrId + + + + + + ve_instr_detail + + + + + instr_div, + user_id, + instr_detail_ord, + + instr_nm, + phone, + email, + post, + addr, + addr_detail, + rsdne, + d_birth, + final_schol, + mjr, + appt_yr, + appt_div, + actvt_carer, + mn_lctr_cn, + pht_atch_file_id, + blng, + pstn, + prfsn_fld, + sbmt_yn, + sbmt_pnttm, + aprvl_cd, + aprvl_pnttm, + aprvl_id, + aprvl_cn, + frst_regist_pnttm, + frst_register_id, + last_updt_pnttm, + last_updusr_id, + + use_yn, + qlfct_end_yn, + qlfct_end_pnttm, + qlfct_end_cn + + + + + + a.instr_div AS instrDiv, + a.user_id AS userId, + a.instr_detail_ord AS instrDetailOrd, + + a.instr_nm AS instrNm, + a.phone AS phone, + a.email AS email, + a.post AS post, + a.addr AS addr, + a.addr_detail AS addrDetail, + a.rsdne AS rsdne, + a.d_birth AS dBirth, + a.final_schol AS finalSchol, + a.mjr AS mjr, + a.appt_yr AS apptYr, + a.appt_div AS apptDiv, + a.actvt_carer AS actvtCarer, + a.mn_lctr_cn AS mnLctrCn, + a.pht_atch_file_id AS phtAtchFileId, + a.blng AS blng, + a.pstn AS pstn, + a.prfsn_fld AS prfsnFld, + a.sbmt_yn AS sbmtYn, + a.sbmt_pnttm AS sbmtPnttm, + a.aprvl_cd AS aprvlCd, + + TO_CHAR(a.aprvl_pnttm,'YYYY-MM-DD') AS aprvlPnttm, + + a.aprvl_id AS aprvlId, + a.aprvl_cn AS aprvlCn, + + TO_CHAR(a.frst_regist_pnttm,'YYYY-MM-DD') AS frstRegistPnttm, + a.frst_register_id AS frstRegisterId, + TO_CHAR(a.last_updt_pnttm,'YYYY-MM-DD') AS lastUpdtPnttm, + a.last_updusr_id AS lastUpdusrId, + + a.use_yn AS useYn, + a.qlfct_end_yn AS qlfctEndYn, + a.qlfct_end_pnttm AS qlfctEndPnttm, + a.qlfct_end_cn AS qlfctEndCn, + a.div_cd AS divCd, + a.hope_edu_fld AS hopeEduFld + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /* VEInstrMixDAO.updateUseYnN */ + + UPDATE + + SET + use_yn = 'N' + WHERE + instr_div = #instrDiv# + AND user_id = #userId# + AND instr_detail_ord != #instrDetailOrd# + + + + + + UPDATE + + SET + pht_atch_file_id = '' + WHERE + instr_div = #instrDiv# + AND user_id = #userId# + AND instr_detail_ord != #instrDetailOrd# + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/egovframework/sqlmap/ve/lctr/VELctr_MIX_SQL_Postgresql.xml b/src/main/resources/egovframework/sqlmap/ve/lctr/VELctr_MIX_SQL_Postgresql.xml new file mode 100644 index 00000000..792c346f --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/ve/lctr/VELctr_MIX_SQL_Postgresql.xml @@ -0,0 +1,379 @@ + + + + + + + + + + + ve_lctr_stng + + + + + instr_div, + user_id, + lctr_stng_ord, + + sun_lctr_yn, + mon_lctr_yn, + tue_lctr_yn, + wed_lctr_yn, + thu_lctr_yn, + fri_lctr_yn, + sat_lctr_yn, + zoom_yn, + yr_mxmm_asgnm_tm, + mnt_mnmm_tm, + prfrn_fld_cd, + onln_psbl_yn, + + sbmt_yn, + sbmt_pnttm, + aprvl_cd, + aprvl_pnttm, + aprvl_id, + aprvl_cn, + + frst_regist_pnttm, + frst_register_id, + last_updt_pnttm, + last_updusr_id, + + use_yn, + + isltn_psbl_yn, + cntns_lctr_psbl_yn, + + lctr_stng_yr, + asgnm_tm_1, + asgnm_tm_2, + asgnm_tm_3, + asgnm_tm_4, + asgnm_tm_5, + asgnm_tm_6, + asgnm_tm_7, + asgnm_tm_8, + asgnm_tm_9, + asgnm_tm_10, + asgnm_tm_11, + asgnm_tm_12 + + + + + + a.instr_div AS instrDiv, + a.user_id AS userId, + a.lctr_stng_ord AS lctrStngOrd, + + a.sun_lctr_yn AS sunLctrYn, + a.mon_lctr_yn AS monLctrYn, + a.tue_lctr_yn AS tueLctrYn, + a.wed_lctr_yn AS wedLctrYn, + a.thu_lctr_yn AS thuLctrYn, + a.fri_lctr_yn AS friLctrYn, + a.sat_lctr_yn AS satLctrYn, + a.zoom_yn AS zoomYn, + a.yr_mxmm_asgnm_tm AS yrMxmmAsgnmTm, + a.mnt_mnmm_tm AS mntMnmmTm, + a.prfrn_fld_cd AS prfrnFldCd, + a.onln_psbl_yn AS onlnPsblYn, + + a.sbmt_yn AS sbmtYn, + a.sbmt_pnttm AS sbmtPnttm, + a.aprvl_cd AS aprvlCd, + a.aprvl_pnttm AS aprvlPnttm, + + a.aprvl_id AS aprvlId, + a.aprvl_cn AS aprvlCn, + + TO_CHAR(a.frst_regist_pnttm,'YYYY-MM-DD') AS frstRegistPnttm, + a.frst_register_id AS frstRegisterId, + TO_CHAR(a.last_updt_pnttm,'YYYY-MM-DD') AS lastUpdtPnttm, + a.last_updusr_id AS lastUpdusrId, + + a.use_yn AS useYn, + + a.isltn_psbl_yn AS isltnPsblYn, + a.cntns_lctr_psbl_yn AS cntnsLctrPsblYn, + + a.lctr_stng_yr AS lctrStngYr, + a.asgnm_tm_1 AS asgnmTm1, + a.asgnm_tm_2 AS asgnmTm2, + a.asgnm_tm_3 AS asgnmTm3, + a.asgnm_tm_4 AS asgnmTm4, + a.asgnm_tm_5 AS asgnmTm5, + a.asgnm_tm_6 AS asgnmTm6, + a.asgnm_tm_7 AS asgnmTm7, + a.asgnm_tm_8 AS asgnmTm8, + a.asgnm_tm_9 AS asgnmTm9, + a.asgnm_tm_10 AS asgnmTm10, + a.asgnm_tm_11 AS asgnmTm11, + a.asgnm_tm_12 AS asgnmTm12 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/egovframework/sqlmap/ve/rsdnc/VERsdnc_MIX_SQL_Postgresql.xml b/src/main/resources/egovframework/sqlmap/ve/rsdnc/VERsdnc_MIX_SQL_Postgresql.xml new file mode 100644 index 00000000..f240aa30 --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/ve/rsdnc/VERsdnc_MIX_SQL_Postgresql.xml @@ -0,0 +1,336 @@ + + + + + + + + + + + ve_rsdnc + + + + + post_id, + post, + post_ord, + one_depth_nm, + two_depth_nm, + three_depth_nm, + four_depth_nm, + five_depth_nm, + addr + + + + + + a.post_id AS postId, + a.post AS post, + a.post_ord AS postOrd, + a.one_depth_nm AS oneDepthNm, + a.two_depth_nm AS twoDepthNm, + a.three_depth_nm AS threeDepthNm, + a.four_depth_nm AS fourDepthNm, + a.five_depth_nm AS fiveDepthNm, + a.addr AS addr + + + + + + + + + + + + + + + + + + + + + +