|
@@ -7,23 +7,23 @@
|
|
(accident_id,scene_name,self_driving,target_driving,
|
|
(accident_id,scene_name,self_driving,target_driving,
|
|
self_reaction,conflict_behavior,conflict_type,
|
|
self_reaction,conflict_behavior,conflict_type,
|
|
create_user_id,create_time,modify_user_id,modify_time,
|
|
create_user_id,create_time,modify_user_id,modify_time,
|
|
- is_deleted,share,video_address,osgb_address,xml_address,xodr_address,
|
|
|
|
|
|
+ is_deleted,share,video_preview,video_address,osgb_address,xml_address,xodr_address,
|
|
json_address)
|
|
json_address)
|
|
values (#{accidentId,jdbcType=VARCHAR},#{sceneName,jdbcType=VARCHAR},#{selfDriving,jdbcType=VARCHAR}, #{targetDriving,jdbcType=VARCHAR},
|
|
values (#{accidentId,jdbcType=VARCHAR},#{sceneName,jdbcType=VARCHAR},#{selfDriving,jdbcType=VARCHAR}, #{targetDriving,jdbcType=VARCHAR},
|
|
#{selfReaction,jdbcType=VARCHAR}, #{conflictBehavior,jdbcType=VARCHAR},#{conflictType,jdbcType=VARCHAR},
|
|
#{selfReaction,jdbcType=VARCHAR}, #{conflictBehavior,jdbcType=VARCHAR},#{conflictType,jdbcType=VARCHAR},
|
|
|
|
|
|
#{createUserId,jdbcType=VARCHAR},#{createTime},#{modifyUserId,jdbcType=VARCHAR},#{modifyTime},
|
|
#{createUserId,jdbcType=VARCHAR},#{createTime},#{modifyUserId,jdbcType=VARCHAR},#{modifyTime},
|
|
- #{isDeleted,jdbcType=VARCHAR}, #{share,jdbcType=VARCHAR},#{videoAddress,jdbcType=VARCHAR},#{osgbAddress,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{isDeleted,jdbcType=VARCHAR}, #{share,jdbcType=VARCHAR},#{videoPreview,jdbcType=VARCHAR},#{videoAddress,jdbcType=VARCHAR},#{osgbAddress,jdbcType=VARCHAR},
|
|
#{xmlAddress,jdbcType=VARCHAR}, #{xodrAddress,jdbcType=VARCHAR},#{jsonAddress,jdbcType=VARCHAR})
|
|
#{xmlAddress,jdbcType=VARCHAR}, #{xodrAddress,jdbcType=VARCHAR},#{jsonAddress,jdbcType=VARCHAR})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
- <select id="querySceneAccidentList" parameterType="api.common.pojo.param.scene.SceneAccidentParam" resultType="api.common.pojo.po.scene.SceneNaturalPO">
|
|
|
|
|
|
+ <select id="querySceneAccidentList" parameterType="api.common.pojo.param.scene.SceneAccidentParam" resultType="api.common.pojo.po.scene.SceneAccidentPO">
|
|
select
|
|
select
|
|
accident_id,scene_name,self_driving,target_driving,
|
|
accident_id,scene_name,self_driving,target_driving,
|
|
self_reaction,conflict_behavior,conflict_type,
|
|
self_reaction,conflict_behavior,conflict_type,
|
|
create_user_id,create_time,modify_user_id,modify_time,
|
|
create_user_id,create_time,modify_user_id,modify_time,
|
|
- is_deleted,share,video_address,osgb_address,xml_address,xodr_address,
|
|
|
|
|
|
+ is_deleted,share,video_address,video_preview,osgb_address,xml_address,xodr_address,
|
|
json_address
|
|
json_address
|
|
from simulation.scene_accident
|
|
from simulation.scene_accident
|
|
<where>
|
|
<where>
|
|
@@ -32,35 +32,35 @@
|
|
and scene_name like CONCAT('%',#{sceneName,jdbcType=VARCHAR},'%')
|
|
and scene_name like CONCAT('%',#{sceneName,jdbcType=VARCHAR},'%')
|
|
</if>
|
|
</if>
|
|
|
|
|
|
- <if test="selfDriving != null and selfDriving != ''">
|
|
|
|
|
|
+ <if test="selfDriving != null and selfDriving.length != 0 ">
|
|
and self_driving in
|
|
and self_driving in
|
|
<foreach collection="selfDriving" item="item" index="index"
|
|
<foreach collection="selfDriving" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
- <if test="targetDriving != null and targetDriving != ''">
|
|
|
|
|
|
+ <if test="targetDriving != null and targetDriving.length != 0">
|
|
and target_driving in
|
|
and target_driving in
|
|
<foreach collection="targetDriving" item="item" index="index"
|
|
<foreach collection="targetDriving" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
- <if test="selfReaction != null and selfReaction != ''">
|
|
|
|
|
|
+ <if test="selfReaction != null and selfReaction.length != 0">
|
|
and self_reaction in
|
|
and self_reaction in
|
|
<foreach collection="selfReaction" item="item" index="index"
|
|
<foreach collection="selfReaction" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
- <if test="conflictBehavior != null and conflictBehavior != ''">
|
|
|
|
|
|
+ <if test="conflictBehavior != null and conflictBehavior.length != 0">
|
|
and conflict_behavior in
|
|
and conflict_behavior in
|
|
<foreach collection="conflictBehavior" item="item" index="index"
|
|
<foreach collection="conflictBehavior" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
- <if test="conflictType != null and conflictType != ''">
|
|
|
|
|
|
+ <if test="conflictType != null and conflictType.length != 0">
|
|
and conflict_type in
|
|
and conflict_type in
|
|
<foreach collection="conflictType" item="item" index="index"
|
|
<foreach collection="conflictType" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|