diff --git a/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java b/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java index 87009d3..a8cddb2 100644 --- a/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java +++ b/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java @@ -31,13 +31,13 @@ import cokr.xit.adds.nims.service.DsuseMgtDocService; import cokr.xit.adds.nims.service.DsuseMgtReceiptService; import cokr.xit.applib.Print; import cokr.xit.applib.PrintOption; -import cokr.xit.applib.ogdp.OgdpQuery; -import cokr.xit.applib.ogdp.service.bean.DefaultOgdpBean; import cokr.xit.base.code.CommonCode; import cokr.xit.base.file.FileInfo; import cokr.xit.base.file.FileInfo.Relation; import cokr.xit.base.file.service.FileQuery; import cokr.xit.base.file.service.FileService; +import cokr.xit.base.user.DepartmentQuery; +import cokr.xit.base.user.service.SigunguDepartmentService; import cokr.xit.base.web.ApplicationController; import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.JSON; @@ -57,8 +57,8 @@ public class AddsNimsController extends ApplicationController { @Value("${app.file.root.path}") private String fileRootPath; - @Resource(name="defaultOgdpBean") - private DefaultOgdpBean defaultOgdpBean; + @Resource(name="sigunguDepartmentService") + private SigunguDepartmentService sggDeptService; @Resource(name="dsuseMgtReceiptService") private DsuseMgtReceiptService dsuseMgtReceiptService; @@ -362,7 +362,7 @@ public class AddsNimsController extends ApplicationController { ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtReceipt-main"); setCmmCode("ADDS11", mav); - List deptList = defaultOgdpBean.getDeptList(new OgdpQuery()); + List deptList = sggDeptService.getDepartmentList(new DepartmentQuery()); mav.addObject("DEPTList", deptList); return mav @@ -376,7 +376,7 @@ public class AddsNimsController extends ApplicationController { public ModelAndView dsuseMgtRsltMain() { ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtRslt-main"); setCmmCode("ADDS11", mav); - List deptList = defaultOgdpBean.getDeptList(new OgdpQuery()); + List deptList = sggDeptService.getDepartmentList(new DepartmentQuery()); mav.addObject("DEPTList", deptList); return mav @@ -390,7 +390,7 @@ public class AddsNimsController extends ApplicationController { public ModelAndView dsuseMgtMapping() { ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtMapping-main"); setCmmCode("ADDS11", mav); - List deptList = defaultOgdpBean.getDeptList(new OgdpQuery()); + List deptList = sggDeptService.getDepartmentList(new DepartmentQuery()); mav.addObject("DEPTList", deptList); return mav @@ -415,7 +415,7 @@ public class AddsNimsController extends ApplicationController { .filter(c -> c.getCode().compareTo("06") >= 0) .toList()); - List deptList = defaultOgdpBean.getDeptList(new OgdpQuery()); + List deptList = sggDeptService.getDepartmentList(new DepartmentQuery()); mav.addObject("DEPTList", deptList); mav.addObject("pageName", "dsuseMgtDoc");