|
@@ -5,30 +5,35 @@
|
|
|
|
|
|
<insert id="saveStandardsRegulations" parameterType="api.common.pojo.po.scene.StandardsRegulationsPO">
|
|
|
insert into simulation.scene_standards_regulations
|
|
|
- (regulations_id,scene_name,regulation_type,standard_type,
|
|
|
- create_user_id,create_time,modify_user_id,modify_time,
|
|
|
- is_deleted,share,video_preview,video_address,osgb_address,xml_address,xodr_address,
|
|
|
- json_address,max_time)
|
|
|
- values (#{regulationsId,jdbcType=VARCHAR},#{sceneName,jdbcType=VARCHAR},#{regulationType,jdbcType=VARCHAR}, #{standardType,jdbcType=VARCHAR},
|
|
|
-
|
|
|
- #{createUserId,jdbcType=VARCHAR},#{createTime},#{modifyUserId,jdbcType=VARCHAR},#{modifyTime},
|
|
|
- #{isDeleted,jdbcType=VARCHAR}, #{share,jdbcType=VARCHAR},#{videoPreview,jdbcType=VARCHAR},#{videoAddress,jdbcType=VARCHAR},#{osgbAddress,jdbcType=VARCHAR},
|
|
|
- #{xmlAddress,jdbcType=VARCHAR}, #{xodrAddress,jdbcType=VARCHAR},#{jsonAddress,jdbcType=VARCHAR},#{maxTime,jdbcType=VARCHAR})
|
|
|
+ (regulations_id, scene_name, regulation_type, standard_type,
|
|
|
+ create_user_id, create_time, modify_user_id, modify_time,
|
|
|
+ is_deleted, share, video_preview, video_address, osgb_address, xml_address, xodr_address,
|
|
|
+ json_address, max_time)
|
|
|
+ values (#{regulationsId,jdbcType=VARCHAR}, #{sceneName,jdbcType=VARCHAR}, #{regulationType,jdbcType=VARCHAR},
|
|
|
+ #{standardType,jdbcType=VARCHAR},
|
|
|
+ #{createUserId,jdbcType=VARCHAR}, #{createTime}, #{modifyUserId,jdbcType=VARCHAR}, #{modifyTime},
|
|
|
+ #{isDeleted,jdbcType=VARCHAR}, #{share,jdbcType=VARCHAR}, #{videoPreview,jdbcType=VARCHAR},
|
|
|
+ #{videoAddress,jdbcType=VARCHAR}, #{osgbAddress,jdbcType=VARCHAR},
|
|
|
+ #{xmlAddress,jdbcType=VARCHAR}, #{xodrAddress,jdbcType=VARCHAR}, #{jsonAddress,jdbcType=VARCHAR},
|
|
|
+ #{maxTime,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="saveStandardsRegulationsList" parameterType="java.util.List">
|
|
|
insert into simulation.scene_standards_regulations
|
|
|
(regulations_id,scene_name,regulation_type,standard_type,
|
|
|
- create_user_id,create_time,modify_user_id,modify_time,
|
|
|
- is_deleted,share,video_preview,video_address,osgb_address,xml_address,xodr_address,
|
|
|
+ create_user_id,create_time,modify_user_id,modify_time,
|
|
|
+ is_deleted,share,video_preview,video_address,osgb_address,xml_address,xodr_address,
|
|
|
json_address,max_time)
|
|
|
values
|
|
|
<foreach collection="list" index="index" item="item" separator=",">
|
|
|
- (#{item.regulationsId,jdbcType=VARCHAR},#{item.sceneName,jdbcType=VARCHAR},#{item.regulationType,jdbcType=VARCHAR}, #{item.standardType,jdbcType=VARCHAR},
|
|
|
+ (#{item.regulationsId,jdbcType=VARCHAR},#{item.sceneName,jdbcType=VARCHAR},#{item.regulationType,jdbcType=VARCHAR},
|
|
|
+ #{item.standardType,jdbcType=VARCHAR},
|
|
|
|
|
|
#{item.createUserId,jdbcType=VARCHAR},#{item.createTime},#{item.modifyUserId,jdbcType=VARCHAR},#{item.modifyTime},
|
|
|
- #{item.isDeleted,jdbcType=VARCHAR}, #{item.share,jdbcType=VARCHAR},#{item.videoPreview,jdbcType=VARCHAR},#{item.videoAddress,jdbcType=VARCHAR},#{item.osgbAddress,jdbcType=VARCHAR},
|
|
|
- #{item.xmlAddress,jdbcType=VARCHAR}, #{item.xodrAddress,jdbcType=VARCHAR},#{item.jsonAddress,jdbcType=VARCHAR},#{item.maxTime,jdbcType=VARCHAR})
|
|
|
+ #{item.isDeleted,jdbcType=VARCHAR},
|
|
|
+ #{item.share,jdbcType=VARCHAR},#{item.videoPreview,jdbcType=VARCHAR},#{item.videoAddress,jdbcType=VARCHAR},#{item.osgbAddress,jdbcType=VARCHAR},
|
|
|
+ #{item.xmlAddress,jdbcType=VARCHAR},
|
|
|
+ #{item.xodrAddress,jdbcType=VARCHAR},#{item.jsonAddress,jdbcType=VARCHAR},#{item.maxTime,jdbcType=VARCHAR})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
@@ -42,9 +47,9 @@
|
|
|
xml_address,xodr_address,json_address,video_preview,max_time
|
|
|
from simulation.scene_standards_regulations
|
|
|
<where>
|
|
|
- (is_deleted = '0'
|
|
|
- <if test=
|
|
|
- "sceneName != null and sceneName != ''">
|
|
|
+ (is_deleted = '0'
|
|
|
+ <if test=
|
|
|
+ "sceneName != null and sceneName != ''">
|
|
|
and scene_name like CONCAT('%',#{sceneName,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="regulationType != null and regulationType.size()>0">
|
|
@@ -78,7 +83,7 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- )
|
|
|
+ )
|
|
|
<if test="label != null and label.size()>0">
|
|
|
or (regulation_type in
|
|
|
<foreach collection="label" item="item" index="index"
|
|
@@ -88,7 +93,7 @@
|
|
|
and is_deleted = '0')
|
|
|
</if>
|
|
|
</where>
|
|
|
- order by modify_time desc
|
|
|
+ order by modify_time desc
|
|
|
|
|
|
</select>
|
|
|
|
|
@@ -111,7 +116,7 @@
|
|
|
</if>
|
|
|
|
|
|
<if test="label != null and label.size()>0">
|
|
|
- and regulation_type in
|
|
|
+ and regulation_type in
|
|
|
<foreach collection="label" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
@@ -139,26 +144,31 @@
|
|
|
|
|
|
<select id="queryStandardsRegulationsByName" parameterType="java.lang.String"
|
|
|
resultType="java.lang.String">
|
|
|
- select
|
|
|
- regulations_id
|
|
|
+ select regulations_id
|
|
|
from simulation.scene_standards_regulations
|
|
|
where is_deleted = '0'
|
|
|
- and scene_name =#{sceneName,jdbcType=VARCHAR}
|
|
|
+ and scene_name = #{sceneName,jdbcType=VARCHAR}
|
|
|
|
|
|
</select>
|
|
|
|
|
|
<update id="updateStandardsRegulations" parameterType="api.common.pojo.po.scene.StandardsRegulationsPO">
|
|
|
update simulation.scene_standards_regulations
|
|
|
- set scene_name=#{sceneName},regulation_type=#{regulationType},
|
|
|
- standard_type=#{standardType},modify_user_id=#{modifyUserId},
|
|
|
- modify_time=#{modifyTime},video_address=#{videoAddress},
|
|
|
- osgb_address=#{osgbAddress},xml_address=#{xmlAddress},
|
|
|
- xodr_address=#{xodrAddress},json_address=#{jsonAddress},max_time=#{maxTime}
|
|
|
+ set scene_name=#{sceneName},
|
|
|
+ regulation_type=#{regulationType},
|
|
|
+ standard_type=#{standardType},
|
|
|
+ modify_user_id=#{modifyUserId},
|
|
|
+ modify_time=#{modifyTime},
|
|
|
+ video_address=#{videoAddress},
|
|
|
+ osgb_address=#{osgbAddress},
|
|
|
+ xml_address=#{xmlAddress},
|
|
|
+ xodr_address=#{xodrAddress},
|
|
|
+ json_address=#{jsonAddress},
|
|
|
+ max_time=#{maxTime}
|
|
|
where regulations_id = #{regulationsId,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateStandardsRegulationsList" parameterType="java.util.List">
|
|
|
<foreach collection="list" index="index" item="item" separator=";">
|
|
|
- update simulation.scene_standards_regulations
|
|
|
+ update simulation.scene_standards_regulations
|
|
|
set scene_name=#{item.sceneName},regulation_type=#{item.regulationType},
|
|
|
standard_type=#{item.standardType},modify_user_id=#{item.modifyUserId},
|
|
|
modify_time=#{item.modifyTime},video_address=#{item.videoAddress},
|
|
@@ -179,7 +189,8 @@
|
|
|
FROM system_scene_package p
|
|
|
JOIN system_user_scene u on p.id = u.package_id and u.is_deleted = '0' and p.is_deleted = '0'
|
|
|
JOIN system_scene_package_sublist s on p.id = s.scene_and_package
|
|
|
- where scene_type='2' and s.is_deleted = '0' and user_id=#{userId} group by s.scene_name)qx join scene_standards_regulations bz on qx.scene_name=bz.scene_name) dd
|
|
|
+ where scene_type='2' and s.is_deleted = '0' and user_id=#{userId} group by s.scene_name)qx join
|
|
|
+ scene_standards_regulations bz on qx.scene_name=bz.scene_name) dd
|
|
|
<where>
|
|
|
(is_deleted = '0'
|
|
|
<if test=
|
|
@@ -231,7 +242,8 @@
|
|
|
|
|
|
</select>
|
|
|
|
|
|
- <select id="queryStandardsRegulationsListByBqAndQx" parameterType="api.common.pojo.param.scene.StandardsRegulationsParam"
|
|
|
+ <select id="queryStandardsRegulationsListByBqAndQx"
|
|
|
+ parameterType="api.common.pojo.param.scene.StandardsRegulationsParam"
|
|
|
resultType="api.common.pojo.po.scene.StandardsRegulationsPO">
|
|
|
select
|
|
|
regulations_id,scene_name,regulation_type,standard_type,
|
|
@@ -242,7 +254,8 @@
|
|
|
FROM system_scene_package p
|
|
|
JOIN system_user_scene u on p.id = u.package_id and u.is_deleted = '0' and p.is_deleted = '0'
|
|
|
JOIN system_scene_package_sublist s on p.id = s.scene_and_package
|
|
|
- where scene_type='2' and s.is_deleted = '0' and user_id=#{userId} group by s.scene_name)qx join scene_standards_regulations bz on qx.scene_name=bz.scene_name) dd
|
|
|
+ where scene_type='2' and s.is_deleted = '0' and user_id=#{userId} group by s.scene_name)qx join
|
|
|
+ scene_standards_regulations bz on qx.scene_name=bz.scene_name) dd
|
|
|
<where>
|
|
|
is_deleted = '0'
|
|
|
<if test="AllIds != null and AllIds.size()>0">
|