|
@@ -111,4 +111,65 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
+ <update id="deleteScenePackageSublistById" parameterType="api.common.pojo.param.scene.SceneDeleteParam">
|
|
|
+ update simulation.scene_package_sublist
|
|
|
+ <set>
|
|
|
+ <if test="sceneZrId != null and sceneZrId!=''">
|
|
|
+ replace(replace(replace(scene_natural_ids, concat(#{sceneZrId}, ','), ''), concat(',', #{sceneZrId}), ''),#{sceneZrId}, '')
|
|
|
+ </if>
|
|
|
+ <if test="sceneJtId != null and sceneJtId!=''">
|
|
|
+ replace(replace(replace(scene_traffic_ids, concat(#{sceneJtId}, ','), ''), concat(',', #{sceneJtId}), ''),#{sceneJtId}, '')
|
|
|
+ </if>
|
|
|
+ <if test="sceneBzId != null and sceneBzId!=''">
|
|
|
+ replace(replace(replace(scene_statue_ids, concat(#{sceneBzId}, ','), ''), concat(',', #{sceneBzId}), ''),#{sceneBzId}, '')
|
|
|
+ </if>
|
|
|
+ <if test="sceneFhId != null and sceneFhId!=''">
|
|
|
+ replace(replace(replace(scene_generalization_ids, concat(#{sceneFhId}, ','), ''), concat(',', #{sceneFhId}), ''),#{sceneFhId}, '')
|
|
|
+ </if>
|
|
|
+ <if test="modifyUserId != null and modifyUserId!=''">
|
|
|
+ modify_user_id = #{modifyUserId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modifyTime != null">
|
|
|
+ modify_time = #{modifyTime},
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </set>
|
|
|
+ where
|
|
|
+ is_deleted='0'
|
|
|
+ <if test="sceneZrId != null and sceneZrId != ''">
|
|
|
+ and scene_natural_ids like CONCAT('%',#{sceneZrId,jdbcType=VARCHAR},'%')
|
|
|
+ </if>
|
|
|
+ <if test="sceneJtId != null and sceneJtId != ''">
|
|
|
+ and scene_traffic_ids like CONCAT('%',#{sceneJtId,jdbcType=VARCHAR},'%')
|
|
|
+ </if>
|
|
|
+ <if test="sceneBzId != null and sceneBzId != ''">
|
|
|
+ and scene_statue_ids like CONCAT('%',#{sceneBzId,jdbcType=VARCHAR},'%')
|
|
|
+ </if>
|
|
|
+ <if test="sceneFhId != null and sceneFhId != ''">
|
|
|
+ and scene_generalization_ids like CONCAT('%',#{sceneFhId,jdbcType=VARCHAR},'%')
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="selectPackageIdById" parameterType="api.common.pojo.param.scene.SceneDeleteParam"
|
|
|
+ resultType="java.lang.String">
|
|
|
+ select root_id
|
|
|
+ from simulation.scene_package_sublist
|
|
|
+ <where>
|
|
|
+ is_deleted = '0'
|
|
|
+ <if test="sceneZrId != null and sceneZrId != ''">
|
|
|
+ and scene_natural_ids like CONCAT('%',#{sceneZrId,jdbcType=VARCHAR},'%')
|
|
|
+ </if>
|
|
|
+ <if test="sceneJtId != null and sceneJtId != ''">
|
|
|
+ and scene_traffic_ids like CONCAT('%',#{sceneJtId,jdbcType=VARCHAR},'%')
|
|
|
+ </if>
|
|
|
+ <if test="sceneBzId != null and sceneBzId != ''">
|
|
|
+ and scene_statue_ids like CONCAT('%',#{sceneBzId,jdbcType=VARCHAR},'%')
|
|
|
+ </if>
|
|
|
+ <if test="sceneFhId != null and sceneFhId != ''">
|
|
|
+ and scene_generalization_ids like CONCAT('%',#{sceneFhId,jdbcType=VARCHAR},'%')
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
</mapper>
|