From 158893816c81a1edc3618d3d65019c1ea68519f7 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 26 Oct 2023 16:30:07 +0900 Subject: [PATCH] no message --- .../cokr/xit/fims/sprt/web/Sprt01Controller.java | 15 +++++++++++++++ .../WEB-INF/jsp/fims/sprt/sprt01010-main.jsp | 5 ----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java index 7862850b..0c841925 100644 --- a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java @@ -8,7 +8,10 @@ import javax.annotation.Resource; import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.code.CommonCode; +import cokr.xit.base.user.ManagedUser; +import cokr.xit.base.user.dao.UserMapper; import cokr.xit.base.web.ApplicationController; +import cokr.xit.fims.crdn.dao.GlobalStngMapper; import cokr.xit.fims.sprt.SprtQuery; import cokr.xit.fims.sprt.service.Sprt01Service; import cokr.xit.foundation.data.DataObject; @@ -29,6 +32,12 @@ public class Sprt01Controller extends ApplicationController { @Resource(name="sprt01Service") private Sprt01Service sprt01Service; + @Resource(name="globalStngMapper") + protected GlobalStngMapper globalStngMapper; + + @Resource(name="userMapper") + protected UserMapper userMapper; + /**통합 조회 메인화면(fims/sprt/sprt01/010-main)을 연다. * * @return /fims/sprt/sprt01010 @@ -60,6 +69,12 @@ public class Sprt01Controller extends ApplicationController { ModelAndView mav = new ModelAndView("jsonView"); List list = null; + String institute = currentUser().getInstitute(); + String account = currentUser().getAccount(); + ManagedUser currentUser = userMapper.getUser(account, institute); + String deptCd = currentUser.getDeptCode(); + String sggCd = globalStngMapper.selectSggCd(deptCd); + query.setSggCd(sggCd); list = sprt01Service.getIntegrationDataList(query); mav = setCollectionInfo(mav, list, "integrationData"); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp index 99967673..b9c31d22 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp @@ -201,11 +201,6 @@ integrationSearch.getParams = () => { var formFields = new FimsFormFields("#frmSearch--${pageName}"); var formData = formFields.get(); - formData.fetchSize = FETCH_XS; // 한번에 조회되는 자료 건수 - - // 나중에 삭제 - formData.sggCd = "41480"; // 시군구 코드 임시 - return formData; }