|
@@ -1020,7 +1020,7 @@
|
|
|
from user us
|
|
|
left join department dp on dp.department_id=us.department_id
|
|
|
where us.company_id=#{companyId}
|
|
|
- and us.id NOT IN (SELECT id FROM `user` WHERE company_id=#{companyId} and inactive_date IS NOT NULL AND inactive_date < #{startDate})
|
|
|
+ and us.id NOT IN (SELECT id FROM `user` WHERE company_id=#{companyId} and inactive_date IS NOT NULL AND inactive_date < #{startDate} AND is_active = 0)
|
|
|
<if test="userId!=null and userId!=''">
|
|
|
and us.id=#{userId}
|
|
|
</if>
|
|
@@ -1060,7 +1060,7 @@
|
|
|
from user us
|
|
|
left join department dp on dp.department_id=us.department_id
|
|
|
where us.company_id=#{companyId}
|
|
|
- and us.id NOT IN (SELECT id FROM `user` WHERE company_id=#{companyId} and inactive_date IS NOT NULL AND inactive_date < #{startDate})
|
|
|
+ and us.id NOT IN (SELECT id FROM `user` WHERE company_id=#{companyId} and inactive_date IS NOT NULL AND inactive_date < #{startDate} AND is_active = 0)
|
|
|
<if test="userId!=null and userId!=''">
|
|
|
and us.id=#{userId}
|
|
|
</if>
|
|
@@ -1228,7 +1228,7 @@
|
|
|
from user us
|
|
|
left join department dp on dp.department_id=us.department_id
|
|
|
where us.company_id=#{companyId}
|
|
|
- and us.id NOT IN (SELECT id FROM `user` WHERE company_id=#{companyId} and inactive_date IS NOT NULL AND inactive_date < #{startDate})
|
|
|
+ and us.id NOT IN (SELECT id FROM `user` WHERE company_id=#{companyId} and inactive_date IS NOT NULL AND inactive_date < #{startDate} AND is_active = 0)
|
|
|
<if test="userId!=null and userId!=''">
|
|
|
and us.id=#{userId}
|
|
|
</if>
|
|
@@ -1261,7 +1261,7 @@
|
|
|
from user us
|
|
|
left join department dp on dp.department_id=us.department_id
|
|
|
where us.company_id=#{companyId}
|
|
|
- and us.id NOT IN (SELECT id FROM `user` WHERE company_id=#{companyId} and inactive_date IS NOT NULL AND inactive_date < #{startDate})
|
|
|
+ and us.id NOT IN (SELECT id FROM `user` WHERE company_id=#{companyId} and inactive_date IS NOT NULL AND inactive_date < #{startDate} AND is_active = 0)
|
|
|
<if test="userId!=null and userId!=''">
|
|
|
and us.id=#{userId}
|
|
|
</if>
|