修复部门接口可以查询到删除的数据
This commit is contained in:
parent
8b51e6edfb
commit
d881e9336b
@ -475,8 +475,8 @@
|
||||
case occ.staff_status when 0 then '在职' else '离职' end staff_status
|
||||
from (select staff.id as staff_id, staff.name as name, relate.is_leader as department_leader
|
||||
from lz_departments_staff_relate relate join lz_staff staff on staff.id = relate.staff_id
|
||||
where relate.department_id = #{departmentId}) jj
|
||||
join lz_staff_occupation occ on jj.staff_id=occ.staff_id where occ.staff_status=0
|
||||
where relate.department_id = #{departmentId} and relate.is_delete=0 and staff.is_delete=0) jj
|
||||
join lz_staff_occupation occ on jj.staff_id=occ.staff_id where occ.staff_status=0 and occ.is_delete=0
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user