diff --git a/src/main/java/cokr/xit/fims/base/SggDeptController.java b/src/main/java/cokr/xit/fims/base/FimsSggDeptController.java similarity index 70% rename from src/main/java/cokr/xit/fims/base/SggDeptController.java rename to src/main/java/cokr/xit/fims/base/FimsSggDeptController.java index ec5194b6..4eb11aa7 100644 --- a/src/main/java/cokr/xit/fims/base/SggDeptController.java +++ b/src/main/java/cokr/xit/fims/base/FimsSggDeptController.java @@ -7,4 +7,4 @@ import cokr.xit.base.user.Sigungu; import cokr.xit.base.user.web.SigunguDepartmentController; @Controller -public class SggDeptController extends SigunguDepartmentController {} \ No newline at end of file +public class FimsSggDeptController extends SigunguDepartmentController {} \ No newline at end of file diff --git a/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java b/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java index 099c8fa1..452276b3 100644 --- a/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java @@ -9,11 +9,12 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.user.ManagedUser; +import cokr.xit.base.user.SigunguQuery; +import cokr.xit.base.user.service.SigunguDepartmentService; import cokr.xit.base.web.ApplicationController; import cokr.xit.fims.mngt.Ntc; import cokr.xit.fims.mngt.NtcQuery; import cokr.xit.fims.mngt.service.NtcService; -import cokr.xit.fims.mngt.service.bean.FimsOgdpBean; import cokr.xit.foundation.data.DataObject; /**공지사항 서비스 웹 컨트롤러.
@@ -40,8 +41,9 @@ public class Mngt01Controller extends ApplicationController { @Resource(name="ntcService") private NtcService ntcService; - @Resource(name="fimsOgdpBean") - private FimsOgdpBean fimsOgdpBean; + @Resource(name="sigunguDepartmentService") + private SigunguDepartmentService sggDeptService; + /** 공지사항 메인화면을 연다. * @return fims/mngt/mngt01010-main @@ -96,7 +98,7 @@ public class Mngt01Controller extends ApplicationController { } mav.addObject("ntcInfo", json ? info : toJson(info)); - List allSggList = fimsOgdpBean.selectAllSggList(); + List allSggList = sggDeptService.getSigunguList(new SigunguQuery()); mav.addObject("sggList", allSggList); return mav; 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 dd85f4c3..20fab8ed 100644 --- a/src/main/java/cokr/xit/fims/mngt/web/Mngt04Controller.java +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt04Controller.java @@ -9,6 +9,8 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import cokr.xit.applib.ogdp.OgdpQuery; +import cokr.xit.base.user.SigunguQuery; +import cokr.xit.base.user.service.SigunguDepartmentService; import cokr.xit.base.web.ApplicationController; import cokr.xit.fims.cmmn.CmmnQuery; import cokr.xit.fims.mngt.FimsDepartment; @@ -34,6 +36,8 @@ public class Mngt04Controller extends ApplicationController { ; } + @Resource(name="sigunguDepartmentService") + private SigunguDepartmentService sggDeptService; /** 소속 정보 서비스 */ @Resource(name = "fimsOgdpBean") @@ -50,7 +54,7 @@ public class Mngt04Controller extends ApplicationController { mav.setViewName("fims/mngt/mngt04010-main"); mav.addObject("pageName", "mngt04010"); - List allSggList = fimsOgdpBean.selectAllSggList(); + List allSggList = sggDeptService.getSigunguList(new SigunguQuery()); mav.addObject("sggList", allSggList);