|
@@ -4,43 +4,45 @@
|
|
|
|
|
|
<insert id="saveScenePackageSublist" parameterType="api.common.pojo.po.scene.ScenePackageSublistPO">
|
|
|
insert into simulation.scene_package_sublist
|
|
|
- (sublist_id,sublist_name,weight,rules_name,package_and_rules,
|
|
|
- scene_natural_ids,scene_traffic_ids,scene_statue_ids,scene_generalization_ids
|
|
|
+ (sublist_id,sublist_name,weight,rule_name,package_and_rules,
|
|
|
+ scene_natural_ids,scene_traffic_ids,scene_statue_ids,scene_generalization_ids,
|
|
|
scene_num,parent_id,root_id,seq,package_level,remarks,
|
|
|
create_user_id,create_time,modify_user_id,modify_time,
|
|
|
is_deleted,share)
|
|
|
- values (#{sublistId,jdbcType=VARCHAR},#{sublistName,jdbcType=VARCHAR},#{weight,jdbcType=VARCHAR},#{rulesName,jdbcType=VARCHAR},
|
|
|
+ values (#{sublistId,jdbcType=VARCHAR},#{sublistName,jdbcType=VARCHAR},#{weight,jdbcType=VARCHAR},#{ruleName,jdbcType=VARCHAR},
|
|
|
#{packageAndRules,jdbcType=VARCHAR},
|
|
|
#{sceneNaturalIds}, #{sceneTrafficIds}, #{sceneStatueIds}, #{sceneGeneralizationIds},
|
|
|
#{sceneNum},#{parentId,jdbcType=VARCHAR},#{rootId,jdbcType=VARCHAR},#{seq},
|
|
|
- #{packageLevel},#{remarks,jdbcType=VARCHAR},
|
|
|
+ #{packageLevel},#{remarks},
|
|
|
#{createUserId,jdbcType=VARCHAR},#{createTime},#{modifyUserId,jdbcType=VARCHAR},#{modifyTime},
|
|
|
#{isDeleted,jdbcType=VARCHAR}, #{share,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
<insert id="saveScenePackageSublistAll" parameterType="java.util.List">
|
|
|
- <foreach collection="list" index="index" item="item" separator=";">
|
|
|
- insert into simulation.scene_package_sublist
|
|
|
- (sublist_id,sublist_name,weight,rules_name,package_and_rules,
|
|
|
- scene_natural_ids,scene_traffic_ids,scene_statue_ids,scene_generalization_ids
|
|
|
- scene_num,parent_id,root_id,seq,package_level,remarks,
|
|
|
- create_user_id,create_time,modify_user_id,modify_time,
|
|
|
- is_deleted,share)
|
|
|
- values (#{sublistId,jdbcType=VARCHAR},#{sublistName,jdbcType=VARCHAR},#{weight,jdbcType=VARCHAR},#{rulesName,jdbcType=VARCHAR},
|
|
|
- #{packageAndRules,jdbcType=VARCHAR},
|
|
|
- #{sceneNaturalIds}, #{sceneTrafficIds}, #{sceneStatueIds}, #{sceneGeneralizationIds},
|
|
|
- #{sceneNum},#{parentId,jdbcType=VARCHAR},#{rootId,jdbcType=VARCHAR},#{seq},
|
|
|
- #{packageLevel},#{remarks,jdbcType=VARCHAR},
|
|
|
- #{createUserId,jdbcType=VARCHAR},#{createTime},#{modifyUserId,jdbcType=VARCHAR},#{modifyTime},
|
|
|
- #{isDeleted,jdbcType=VARCHAR}, #{share,jdbcType=VARCHAR})
|
|
|
+
|
|
|
+ insert into simulation.scene_package_sublist
|
|
|
+ (sublist_id,sublist_name,weight,rule_name,package_and_rules,
|
|
|
+ scene_natural_ids,scene_traffic_ids,scene_statue_ids,scene_generalization_ids,
|
|
|
+ scene_num,parent_id,root_id,seq,package_level,remarks,
|
|
|
+ create_user_id,create_time,modify_user_id,modify_time,
|
|
|
+ is_deleted,share) values
|
|
|
+ <foreach collection="list" index="index" item="item" separator=",">
|
|
|
+ (#{item.sublistId,jdbcType=VARCHAR},#{item.sublistName,jdbcType=VARCHAR},#{item.weight,jdbcType=VARCHAR},#{item.ruleName,jdbcType=VARCHAR},
|
|
|
+ #{item.packageAndRules,jdbcType=VARCHAR},
|
|
|
+ #{item.sceneNaturalIds}, #{item.sceneTrafficIds}, #{item.sceneStatueIds}, #{item.sceneGeneralizationIds},
|
|
|
+ #{item.sceneNum},#{item.parentId,jdbcType=VARCHAR},#{item.rootId,jdbcType=VARCHAR},#{item.seq},
|
|
|
+ #{item.packageLevel},#{item.remarks},
|
|
|
+ #{item.createUserId,jdbcType=VARCHAR},#{item.createTime},#{item.modifyUserId,jdbcType=VARCHAR},#{item.modifyTime},
|
|
|
+ #{item.isDeleted,jdbcType=VARCHAR}, #{item.share,jdbcType=VARCHAR})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<select id="queryScenePackageSublistList" parameterType="api.common.pojo.po.scene.ScenePackageSublistPO" resultType="api.common.pojo.vo.scene.ScenePackageSublistVO">
|
|
|
select
|
|
|
a.sublist_id,a.sublist_name,a.weight,b.rule_name,
|
|
|
- a.scene_num,a.parent_id,a.root_id,a.package_level,a.remarks,a.seq
|
|
|
+ a.scene_num,a.parent_id,a.root_id,a.package_level,a.remarks,a.seq,a.package_and_rules,
|
|
|
+ a.scene_natural_ids,a.scene_traffic_ids,a.scene_statue_ids,a.scene_generalization_ids
|
|
|
from simulation.scene_package_sublist as a left join simulation.scoring_rules as b on a.package_and_rules=b.rules_id
|
|
|
<where>
|
|
|
a.is_deleted = '0'
|
|
@@ -57,12 +59,12 @@
|
|
|
<if test="rootId != null and rootId != ''">
|
|
|
and a.root_id = #{rootId}
|
|
|
</if>
|
|
|
- order by a.seq
|
|
|
+ order by a.seq,a.create_time
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <update id="updateScenePackageSublist" parameterType="java.lang.String">
|
|
|
+ <update id="deleteScenePackageSublist" parameterType="java.lang.String">
|
|
|
update simulation.scene_package_sublist
|
|
|
set is_deleted='1'
|
|
|
where root_id = #{rootId,jdbcType=VARCHAR}
|