|
|
@ -14,7 +14,7 @@ |
|
|
left join v_sorouting d on b.Site=d.Site and b.OrderNo=d.OrderNo and b.ItemNo=d.ItemNo |
|
|
left join v_sorouting d on b.Site=d.Site and b.OrderNo=d.OrderNo and b.ItemNo=d.ItemNo |
|
|
left join ShopOrder e on a.site=e.site and a.orderNo=e.OrderNo |
|
|
left join ShopOrder e on a.site=e.site and a.orderNo=e.OrderNo |
|
|
<where> |
|
|
<where> |
|
|
and a.ClosedFlag='N' |
|
|
|
|
|
|
|
|
and a.ClosedFlag='N' and e.status not in ('已关闭','已取消') |
|
|
<if test="text2 != null and text2 != ''"> |
|
|
<if test="text2 != null and text2 != ''"> |
|
|
AND dbo.Get_WorkCenter_ProLineNo(a.Site,a.S_WorkCenterNo) in ${text2} |
|
|
AND dbo.Get_WorkCenter_ProLineNo(a.Site,a.S_WorkCenterNo) in ${text2} |
|
|
</if> |
|
|
</if> |
|
|
|