|
|
@@ -38,10 +38,11 @@
|
|
|
LEFT JOIN sys_user_link_zzb_user_id zzb ON t1.id = zzb.user_id
|
|
|
LEFT JOIN
|
|
|
(select t3.bind_dept_id,t4.id,t4.name from sys_dept_internal_agent t3 left join sys_dept_internal_agent t4 on t4.parent_id =t3.id ) t5
|
|
|
- ON t2.parent_id = t5.bind_dept_id
|
|
|
+ ON t2.id = t5.bind_dept_id
|
|
|
WHERE
|
|
|
t1.`status` = 1
|
|
|
- and t2.management_source = 3
|
|
|
+ AND t1.dept_id= '9914D13'
|
|
|
+ AND ( t1.id != '9914D1305' and t1.id != '9914D1316' )
|
|
|
<if test='vo !=null '>
|
|
|
<if test='vo.userName !=null and vo.userName!="" '>
|
|
|
and t1.name like CONCAT('%', #{vo.userName}, '%')
|
|
|
@@ -115,9 +116,11 @@
|
|
|
LEFT JOIN sys_user_link_zzb_user_id zzb ON t1.id = zzb.user_id
|
|
|
LEFT JOIN
|
|
|
(select t3.bind_dept_id,t4.id,t4.name from sys_dept_internal_agent t3 left join sys_dept_internal_agent t4 on t4.parent_id =t3.id ) t5
|
|
|
- ON t2.parent_id = t5.bind_dept_id
|
|
|
- WHERE
|
|
|
+ ON t2.id = t5.bind_dept_id
|
|
|
+ WHERE
|
|
|
t1.`status` = 1
|
|
|
+ AND t1.dept_id= '9914D13'
|
|
|
+ AND ( t1.id != '9914D1305' and t1.id != '9914D1316' )
|
|
|
and t1.id = #{userId}
|
|
|
</select>
|
|
|
</mapper>
|