diff --git a/src/main/resources/sql/mapper/base/user-mapper.xml b/src/main/resources/sql/mapper/base/user-mapper.xml index fb3649d7..cb866fed 100644 --- a/src/main/resources/sql/mapper/base/user-mapper.xml +++ b/src/main/resources/sql/mapper/base/user-mapper.xml @@ -78,11 +78,7 @@ SELECT A.USER_ID , B.SGG_NM AS SGG_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 AND ${by} LIKE CONCAT('%', #{term}, '%')