insert into inspection_route_point_rel(
inspection_id,inspection_route_id,point_end_time,point_start_time,sort_number,community_id,irp_rel_id
) values (
#{inspectionId},#{inspectionRouteId},#{pointEndTime},#{pointStartTime},#{sortNumber},#{communityId},#{irpRelId}
)
update inspection_route_point_rel t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.inspection_id= #{inspectionId}
, t.inspection_route_id= #{inspectionRouteId}
, t.point_end_time= #{pointEndTime}
, t.point_start_time= #{pointStartTime}
, t.sort_number= #{sortNumber}
, t.community_id= #{communityId}
where 1=1
and t.irp_rel_id= #{irpRelId}