|
@@ -35,55 +35,57 @@
|
|
is_deleted,
|
|
is_deleted,
|
|
algorithm_array,
|
|
algorithm_array,
|
|
vehicle_array,
|
|
vehicle_array,
|
|
- scene_array)
|
|
|
|
- values (#{id,jdbcType=VARCHAR},
|
|
|
|
|
|
+ scene_array,
|
|
|
|
+ details)
|
|
|
|
+ values (#{id},
|
|
#{projectDate,jdbcType=INTEGER},
|
|
#{projectDate,jdbcType=INTEGER},
|
|
#{projectNum,jdbcType=INTEGER},
|
|
#{projectNum,jdbcType=INTEGER},
|
|
- #{projectId,jdbcType=VARCHAR},
|
|
|
|
- #{projectName,jdbcType=VARCHAR},
|
|
|
|
- #{projectDescribe,jdbcType=VARCHAR},
|
|
|
|
- #{algorithm,jdbcType=VARCHAR},
|
|
|
|
- #{algorithmType,jdbcType=VARCHAR},
|
|
|
|
- #{vehicle,jdbcType=VARCHAR},
|
|
|
|
- #{scene,jdbcType=VARCHAR},
|
|
|
|
- #{operationCycle,jdbcType=VARCHAR},
|
|
|
|
- #{parallelism,jdbcType=VARCHAR},
|
|
|
|
- #{ruleView,jdbcType=VARCHAR},
|
|
|
|
- #{isChoiceGpu,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{projectId},
|
|
|
|
+ #{projectName},
|
|
|
|
+ #{projectDescribe},
|
|
|
|
+ #{algorithm},
|
|
|
|
+ #{algorithmType},
|
|
|
|
+ #{vehicle},
|
|
|
|
+ #{scene},
|
|
|
|
+ #{operationCycle},
|
|
|
|
+ #{parallelism},
|
|
|
|
+ #{ruleView},
|
|
|
|
+ #{isChoiceGpu},
|
|
#{automaticRunTimes,jdbcType=BIGINT},
|
|
#{automaticRunTimes,jdbcType=BIGINT},
|
|
- #{lastRunTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{automaticRunState,jdbcType=VARCHAR},
|
|
|
|
- #{nowRunState,jdbcType=VARCHAR},
|
|
|
|
- #{evaluationLevel,jdbcType=VARCHAR},
|
|
|
|
- #{startTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{finishTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ #{lastRunTime},
|
|
|
|
+ #{automaticRunState},
|
|
|
|
+ #{nowRunState},
|
|
|
|
+ #{evaluationLevel},
|
|
|
|
+ #{startTime},
|
|
|
|
+ #{finishTime},
|
|
#{maxSimulationTime,jdbcType=BIGINT},
|
|
#{maxSimulationTime,jdbcType=BIGINT},
|
|
- #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{createUserId,jdbcType=VARCHAR},
|
|
|
|
- #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{modifyUserId,jdbcType=VARCHAR},
|
|
|
|
- #{isDeleted,jdbcType=VARCHAR},
|
|
|
|
- #{algorithmArray,jdbcType=VARCHAR},
|
|
|
|
- #{vehicleArray,jdbcType=VARCHAR},
|
|
|
|
- #{sceneArray,jdbcType=VARCHAR})
|
|
|
|
|
|
+ #{createTime},
|
|
|
|
+ #{createUserId},
|
|
|
|
+ #{modifyTime},
|
|
|
|
+ #{modifyUserId},
|
|
|
|
+ #{isDeleted},
|
|
|
|
+ #{algorithmArray},
|
|
|
|
+ #{vehicleArray},
|
|
|
|
+ #{sceneArray},
|
|
|
|
+ #{details})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!--修改-->
|
|
<!--修改-->
|
|
<update id="update" parameterType="api.common.pojo.po.project.SimulationManualProjectPO">
|
|
<update id="update" parameterType="api.common.pojo.po.project.SimulationManualProjectPO">
|
|
update simulation_manual_project
|
|
update simulation_manual_project
|
|
- set project_name = #{projectName,jdbcType=VARCHAR},
|
|
|
|
- project_describe = #{projectDescribe,jdbcType=VARCHAR},
|
|
|
|
- algorithm = #{algorithm,jdbcType=VARCHAR},
|
|
|
|
- algorithm_type = #{algorithmType,jdbcType=VARCHAR},
|
|
|
|
- vehicle = #{vehicle,jdbcType=VARCHAR},
|
|
|
|
- scene = #{scene,jdbcType=VARCHAR},
|
|
|
|
|
|
+ set project_name = #{projectName},
|
|
|
|
+ project_describe = #{projectDescribe},
|
|
|
|
+ algorithm = #{algorithm},
|
|
|
|
+ algorithm_type = #{algorithmType},
|
|
|
|
+ vehicle = #{vehicle},
|
|
|
|
+ scene = #{scene},
|
|
max_simulation_time = #{maxSimulationTime,jdbcType=BIGINT},
|
|
max_simulation_time = #{maxSimulationTime,jdbcType=BIGINT},
|
|
- parallelism = #{parallelism,jdbcType=VARCHAR},
|
|
|
|
- is_choice_gpu = #{isChoiceGpu,jdbcType=VARCHAR},
|
|
|
|
- algorithm_array = #{algorithmArray,jdbcType=VARCHAR},
|
|
|
|
- vehicle_array = #{vehicleArray,jdbcType=VARCHAR},
|
|
|
|
- scene_array = #{sceneArray,jdbcType=VARCHAR}
|
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ parallelism = #{parallelism},
|
|
|
|
+ is_choice_gpu = #{isChoiceGpu},
|
|
|
|
+ algorithm_array = #{algorithmArray},
|
|
|
|
+ vehicle_array = #{vehicleArray},
|
|
|
|
+ scene_array = #{sceneArray}
|
|
|
|
+ where id = #{id}
|
|
and is_deleted = '0'
|
|
and is_deleted = '0'
|
|
</update>
|
|
</update>
|
|
|
|
|
|
@@ -94,7 +96,8 @@
|
|
from simulation_manual_project
|
|
from simulation_manual_project
|
|
where project_date = #{nowRq,jdbcType=INTEGER}
|
|
where project_date = #{nowRq,jdbcType=INTEGER}
|
|
and is_deleted = '0'
|
|
and is_deleted = '0'
|
|
- order by project_date desc, project_num desc limit 1
|
|
|
|
|
|
+ order by project_date desc, project_num desc
|
|
|
|
+ limit 1
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--查询项目列表-->
|
|
<!--查询项目列表-->
|
|
@@ -104,10 +107,10 @@
|
|
<where>
|
|
<where>
|
|
is_deleted = '0'
|
|
is_deleted = '0'
|
|
<if test="projectId != null and projectId != ''">
|
|
<if test="projectId != null and projectId != ''">
|
|
- and project_id like CONCAT('%',#{project_id,jdbcType=VARCHAR},'%')
|
|
|
|
|
|
+ and project_id like CONCAT('%',#{project_id},'%')
|
|
</if>
|
|
</if>
|
|
<if test="projectName != null and projectName != ''">
|
|
<if test="projectName != null and projectName != ''">
|
|
- and project_name like CONCAT('%',#{project_name,jdbcType=VARCHAR},'%')
|
|
|
|
|
|
+ and project_name like CONCAT('%',#{project_name},'%')
|
|
</if>
|
|
</if>
|
|
<if test="nowRunState != null and nowRunState != ''">
|
|
<if test="nowRunState != null and nowRunState != ''">
|
|
and now_run_state = #{nowRunState}
|
|
and now_run_state = #{nowRunState}
|
|
@@ -116,19 +119,19 @@
|
|
and evaluation_level = #{evaluationLevel}
|
|
and evaluation_level = #{evaluationLevel}
|
|
</if>
|
|
</if>
|
|
<if test="createTimeStart != null">
|
|
<if test="createTimeStart != null">
|
|
- and create_time >= #{createTimeStart,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ and create_time >= #{createTimeStart}
|
|
</if>
|
|
</if>
|
|
<if test="createTimeEnd != null">
|
|
<if test="createTimeEnd != null">
|
|
- and create_time <= #{createTimeEnd,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ and create_time <= #{createTimeEnd}
|
|
</if>
|
|
</if>
|
|
<if test="finishTimeStart != null">
|
|
<if test="finishTimeStart != null">
|
|
- and finish_time >= #{finishTimeStart,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ and finish_time >= #{finishTimeStart}
|
|
</if>
|
|
</if>
|
|
<if test="finishTimeEnd != null">
|
|
<if test="finishTimeEnd != null">
|
|
- and finish_time <= #{finishTimeEnd,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ and finish_time <= #{finishTimeEnd}
|
|
</if>
|
|
</if>
|
|
<if test="isDeleted != null and isDeleted != ''">
|
|
<if test="isDeleted != null and isDeleted != ''">
|
|
- and is_deleted = #{isDeleted,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and is_deleted = #{isDeleted}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
order by project_date desc, project_num desc, modify_time desc
|
|
order by project_date desc, project_num desc, modify_time desc
|
|
@@ -141,10 +144,10 @@
|
|
<where>
|
|
<where>
|
|
is_deleted = '0'
|
|
is_deleted = '0'
|
|
<if test="projectId != null and projectId != ''">
|
|
<if test="projectId != null and projectId != ''">
|
|
- and project_id like CONCAT('%',#{projectId,jdbcType=VARCHAR},'%')
|
|
|
|
|
|
+ and project_id like CONCAT('%',#{projectId},'%')
|
|
</if>
|
|
</if>
|
|
<if test="projectName != null and projectName != ''">
|
|
<if test="projectName != null and projectName != ''">
|
|
- and project_name like CONCAT('%',#{projectName,jdbcType=VARCHAR},'%')
|
|
|
|
|
|
+ and project_name like CONCAT('%',#{projectName},'%')
|
|
</if>
|
|
</if>
|
|
<if test="nowRunState != null and nowRunState != ''">
|
|
<if test="nowRunState != null and nowRunState != ''">
|
|
and now_run_state = #{nowRunState}
|
|
and now_run_state = #{nowRunState}
|
|
@@ -153,22 +156,22 @@
|
|
and evaluation_level = #{evaluationLevel}
|
|
and evaluation_level = #{evaluationLevel}
|
|
</if>
|
|
</if>
|
|
<if test="createTimeStart != null">
|
|
<if test="createTimeStart != null">
|
|
- and create_time >= #{createTimeStart,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ and create_time >= #{createTimeStart}
|
|
</if>
|
|
</if>
|
|
<if test="createTimeEnd != null">
|
|
<if test="createTimeEnd != null">
|
|
- and create_time <= #{createTimeEnd,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ and create_time <= #{createTimeEnd}
|
|
</if>
|
|
</if>
|
|
<if test="finishTimeStart != null">
|
|
<if test="finishTimeStart != null">
|
|
- and finish_time >= #{finishTimeStart,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ and finish_time >= #{finishTimeStart}
|
|
</if>
|
|
</if>
|
|
<if test="finishTimeEnd != null">
|
|
<if test="finishTimeEnd != null">
|
|
- and finish_time <= #{finishTimeEnd,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ and finish_time <= #{finishTimeEnd}
|
|
</if>
|
|
</if>
|
|
<if test="isDeleted != null and isDeleted != ''">
|
|
<if test="isDeleted != null and isDeleted != ''">
|
|
- and is_deleted = #{isDeleted,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and is_deleted = #{isDeleted}
|
|
</if>
|
|
</if>
|
|
<if test="createUserId != null and createUserId != ''">
|
|
<if test="createUserId != null and createUserId != ''">
|
|
- and create_user_id = #{createUserId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and create_user_id = #{createUserId}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
order by project_date desc, project_num desc, modify_time desc
|
|
order by project_date desc, project_num desc, modify_time desc
|
|
@@ -212,7 +215,7 @@
|
|
vehicle_array,
|
|
vehicle_array,
|
|
scene_array
|
|
scene_array
|
|
from simulation_manual_project
|
|
from simulation_manual_project
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where id = #{id}
|
|
and is_deleted = '0'
|
|
and is_deleted = '0'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -221,7 +224,7 @@
|
|
resultType="api.common.pojo.po.project.SimulationManualProjectPO">
|
|
resultType="api.common.pojo.po.project.SimulationManualProjectPO">
|
|
select *
|
|
select *
|
|
from simulation_manual_project
|
|
from simulation_manual_project
|
|
- where project_name = #{projectName,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where project_name = #{projectName}
|
|
and is_deleted = '0'
|
|
and is_deleted = '0'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -239,7 +242,7 @@
|
|
start_time
|
|
start_time
|
|
from simulation_manual_project
|
|
from simulation_manual_project
|
|
where is_deleted = '0'
|
|
where is_deleted = '0'
|
|
- and id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and id = #{id}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--删除-->
|
|
<!--删除-->
|
|
@@ -248,7 +251,7 @@
|
|
set is_deleted='1'
|
|
set is_deleted='1'
|
|
where id in
|
|
where id in
|
|
<foreach collection="array" open="(" separator="," close=")" item="id">
|
|
<foreach collection="array" open="(" separator="," close=")" item="id">
|
|
- #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ #{id}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
|
</update>
|
|
</update>
|
|
@@ -261,7 +264,7 @@
|
|
is_deleted='0' and
|
|
is_deleted='0' and
|
|
id in
|
|
id in
|
|
<foreach collection="array" open="(" separator="," close=")" item="id">
|
|
<foreach collection="array" open="(" separator="," close=")" item="id">
|
|
- #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ #{id}
|
|
</foreach>
|
|
</foreach>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -270,16 +273,16 @@
|
|
update simulation_manual_project
|
|
update simulation_manual_project
|
|
<set>
|
|
<set>
|
|
<if test="nowRunState != null and nowRunState != ''">
|
|
<if test="nowRunState != null and nowRunState != ''">
|
|
- now_run_state = #{nowRunState,jdbcType=VARCHAR},
|
|
|
|
|
|
+ now_run_state = #{nowRunState},
|
|
</if>
|
|
</if>
|
|
<if test="startTime != null">
|
|
<if test="startTime != null">
|
|
- start_time=#{startTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ start_time=#{startTime},
|
|
</if>
|
|
</if>
|
|
<if test="finishTime != null">
|
|
<if test="finishTime != null">
|
|
- finish_time=#{finishTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ finish_time=#{finishTime},
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|
|
- where id = #{id,jdbcType=VARCHAR} and is_deleted = '0'
|
|
|
|
|
|
+ where id = #{id} and is_deleted = '0'
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<!--获取算法基本信息 /*where a.share = '0' and a.is_deleted = '0'*/-->
|
|
<!--获取算法基本信息 /*where a.share = '0' and a.is_deleted = '0'*/-->
|
|
@@ -289,19 +292,19 @@
|
|
from algorithm a
|
|
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 != ''">
|
|
<if test="id != null and id != ''">
|
|
- and a.id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and a.id = #{id}
|
|
</if>
|
|
</if>
|
|
<if test="createUserId != null and createUserId !=''">
|
|
<if test="createUserId != null and createUserId !=''">
|
|
- and create_user_id=#{createUserId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and create_user_id=#{createUserId}
|
|
</if>
|
|
</if>
|
|
<if test="uploadMode != null and uploadMode != ''">
|
|
<if test="uploadMode != null and uploadMode != ''">
|
|
- and upload_mode = #{uploadMode,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and upload_mode = #{uploadMode}
|
|
</if>
|
|
</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
|
|
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 != ''">
|
|
<if test="uploadMode != null and uploadMode != ''">
|
|
- and upload_mode = #{uploadMode,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and upload_mode = #{uploadMode}
|
|
</if>
|
|
</if>
|
|
)c order by c.share ,c.modify_time desc
|
|
)c order by c.share ,c.modify_time desc
|
|
</select>
|
|
</select>
|
|
@@ -312,7 +315,7 @@
|
|
from model_vehicle a
|
|
from model_vehicle a
|
|
where is_deleted = '0'
|
|
where is_deleted = '0'
|
|
<if test="id != null and id != ''">
|
|
<if test="id != null and id != ''">
|
|
- and a.id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and a.id = #{id}
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -322,10 +325,10 @@
|
|
from model_config
|
|
from model_config
|
|
where is_deleted = '0'
|
|
where is_deleted = '0'
|
|
<if test="id != null and id != ''">
|
|
<if test="id != null and id != ''">
|
|
- and id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and id = #{id}
|
|
</if>
|
|
</if>
|
|
<if test="createUserId != null and createUserId !=''">
|
|
<if test="createUserId != null and createUserId !=''">
|
|
- and create_user_id=#{createUserId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and create_user_id=#{createUserId}
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -336,10 +339,10 @@
|
|
from model_config
|
|
from model_config
|
|
where is_deleted = '0' and share='0'
|
|
where is_deleted = '0' and share='0'
|
|
<if test="id != null and id != ''">
|
|
<if test="id != null and id != ''">
|
|
- and id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and id = #{id}
|
|
</if>
|
|
</if>
|
|
<if test="createUserId != null and createUserId !=''">
|
|
<if test="createUserId != null and createUserId !=''">
|
|
- and create_user_id=#{createUserId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and create_user_id=#{createUserId}
|
|
</if>
|
|
</if>
|
|
union select id, config_name, vehicle_id, description,share,modify_time
|
|
union select id, config_name, vehicle_id, description,share,modify_time
|
|
from model_config
|
|
from model_config
|
|
@@ -352,7 +355,7 @@
|
|
from relation_config_sensor
|
|
from relation_config_sensor
|
|
where is_deleted = '0'
|
|
where is_deleted = '0'
|
|
<if test="id != null and id != ''">
|
|
<if test="id != null and id != ''">
|
|
- and config_id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and config_id = #{id}
|
|
</if>
|
|
</if>
|
|
group by sensor_type
|
|
group by sensor_type
|
|
</select>
|
|
</select>
|
|
@@ -364,10 +367,10 @@
|
|
from scene_package a
|
|
from scene_package a
|
|
where a.share = '0' and a.is_deleted = '0' and is_unavailable = '0'
|
|
where a.share = '0' and a.is_deleted = '0' and is_unavailable = '0'
|
|
<if test="packageId != null and packageId != ''">
|
|
<if test="packageId != null and packageId != ''">
|
|
- and a.package_id = #{packageId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and a.package_id = #{packageId}
|
|
</if>
|
|
</if>
|
|
<if test="createUserId != null and createUserId !=''">
|
|
<if test="createUserId != null and createUserId !=''">
|
|
- and create_user_id=#{createUserId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and create_user_id=#{createUserId}
|
|
</if>
|
|
</if>
|
|
union select b.package_id,b.package_name, b.scene_num,b.share,b.modify_time
|
|
union select b.package_id,b.package_name, b.scene_num,b.share,b.modify_time
|
|
from scene_package b where b.share = '1' and b.is_deleted = '0'
|
|
from scene_package b where b.share = '1' and b.is_deleted = '0'
|
|
@@ -378,7 +381,7 @@
|
|
<select id="selectScenePackageInfoById" parameterType="string" resultType="api.common.pojo.po.scene.ScenePackagePO">
|
|
<select id="selectScenePackageInfoById" parameterType="string" resultType="api.common.pojo.po.scene.ScenePackagePO">
|
|
select a.package_id, a.package_name, a.scene_num
|
|
select a.package_id, a.package_name, a.scene_num
|
|
from scene_package a
|
|
from scene_package a
|
|
- where a.package_id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where a.package_id = #{id}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--查询车辆与传感器关联信息-->
|
|
<!--查询车辆与传感器关联信息-->
|
|
@@ -394,68 +397,68 @@
|
|
sensor_r,
|
|
sensor_r,
|
|
sensor_port
|
|
sensor_port
|
|
from relation_config_sensor
|
|
from relation_config_sensor
|
|
- where config_id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where config_id = #{id}
|
|
and is_deleted = '0'
|
|
and is_deleted = '0'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--摄像头基本信息-->
|
|
<!--摄像头基本信息-->
|
|
<select id="selectSensorCamera" parameterType="string" resultType="api.common.pojo.vo.project.SensorBaseInfoVo">
|
|
<select id="selectSensorCamera" parameterType="string" resultType="api.common.pojo.vo.project.SensorBaseInfoVo">
|
|
- select a.sensor_name, description as sensorDescription,share
|
|
|
|
|
|
+ select a.sensor_name, description as sensorDescription, share
|
|
from model_sensor_camera a
|
|
from model_sensor_camera a
|
|
- where a.id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where a.id = #{id}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--完美传感器基本信息-->
|
|
<!--完美传感器基本信息-->
|
|
<select id="selectSensorOgt" parameterType="string" resultType="api.common.pojo.vo.project.SensorBaseInfoVo">
|
|
<select id="selectSensorOgt" parameterType="string" resultType="api.common.pojo.vo.project.SensorBaseInfoVo">
|
|
- select a.sensor_name, description as sensorDescription,share
|
|
|
|
|
|
+ select a.sensor_name, description as sensorDescription, share
|
|
from model_sensor_ogt a
|
|
from model_sensor_ogt a
|
|
- where a.id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where a.id = #{id}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--激光雷达基本信息-->
|
|
<!--激光雷达基本信息-->
|
|
<select id="selectSensorLidar" parameterType="string" resultType="api.common.pojo.vo.project.SensorBaseInfoVo">
|
|
<select id="selectSensorLidar" parameterType="string" resultType="api.common.pojo.vo.project.SensorBaseInfoVo">
|
|
- select a.sensor_name, description as sensorDescription,share
|
|
|
|
|
|
+ select a.sensor_name, description as sensorDescription, share
|
|
from model_sensor_lidar a
|
|
from model_sensor_lidar a
|
|
- where a.id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where a.id = #{id}
|
|
</select>
|
|
</select>
|
|
<!--毫米波雷达基本信息-->
|
|
<!--毫米波雷达基本信息-->
|
|
<select id="selectSensorRadar" parameterType="string" resultType="api.common.pojo.vo.project.SensorBaseInfoVo">
|
|
<select id="selectSensorRadar" parameterType="string" resultType="api.common.pojo.vo.project.SensorBaseInfoVo">
|
|
- select a.name as sensor_name, description as sensorDescription,share
|
|
|
|
|
|
+ select a.name as sensor_name, description as sensorDescription, share
|
|
from model_sensor_radar a
|
|
from model_sensor_radar a
|
|
- where a.id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where a.id = #{id}
|
|
</select>
|
|
</select>
|
|
<!--gps基本信息-->
|
|
<!--gps基本信息-->
|
|
<select id="selectSensorGps" parameterType="string" resultType="api.common.pojo.vo.project.SensorBaseInfoVo">
|
|
<select id="selectSensorGps" parameterType="string" resultType="api.common.pojo.vo.project.SensorBaseInfoVo">
|
|
select a.sensor_name, description as sensorDescription
|
|
select a.sensor_name, description as sensorDescription
|
|
from model_sensor_gps a
|
|
from model_sensor_gps a
|
|
- where a.id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where a.id = #{id}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--查询交通事故场景信息-->
|
|
<!--查询交通事故场景信息-->
|
|
<select id="selectSceneAccidentById" parameterType="string" resultType="api.common.pojo.vo.project.SceneBaseInfoVo">
|
|
<select id="selectSceneAccidentById" parameterType="string" resultType="api.common.pojo.vo.project.SceneBaseInfoVo">
|
|
select scene_name
|
|
select scene_name
|
|
from scene_accident
|
|
from scene_accident
|
|
- where accident_id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where accident_id = #{id}
|
|
</select>
|
|
</select>
|
|
<!--查询自然场景信息-->
|
|
<!--查询自然场景信息-->
|
|
<select id="selectSceneNatural" parameterType="string" resultType="api.common.pojo.vo.project.SceneBaseInfoVo">
|
|
<select id="selectSceneNatural" parameterType="string" resultType="api.common.pojo.vo.project.SceneBaseInfoVo">
|
|
select natural_name
|
|
select natural_name
|
|
from scene_natural
|
|
from scene_natural
|
|
- where natural_id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where natural_id = #{id}
|
|
</select>
|
|
</select>
|
|
<!--查询泛化场景信息-->
|
|
<!--查询泛化场景信息-->
|
|
<select id="selectSceneGeneralDataById" parameterType="string"
|
|
<select id="selectSceneGeneralDataById" parameterType="string"
|
|
resultType="api.common.pojo.vo.project.SceneBaseInfoVo">
|
|
resultType="api.common.pojo.vo.project.SceneBaseInfoVo">
|
|
select scene_id scene_name
|
|
select scene_id scene_name
|
|
from scene_general_data
|
|
from scene_general_data
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where id = #{id}
|
|
</select>
|
|
</select>
|
|
<!--查询标准法规场景信息-->
|
|
<!--查询标准法规场景信息-->
|
|
<select id="selectSceneStandardsRegulations" parameterType="string"
|
|
<select id="selectSceneStandardsRegulations" parameterType="string"
|
|
resultType="api.common.pojo.vo.project.SceneBaseInfoVo">
|
|
resultType="api.common.pojo.vo.project.SceneBaseInfoVo">
|
|
select scene_name
|
|
select scene_name
|
|
from scene_standards_regulations
|
|
from scene_standards_regulations
|
|
- where regulations_id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where regulations_id = #{id}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--根据场景包id获取场景子集-->
|
|
<!--根据场景包id获取场景子集-->
|
|
@@ -471,7 +474,7 @@
|
|
scene_statue_ids,
|
|
scene_statue_ids,
|
|
scene_generalization_ids
|
|
scene_generalization_ids
|
|
from scene_package_sublist
|
|
from scene_package_sublist
|
|
- where parent_id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where parent_id = #{id}
|
|
order by seq
|
|
order by seq
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -488,15 +491,15 @@
|
|
scene_statue_ids,
|
|
scene_statue_ids,
|
|
scene_generalization_ids
|
|
scene_generalization_ids
|
|
from scene_package_sublist
|
|
from scene_package_sublist
|
|
- where sublist_id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where sublist_id = #{id}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--获取场景包下指标信息-->
|
|
<!--获取场景包下指标信息-->
|
|
- <select id="selectsublistByRootId" parameterType="api.common.pojo.param.project.SimulationManualProjectParam"
|
|
|
|
|
|
+ <select id="selectSublistByRootId" parameterType="api.common.pojo.param.project.SimulationManualProjectParam"
|
|
resultType="api.common.pojo.vo.project.SublistScoreVo">
|
|
resultType="api.common.pojo.vo.project.SublistScoreVo">
|
|
select sub.sublist_id as id, sub.parent_id, sub.sublist_name, sub.scene_num, sub.package_and_rules
|
|
select sub.sublist_id as id, sub.parent_id, sub.sublist_name, sub.scene_num, sub.package_and_rules
|
|
from scene_package_sublist sub
|
|
from scene_package_sublist sub
|
|
- where sub.root_id = #{packageId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where sub.root_id = #{packageId}
|
|
order by sub.seq
|
|
order by sub.seq
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -512,9 +515,9 @@
|
|
scene_statue_ids,
|
|
scene_statue_ids,
|
|
scene_generalization_ids
|
|
scene_generalization_ids
|
|
from scene_package_sublist
|
|
from scene_package_sublist
|
|
- where package_and_rules != null
|
|
|
|
- and package_and_rules != ''
|
|
|
|
- and root_id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where package_and_rules is not null
|
|
|
|
+ and package_and_rules != ''
|
|
|
|
+ and root_id = #{id}
|
|
and is_deleted = '0'
|
|
and is_deleted = '0'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -530,14 +533,14 @@
|
|
modify_time,
|
|
modify_time,
|
|
modify_user_id,
|
|
modify_user_id,
|
|
is_deleted)
|
|
is_deleted)
|
|
- values (#{id,jdbcType=VARCHAR}
|
|
|
|
- #{pId,jdbcType=VARCHAR}
|
|
|
|
- #{target,jdbcType=VARCHAR}
|
|
|
|
- #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{createUserId,jdbcType=VARCHAR},
|
|
|
|
- #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{modifyUserId,jdbcType=VARCHAR},
|
|
|
|
- #{isDeleted,jdbcType=VARCHAR})
|
|
|
|
|
|
+ values (#{id},
|
|
|
|
+ #{pId},
|
|
|
|
+ #{target},
|
|
|
|
+ #{createTime},
|
|
|
|
+ #{createUserId},
|
|
|
|
+ #{modifyTime},
|
|
|
|
+ #{modifyUserId},
|
|
|
|
+ #{isDeleted})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!--保存第一级指标信息-->
|
|
<!--保存第一级指标信息-->
|
|
@@ -552,33 +555,22 @@
|
|
modify_time,
|
|
modify_time,
|
|
modify_user_id,
|
|
modify_user_id,
|
|
is_deleted)
|
|
is_deleted)
|
|
- values (#{id,jdbcType=VARCHAR}
|
|
|
|
- #{pId,jdbcType=VARCHAR}
|
|
|
|
- #{target,jdbcType=VARCHAR}
|
|
|
|
- #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{createUserId,jdbcType=VARCHAR},
|
|
|
|
- #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{modifyUserId,jdbcType=VARCHAR},
|
|
|
|
- #{isDeleted,jdbcType=VARCHAR})
|
|
|
|
|
|
+ values (#{id},
|
|
|
|
+ #{pId},
|
|
|
|
+ #{target},
|
|
|
|
+ #{createTime},
|
|
|
|
+ #{createUserId},
|
|
|
|
+ #{modifyTime},
|
|
|
|
+ #{modifyUserId},
|
|
|
|
+ #{isDeleted})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
- <!--查询场景得分-->
|
|
|
|
- <select id="selectSceneScore" parameterType="api.common.pojo.po.project.SimulationMptSceneScorePO"
|
|
|
|
- resultType="api.common.pojo.po.project.SimulationMptSceneScorePO">
|
|
|
|
- select score, target_evaluate
|
|
|
|
- from simulation_mpt_scene_score
|
|
|
|
- where p_id = #{pId,jdbcType=VARCHAR} and is_deleted = '0'
|
|
|
|
- <if test="sceneId != null and sceneId != ''">
|
|
|
|
- and scene_id = #{sceneId,jdbcType=VARCHAR}
|
|
|
|
- </if>
|
|
|
|
- </select>
|
|
|
|
-
|
|
|
|
|
|
|
|
<!--获取人员信息-->
|
|
<!--获取人员信息-->
|
|
<select id="selectUserById" resultType="api.common.pojo.vo.project.SystemUserVo">
|
|
<select id="selectUserById" resultType="api.common.pojo.vo.project.SystemUserVo">
|
|
select *
|
|
select *
|
|
from system_user
|
|
from system_user
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where id = #{id}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--查询所有指标得分-->
|
|
<!--查询所有指标得分-->
|
|
@@ -595,10 +587,10 @@
|
|
las.score_explain
|
|
las.score_explain
|
|
from scene_package_sublist sub
|
|
from scene_package_sublist sub
|
|
left JOIN simulation_mpt_first_target_score fir
|
|
left JOIN simulation_mpt_first_target_score fir
|
|
- on fir.target = sub.sublist_id and fir.p_id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ on fir.target = sub.sublist_id and fir.p_id = #{id}
|
|
left JOIN simulation_mpt_last_target_score las
|
|
left JOIN simulation_mpt_last_target_score las
|
|
- on las.target = sub.sublist_id and las.p_id = #{id,jdbcType=VARCHAR}
|
|
|
|
- where sub.root_id = #{packageId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ on las.target = sub.sublist_id and las.p_id = #{id}
|
|
|
|
+ where sub.root_id = #{packageId}
|
|
and (fir.target is not null or las.target is not null)
|
|
and (fir.target is not null or las.target is not null)
|
|
order by sub.seq
|
|
order by sub.seq
|
|
</select>
|
|
</select>
|
|
@@ -622,10 +614,10 @@
|
|
las.target as lasTarget
|
|
las.target as lasTarget
|
|
from scene_package_sublist sub
|
|
from scene_package_sublist sub
|
|
left join simulation_mpt_first_target_score fir
|
|
left join simulation_mpt_first_target_score fir
|
|
- on fir.target = sub.sublist_id and fir.p_id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ on fir.target = sub.sublist_id and fir.p_id = #{id}
|
|
left join simulation_mpt_last_target_score las
|
|
left join simulation_mpt_last_target_score las
|
|
- on las.target = sub.sublist_id and las.p_id = #{id,jdbcType=VARCHAR}
|
|
|
|
- where sub.root_id = #{packageId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ on las.target = sub.sublist_id and las.p_id = #{id}
|
|
|
|
+ where sub.root_id = #{packageId}
|
|
order by sub.seq
|
|
order by sub.seq
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -650,7 +642,7 @@
|
|
where
|
|
where
|
|
is_deleted = '0' and evaluation_level is not null
|
|
is_deleted = '0' and evaluation_level is not null
|
|
<if test="createUserId != null and createUserId != ''">
|
|
<if test="createUserId != null and createUserId != ''">
|
|
- and create_user_id = #{createUserId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and create_user_id = #{createUserId}
|
|
</if>
|
|
</if>
|
|
group by evaluation_level
|
|
group by evaluation_level
|
|
</select>
|
|
</select>
|
|
@@ -662,26 +654,26 @@
|
|
algorithm_name,
|
|
algorithm_name,
|
|
upload_mode,
|
|
upload_mode,
|
|
is_deleted)
|
|
is_deleted)
|
|
- values (id = #{id,jdbcType=VARCHAR},
|
|
|
|
- algorithm_name = #{algorithmName,jdbcType=VARCHAR},
|
|
|
|
- upload_mode = #{uploadMode,jdbcType=VARCHAR},
|
|
|
|
- is_deleted = #{isDeleted,jdbcType=VARCHAR},)
|
|
|
|
|
|
+ values (id = #{id},
|
|
|
|
+ algorithm_name = #{algorithmName},
|
|
|
|
+ upload_mode = #{uploadMode},
|
|
|
|
+ is_deleted = #{isDeleted})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!--更新第三方算法信息到算法表-->
|
|
<!--更新第三方算法信息到算法表-->
|
|
<update id="updateOtherAlgorithm" parameterType="api.common.pojo.po.algorithm.AlgorithmPO">
|
|
<update id="updateOtherAlgorithm" parameterType="api.common.pojo.po.algorithm.AlgorithmPO">
|
|
update algorithm
|
|
update algorithm
|
|
- set algorithm_name=#{algorithmName,jdbcType=VARCHAR}
|
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ set algorithm_name=#{algorithmName}
|
|
|
|
+ where id = #{id}
|
|
and is_deleted = '0'
|
|
and is_deleted = '0'
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<!--查询第三方算法信息是否已经存在-->
|
|
<!--查询第三方算法信息是否已经存在-->
|
|
<select id="selectAlgorithmByQuery" parameterType="api.common.pojo.po.algorithm.AlgorithmPO"
|
|
<select id="selectAlgorithmByQuery" parameterType="api.common.pojo.po.algorithm.AlgorithmPO"
|
|
resultType="api.common.pojo.po.algorithm.AlgorithmPO">
|
|
resultType="api.common.pojo.po.algorithm.AlgorithmPO">
|
|
- select id, algorithmName
|
|
|
|
|
|
+ select id, algorithm_name
|
|
from algorithm
|
|
from algorithm
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where id = #{id}
|
|
and is_deleted = '0'
|
|
and is_deleted = '0'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -690,10 +682,11 @@
|
|
resultType="api.common.pojo.po.project.SimulationManualProjectPO">
|
|
resultType="api.common.pojo.po.project.SimulationManualProjectPO">
|
|
select id
|
|
select id
|
|
from simulation_manual_project
|
|
from simulation_manual_project
|
|
- where algorithm = #{algorithmId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where algorithm = #{algorithmId}
|
|
and is_deleted = '0'
|
|
and is_deleted = '0'
|
|
and now_run_state = '30'
|
|
and now_run_state = '30'
|
|
- order by finish_time desc limit 1
|
|
|
|
|
|
+ order by finish_time desc
|
|
|
|
+ limit 1
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--获取算法基本信息 /*where a.share = '0' and a.is_deleted = '0'*/-->
|
|
<!--获取算法基本信息 /*where a.share = '0' and a.is_deleted = '0'*/-->
|
|
@@ -702,13 +695,13 @@
|
|
from algorithm
|
|
from algorithm
|
|
where is_deleted = '0' and share='0'
|
|
where is_deleted = '0' and share='0'
|
|
<if test="id != null and id != ''">
|
|
<if test="id != null and id != ''">
|
|
- and id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and id = #{id}
|
|
</if>
|
|
</if>
|
|
<if test="createUserId != null and createUserId !=''">
|
|
<if test="createUserId != null and createUserId !=''">
|
|
- and create_user_id=#{createUserId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and create_user_id=#{createUserId}
|
|
</if>
|
|
</if>
|
|
<if test="uploadMode != null and uploadMode != ''">
|
|
<if test="uploadMode != null and uploadMode != ''">
|
|
- and upload_mode = #{uploadMode,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and upload_mode = #{uploadMode}
|
|
</if>
|
|
</if>
|
|
order by modify_time desc
|
|
order by modify_time desc
|
|
</select>
|
|
</select>
|
|
@@ -719,7 +712,7 @@
|
|
from algorithm
|
|
from algorithm
|
|
where is_deleted = '0' and share='1'
|
|
where is_deleted = '0' and share='1'
|
|
<if test="uploadMode != null and uploadMode != ''">
|
|
<if test="uploadMode != null and uploadMode != ''">
|
|
- and upload_mode = #{uploadMode,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and upload_mode = #{uploadMode}
|
|
</if>
|
|
</if>
|
|
order by modify_time desc
|
|
order by modify_time desc
|
|
</select>
|
|
</select>
|
|
@@ -741,10 +734,10 @@
|
|
from model_config a left join model_vehicle b on a.vehicle_id=b.id
|
|
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='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 != ''">
|
|
<if test="id != null and id != ''">
|
|
- and a.id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and a.id = #{id}
|
|
</if>
|
|
</if>
|
|
<if test="createUserId != null and createUserId !=''">
|
|
<if test="createUserId != null and createUserId !=''">
|
|
- and a.create_user_id=#{createUserId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and a.create_user_id=#{createUserId}
|
|
</if>
|
|
</if>
|
|
order by a.modify_time desc
|
|
order by a.modify_time desc
|
|
</select>
|
|
</select>
|
|
@@ -764,10 +757,10 @@
|
|
from scene_package
|
|
from scene_package
|
|
where share = '0' and is_deleted = '0' and is_unavailable = '0'
|
|
where share = '0' and is_deleted = '0' and is_unavailable = '0'
|
|
<if test="packageId != null and packageId != ''">
|
|
<if test="packageId != null and packageId != ''">
|
|
- and package_id = #{packageId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and package_id = #{packageId}
|
|
</if>
|
|
</if>
|
|
<if test="createUserId != null and createUserId !=''">
|
|
<if test="createUserId != null and createUserId !=''">
|
|
- and create_user_id=#{createUserId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ and create_user_id=#{createUserId}
|
|
</if>
|
|
</if>
|
|
order by modify_time desc
|
|
order by modify_time desc
|
|
</select>
|
|
</select>
|