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} + +