From b2589230d2494781725fd7c449b60d15afdfd63d Mon Sep 17 00:00:00 2001 From: leebj Date: Wed, 3 Jul 2024 17:17:51 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=8A=A4=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/fims/base/OgdpQuery.java | 8 ----- .../cokr/xit/fims/base/dao/OgdpMapper.java | 25 +++++++++++++++- .../xit/fims/base/service/bean/OgdpBean.java | 29 ++----------------- 3 files changed, 27 insertions(+), 35 deletions(-) diff --git a/src/main/java/cokr/xit/fims/base/OgdpQuery.java b/src/main/java/cokr/xit/fims/base/OgdpQuery.java index a29798ad..6c8177bb 100644 --- a/src/main/java/cokr/xit/fims/base/OgdpQuery.java +++ b/src/main/java/cokr/xit/fims/base/OgdpQuery.java @@ -13,7 +13,6 @@ public class OgdpQuery extends QueryRequest { private String useYn; // 사용 여부 private String delYn; // 삭제 여부 - private String selectAdd; public String getSggCd() { return ifEmpty(sggCd, () -> null); @@ -60,12 +59,5 @@ public class OgdpQuery extends QueryRequest { return self(); } - public String getSelectAdd() { - return ifEmpty(selectAdd, () -> null); - } - public T setSelectAdd(String selectAdd) { - this.selectAdd = selectAdd; - return self(); - } } diff --git a/src/main/java/cokr/xit/fims/base/dao/OgdpMapper.java b/src/main/java/cokr/xit/fims/base/dao/OgdpMapper.java index 27e68bba..07a39296 100644 --- a/src/main/java/cokr/xit/fims/base/dao/OgdpMapper.java +++ b/src/main/java/cokr/xit/fims/base/dao/OgdpMapper.java @@ -16,6 +16,30 @@ import cokr.xit.foundation.data.DataObject; @Mapper("ogdpMapper") public interface OgdpMapper extends AbstractMapper { + public static String selectAdd = """ + , D.CVLCPT_LINK_SE_CD + , D.VRBACNT_LINK_SE_CD + , D.PSTOFC_NM + , D.RG_NO_HEADER + , D.SNDNG_LINK_SE_CD + , D.EGP_CON_ORG + , D.EGP_RCEPT_ID + , D.EGP_APVL_NB + , D.EGP_ESB_PATH + , D.EGP_POST_INST_ID + , D.EGP_CERT_CN + , D.ENS_INTERFACE_ID + , D.ENS_SOURCE_CD + , D.ENS_TARGET_CD + , D.ENS_URL + , D.NXRP_LINK_YN + , D.NXRP_LINK_SRVC_URL + , D.NXRP_RGN_SE_CD + , D.DTBN_BANK_NM + , D.DTBN_ACTNO + , D.DOC_HEADER + , D.SRVR_OS + """; /**모든 기관,부서 목록을 반환한다.
* @param @@ -345,7 +369,6 @@ public interface OgdpMapper extends AbstractMapper { """; - String selectAdd = req.getSelectAdd() == null ? "" : req.getSelectAdd(); return select + selectAdd + fromWhere; } diff --git a/src/main/java/cokr/xit/fims/base/service/bean/OgdpBean.java b/src/main/java/cokr/xit/fims/base/service/bean/OgdpBean.java index 6ec757e3..f011a345 100644 --- a/src/main/java/cokr/xit/fims/base/service/bean/OgdpBean.java +++ b/src/main/java/cokr/xit/fims/base/service/bean/OgdpBean.java @@ -20,30 +20,7 @@ import cokr.xit.foundation.data.DataObject; @Component("ogdpBean") public class OgdpBean extends AbstractBean { - public static String selectAdd = """ - , D.CVLCPT_LINK_SE_CD - , D.VRBACNT_LINK_SE_CD - , D.PSTOFC_NM - , D.RG_NO_HEADER - , D.SNDNG_LINK_SE_CD - , D.EGP_CON_ORG - , D.EGP_RCEPT_ID - , D.EGP_APVL_NB - , D.EGP_ESB_PATH - , D.EGP_POST_INST_ID - , D.EGP_CERT_CN - , D.ENS_INTERFACE_ID - , D.ENS_SOURCE_CD - , D.ENS_TARGET_CD - , D.ENS_URL - , D.NXRP_LINK_YN - , D.NXRP_LINK_SRVC_URL - , D.NXRP_RGN_SE_CD - , D.DTBN_BANK_NM - , D.DTBN_ACTNO - , D.DOC_HEADER - , D.SRVR_OS - """; + @Resource(name="ogdpMapper") private OgdpMapper ogdpMapper; @@ -122,7 +99,7 @@ public class OgdpBean extends AbstractBean { } } - query.setSelectAdd(selectAdd); + return ogdpMapper.selectDeptList(query); } @@ -130,7 +107,7 @@ public class OgdpBean extends AbstractBean { public DataObject getDeptInfo(OgdpQuery query) { - query.setSelectAdd(selectAdd); + return ogdpMapper.selectDeptInfo(query); }