|
@@ -242,22 +242,23 @@
|
|
from
|
|
from
|
|
project_plan_info i
|
|
project_plan_info i
|
|
left join project_records r on i.project_id = r.id
|
|
left join project_records r on i.project_id = r.id
|
|
|
|
+ where r.status = 5 and r.del_flag=0
|
|
) as a
|
|
) as a
|
|
left join project_records r on a.project_id = r.id
|
|
left join project_records r on a.project_id = r.id
|
|
left join work_project_user wpu on wpu.project_id = r.id
|
|
left join work_project_user wpu on wpu.project_id = r.id
|
|
<where>
|
|
<where>
|
|
|
|
|
|
- <if test="weeklyStatus !=null and weeklyStatus == '0'">
|
|
|
|
|
|
+ <if test="weeklyStatus !=null and weeklyStatus == 0">
|
|
AND a.weekly_status = #{weeklyStatus}
|
|
AND a.weekly_status = #{weeklyStatus}
|
|
and a.end_date <= #{endDate}
|
|
and a.end_date <= #{endDate}
|
|
</if>
|
|
</if>
|
|
- <if test="weeklyStatus !=null and weeklyStatus == '1'">
|
|
|
|
|
|
+ <if test="weeklyStatus !=null and weeklyStatus == 1">
|
|
AND a.weekly_status = #{weeklyStatus}
|
|
AND a.weekly_status = #{weeklyStatus}
|
|
- and a.begin_date >= #{beginDate} and a.begin_date <= #{endDate}
|
|
|
|
- and a.end_date >= #{endDate}
|
|
|
|
|
|
+ and (#{beginDate} between a.begin_date and a.end_date
|
|
|
|
+ or #{endDate} between a.begin_date and a.end_date
|
|
|
|
+ )
|
|
</if>
|
|
</if>
|
|
- (wpu.user_id = #{currentUser.id} ${sqlMap.dsf}) and
|
|
|
|
- r.status = 5 and r.del_flag=0
|
|
|
|
|
|
+ and (wpu.user_id = #{currentUser.id} ${sqlMap.dsf})
|
|
</where>
|
|
</where>
|
|
<choose>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|