select * from table where m.is_delete = 0 and alow.user_type =3 and alow.is_delete = 0
and (alow.user_uuid = "08b08c9c-11e3-11ea-965f-07"
or alow.user_uuid in (select u.user_uuid FROM ccs_user u
LEFT JOIN ccs_dept d on d.dept_uuid = u.dept_uuid
where d.parent_uuid = "197128190300.dept_uuid = "1971900"))
来源:CSDN
作者:stone_tomcat
链接:https://blog.csdn.net/stone_tomcate/article/details/103915532