|
@@ -603,14 +603,12 @@ select DISTINCT a.id, a.company_id as "companyDTO.id", a.office_id as "officeDTO
|
|
left join sys_user_post sup on a.id = sup.user_id
|
|
left join sys_user_post sup on a.id = sup.user_id
|
|
left join sys_post sp on sp.id = sup.post_id
|
|
left join sys_post sp on sp.id = sup.post_id
|
|
where
|
|
where
|
|
- sp.CODE = 'fzjl'
|
|
|
|
- AND a.id IN (
|
|
|
|
- SELECT
|
|
|
|
- user_id
|
|
|
|
- FROM
|
|
|
|
- sys_user_manage_office
|
|
|
|
- WHERE
|
|
|
|
- office_id = ( SELECT office_id FROM sys_user WHERE id = #{id} ))
|
|
|
|
|
|
+ a.id in (select
|
|
|
|
+ a.administrator
|
|
|
|
+ from sys_office a
|
|
|
|
+ left join sys_user su
|
|
|
|
+ on a.id = su.office_id
|
|
|
|
+ where a.del_flag = 0 and su.del_flag = 0 and su.id = #{id})
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<delete id="removeById">
|
|
<delete id="removeById">
|