|
@@ -65,8 +65,7 @@
|
|
|
#{isDeleted,jdbcType=VARCHAR},
|
|
|
#{algorithmArray,jdbcType=VARCHAR},
|
|
|
#{vehicleArray,jdbcType=VARCHAR},
|
|
|
- #{sceneArray,jdbcType=VARCHAR}
|
|
|
- )
|
|
|
+ #{sceneArray,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
|
|
|
<!--修改-->
|
|
@@ -81,9 +80,9 @@
|
|
|
max_simulation_time = #{maxSimulationTime,jdbcType=BIGINT},
|
|
|
parallelism = #{parallelism,jdbcType=VARCHAR},
|
|
|
is_choice_gpu = #{isChoiceGpu,jdbcType=VARCHAR},
|
|
|
- algorithm_array = #{algorithmArray,jdbcType=VARCHAR},
|
|
|
+ algorithm_array = #{algorithmArray,jdbcType=VARCHAR},
|
|
|
vehicle_array = #{vehicleArray,jdbcType=VARCHAR},
|
|
|
- scene_array = #{sceneArray,jdbcType=VARCHAR}
|
|
|
+ scene_array = #{sceneArray,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
and is_deleted = '0'
|
|
|
</update>
|
|
@@ -286,9 +285,9 @@
|
|
|
<!--获取算法基本信息 /*where a.share = '0' and a.is_deleted = '0'*/-->
|
|
|
<select id="selectAlgorithmBaseInfoById" resultType="api.common.pojo.po.algorithm.AlgorithmPO">
|
|
|
select id, algorithm_name, description,share from(
|
|
|
- select a.id, a.algorithm_name, a.description,a.share,a.modify_time
|
|
|
+ select a.id, a.algorithm_name, a.description,a.share,a.modify_time
|
|
|
from algorithm a
|
|
|
- where a.is_deleted = '0' and share='0'
|
|
|
+ where a.is_deleted = '0' and share='0'
|
|
|
<if test="id != null and id != ''">
|
|
|
and a.id = #{id,jdbcType=VARCHAR}
|
|
|
</if>
|
|
@@ -298,9 +297,9 @@
|
|
|
<if test="uploadMode != null and uploadMode != ''">
|
|
|
and upload_mode = #{uploadMode,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- union select b.id, b.algorithm_name,b.description,b.share,b.modify_time
|
|
|
+ union select b.id, b.algorithm_name,b.description,b.share,b.modify_time
|
|
|
from algorithm b
|
|
|
- where b.is_deleted = '0' and b.share='1'
|
|
|
+ where b.is_deleted = '0' and b.share='1'
|
|
|
<if test="uploadMode != null and uploadMode != ''">
|
|
|
and upload_mode = #{uploadMode,jdbcType=VARCHAR}
|
|
|
</if>
|
|
@@ -321,7 +320,7 @@
|
|
|
<select id="selectConfigVehicle" resultType="api.common.pojo.po.model.ConfigPO">
|
|
|
select id, config_name, vehicle_id, description,share
|
|
|
from model_config
|
|
|
- where is_deleted = '0'
|
|
|
+ where is_deleted = '0'
|
|
|
<if test="id != null and id != ''">
|
|
|
and id = #{id,jdbcType=VARCHAR}
|
|
|
</if>
|
|
@@ -335,7 +334,7 @@
|
|
|
select id, config_name, vehicle_id, description,share from(
|
|
|
select id, config_name, vehicle_id, description,share,modify_time
|
|
|
from model_config
|
|
|
- where is_deleted = '0' and share='0'
|
|
|
+ where is_deleted = '0' and share='0'
|
|
|
<if test="id != null and id != ''">
|
|
|
and id = #{id,jdbcType=VARCHAR}
|
|
|
</if>
|
|
@@ -344,7 +343,7 @@
|
|
|
</if>
|
|
|
union select id, config_name, vehicle_id, description,share,modify_time
|
|
|
from model_config
|
|
|
- where is_deleted = '0' and share='1')c order by c.share ,c.modify_time desc
|
|
|
+ where is_deleted = '0' and share='1')c order by c.share ,c.modify_time desc
|
|
|
</select>
|
|
|
|
|
|
<!--查询车辆配置传感器信息-->
|
|
@@ -460,7 +459,8 @@
|
|
|
</select>
|
|
|
|
|
|
<!--根据场景包id获取场景子集-->
|
|
|
- <select id="selectSubSceneByPid" parameterType="string" resultType="api.common.pojo.vo.project.ScenePackageSubListVO">
|
|
|
+ <select id="selectSubSceneByPid" parameterType="string"
|
|
|
+ resultType="api.common.pojo.vo.project.ScenePackageSubListVO">
|
|
|
select sublist_id,
|
|
|
sublist_name,
|
|
|
scene_num,
|
|
@@ -700,7 +700,7 @@
|
|
|
<select id="selectAlgorithmBaseInfoByIdSy" resultType="api.common.pojo.po.algorithm.AlgorithmPO">
|
|
|
select id, algorithm_name, description,share,modify_time
|
|
|
from algorithm
|
|
|
- where is_deleted = '0' and share='0'
|
|
|
+ where is_deleted = '0' and share='0'
|
|
|
<if test="id != null and id != ''">
|
|
|
and id = #{id,jdbcType=VARCHAR}
|
|
|
</if>
|
|
@@ -710,31 +710,36 @@
|
|
|
<if test="uploadMode != null and uploadMode != ''">
|
|
|
and upload_mode = #{uploadMode,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- order by modify_time desc
|
|
|
+ order by modify_time desc
|
|
|
</select>
|
|
|
<!--获取算法基本信息 /*where a.share = '0' and a.is_deleted = '0'*/-->
|
|
|
<select id="selectAlgorithmBaseInfoByIdGy" resultType="api.common.pojo.po.algorithm.AlgorithmPO">
|
|
|
|
|
|
- select id, algorithm_name,description,share,modify_time
|
|
|
+ select id, algorithm_name,description,share,modify_time
|
|
|
from algorithm
|
|
|
- where is_deleted = '0' and share='1'
|
|
|
+ where is_deleted = '0' and share='1'
|
|
|
<if test="uploadMode != null and uploadMode != ''">
|
|
|
and upload_mode = #{uploadMode,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- order by modify_time desc
|
|
|
+ order by modify_time desc
|
|
|
</select>
|
|
|
|
|
|
<!--获取车辆配置信息-->
|
|
|
<select id="selectConfigVehicleGy" resultType="api.common.pojo.po.model.ConfigPO">
|
|
|
- select a.id, a.config_name, a.vehicle_id, a.description,a.share,a.modify_time
|
|
|
- from model_config a left join model_vehicle b on a.vehicle_id=b.id
|
|
|
- where a.is_deleted = '0' and a.share='1' and b.is_deleted='0' order by a.modify_time desc
|
|
|
+ select a.id, a.config_name, a.vehicle_id, a.description, a.share, a.modify_time
|
|
|
+ from model_config a
|
|
|
+ left join model_vehicle b on a.vehicle_id = b.id
|
|
|
+ where a.is_deleted = '0'
|
|
|
+ and a.is_unavailable = '0'
|
|
|
+ and a.share = '1'
|
|
|
+ and b.is_deleted = '0'
|
|
|
+ order by a.modify_time desc
|
|
|
</select>
|
|
|
<select id="selectConfigVehicleSy" resultType="api.common.pojo.po.model.ConfigPO">
|
|
|
|
|
|
select a.id, a.config_name, a.vehicle_id, a.description,a.share,a.modify_time
|
|
|
from model_config a left join model_vehicle b on a.vehicle_id=b.id
|
|
|
- where a.is_deleted = '0' and a.share='0' and b.is_deleted='0'
|
|
|
+ where a.is_deleted = '0' and a.is_unavailable = '0' and a.share='0' and b.is_deleted='0'
|
|
|
<if test="id != null and id != ''">
|
|
|
and a.id = #{id,jdbcType=VARCHAR}
|
|
|
</if>
|
|
@@ -746,9 +751,12 @@
|
|
|
<!--获取场景包基本信息-->
|
|
|
<select id="selectScenePackageBaseByIdGy" resultType="api.common.pojo.po.scene.ScenePackagePO">
|
|
|
|
|
|
- select package_id,package_name, scene_num,share,modify_time
|
|
|
- from scene_package where share = '1' and is_deleted = '0' and is_unavailable = '0'
|
|
|
- order by modify_time desc
|
|
|
+ select package_id, package_name, scene_num, share, modify_time
|
|
|
+ from scene_package
|
|
|
+ where share = '1'
|
|
|
+ and is_deleted = '0'
|
|
|
+ and is_unavailable = '0'
|
|
|
+ order by modify_time desc
|
|
|
</select>
|
|
|
<!--获取场景包基本信息-->
|
|
|
<select id="selectScenePackageBaseByIdSy" resultType="api.common.pojo.po.scene.ScenePackagePO">
|