소스 검색

设置人员修改

anderx 3 년 전
부모
커밋
802efc7f26
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/main/java/com/goafanti/common/mapper/AdminMapper.xml

+ 2 - 1
src/main/java/com/goafanti/common/mapper/AdminMapper.xml

@@ -1089,7 +1089,8 @@
   <select id="listAdminBydepIdAndRoleType" resultType="com.goafanti.common.model.Admin">
     select a.id,a.name,a.email  from admin a left join user_role b on a.id =b.uid
                                              left join `role` c on b.rid=c.id
-    where department_id= #{depId}
+    where a.status='0'
+      and a.department_id= #{depId}
       and c.role_type= #{roleType}
   </select>