<if test="start != null">
and stocktaking_order.FInventoryDate <![CDATA[ >= ]]> #{start}
</if>
<if test="end != null">
and stocktaking_order.FInventoryDate <![CDATA[ <= ]]> #{end}
</if>
and stocktaking_order.FInventoryDate <![CDATA[ >= ]]> #{start}
</if>
<if test="end != null">
and stocktaking_order.FInventoryDate <![CDATA[ <= ]]> #{end}
</if>