Commit 05e180ef authored by fangxinjiang's avatar fangxinjiang

客户服务平台-fxj

parent 0fb39ba7
...@@ -442,9 +442,10 @@ ...@@ -442,9 +442,10 @@
ORDER BY u.create_time DESC ORDER BY u.create_time DESC
</select> </select>
<select id="getCspUserByDeptId" resultType="java.lang.String"> <select id="getCspUserByDeptId" resultType="java.lang.String">
select c.username from sys_dept a SELECT a.username from sys_user a
LEFT JOIN sys_user_dept_permission b on a.dept_id=b.dept_id where a.user_id in (
LEFT JOIN sys_user c on c.user_id = b.user_id select c.user_id from sys_user_dept_permission c
where a.dept_id=#{deptId} or FIND_IN_SET(#{deptId},a.ancestors); where c.project_no in (SELECT project_no from sys_user_dept_permission where dept_id=#{deptId})
)
</select> </select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment