select over_stock_id, organization_id, organization_name, top_organization_id, shipper_id, shipper_code, shipper_name, material_code, material_name, type, status, in_order_number, in_order_line, out_order_number, out_order_line, over_stock_number, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from over_stock
where del_flag = 1
and organization_id = #{organizationId}
and organization_name like concat('%', #{organizationName}, '%')
and top_organization_id = #{topOrganizationId}
and shipper_id = #{shipperId}
and shipper_code = #{shipperCode}
and shipper_name like concat('%', #{shipperName}, '%')
and material_code = #{materialCode}
and material_name like concat('%', #{materialName}, '%')
and type = #{type}
and status = #{status}
and in_order_number = #{inOrderNumber}
and in_order_line = #{inOrderLine}
and out_order_number = #{outOrderNumber}
and out_order_line = #{outOrderLine}
and over_stock_number = #{overStockNumber}
and create_by_name like concat('%', #{createByName}, '%')
and update_by_name like concat('%', #{updateByName}, '%')