From a1f321bb70c89985aeade7c4969b42adbf769901 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 29 Aug 2023 16:27:01 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B2=95=EC=A0=95=EB=8F=99=EB=AA=85=20?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=20=EC=A1=B0=ED=9A=8C=20=EC=BF=BC=EB=A6=AC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/crdn/dao/GlobalStngMapper.java | 12 ++++++++++++ .../cokr/xit/fims/crdn/web/Crdn05Controller.java | 3 +++ .../cokr/xit/fims/cvlc/web/Cvlc01Controller.java | 5 +++++ .../sql/mapper/fims/crdn/global-stng-mapper.xml | 13 +++++++++++++ .../webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp | 8 ++++++-- .../webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp | 9 +++++++-- 6 files changed, 46 insertions(+), 4 deletions(-) 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 @@
- - + + + + + +