From 42ef395cce390369c7db50435bf7e2288694f584 Mon Sep 17 00:00:00 2001 From: leebj Date: Thu, 4 Jul 2024 08:59:16 +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 --- .../cokr/xit/fims/base/dao/OgdpMapper.java | 152 +++++++----------- .../xit/fims/base/service/bean/OgdpBean.java | 14 +- ...eptController.java => OgdpController.java} | 2 +- .../xit/fims/mngt/web/Mngt03Controller.java | 6 +- .../xit/fims/mngt/web/Mngt04Controller.java | 18 +-- .../fims/nxrp/service/bean/NisIndivBean.java | 4 +- 6 files changed, 79 insertions(+), 117 deletions(-) rename src/main/java/cokr/xit/fims/base/web/{FimsSggDeptController.java => OgdpController.java} (70%) 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 07a39296..067e2cb4 100644 --- a/src/main/java/cokr/xit/fims/base/dao/OgdpMapper.java +++ b/src/main/java/cokr/xit/fims/base/dao/OgdpMapper.java @@ -4,7 +4,6 @@ import java.util.List; import java.util.Map; import org.apache.ibatis.annotations.Select; -import org.apache.ibatis.annotations.SelectProvider; import org.apache.ibatis.annotations.Update; import org.egovframe.rte.psl.dataaccess.mapper.Mapper; @@ -16,7 +15,21 @@ import cokr.xit.foundation.data.DataObject; @Mapper("ogdpMapper") public interface OgdpMapper extends AbstractMapper { - public static String selectAdd = """ + public static String select = """ + SELECT D.DEPT_CD + , D.SGG_CD + , (SELECT SGG_NM FROM TB_SGG WHERE SGG_CD = D.SGG_CD) AS SGG_NM + , D.INST_CD + , (SELECT INST_NM FROM TB_SGG WHERE INST_CD = D.INST_CD) AS INST_NM + , D.DEPT_NM + , D.DEPT_TELNO + , D.DEPT_FXNO + , D.USE_YN + , (CASE D.USE_YN WHEN 'Y' THEN '사용' WHEN 'N' THEN '미사용' ELSE '' END) AS USE_YN_NM + , D.REG_DT + , D.RGTR + , D.MDFCN_DT + , D.MDFR , D.CVLCPT_LINK_SE_CD , D.VRBACNT_LINK_SE_CD , D.PSTOFC_NM @@ -39,6 +52,21 @@ public interface OgdpMapper extends AbstractMapper { , D.DTBN_ACTNO , D.DOC_HEADER , D.SRVR_OS + FROM TB_DEPT D + + + AND D.SGG_CD = #{sggCd} + + + AND D.DEPT_CD = #{deptCd} + + + AND D.INST_CD = #{instCd} + + + AND D.USE_YN = #{useYn} + + """; /**모든 기관,부서 목록을 반환한다.
@@ -152,7 +180,7 @@ public interface OgdpMapper extends AbstractMapper { - /**시군구 정보를 수정한다. + /**시군구 설정 정보를 수정한다. * @param sgg 시군구 * @return 저장 여부 *