From afcb25c753ad19bccd5fd964326737d39a7e8638 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 29 Dec 2023 10:11:41 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=9C=EA=B5=B0=EA=B5=AC=EC=BD=94=EB=93=9C?= =?UTF-8?q?=20=ED=95=98=EB=93=9C=EC=BD=94=EB=94=A9=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/levy/web/Levy02Controller.java | 12 ++++++++++++ .../webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/java/cokr/xit/fims/levy/web/Levy02Controller.java b/src/main/java/cokr/xit/fims/levy/web/Levy02Controller.java index 936a0055..3ae841ca 100644 --- a/src/main/java/cokr/xit/fims/levy/web/Levy02Controller.java +++ b/src/main/java/cokr/xit/fims/levy/web/Levy02Controller.java @@ -9,8 +9,10 @@ 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.cmmn.service.bean.StngBean; +import cokr.xit.fims.crdn.dao.GlobalStngMapper; import cokr.xit.fims.levy.LevyQuery; import cokr.xit.fims.levy.Rduct; import cokr.xit.fims.levy.service.RductService; @@ -49,6 +51,12 @@ public class Levy02Controller extends ApplicationController { @Resource(name = "stngBean") private StngBean stngBean; + @Resource(name="userMapper") + protected UserMapper userMapper; + + @Resource(name="globalStngMapper") + protected GlobalStngMapper globalStngMapper; + /**과태료 감경 대장 관리 메인화면(levy/levy02010-main)을 연다. * 조건없는 {@link #getRductList(RductQuery) 과태료 감경 대장 조회 결과}를 포함시킨다. * @return /rduct/rduct-main @@ -97,6 +105,10 @@ public class Levy02Controller extends ApplicationController { * } */ public ModelAndView getRductList(LevyQuery req) { + ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); + String curDeptCode = currentUser.getDeptCode(); + String sggCd = globalStngMapper.selectSggCd(curDeptCode); + req.setSggCd(sggCd); List result = rductService.getRductList(setFetchSize(req)); return setCollectionInfo(new ModelAndView("jsonView"), result, ""); diff --git a/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp index 5ef77659..e01da531 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp @@ -312,7 +312,7 @@ $(document).ready(function(){ var formFields = new FimsFormFields("#frmSearch--${pageName}"); var data = formFields.get(); data.fetchSize = $P.rductControl.defaultFetchSize; - data.sggCd = "41480"; + return data; }