select
a.id,
a.organization_id,
a.organization_name,
a.top_organization_id,
a.warehouse_id,
a.warehouse_name,
a.route_code,
a.route_name,
a.customer_json,
a.shuttle_json,
a.create_by,
a.create_by_name,
a.create_time,
a.update_by,
a.update_by_name,
a.update_time,
a.del_flag,
a.register
from line_management a
and a.id = #{id}
and a.organization_id = #{organizationId}
and a.top_organization_id = #{topOrganizationId}
and a.organization_name like concat('%', #{organizationName}, '%')
and a.warehouse_id = #{warehouseId}
and a.warehouse_name like concat('%', #{warehouseName}, '%')
and a.route_code like concat('%', #{routeCode}, '%')
and a.route_name like concat('%', #{routeName}, '%')
and a.customer_json like concat('%', #{customerJson}, '%')
and a.create_by_name like concat('%', #{createByName}, '%')
and a.update_by_name like concat('%', #{updateByName}, '%')
and a.del_flag = #{delFlag}
and a.del_flag = 1