diff --git a/src/main/resources/sql/mapper/base/user-mapper.xml b/src/main/resources/sql/mapper/base/user-mapper.xml index a94c2f1..05f0c6b 100644 --- a/src/main/resources/sql/mapper/base/user-mapper.xml +++ b/src/main/resources/sql/mapper/base/user-mapper.xml @@ -25,8 +25,8 @@ - + @@ -60,7 +60,7 @@ SELECT USER_ID , POS_NM , GRP_ID , ORG_ID - , DEPT_CD + , A.DEPT_CD , NSTT_CD , CRTFC_DN , LOCK_YN @@ -68,7 +68,15 @@ SELECT USER_ID , LOCK_DT , REG_DT , STTS - FROM TB_USER + , INST_NM + , 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 + ) B ON A.NSTT_CD = B.INST_CD OR (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' @@ -114,6 +122,7 @@ INSERT INTO TB_USER ( , GRP_ID , ORG_ID , NSTT_CD + , DEPT_CD , CRTFC_DN , LOCK_YN , LOCK_CNT @@ -147,6 +156,7 @@ INSERT INTO TB_USER ( , #{groupID} , #{orgID} , #{institute} + , #{deptCode} , #{certificateDn} , 'N' , 0 @@ -180,6 +190,7 @@ UPDATE TB_USER SET , GRP_ID = #{groupID} , ORG_ID = #{orgID} , NSTT_CD = #{institute} + , DEPT_CD = #{deptCode} , CRTFC_DN = #{certificateDn} , STTS = #{status} , MDFCN_DT =