|
@@ -1020,6 +1020,7 @@
|
|
from user us
|
|
from user us
|
|
left join department dp on dp.department_id=us.department_id
|
|
left join department dp on dp.department_id=us.department_id
|
|
where us.company_id=#{companyId}
|
|
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})
|
|
<if test="userId!=null and userId!=''">
|
|
<if test="userId!=null and userId!=''">
|
|
and us.id=#{userId}
|
|
and us.id=#{userId}
|
|
</if>
|
|
</if>
|
|
@@ -1059,6 +1060,7 @@
|
|
from user us
|
|
from user us
|
|
left join department dp on dp.department_id=us.department_id
|
|
left join department dp on dp.department_id=us.department_id
|
|
where us.company_id=#{companyId}
|
|
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})
|
|
<if test="userId!=null and userId!=''">
|
|
<if test="userId!=null and userId!=''">
|
|
and us.id=#{userId}
|
|
and us.id=#{userId}
|
|
</if>
|
|
</if>
|
|
@@ -1226,6 +1228,7 @@
|
|
from user us
|
|
from user us
|
|
left join department dp on dp.department_id=us.department_id
|
|
left join department dp on dp.department_id=us.department_id
|
|
where us.company_id=#{companyId}
|
|
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})
|
|
<if test="userId!=null and userId!=''">
|
|
<if test="userId!=null and userId!=''">
|
|
and us.id=#{userId}
|
|
and us.id=#{userId}
|
|
</if>
|
|
</if>
|
|
@@ -1258,6 +1261,7 @@
|
|
from user us
|
|
from user us
|
|
left join department dp on dp.department_id=us.department_id
|
|
left join department dp on dp.department_id=us.department_id
|
|
where us.company_id=#{companyId}
|
|
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})
|
|
<if test="userId!=null and userId!=''">
|
|
<if test="userId!=null and userId!=''">
|
|
and us.id=#{userId}
|
|
and us.id=#{userId}
|
|
</if>
|
|
</if>
|