|
@@ -218,6 +218,7 @@
|
|
|
left join project b on b.id=a.project_id
|
|
|
left join report c on c.sub_project_id=a.id
|
|
|
where a.company_id=#{companyId}
|
|
|
+ and c.state = 1
|
|
|
<if test="startDate != null and endDate != null">
|
|
|
and c.create_date between #{startDate} and #{endDate}
|
|
|
</if>
|
|
@@ -242,6 +243,7 @@
|
|
|
left join project b on b.id=a.project_id
|
|
|
left join report c on c.sub_project_id=a.id
|
|
|
where a.company_id=#{companyId}
|
|
|
+ and c.state = 1
|
|
|
<if test="startDate != null and endDate != null">
|
|
|
and c.create_date between #{startDate} and #{endDate}
|
|
|
</if>
|