|
|
|
@ -40,6 +40,26 @@ |
|
|
|
<if test='preScheduledFlag != null and preScheduledFlag == "Y"'> |
|
|
|
and Isnull(S1.ScheduledFlag,'Y')='Y' |
|
|
|
</if> |
|
|
|
<if test='orderNo != null and orderNo != ""'> |
|
|
|
AND T.OrderNo = #{orderNo} |
|
|
|
</if> |
|
|
|
<if test='partNo != null and partNo != ""'> |
|
|
|
AND T.PartNo = #{partNo} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="needTime1 != null"> |
|
|
|
and D.NeedDate<![CDATA[ >= ]]>#{needTime1} |
|
|
|
</if> |
|
|
|
<if test="needTime2 != null"> |
|
|
|
and D.NeedDate<![CDATA[ <= ]]>#{needTime2} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="enterTime1 != null"> |
|
|
|
and D.EnterDate<![CDATA[ >= ]]> #{enterTime1} |
|
|
|
</if> |
|
|
|
<if test="enterTime2 != null"> |
|
|
|
and D.EnterDate-1<![CDATA[<]]> #{enterTime2} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
|