|
@@ -270,9 +270,10 @@
|
|
|
|
|
|
<!--获取算法基本信息 /*where a.share = '0' and a.is_deleted = '0'*/-->
|
|
<!--获取算法基本信息 /*where a.share = '0' and a.is_deleted = '0'*/-->
|
|
<select id="selectAlgorithmBaseInfoById" resultType="api.common.pojo.po.algorithm.AlgorithmPO">
|
|
<select id="selectAlgorithmBaseInfoById" resultType="api.common.pojo.po.algorithm.AlgorithmPO">
|
|
- select a.id, a.algorithm_name, a.description
|
|
|
|
|
|
+ select id, algorithm_name, description,share from(
|
|
|
|
+ select a.id, a.algorithm_name, a.description,a.share,a.modify_time
|
|
from algorithm a
|
|
from algorithm a
|
|
- where a.share = '0' and a.is_deleted = '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,jdbcType=VARCHAR}
|
|
</if>
|
|
</if>
|
|
@@ -282,6 +283,13 @@
|
|
<if test="uploadMode != null and uploadMode != ''">
|
|
<if test="uploadMode != null and uploadMode != ''">
|
|
and upload_mode = #{uploadMode,jdbcType=VARCHAR}
|
|
and upload_mode = #{uploadMode,jdbcType=VARCHAR}
|
|
</if>
|
|
</if>
|
|
|
|
+ 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'
|
|
|
|
+ <if test="uploadMode != null and uploadMode != ''">
|
|
|
|
+ and upload_mode = #{uploadMode,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ )c order by c.share ,c.modify_time desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--获取车辆基本信息-->
|
|
<!--获取车辆基本信息-->
|
|
@@ -296,9 +304,9 @@
|
|
|
|
|
|
<!--获取车辆配置信息-->
|
|
<!--获取车辆配置信息-->
|
|
<select id="selectConfigVehicle" resultType="api.common.pojo.po.model.ConfigPO">
|
|
<select id="selectConfigVehicle" resultType="api.common.pojo.po.model.ConfigPO">
|
|
- select id, config_name, vehicle_id, description
|
|
|
|
|
|
+ select id, config_name, vehicle_id, description,share
|
|
from model_config
|
|
from model_config
|
|
- where share = '0' and 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,jdbcType=VARCHAR}
|
|
</if>
|
|
</if>
|
|
@@ -307,6 +315,23 @@
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <!--获取车辆配置信息-->
|
|
|
|
+ <select id="selectConfigVehicle2" resultType="api.common.pojo.po.model.ConfigPO">
|
|
|
|
+ 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'
|
|
|
|
+ <if test="id != null and id != ''">
|
|
|
|
+ and id = #{id,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createUserId != null and createUserId !=''">
|
|
|
|
+ and create_user_id=#{createUserId,jdbcType=VARCHAR}
|
|
|
|
+ </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
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<!--查询车辆配置传感器信息-->
|
|
<!--查询车辆配置传感器信息-->
|
|
<select id="selectConfigSensor" parameterType="string" resultType="api.common.pojo.po.model.ConfigSensorPO">
|
|
<select id="selectConfigSensor" parameterType="string" resultType="api.common.pojo.po.model.ConfigSensorPO">
|
|
select sensor_type
|
|
select sensor_type
|
|
@@ -320,7 +345,8 @@
|
|
|
|
|
|
<!--获取场景包基本信息-->
|
|
<!--获取场景包基本信息-->
|
|
<select id="selectScenePackageBaseById" resultType="api.common.pojo.po.scene.ScenePackagePO">
|
|
<select id="selectScenePackageBaseById" resultType="api.common.pojo.po.scene.ScenePackagePO">
|
|
- select a.package_id,a.package_name, a.scene_num
|
|
|
|
|
|
+ select package_id,package_name, scene_num,share from(
|
|
|
|
+ select a.package_id,a.package_name, a.scene_num,a.share,a.modify_time
|
|
from scene_package a
|
|
from scene_package a
|
|
where a.share = '0' and a.is_deleted = '0'
|
|
where a.share = '0' and a.is_deleted = '0'
|
|
<if test="packageId != null and packageId != ''">
|
|
<if test="packageId != null and packageId != ''">
|
|
@@ -329,7 +355,9 @@
|
|
<if test="createUserId != null and createUserId !=''">
|
|
<if test="createUserId != null and createUserId !=''">
|
|
and create_user_id=#{createUserId,jdbcType=VARCHAR}
|
|
and create_user_id=#{createUserId,jdbcType=VARCHAR}
|
|
</if>
|
|
</if>
|
|
- order by modify_time desc
|
|
|
|
|
|
+ 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'
|
|
|
|
+ ) c order by c.share ,c.modify_time desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--根据id查询场景包信息-->
|
|
<!--根据id查询场景包信息-->
|