|
@@ -696,6 +696,7 @@
|
|
left join project on project.id = report.project_id
|
|
left join project on project.id = report.project_id
|
|
WHERE
|
|
WHERE
|
|
report.`state` = 1
|
|
report.`state` = 1
|
|
|
|
+ AND user.`is_active` = 1
|
|
AND report.`create_date` BETWEEN #{startDate} and #{endDate}
|
|
AND report.`create_date` BETWEEN #{startDate} and #{endDate}
|
|
AND user.`company_id` =#{companyId}
|
|
AND user.`company_id` =#{companyId}
|
|
<if test="userId!=null">
|
|
<if test="userId!=null">
|
|
@@ -732,6 +733,7 @@
|
|
left join project on project.id = report.project_id
|
|
left join project on project.id = report.project_id
|
|
WHERE
|
|
WHERE
|
|
report.`state` = 1
|
|
report.`state` = 1
|
|
|
|
+ AND user.`is_active` = 1
|
|
AND report.`create_date` BETWEEN #{startDate} and #{endDate}
|
|
AND report.`create_date` BETWEEN #{startDate} and #{endDate}
|
|
AND user.`company_id` =#{companyId}
|
|
AND user.`company_id` =#{companyId}
|
|
<if test="userId!=null">
|
|
<if test="userId!=null">
|
|
@@ -858,6 +860,7 @@
|
|
left join user u on u.id = a.project_auditor_id
|
|
left join user u on u.id = a.project_auditor_id
|
|
WHERE a.company_id =#{companyId}
|
|
WHERE a.company_id =#{companyId}
|
|
and a.state = 0
|
|
and a.state = 0
|
|
|
|
+ and u.is_active = 1
|
|
<if test="startDate!=null and endDate!=null">
|
|
<if test="startDate!=null and endDate!=null">
|
|
AND a.create_date between #{startDate} and #{endDate}
|
|
AND a.create_date between #{startDate} and #{endDate}
|
|
</if>
|
|
</if>
|
|
@@ -893,6 +896,7 @@
|
|
left join department dp on u.department_id=dp.department_id
|
|
left join department dp on u.department_id=dp.department_id
|
|
WHERE a.company_id =#{companyId}
|
|
WHERE a.company_id =#{companyId}
|
|
and a.state = 0
|
|
and a.state = 0
|
|
|
|
+ and u.is_active = 1
|
|
<if test="startDate!=null and endDate!=null">
|
|
<if test="startDate!=null and endDate!=null">
|
|
AND a.create_date between #{startDate} and #{endDate}
|
|
AND a.create_date between #{startDate} and #{endDate}
|
|
</if>
|
|
</if>
|
|
@@ -936,6 +940,7 @@
|
|
left join user u on u.id = a.project_auditor_id
|
|
left join user u on u.id = a.project_auditor_id
|
|
WHERE a.company_id =#{companyId}
|
|
WHERE a.company_id =#{companyId}
|
|
and a.state = 0
|
|
and a.state = 0
|
|
|
|
+ and u.is_active = 1
|
|
<if test="startDate!=null and endDate!=null">
|
|
<if test="startDate!=null and endDate!=null">
|
|
AND a.create_date between #{startDate} and #{endDate}
|
|
AND a.create_date between #{startDate} and #{endDate}
|
|
</if>
|
|
</if>
|
|
@@ -971,6 +976,7 @@
|
|
left join department dp on u.department_id=dp.department_id
|
|
left join department dp on u.department_id=dp.department_id
|
|
WHERE a.company_id =#{companyId}
|
|
WHERE a.company_id =#{companyId}
|
|
and a.state = 0
|
|
and a.state = 0
|
|
|
|
+ and u.is_active = 1
|
|
<if test="startDate!=null and endDate!=null">
|
|
<if test="startDate!=null and endDate!=null">
|
|
AND a.create_date between #{startDate} and #{endDate}
|
|
AND a.create_date between #{startDate} and #{endDate}
|
|
</if>
|
|
</if>
|