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 @@