From ccd647ac0f1cdd50347edbcb52fae0b2cb2ee840 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 2 Feb 2024 18:23:56 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=86=8D=EC=8B=9C=EA=B5=B0=EA=B5=AC?= =?UTF-8?q?=EA=B0=80=20=EC=97=86=EB=8A=94=20=EC=B5=9C=EA=B3=A0=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=EC=9E=90=EB=A1=9C=20=EB=A1=9C=EA=B7=B8=EC=9D=B8?= =?UTF-8?q?=EC=8B=9C=20=EC=8B=9C=EA=B5=B0=EA=B5=AC=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=EB=A9=94=EB=89=B4=EC=97=90=EC=84=9C=20=EC=8B=9C=EA=B5=B0?= =?UTF-8?q?=EA=B5=AC=EB=A5=BC=20=EC=84=A0=ED=83=9D=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/mngt/dao/FactionMapper.java | 6 ++++ .../xit/fims/mngt/web/Mngt03Controller.java | 11 ++++-- .../sql/mapper/fims/mngt/faction-mapper.xml | 8 +++++ .../sql/mapper/fims/mngt/sgg-mapper.xml | 2 +- .../WEB-INF/jsp/fims/mngt/mngt03011-main.jsp | 10 ------ .../WEB-INF/jsp/fims/mngt/select-sgg.jsp | 36 +++++++++++++++++++ src/main/webapp/WEB-INF/jsp/include/top.jsp | 6 ++-- .../resources/js/base/menu-support-fims.js | 2 +- 8 files changed, 65 insertions(+), 16 deletions(-) delete mode 100644 src/main/webapp/WEB-INF/jsp/fims/mngt/mngt03011-main.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/fims/mngt/select-sgg.jsp diff --git a/src/main/java/cokr/xit/fims/mngt/dao/FactionMapper.java b/src/main/java/cokr/xit/fims/mngt/dao/FactionMapper.java index 070765c0..38db3725 100644 --- a/src/main/java/cokr/xit/fims/mngt/dao/FactionMapper.java +++ b/src/main/java/cokr/xit/fims/mngt/dao/FactionMapper.java @@ -45,4 +45,10 @@ public interface FactionMapper extends AbstractMapper { * @return 기관 목록 */ List selectAllInstList(); + + /**모든 시군구 목록을 반환한다.
+ * @param + * @return 시군구 목록 + */ + List selectAllSggList(); } diff --git a/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java b/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java index 0c2125e0..2579850e 100644 --- a/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java @@ -15,6 +15,7 @@ import cokr.xit.base.web.ApplicationController; import cokr.xit.fims.cmmn.CmmnQuery; import cokr.xit.fims.mngt.Sgg; import cokr.xit.fims.mngt.VltnQuery; +import cokr.xit.fims.mngt.dao.FactionMapper; import cokr.xit.fims.mngt.service.SggService; import cokr.xit.fims.mngt.service.TaskService; import cokr.xit.fims.mngt.service.VltnService; @@ -55,6 +56,9 @@ public class Mngt03Controller extends ApplicationController { @Resource(name = "factionBean") private FactionBean factionBean; + @Resource(name = "factionMapper") + private FactionMapper factionMapper; + /** 시군구관리 메인화면을 연다. * @return fims/mngt/mngt03010-main */ @@ -66,8 +70,11 @@ public class Mngt03Controller extends ApplicationController { if(userInfo.getInstitute().equals("default")) { if(ifEmpty(sggCd, ()->"").equals("")) { - mav.setViewName("fims/mngt/mngt03011-main"); - mav.addObject("pageName", "mngt03011"); + mav.setViewName("fims/mngt/select-sgg"); + mav.addObject("pageName", "selectSgg"); + + List sggList = factionMapper.selectAllSggList(); + mav.addObject("sggList", sggList); } else { mav.setViewName("fims/mngt/mngt03010-main"); diff --git a/src/main/resources/sql/mapper/fims/mngt/faction-mapper.xml b/src/main/resources/sql/mapper/fims/mngt/faction-mapper.xml index 8efd2141..051d73a0 100644 --- a/src/main/resources/sql/mapper/fims/mngt/faction-mapper.xml +++ b/src/main/resources/sql/mapper/fims/mngt/faction-mapper.xml @@ -73,6 +73,14 @@ SELECT S.SGG_CD WHERE U.USER_ID = #{userId} + +