|
|
|
@ -119,7 +119,7 @@ |
|
|
|
LEFT JOIN MES_YIELD_ORDER g on g.id = a.yo_id |
|
|
|
LEFT JOIN MES_YIELD_ORDER g on g.id = a.yo_id |
|
|
|
<where> |
|
|
|
<where> |
|
|
|
a.is_deleted = 0 and b.is_deleted = 0 and a.status in (1,2,3,5) |
|
|
|
a.is_deleted = 0 and b.is_deleted = 0 and a.status in (1,2,3,5) |
|
|
|
and b.plan_start_time is not null and b.plan_end_time is not null and g.work_center_id = 81 |
|
|
|
and b.plan_start_time is not null and b.plan_end_time is not null and g.work_center_id in (81,122,162) |
|
|
|
<if test="startTime !=null and startTime != ''"> |
|
|
|
<if test="startTime !=null and startTime != ''"> |
|
|
|
and to_char(b.plan_start_time,'YYYY-MM-DD') <![CDATA[ >= ]]> #{startTime} |
|
|
|
and to_char(b.plan_start_time,'YYYY-MM-DD') <![CDATA[ >= ]]> #{startTime} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|