@ -178,7 +178,7 @@
u.scrip
from sys_user u
LEFT JOIN sys_user_dept ud ON u.id = ud.user_id AND ud.del_flag = '0'
where u.del_flag='0' and (ud.relation_work_dept_id=#{gridId} OR ud.relation_work_dept_id=#{gridId}) and u.mobile = #{mobile}
where u.del_flag='0' and (ud.relation_work_dept_id=#{gridId} OR ud.relation_leader_dept_id=#{gridId}) and u.mobile = #{mobile}
order by u.CREATE_DATE desc
limit 1
</select>