select thisTab.id, thisTab.system_code, thisTab.route_code, thisTab.route_name, thisTab.route_type, thisTab.transport_mode, thisTab.start_area, thisTab.start_warehouse, thisTab.end_area, thisTab.end_warehouse, thisTab.via_stations, thisTab.distance_km, thisTab.estimated_hours, thisTab.route_group, thisTab.suitable_vehicle_type, thisTab.suitable_tray_type, thisTab.route_status, thisTab.is_common, thisTab.status, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.remark from tms_route AS thisTab select count(0) from tms_route as thisTab and thisTab.system_code = #{systemCode} and thisTab.route_code = #{routeCode} and thisTab.route_name like concat('%', #{routeName}, '%') and thisTab.route_type = #{routeType} and thisTab.transport_mode = #{transportMode} and thisTab.start_area = #{startArea} and thisTab.start_warehouse = #{startWarehouse} and thisTab.end_area = #{endArea} and thisTab.end_warehouse = #{endWarehouse} and thisTab.via_stations = #{viaStations} and thisTab.distance_km = #{distanceKm} and thisTab.estimated_hours = #{estimatedHours} and thisTab.route_group = #{routeGroup} and thisTab.suitable_vehicle_type = #{suitableVehicleType} and thisTab.suitable_tray_type = #{suitableTrayType} and thisTab.route_status = #{routeStatus} and thisTab.is_common = #{isCommon} and thisTab.status = #{status} insert into tms_route system_code, route_code, route_name, route_type, transport_mode, start_area, start_warehouse, end_area, end_warehouse, via_stations, distance_km, estimated_hours, route_group, suitable_vehicle_type, suitable_tray_type, route_status, is_common, status, create_by, create_time, update_by, update_time, remark, #{systemCode}, #{routeCode}, #{routeName}, #{routeType}, #{transportMode}, #{startArea}, #{startWarehouse}, #{endArea}, #{endWarehouse}, #{viaStations}, #{distanceKm}, #{estimatedHours}, #{routeGroup}, #{suitableVehicleType}, #{suitableTrayType}, #{routeStatus}, #{isCommon}, #{status}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, insert into tms_route id,system_code,route_code,route_name,route_type,transport_mode,start_area,start_warehouse,end_area,end_warehouse,via_stations,distance_km,estimated_hours,route_group,suitable_vehicle_type,suitable_tray_type,route_status,is_common,status,create_by,create_time,update_by,update_time,remark, #{item.id},#{item.systemCode},#{item.routeCode},#{item.routeName},#{item.routeType},#{item.transportMode},#{item.startArea},#{item.startWarehouse},#{item.endArea},#{item.endWarehouse},#{item.viaStations},#{item.distanceKm},#{item.estimatedHours},#{item.routeGroup},#{item.suitableVehicleType},#{item.suitableTrayType},#{item.routeStatus},#{item.isCommon},#{item.status},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.remark}, update tms_route system_code = #{systemCode}, route_code = #{routeCode}, route_name = #{routeName}, route_type = #{routeType}, transport_mode = #{transportMode}, start_area = #{startArea}, start_warehouse = #{startWarehouse}, end_area = #{endArea}, end_warehouse = #{endWarehouse}, via_stations = #{viaStations}, distance_km = #{distanceKm}, estimated_hours = #{estimatedHours}, route_group = #{routeGroup}, suitable_vehicle_type = #{suitableVehicleType}, suitable_tray_type = #{suitableTrayType}, route_status = #{routeStatus}, is_common = #{isCommon}, status = #{status}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where id = #{id} update tms_route system_code = #{item.systemCode}, route_code = #{item.routeCode}, route_name = #{item.routeName}, route_type = #{item.routeType}, transport_mode = #{item.transportMode}, start_area = #{item.startArea}, start_warehouse = #{item.startWarehouse}, end_area = #{item.endArea}, end_warehouse = #{item.endWarehouse}, via_stations = #{item.viaStations}, distance_km = #{item.distanceKm}, estimated_hours = #{item.estimatedHours}, route_group = #{item.routeGroup}, suitable_vehicle_type = #{item.suitableVehicleType}, suitable_tray_type = #{item.suitableTrayType}, route_status = #{item.routeStatus}, is_common = #{item.isCommon}, status = #{item.status}, create_by = #{item.createBy}, create_time = #{item.createTime}, update_by = #{item.updateBy}, update_time = #{item.updateTime}, remark = #{item.remark}, where id = #{item.id} delete from tms_route where id = #{id} delete from tms_route where id in #{id}