anderx 3 роки тому
батько
коміт
802efc7f26

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