<iftest="orderType != null and orderType != ''">and oi.order_type = #{orderType}</if>
<iftest="orderStatus != null and orderStatus != ''">and oi.order_status = #{orderStatus}</if>
<iftest="orderStatus != null and orderStatus != '' and orderStatus != 'RELCRTD'">and oi.order_status LIKE #{orderStatus} || '%'</if>
<iftest="orderStatus != null and orderStatus != '' and orderStatus == 'RELCRTD'">and (oi.order_status LIKE 'REL%' OR oi.order_status LIKE 'CRTD%')</if>
<iftest="manualUpdateFlag != null and manualUpdateFlag != ''">and oi.manual_update_flag = #{manualUpdateFlag}</if>