|
|
@ -220,6 +220,12 @@ |
|
|
<if test="endDate != null"> |
|
|
<if test="endDate != null"> |
|
|
AND #{endDate} >= DATEADD(dd, -1, a.EnterDate) |
|
|
AND #{endDate} >= DATEADD(dd, -1, a.EnterDate) |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="startDate2 != null"> |
|
|
|
|
|
AND a.NeedDate >= #{startDate2} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="endDate2 != null"> |
|
|
|
|
|
AND #{endDate2} >= DATEADD(dd, 0, a.NeedDate) |
|
|
|
|
|
</if> |
|
|
<if test="customerId != null and customerId != ''"> |
|
|
<if test="customerId != null and customerId != ''"> |
|
|
AND a.CustomerID like #{customerId} |
|
|
AND a.CustomerID like #{customerId} |
|
|
</if> |
|
|
</if> |
|
|
|