<iftest="materialRequisitionNumber != null and materialRequisitionNumber != ''"> and material_requisition_number like concat('%', #{materialRequisitionNumber}, '%')</if>
<iftest="salesOrderNumber != null and salesOrderNumber != ''"> and sales_order_number like concat('%', #{salesOrderNumber}, '%')</if>
<iftest="workOrderNumber != null and workOrderNumber != ''"> and work_order_number like concat('%', #{workOrderNumber}, '%')</if>
<iftest="deptName != null and deptName != ''"> and dept_name = #{deptName}</if>
<iftest="stockName != null and stockName != ''"> and stock_name like concat('%', #{stockName}, '%')</if>
<iftest="outputClass != null and outputClass != ''"> and output_class = #{outputClass}</if>
<iftest="params.beginOutputDate != null and params.beginOutputDate != '' and params.endOutputDate != null and params.endOutputDate != ''"> and output_date between #{params.beginOutputDate} and #{params.endOutputDate}</if>
<iftest="getMaterialFlag != null and getMaterialFlag != ''"> and get_material_flag = #{getMaterialFlag}</if>
<iftest="materialRequisitionNumber != null and materialRequisitionNumber != ''"> and material_requisition_number like concat('%', #{materialRequisitionNumber}, '%')</if>
<iftest="salesOrderNumber != null and salesOrderNumber != ''"> and sales_order_number like concat('%', #{salesOrderNumber}, '%')</if>
<iftest="workOrderNumber != null and workOrderNumber != ''"> and work_order_number like concat('%', #{workOrderNumber}, '%')</if>
<iftest="deptName != null and deptName != ''"> and dept_name = #{deptName}</if>
<iftest="stockName != null and stockName != ''"> and stock_name like concat('%', #{stockName}, '%')</if>
<iftest="outputClass != null and outputClass != ''"> and output_class = #{outputClass}</if>
<iftest="params.beginOutputDate != null and params.beginOutputDate != '' and params.endOutputDate != null and params.endOutputDate != ''"> and output_date between #{params.beginOutputDate} and #{params.endOutputDate}</if>
<iftest="getMaterialFlag != null and getMaterialFlag != ''"> and get_material_flag = #{getMaterialFlag}</if>
<iftest="materialRequisitionNumber != null and materialRequisitionNumber != ''"> and material_requisition_number like concat('%', #{materialRequisitionNumber}, '%')</if>
<iftest="salesOrderNumber != null and salesOrderNumber != ''"> and sales_order_number like concat('%', #{salesOrderNumber}, '%')</if>
<iftest="workOrderNumber != null and workOrderNumber != ''"> and work_order_number like concat('%', #{workOrderNumber}, '%')</if>
<iftest="deptName != null and deptName != ''"> and dept_name = #{deptName}</if>
<iftest="stockName != null and stockName != ''"> and stock_name like concat('%', #{stockName}, '%')</if>
<iftest="outputClass != null and outputClass != ''"> and output_class = #{outputClass}</if>
<iftest="params.beginOutputDate != null and params.beginOutputDate != '' and params.endOutputDate != null and params.endOutputDate != ''"> and output_date between #{params.beginOutputDate} and #{params.endOutputDate}</if>
<iftest="getMaterialFlag != null and getMaterialFlag != ''"> and get_material_flag = #{getMaterialFlag}</if>
<iftest="materialRequisitionNumber != null and materialRequisitionNumber != ''"> and material_requisition_number like concat('%', #{materialRequisitionNumber}, '%')</if>
<iftest="salesOrderNumber != null and salesOrderNumber != ''"> and sales_order_number like concat('%', #{salesOrderNumber}, '%')</if>
<iftest="workOrderNumber != null and workOrderNumber != ''"> and work_order_number like concat('%', #{workOrderNumber}, '%')</if>
<iftest="deptName != null and deptName != ''"> and dept_name = #{deptName}</if>
<iftest="stockName != null and stockName != ''"> and stock_name like concat('%', #{stockName}, '%')</if>
<iftest="outputClass != null and outputClass != ''"> and output_class = #{outputClass}</if>
<iftest="params.beginOutputDate != null and params.beginOutputDate != '' and params.endOutputDate != null and params.endOutputDate != ''"> and output_date between #{params.beginOutputDate} and #{params.endOutputDate}</if>
<iftest="getMaterialFlag != null and getMaterialFlag != ''"> and get_material_flag = #{getMaterialFlag}</if>