diff --git a/src/main/java/cokr/xit/fims/crdn/dao/GlobalStngMapper.java b/src/main/java/cokr/xit/fims/crdn/dao/GlobalStngMapper.java index 981239f1..4ad0baf7 100644 --- a/src/main/java/cokr/xit/fims/crdn/dao/GlobalStngMapper.java +++ b/src/main/java/cokr/xit/fims/crdn/dao/GlobalStngMapper.java @@ -1,5 +1,7 @@ package cokr.xit.fims.crdn.dao; +import java.util.List; + import org.egovframe.rte.psl.dataaccess.mapper.Mapper; import cokr.xit.fims.crdn.CrdnQuery; @@ -25,4 +27,14 @@ public interface GlobalStngMapper extends AbstractMapper { return selectSggCd(currentUser().getInstitute()); }; + /**시군구코드에 따른 법정동명 목록을 조회한다.
+ * @param sggCd 시군구코드 + * @return 법정동 목록 + */ + List selectStdgNmList(String sggCd); + + default List selectStdgNmListForCurrentUser() { + String sggCd = selectSggCd(currentUser().getInstitute()); + return selectStdgNmList(sggCd); + }; } \ No newline at end of file diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java index 639c375b..58cf3737 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java @@ -102,6 +102,9 @@ public class Crdn05Controller extends ApplicationController { String urlTaskSeCd = hReq.getServletPath().split("/")[1]; mav.addObject("taskSeCd", urlTaskSeCd); mav.addObject("sggCd", globalStngMapper.selectSggCdForCurrentUser()); + + mav.addObject("stdgNmList", globalStngMapper.selectStdgNmListForCurrentUser()); + String vltnByTask = ""; switch(urlTaskSeCd) { diff --git a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java index 589e20b3..467c3141 100644 --- a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java +++ b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java @@ -19,6 +19,7 @@ import cokr.xit.base.file.web.FileInfoFactory; import cokr.xit.base.web.ApplicationController; import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.CrdnQuery; +import cokr.xit.fims.crdn.dao.GlobalStngMapper; import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.cvlc.CrdnCvlcpt; import cokr.xit.fims.cvlc.service.CrdnCvlcptService; @@ -46,6 +47,9 @@ public class Cvlc01Controller extends ApplicationController { ; } + @Resource(name="globalStngMapper") + protected GlobalStngMapper globalStngMapper; + @Resource(name="crdnService") private CrdnService crdnService; @@ -152,6 +156,7 @@ public class Cvlc01Controller extends ApplicationController { mav.addObject("openerPageName", hReq.getParameter("openerPageName")); + mav.addObject("stdgNmList", globalStngMapper.selectStdgNmListForCurrentUser()); String vltnByTask = ""; switch(urlTaskSeCd) { diff --git a/src/main/resources/sql/mapper/fims/crdn/global-stng-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/global-stng-mapper.xml index c9b7322b..5482886f 100644 --- a/src/main/resources/sql/mapper/fims/crdn/global-stng-mapper.xml +++ b/src/main/resources/sql/mapper/fims/crdn/global-stng-mapper.xml @@ -27,4 +27,17 @@ SELECT SGG_CD WHERE INST_CD = #{institute} + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp index 4d8e31ce..7cb31e47 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp @@ -57,8 +57,12 @@
- + class="form-control w-px-150" list="stdgNmList--${pageName}" /> + + + + +
diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp index 3c380424..036f4691 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp @@ -72,8 +72,13 @@
- - + + + + + +