From d9676e143c4406c8924ec3cee9684c27e0160325 Mon Sep 17 00:00:00 2001 From: myname Date: Fri, 22 Aug 2025 10:14:17 +0900 Subject: [PATCH] =?UTF-8?q?2025-08-22=2010:14=20=ED=94=84=EB=A1=9C?= =?UTF-8?q?=EC=A0=9D=ED=8A=B8=20=EC=B4=88=EA=B8=B0=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cmm/util/SequenceUtil_SQL_Postgresql.xml | 56 +++ .../sql-map-config-postgresql-cmm.xml | 5 +- .../OrgChartManage_SQL_Postgresql.xml | 322 ++++++++++++++++++ 3 files changed, 382 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/egovframework/sqlmap/com/cmm/util/SequenceUtil_SQL_Postgresql.xml create mode 100644 src/main/resources/egovframework/sqlmap/let/orgChart/OrgChartManage_SQL_Postgresql.xml diff --git a/src/main/resources/egovframework/sqlmap/com/cmm/util/SequenceUtil_SQL_Postgresql.xml b/src/main/resources/egovframework/sqlmap/com/cmm/util/SequenceUtil_SQL_Postgresql.xml new file mode 100644 index 00000000..2d81897a --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/com/cmm/util/SequenceUtil_SQL_Postgresql.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + UPDATE C_SEQ_MNG SET + SEQ_NO = #seqNo# + , MOD_LGN_ID = #modLgnId# + , MOD_DATE = NOW() + WHERE SEQ_ID = #seqId# + + + + + + + + diff --git a/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-cmm.xml b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-cmm.xml index 6e45fc1f..3d544819 100644 --- a/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-cmm.xml +++ b/src/main/resources/egovframework/sqlmap/config/postgresql/sql-map-config-postgresql-cmm.xml @@ -3,7 +3,10 @@ "http://www.ibatis.com/dtd/sql-map-config-2.dtd"> + - + + + \ No newline at end of file diff --git a/src/main/resources/egovframework/sqlmap/let/orgChart/OrgChartManage_SQL_Postgresql.xml b/src/main/resources/egovframework/sqlmap/let/orgChart/OrgChartManage_SQL_Postgresql.xml new file mode 100644 index 00000000..d8e1a923 --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/let/orgChart/OrgChartManage_SQL_Postgresql.xml @@ -0,0 +1,322 @@ + + + + + + + + + + + + + + + + + + + INSERT INTO LETTNEMPLYRINFO + ( + EMPLYR_ID + , PART_IDX + , OFCPS_NM + , USER_NM + , OFFM_TELNO + , EMAIL_ADRES + , ESNTL_ID + ) + VALUES + ( + #emplyrId# + , #partIdx# + , #ofcpsNm# + , #userNm# + , #offmTelno# + , #emailAdres# + , #esntlId# + ) + + + + UPDATE LETTNEMPLYRINFO SET + PART_IDX = #partIdx# + , OFCPS_NM = #ofcpsNm# + , USER_NM = #emplyrNm# + , EMPL_NO = #emplNo# + , OFFM_TELNO = #offmTelno# + , EMAIL_ADRES = #emailAdres# + , ESNTL_ID = #esntlId# + , USER_WORK = #userWork# + WHERE + EMPLYR_ID = #emplyrId# + + + + DELETE FROM LETTNEMPLYRINFO + WHERE EMPLYR_ID = #emplyrId# + + + + + + INSERT INTO ITSM_LOC + ( + LOC_NM, + LOC_NO, + UPPER_LOC_NO, + LOC_ORDR, + LOC_DEPTH, + USE_YN + ) + VALUES + ( + #locNm#, + #locNo#, + #upperLocNo#, + #locOrdr#, + #locDepth#, + #useYn# + ) + + + + UPDATE ITSM_LOC + SET + LOC_NM = #locNm# + WHERE LOC_NO = #locNo# + + + + DELETE FROM ITSM_LOC + WHERE LOC_NO = #locNo# + + + + UPDATE ITSM_LOC + SET FRST_REGIST_PNTTM = now(), + LOC_ORDR = #locOrdr#, + UPPER_LOC_NO = #upperMenuId# + WHERE LOC_NO = #locNo# + + + + UPDATE ITSM_LOC A , + (SELECT LOC_NO, ROW_NUMBER() OVER(ORDER BY LOC_ORDR, FRST_REGIST_PNTTM + + DESC + + ) AS SORT1 FROM ITSM_LOC + WHERE UPPER_LOC_NO = #upperLocNo# ORDER BY LOC_ORDR ASC ) B + SET A.LOC_ORDR = B.SORT1 + WHERE A.LOC_NO = B.LOC_NO + + + + UPDATE ITSM_LOC + SET LOC_CN = #locCn# + WHERE LOC_NO = #partIdx# + + + + + + + + + DELETE FROM LOC_INFO + WHERE LOC_INFO_ID = #emplyrId# + + +