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; }