|
@@ -9,7 +9,7 @@
|
|
|
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},#{ruleName,jdbcType=VARCHAR},
|
|
|
+ values (#{id,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},
|
|
@@ -28,7 +28,7 @@
|
|
|
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.id,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},
|
|
@@ -40,14 +40,14 @@
|
|
|
|
|
|
<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.sublist_id 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.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'
|
|
|
- <if test="sublistId != null and sublistId != ''">
|
|
|
- and a.sublist_id = #{sublistId,jdbcType=VARCHAR}
|
|
|
+ <if test="id != null and id != ''">
|
|
|
+ and a.sublist_id = #{id,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="sublistName != null and sublistName != ''">
|
|
|
and a.sublist_name = #{sublistName,jdbcType=VARCHAR}
|
|
@@ -72,13 +72,13 @@
|
|
|
where root_id = #{rootId,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
- <select id="queryBySublistName" parameterType="api.common.pojo.po.scene.ScenePackageSublistPO" resultType="api.common.pojo.vo.scene.ScenePackageNewVO">
|
|
|
- select sublist_id,sublist_name
|
|
|
+ <select id="queryBySublistName" parameterType="api.common.pojo.po.scene.ScenePackageSublistPO" resultType="api.common.pojo.vo.scene.ScenePackageSublistVO">
|
|
|
+ select sublist_id id,sublist_name
|
|
|
from simulation.scene_package_sublist
|
|
|
<where>
|
|
|
is_deleted = '0'
|
|
|
- <if test="sublistId != null and sublistId != ''">
|
|
|
- and a.sublist_id != #{sublistId,jdbcType=VARCHAR}
|
|
|
+ <if test="id != null and id != ''">
|
|
|
+ and a.sublist_id != #{id,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="sublistName != null and sublistName != ''">
|
|
|
and a.sublist_name = #{sublistName,jdbcType=VARCHAR}
|