fix : 조회조건의 부서목록 조회시 공통라이브러리 사용

dev
이범준 5 months ago
parent 55afca2ae0
commit 75e8416226

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

Loading…
Cancel
Save