From b82b8f2aa8f71651d45f7aa755b939b57107024a Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Mon, 1 Jul 2024 14:06:16 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90=20=EA=B8=B0?= =?UTF-8?q?=EA=B4=80/=EB=B6=80=EC=84=9C=20=EA=B4=80=EB=A0=A8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sql/mapper/base/department-mapper.xml | 8 +++----- .../resources/sql/mapper/base/user-mapper.xml | 14 +++++--------- .../webapp/WEB-INF/jsp/base/user/user-info.jsp | 12 +++++++++--- src/main/webapp/WEB-INF/jsp/login.jsp | 16 ++++++++-------- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/main/resources/sql/mapper/base/department-mapper.xml b/src/main/resources/sql/mapper/base/department-mapper.xml index 184bee0..799fab6 100644 --- a/src/main/resources/sql/mapper/base/department-mapper.xml +++ b/src/main/resources/sql/mapper/base/department-mapper.xml @@ -53,11 +53,9 @@ SELECT A.SGG_CD, SGG_NM, A.INST_CD, INST_NM, DEPT_CD, DEPT_NM - FROM TB_SGG A, TB_DEPT B - WHERE A.USE_YN = 'Y' - AND B.USE_YN = 'Y' - AND A.SGG_CD = B.SGG_CD - AND A.INST_CD = B.INST_CD + FROM TB_SGG A LEFT OUTER JOIN TB_DEPT B + ON A.SGG_CD = B.SGG_CD AND A.INST_CD = B.INST_CD + AND A.USE_YN = 'Y' AND B.USE_YN = 'Y' diff --git a/src/main/resources/sql/mapper/base/user-mapper.xml b/src/main/resources/sql/mapper/base/user-mapper.xml index fb66328..95b1d27 100644 --- a/src/main/resources/sql/mapper/base/user-mapper.xml +++ b/src/main/resources/sql/mapper/base/user-mapper.xml @@ -72,12 +72,8 @@ SELECT USER_ID , DEPT_NM FROM TB_USER A LEFT OUTER JOIN ( - SELECT A.SGG_CD, SGG_NM, A.INST_CD, INST_NM, DEPT_CD, DEPT_NM - FROM TB_SGG A LEFT OUTER JOIN TB_DEPT B - ON A.SGG_CD = B.SGG_CD - AND A.INST_CD = B.INST_CD - AND A.USE_YN = 'Y' AND B.USE_YN = 'Y' - ) B ON A.NSTT_CD = B.INST_CD AND A.DEPT_CD = B.DEPT_CD + + ) B ON ORG_ID = B.SGG_CD AND A.NSTT_CD = B.INST_CD AND A.DEPT_CD = B.DEPT_CD AND ${by} LIKE CONCAT('%', #{term}, '%') USER_ID IN (#{userID}) AND STTS != 'D' @@ -94,9 +90,9 @@ SELECT USER_ID + AND USER_ID = #{userID} + AND USER_ACNT = #{account} + AND ORG_ID = #{orgID} /* 사용자 정보 등록(userMapper.insertUser) */ SELECT LPAD(NVL(MAX(USER_ID) + 1, 1), 10, '0') NEW_ID FROM TB_USER diff --git a/src/main/webapp/WEB-INF/jsp/base/user/user-info.jsp b/src/main/webapp/WEB-INF/jsp/base/user/user-info.jsp index ecc3ec4..0328ec5 100644 --- a/src/main/webapp/WEB-INF/jsp/base/user/user-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/base/user/user-info.jsp @@ -47,10 +47,11 @@
- +
+
@@ -174,7 +175,7 @@