From c2e8cdc1444fcc78210a147e1a5f5a81b7a518ce Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 22 Dec 2023 10:04:32 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EA=B8=B0?= =?UTF-8?q?=EA=B4=80=20=ED=91=9C=EC=8B=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/fims/MainController.java | 8 ++ .../cokr/xit/fims/cmmn/dao/FactionMapper.java | 6 + .../sql/mapper/fims/cmmn/faction-mapper.xml | 11 +- src/main/webapp/WEB-INF/jsp/login.jsp | 110 ++++++++++-------- 4 files changed, 85 insertions(+), 50 deletions(-) diff --git a/src/main/java/cokr/xit/fims/MainController.java b/src/main/java/cokr/xit/fims/MainController.java index b312252f..8024cd79 100644 --- a/src/main/java/cokr/xit/fims/MainController.java +++ b/src/main/java/cokr/xit/fims/MainController.java @@ -68,6 +68,14 @@ public class MainController extends AbstractController { .addObject("duplicate", user != null); } + @RequestMapping(name="기관 목록", value="/error/instList.do") + public ModelAndView instList(String account, String institute) { + List instList = factionMapper.selectAllInstList(); + return new ModelAndView("jsonView") + .addObject("instList", instList); + } + + @GetMapping(name="홈", value={"/", "/index.do"}) public ModelAndView mainPage() { return new ModelAndView("index"); diff --git a/src/main/java/cokr/xit/fims/cmmn/dao/FactionMapper.java b/src/main/java/cokr/xit/fims/cmmn/dao/FactionMapper.java index 3bf299bf..e8ff22a0 100644 --- a/src/main/java/cokr/xit/fims/cmmn/dao/FactionMapper.java +++ b/src/main/java/cokr/xit/fims/cmmn/dao/FactionMapper.java @@ -39,4 +39,10 @@ public interface FactionMapper extends AbstractMapper { * @return 시군구코드,시군구명,기관코드,기관명,부서코드,부서명 */ DataObject selectFactionInfoOfUser(String userId); + + /**모든 기관 목록을 반환한다.
+ * @param + * @return 기관 목록 + */ + List selectAllInstList(); } diff --git a/src/main/resources/sql/mapper/fims/cmmn/faction-mapper.xml b/src/main/resources/sql/mapper/fims/cmmn/faction-mapper.xml index d9f43fbf..66a5c64b 100644 --- a/src/main/resources/sql/mapper/fims/cmmn/faction-mapper.xml +++ b/src/main/resources/sql/mapper/fims/cmmn/faction-mapper.xml @@ -57,9 +57,6 @@ LEFT OUTER JOIN TB_DEPT B ON (A.INST_CD = B.INST_CD) - - - + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/login.jsp b/src/main/webapp/WEB-INF/jsp/login.jsp index 9d23ceb7..b6c07dda 100644 --- a/src/main/webapp/WEB-INF/jsp/login.jsp +++ b/src/main/webapp/WEB-INF/jsp/login.jsp @@ -54,9 +54,6 @@
@@ -90,15 +87,13 @@