insert into simulation.scene_reference_lib
(scene_id, scene_name, main_behavior, other_behavior, weather,road_type,road_geometry_plane,road_geometry_vertical,
auto_drive_function, operation_area,scene_description,label,
create_user_id, create_time, modify_user_id, modify_time,
is_deleted, video_preview, video_address, osgb_address, xml_address, xodr_address,
json_address, max_time)
values (#{sceneId,jdbcType=VARCHAR},#{sceneName,jdbcType=VARCHAR}, #{mainBehavior,jdbcType=VARCHAR}, #{otherBehavior,jdbcType=VARCHAR},
#{weather,jdbcType=VARCHAR}, #{roadType,jdbcType=VARCHAR}, #{roadGeometryPlane,jdbcType=VARCHAR}, #{roadGeometryVertical,jdbcType=VARCHAR},
#{autoDriveFunction,jdbcType=VARCHAR}, #{operationArea,jdbcType=VARCHAR}, #{sceneDescription,jdbcType=VARCHAR}, #{label,jdbcType=VARCHAR},
#{createUserId,jdbcType=VARCHAR}, #{createTime}, #{modifyUserId,jdbcType=VARCHAR}, #{modifyTime},
#{isDeleted,jdbcType=VARCHAR}, #{videoPreview,jdbcType=VARCHAR},
#{videoAddress,jdbcType=VARCHAR}, #{osgbAddress,jdbcType=VARCHAR},
#{xmlAddress,jdbcType=VARCHAR}, #{xodrAddress,jdbcType=VARCHAR}, #{jsonAddress,jdbcType=VARCHAR},
#{maxTime,jdbcType=VARCHAR})
update simulation.scene_reference_lib
set scene_name=#{sceneName},
main_behavior=#{mainBehavior},
other_behavior=#{otherBehavior},
weather=#{weather},
road_type=#{roadType},
road_geometry_plane=#{roadGeometryPlane},
road_geometry_vertical=#{roadGeometryVertical},
auto_drive_function=#{autoDriveFunction},
operation_area=#{operationArea},
scene_description=#{sceneDescription},
label=#{label},
modify_user_id=#{modifyUserId},
modify_time=#{modifyTime},
video_address=#{videoAddress},
osgb_address=#{osgbAddress},
xml_address=#{xmlAddress},
xodr_address=#{xodrAddress},
json_address=#{jsonAddress},
video_preview=#{videoPreview},
max_time=#{maxTime}
where scene_id = #{sceneId,jdbcType=VARCHAR}
update scene_reference_lib
set is_deleted = '1',
modify_user_id = #{modifyUserId},
modify_time = #{modifyTime}
where is_deleted = '0' and scene_name in
#{item}