@@ -373,7 +373,7 @@
from user a
left join organization_identity b on a.id = b.uid
<if test="departmentId != null and departmentId !=''">
- left join (select id
+ INNER join (select id
from admin
where department_id=#{departmentId,jdbcType=VARCHAR}) d on a.aid = d.id
</if>