From 97e4d7e0314c07279abd996a42dd35f0f09ad422 Mon Sep 17 00:00:00 2001 From: myname Date: Mon, 27 Oct 2025 10:38:28 +0900 Subject: [PATCH] =?UTF-8?q?2025-10-27=2010:38=20=EC=9D=B4=EC=88=98?= =?UTF-8?q?=EC=A6=9D=20=EA=B4=80=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../prevent/web/PreventMngController.java | 2 +- .../sql-map-config-postgresql-ve.xml | 4 + ...VEInstrDetailActvtHstry_SQL_Postgresql.xml | 311 ++++++++++++++++++ 3 files changed, 316 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/egovframework/sqlmap/ve/instr/VEInstrDetailActvtHstry_SQL_Postgresql.xml diff --git a/src/main/java/kcc/ve/oprtn/prevent/web/PreventMngController.java b/src/main/java/kcc/ve/oprtn/prevent/web/PreventMngController.java index f0242e1c..d389a846 100644 --- a/src/main/java/kcc/ve/oprtn/prevent/web/PreventMngController.java +++ b/src/main/java/kcc/ve/oprtn/prevent/web/PreventMngController.java @@ -165,7 +165,7 @@ public class PreventMngController { //파일 처리 egov @Resource(name="EgovFileMngUtil") private EgovFileMngUtil egovFileMngUtil; - + //파일 체크 util @Resource(name = "checkFileUtil") private CheckFileUtil checkFileUtil; 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 e5a1c639..d8545130 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 @@ -3,6 +3,10 @@ "http://ibatis.apache.org/dtd/sql-map-config-2.dtd"> + + + + diff --git a/src/main/resources/egovframework/sqlmap/ve/instr/VEInstrDetailActvtHstry_SQL_Postgresql.xml b/src/main/resources/egovframework/sqlmap/ve/instr/VEInstrDetailActvtHstry_SQL_Postgresql.xml new file mode 100644 index 00000000..b7acc430 --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/ve/instr/VEInstrDetailActvtHstry_SQL_Postgresql.xml @@ -0,0 +1,311 @@ + + + + + + + + + + + ve_instr_detail_actvt_hstry + + + + + instr_detail_actvt_hstry_ord + , user_id + , instr_detail_ord + , aplct_pnttm + , state_cd + , state_pnttm + , aplct_atch_file_id + , cmpnn_cn + , frst_regist_pnttm + , frst_register_id + , last_updt_pnttm + , last_updusr_id + + , docu_nmbr + , sex + , purpose + , bsns_nmbr + , bsns_nm + + + + + + a.instr_detail_actvt_hstry_ord as instrDetailActvtHstryOrd + , a.user_id as userId + , a.instr_detail_ord as instrDetailOrd + , TO_CHAR(a.aplct_pnttm,'YYYY-MM-DD') AS aplctPnttm + , a.state_cd as stateCd + , TO_CHAR(a.state_pnttm,'YYYY-MM-DD') AS statePnttm + , a.aplct_atch_file_id as aplctAtchFileId + , a.cmpnn_cn as cmpnnCn + , 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 frstRegistPnttm + , a.last_updusr_id as lastUpdusrId + + , a.docu_nmbr AS docuNmbr + , a.sex + , a.purpose + , a.bsns_nmbr AS bsnsNmbr + , a.bsns_nm AS bsnsNm + , a.actvt_period AS actvtPeriod + + + + /* VEInstrDetailActvtHstryDAO.insert */ + INSERT INTO ( + + )VALUES( + #instrDetailActvtHstryOrd# + , #userId# + , #instrDetailOrd# + , SYSDATE + , #stateCd# + , SYSDATE + , #aplctAtchFileId# + , #cmpnnCn# + , SYSDATE + , #frstRegisterId# + , '' + , #lastUpdusrId# + + , #docuNmbr# + , #sex# + , #purpose# + , #bsnsNmbr# + , #bsnsNm# + ) + + + + + + + + + + + + + UPDATE + + SET + state_cd = #stateCd# + + + , docu_nmbr = NVL( + ( + SELECT nvl(max(docu_nmbr),0) AS docuNmbr + FROM ve_instr_detail_actvt_hstry a + WHERE state_cd='30' + AND to_char(a.state_pnttm,'YYYY')=( + SELECT to_char(sysdate,'YYYY') + FROM dual + ) + GROUP BY to_char(a.state_pnttm,'YYYY') + ),0 + )+1 + + + + , cmpnn_cn = #cmpnnCn# + + , state_pnttm = SYSDATE + , LAST_UPDT_PNTTM = SYSDATE + , LAST_UPDUSR_ID = #lastUpdusrId# + WHERE + instr_detail_actvt_hstry_ord = #instrDetailActvtHstryOrd# + + + + + + UPDATE + + SET + actvt_period = #actvtPeriod# + WHERE + instr_detail_actvt_hstry_ord = #instrDetailActvtHstryOrd# + + + + + +