|
|
@ -327,10 +327,10 @@ |
|
|
<if test="endDate1 != null "> |
|
|
<if test="endDate1 != null "> |
|
|
AND #{endDate1} >= a.orderDate |
|
|
AND #{endDate1} >= a.orderDate |
|
|
</if> |
|
|
</if> |
|
|
<if test="partDescription != null and partDescription != ''"> |
|
|
|
|
|
|
|
|
<if test="partDescription != null and partDescription != ''"> |
|
|
and P.Spec+'/'+isnull(P.PartDescription,'') like #{partDescription} |
|
|
and P.Spec+'/'+isnull(P.PartDescription,'') like #{partDescription} |
|
|
</if> |
|
|
</if> |
|
|
<if test="orderRef1 != null and orderRef1 != ''"> |
|
|
|
|
|
|
|
|
<if test="orderRef1 != null and orderRef1 != ''"> |
|
|
AND a.OrderRef1 LIKE #{orderRef1} |
|
|
AND a.OrderRef1 LIKE #{orderRef1} |
|
|
</if> |
|
|
</if> |
|
|
<if test="partNo != null and partNo != ''"> |
|
|
<if test="partNo != null and partNo != ''"> |
|
|
@ -351,7 +351,7 @@ |
|
|
<if test="endDate3 != null "> |
|
|
<if test="endDate3 != null "> |
|
|
AND #{endDate3} >= so.NeedDate |
|
|
AND #{endDate3} >= so.NeedDate |
|
|
</if> |
|
|
</if> |
|
|
<if test="startDate4 != null "> |
|
|
|
|
|
|
|
|
<if test="startDate4 != null "> |
|
|
AND cod.PlanShipDate >= #{startDate4} |
|
|
AND cod.PlanShipDate >= #{startDate4} |
|
|
</if> |
|
|
</if> |
|
|
<if test="endDate4 != null "> |
|
|
<if test="endDate4 != null "> |
|
|
|