From 1b84e85ec83766ff93ab20969bef0a329a1a7afb Mon Sep 17 00:00:00 2001 From: leebj Date: Wed, 3 Jul 2024 15:33:01 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=8A=A4=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fims/mngt/service/bean/FimsOgdpBean.java | 61 ------------------- .../xit/fims/mngt/web/Mngt04Controller.java | 32 ---------- .../WEB-INF/jsp/fims/mngt/mngt03010-main.jsp | 9 +-- 3 files changed, 3 insertions(+), 99 deletions(-) diff --git a/src/main/java/cokr/xit/fims/mngt/service/bean/FimsOgdpBean.java b/src/main/java/cokr/xit/fims/mngt/service/bean/FimsOgdpBean.java index aa00ee6f..cf40bb79 100644 --- a/src/main/java/cokr/xit/fims/mngt/service/bean/FimsOgdpBean.java +++ b/src/main/java/cokr/xit/fims/mngt/service/bean/FimsOgdpBean.java @@ -71,68 +71,7 @@ public class FimsOgdpBean extends AbstractOgdpBean { } - @Override - public boolean createDept(Department dept) { - if(dept != null && dept instanceof FimsDepartment fimsDept) { - - String insertIntoAdd = """ - , CVLCPT_LINK_SE_CD - , VRBACNT_LINK_SE_CD - , PSTOFC_NM - , RG_NO_HEADER - , SNDNG_LINK_SE_CD - , EGP_CON_ORG - , EGP_RCEPT_ID - , EGP_APVL_NB - , EGP_ESB_PATH - , EGP_POST_INST_ID - , EGP_CERT_CN - , ENS_INTERFACE_ID - , ENS_SOURCE_CD - , ENS_TARGET_CD - , ENS_URL - , NXRP_LINK_YN - , NXRP_RGN_SE_CD - , DTBN_BANK_NM - , DTBN_ACTNO - , DOC_HEADER - , SRVR_OS - """; - String valuesAdd = """ - , #{dept.cvlcptLinkSeCd} - , #{dept.vrbacntLinkSeCd} - , #{dept.pstofcNm} - , #{dept.rgNoHeader} - , #{dept.sndngLinkSeCd} - , #{dept.egpConOrg} - , #{dept.egpRceptId} - , #{dept.egpApvlNb} - , #{dept.egpEsbPath} - , #{dept.egpPostInstId} - , #{dept.egpCertCn} - , #{dept.ensInterfaceId} - , #{dept.ensSourceCd} - , #{dept.ensTargetCd} - , #{dept.ensUrl} - , #{dept.nxrpLinkYn} - , #{dept.nxrpRgnSeCd} - , #{dept.dtbnBankNm} - , #{dept.dtbnActno} - , #{dept.docHeader} - , #{dept.srvrOs} - """; - - boolean result = ogdpMapper.insertDept( - new DataObject() - .set("currentUser", currentUser()) - .set("dept", fimsDept) - .set("insertIntoAdd", insertIntoAdd) - .set("valuesAdd",valuesAdd)) == 1; - return result; - } - return false; - } @Override public boolean updateDept(Department dept) { diff --git a/src/main/java/cokr/xit/fims/mngt/web/Mngt04Controller.java b/src/main/java/cokr/xit/fims/mngt/web/Mngt04Controller.java index 206c1119..dd85f4c3 100644 --- a/src/main/java/cokr/xit/fims/mngt/web/Mngt04Controller.java +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt04Controller.java @@ -29,9 +29,7 @@ public class Mngt04Controller extends ApplicationController { public static final String deptMngtMain = "/010/main.do" , getDeptList = "/010/list.do" - , removeDept = "/010/remove.do" , getDeptInfo = "/020/info.do" - , createDept = "/020/create.do" , updateDept = "/020/update.do" ; } @@ -98,38 +96,8 @@ public class Mngt04Controller extends ApplicationController { return mav; } - /**부서 정보를 삭제한다. - * @param deptCds 부서 코드 목록 - * @return jsonView - *
 {
-	 *     "saved": 저장되었으면 true, 그렇지 않으면 false
-	 * }
- */ - @RequestMapping(name="부서 삭제", value=METHOD_URL.removeDept) - public ModelAndView removeDept(String... deptCds) { - ModelAndView mav = new ModelAndView("jsonView"); - boolean saved = fimsOgdpBean.remove(deptCds); - mav.addObject("saved", saved); - return mav; - } - - /**부서 정보를 등록한다. - * @param dept 부서 정보 - * @return jsonView - *
 {
-	 *     "saved": 저장되었으면 true, 그렇지 않으면 false
-	 * }
- */ - @RequestMapping(name="부서 등록", value=METHOD_URL.createDept) - public ModelAndView createDept(FimsDepartment dept) { - ModelAndView mav = new ModelAndView("jsonView"); - boolean saved = fimsOgdpBean.createDept(dept); - - mav.addObject("saved", saved); - return mav; - } /**부서 정보를 수정한다. * @param dept 부서 정보 diff --git a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt03010-main.jsp index 70ccc781..6d086db1 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt03010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt03010-main.jsp @@ -27,12 +27,9 @@
- - - - + + +