Bläddra i källkod

项目运行状态

martin 2 år sedan
förälder
incheckning
fc34e9793b

+ 11 - 8
simulation-resource-server/src/main/java/com/css/simulation/resource/home/ctrl/HomePageCtrl.java

@@ -76,14 +76,6 @@ public class HomePageCtrl {
         return new ResponseBodyVO(ResponseBodyVO.Response.SUCCESS,list);
     }
 
-    /**
-     * 任务运行状态统计-饼图
-     */
-    @RequestMapping("selectRunTaskByState")
-    @ResponseBody
-    public ResponseBodyVO selectRunTaskByState() {
-        return simulationProjectService.selectRunTaskByState();
-    }
 
     /**
      * 项目运行状态统计-饼图
@@ -94,6 +86,17 @@ public class HomePageCtrl {
         return simulationProjectService.selectRunProjectByState();
     }
 
+    /**
+     * 任务运行状态统计-饼图
+     */
+    @RequestMapping("selectRunTaskByState")
+    @ResponseBody
+    public ResponseBodyVO selectRunTaskByState() {
+        return simulationProjectService.selectRunTaskByState();
+    }
+
+
+
     /**
      * 评测等级分布-饼图
      */

+ 223 - 188
simulation-resource-server/src/main/resources/mapper/project/SimulationProjectMapper.xml

@@ -1,86 +1,81 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
-<mapper namespace="com.css.simulation.resource.project.mapper.SimulationProjectMapper" >
+<mapper namespace="com.css.simulation.resource.project.mapper.SimulationProjectMapper">
 
 
     <!--添加-->
     <insert id="add" parameterType="api.common.pojo.po.project.SimulationManualProjectPo">
         insert into simulation_manual_project
-        (
-        id,
-        project_date,
-        project_num,
-        project_id,
-        project_name,
-        project_describe,
-        algorithm,
-        algorithm_type,
-        vehicle,
-        scene,
-        operation_cycle,
-        parallelism,
-        rule_view,
-        is_choice_gpu,
-        automatic_run_times,
-        last_run_time,
-        automatic_run_state,
-        now_run_state,
-        evaluation_level,
-        start_time,
-        finish_time,
-        max_simulation_time,
-        create_time,
-        create_user_id,
-        modify_time,
-        modify_user_id,
-        is_deleted
-        )
-        values
-        (
-        #{id,jdbcType=VARCHAR},
-        #{projectDate,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},
-        #{automaticRunTimes,jdbcType=BIGINT},
-        #{lastRunTime,jdbcType=TIMESTAMP},
-        #{automaticRunState,jdbcType=VARCHAR},
-        #{nowRunState,jdbcType=VARCHAR},
-        #{evaluationLevel,jdbcType=VARCHAR},
-        #{startTime,jdbcType=TIMESTAMP},
-        #{finishTime,jdbcType=TIMESTAMP},
-        #{maxSimulationTime,jdbcType=BIGINT},
-        #{createTime,jdbcType=TIMESTAMP},
-        #{createUserId,jdbcType=VARCHAR},
-        #{modifyTime,jdbcType=TIMESTAMP},
-        #{modifyUserId,jdbcType=VARCHAR},
-        #{isDeleted,jdbcType=VARCHAR}
-        )
+        (id,
+         project_date,
+         project_num,
+         project_id,
+         project_name,
+         project_describe,
+         algorithm,
+         algorithm_type,
+         vehicle,
+         scene,
+         operation_cycle,
+         parallelism,
+         rule_view,
+         is_choice_gpu,
+         automatic_run_times,
+         last_run_time,
+         automatic_run_state,
+         now_run_state,
+         evaluation_level,
+         start_time,
+         finish_time,
+         max_simulation_time,
+         create_time,
+         create_user_id,
+         modify_time,
+         modify_user_id,
+         is_deleted)
+        values (#{id,jdbcType=VARCHAR},
+                #{projectDate,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},
+                #{automaticRunTimes,jdbcType=BIGINT},
+                #{lastRunTime,jdbcType=TIMESTAMP},
+                #{automaticRunState,jdbcType=VARCHAR},
+                #{nowRunState,jdbcType=VARCHAR},
+                #{evaluationLevel,jdbcType=VARCHAR},
+                #{startTime,jdbcType=TIMESTAMP},
+                #{finishTime,jdbcType=TIMESTAMP},
+                #{maxSimulationTime,jdbcType=BIGINT},
+                #{createTime,jdbcType=TIMESTAMP},
+                #{createUserId,jdbcType=VARCHAR},
+                #{modifyTime,jdbcType=TIMESTAMP},
+                #{modifyUserId,jdbcType=VARCHAR},
+                #{isDeleted,jdbcType=VARCHAR})
     </insert>
 
     <!--修改-->
     <update id="update" parameterType="api.common.pojo.po.project.SimulationManualProjectPo">
         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},
-        max_simulation_time = #{maxSimulationTime,jdbcType=BIGINT},
-        parallelism = #{parallelism,jdbcType=VARCHAR},
-        is_choice_gpu = #{isChoiceGpu,jdbcType=VARCHAR}
-        where id = #{id,jdbcType=VARCHAR} and is_deleted = '0'
+        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},
+            max_simulation_time = #{maxSimulationTime,jdbcType=BIGINT},
+            parallelism         = #{parallelism,jdbcType=VARCHAR},
+            is_choice_gpu       = #{isChoiceGpu,jdbcType=VARCHAR}
+        where id = #{id,jdbcType=VARCHAR}
+          and is_deleted = '0'
     </update>
 
 
@@ -88,13 +83,14 @@
     <select id="selectLastProjectId" resultType="api.common.pojo.po.project.SimulationManualProjectPo">
         select project_date, project_num, project_id
         from simulation_manual_project
-        where project_date=#{nowRq,jdbcType=INTEGER} and is_deleted = '0'
-        order by project_date desc, project_num desc
-        limit 1
+        where project_date = #{nowRq,jdbcType=INTEGER}
+          and is_deleted = '0'
+        order by project_date desc, project_num desc limit 1
     </select>
 
     <!--查询项目列表-->
-    <select id="selectProject" parameterType="api.common.pojo.param.project.SimulationManualProjectParam" resultType="api.common.pojo.po.project.SimulationManualProjectPo">
+    <select id="selectProject" parameterType="api.common.pojo.param.project.SimulationManualProjectParam"
+            resultType="api.common.pojo.po.project.SimulationManualProjectPo">
         select * from simulation_manual_project
         <where>
             is_deleted = '0'
@@ -130,7 +126,8 @@
     </select>
 
     <!--查询项目列表-->
-    <select id="selectProjectList" parameterType="api.common.pojo.param.project.SimulationManualProjectParam" resultType="api.common.pojo.vo.project.SimulationManualProjectVo">
+    <select id="selectProjectList" parameterType="api.common.pojo.param.project.SimulationManualProjectParam"
+            resultType="api.common.pojo.vo.project.SimulationManualProjectVo">
         select * from simulation_manual_project
         <where>
             is_deleted = '0'
@@ -169,19 +166,26 @@
     </select>
 
     <!--根据id查询-->
-    <select id="selectProjectById" parameterType="api.common.pojo.param.project.SimulationManualProjectParam" resultType="api.common.pojo.po.project.SimulationManualProjectPo">
-        select * from simulation_manual_project where id = #{id,jdbcType=VARCHAR} and is_deleted = '0'
+    <select id="selectProjectById" parameterType="api.common.pojo.param.project.SimulationManualProjectParam"
+            resultType="api.common.pojo.po.project.SimulationManualProjectPo">
+        select *
+        from simulation_manual_project
+        where id = #{id,jdbcType=VARCHAR}
+          and is_deleted = '0'
     </select>
 
     <!--根据项目名查询工作信息-->
-    <select id="selectProjectByName" parameterType="api.common.pojo.param.project.SimulationManualProjectParam" resultType="api.common.pojo.po.project.SimulationManualProjectPo">
+    <select id="selectProjectByName" parameterType="api.common.pojo.param.project.SimulationManualProjectParam"
+            resultType="api.common.pojo.po.project.SimulationManualProjectPo">
         select *
         from simulation_manual_project
-        where project_name = #{projectName,jdbcType=VARCHAR} and is_deleted = '0'
+        where project_name = #{projectName,jdbcType=VARCHAR}
+          and is_deleted = '0'
     </select>
 
     <!--根据id查询基本信息-->
-    <select id="selectProjectBaseById" parameterType="api.common.pojo.param.project.SimulationManualProjectParam" resultType="api.common.pojo.po.project.SimulationManualProjectPo">
+    <select id="selectProjectBaseById" parameterType="api.common.pojo.param.project.SimulationManualProjectParam"
+            resultType="api.common.pojo.po.project.SimulationManualProjectPo">
         select id,
                algorithm,
                scene,
@@ -262,7 +266,7 @@
     </select>
 
     <!--获取车辆配置信息-->
-    <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
         from model_config
         where share = '0' and is_deleted = '0'
@@ -296,29 +300,31 @@
         <if test="createUserId != null and createUserId !=''">
             and create_user_id=#{createUserId,jdbcType=VARCHAR}
         </if>
-         order by modify_time desc
+        order by modify_time desc
     </select>
 
     <!--根据id查询场景包信息-->
     <select id="selectScenePackageInfoById" parameterType="string" resultType="api.common.pojo.po.scene.ScenePackagePO">
-        select a.package_id,a.package_name, a.scene_num from scene_package a where a.package_id = #{id,jdbcType=VARCHAR}
+        select a.package_id, a.package_name, a.scene_num
+        from scene_package a
+        where a.package_id = #{id,jdbcType=VARCHAR}
     </select>
 
     <!--查询车辆与传感器关联信息-->
     <select id="selectVehicleSensor" parameterType="string" resultType="api.common.pojo.po.model.ConfigSensorPO">
-        select
-        sensor_id,
-        sensor_type,
-        config_id,
-        sensor_x,
-        sensor_y,
-        sensor_z,
-        sensor_h,
-        sensor_p,
-        sensor_r,
-        sensor_port
+        select sensor_id,
+               sensor_type,
+               config_id,
+               sensor_x,
+               sensor_y,
+               sensor_z,
+               sensor_h,
+               sensor_p,
+               sensor_r,
+               sensor_port
         from relation_config_sensor
-        where config_id = #{id,jdbcType=VARCHAR} and is_deleted = '0'
+        where config_id = #{id,jdbcType=VARCHAR}
+          and is_deleted = '0'
     </select>
 
     <!--摄像头基本信息-->
@@ -367,113 +373,127 @@
         where natural_id = #{id,jdbcType=VARCHAR}
     </select>
     <!--查询泛化场景信息-->
-    <select id="selectSceneGeneralDataById" parameterType="string" resultType="api.common.pojo.vo.project.SceneBaseInfoVo">
+    <select id="selectSceneGeneralDataById" parameterType="string"
+            resultType="api.common.pojo.vo.project.SceneBaseInfoVo">
         select scene_id scene_name
         from scene_general_data
         where id = #{id,jdbcType=VARCHAR}
     </select>
     <!--查询标准法规场景信息-->
-    <select id="selectSceneStandardsRegulations" parameterType="string" resultType="api.common.pojo.vo.project.SceneBaseInfoVo">
+    <select id="selectSceneStandardsRegulations" parameterType="string"
+            resultType="api.common.pojo.vo.project.SceneBaseInfoVo">
         select scene_name
         from scene_standards_regulations
         where regulations_id = #{id,jdbcType=VARCHAR}
     </select>
 
     <!--根据场景包id获取场景子集-->
-    <select id="selectSubSceneByPid" parameterType="string" resultType="api.common.pojo.vo.project.ScenePackageSubListVO">
-        select sublist_id,sublist_name,scene_num,weight,parent_id,scene_natural_ids,scene_traffic_ids,scene_statue_ids,scene_generalization_ids
+    <select id="selectSubSceneByPid" parameterType="string"
+            resultType="api.common.pojo.vo.project.ScenePackageSubListVO">
+        select sublist_id,
+               sublist_name,
+               scene_num,
+               weight,
+               parent_id,
+               scene_natural_ids,
+               scene_traffic_ids,
+               scene_statue_ids,
+               scene_generalization_ids
         from scene_package_sublist
         where parent_id = #{id,jdbcType=VARCHAR}
         order by seq
     </select>
 
     <!--获取指标信息-->
-    <select id="selectsublistBySublistId" parameterType="string" resultType="api.common.pojo.vo.project.ScenePackageSubListVO">
-        select sublist_id,sublist_name,scene_num,weight,parent_id,scene_natural_ids,scene_traffic_ids,scene_statue_ids,scene_generalization_ids
+    <select id="selectsublistBySublistId" parameterType="string"
+            resultType="api.common.pojo.vo.project.ScenePackageSubListVO">
+        select sublist_id,
+               sublist_name,
+               scene_num,
+               weight,
+               parent_id,
+               scene_natural_ids,
+               scene_traffic_ids,
+               scene_statue_ids,
+               scene_generalization_ids
         from scene_package_sublist
         where sublist_id = #{id,jdbcType=VARCHAR}
     </select>
 
     <!--获取场景包下指标信息-->
-    <select id="selectsublistByRootId" parameterType="api.common.pojo.param.project.SimulationManualProjectParam" 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 id="selectsublistByRootId" parameterType="api.common.pojo.param.project.SimulationManualProjectParam"
+            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
         from scene_package_sublist sub
         where sub.root_id = #{packageId,jdbcType=VARCHAR}
         order by sub.seq
     </select>
 
     <!--查询场景包id下最后一级所有指标和场景-->
-    <select id="selectSubListByPid" parameterType="string" resultType="api.common.pojo.vo.project.ScenePackageSubListVO">
-        select
-        sublist_id,
-        parent_id,
-        sublist_name,
-        scene_num,
-        scene_natural_ids,
-        scene_traffic_ids,
-        scene_statue_ids,
-        scene_generalization_ids
+    <select id="selectSubListByPid" parameterType="string"
+            resultType="api.common.pojo.vo.project.ScenePackageSubListVO">
+        select sublist_id,
+               parent_id,
+               sublist_name,
+               scene_num,
+               scene_natural_ids,
+               scene_traffic_ids,
+               scene_statue_ids,
+               scene_generalization_ids
         from scene_package_sublist
         where package_and_rules != null
         and package_and_rules != ''
         and root_id = #{id,jdbcType=VARCHAR}
-        and is_deleted = '0'
+          and is_deleted = '0'
     </select>
 
     <!--保存项目最后一级指标信息-->
-    <insert id="insertSimulationMptLastTargetScorePo" parameterType="api.common.pojo.po.project.SimulationMptLastTargetScorePo">
+    <insert id="insertSimulationMptLastTargetScorePo"
+            parameterType="api.common.pojo.po.project.SimulationMptLastTargetScorePo">
         insert into simulation_mpt_last_target_score
-        (
-        id,
-        p_id,
-        target,
-        create_time,
-        create_user_id,
-        modify_time,
-        modify_user_id,
-        is_deleted
-        )
-        values
-        (
-        #{id,jdbcType=VARCHAR}
+        (id,
+         p_id,
+         target,
+         create_time,
+         create_user_id,
+         modify_time,
+         modify_user_id,
+         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}
-        )
+                #{createUserId,jdbcType=VARCHAR},
+                #{modifyTime,jdbcType=TIMESTAMP},
+                #{modifyUserId,jdbcType=VARCHAR},
+                #{isDeleted,jdbcType=VARCHAR})
     </insert>
 
     <!--保存第一级指标信息-->
-    <insert id="insertSimulationMptFirstTargetScorePo" parameterType="api.common.pojo.po.project.SimulationMptFirstTargetScorePo">
+    <insert id="insertSimulationMptFirstTargetScorePo"
+            parameterType="api.common.pojo.po.project.SimulationMptFirstTargetScorePo">
         insert into simulation_mpt_first_target_score
-        (
-        id,
-        p_id,
-        target,
-        create_time,
-        create_user_id,
-        modify_time,
-        modify_user_id,
-        is_deleted
-        )
-        values
-        (
-        #{id,jdbcType=VARCHAR}
+        (id,
+         p_id,
+         target,
+         create_time,
+         create_user_id,
+         modify_time,
+         modify_user_id,
+         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}
-        )
+                #{createUserId,jdbcType=VARCHAR},
+                #{modifyTime,jdbcType=TIMESTAMP},
+                #{modifyUserId,jdbcType=VARCHAR},
+                #{isDeleted,jdbcType=VARCHAR})
     </insert>
 
     <!--查询场景得分-->
-    <select id="selectSceneScore" parameterType="api.common.pojo.po.project.SimulationMptSceneScorePo" resultType="api.common.pojo.po.project.SimulationMptSceneScorePo">
+    <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'
@@ -491,18 +511,30 @@
     </select>
 
     <!--查询所有指标得分-->
-    <select id="selectSubScore" parameterType="api.common.pojo.param.project.SimulationManualProjectParam" resultType="api.common.pojo.vo.project.SublistScoreVo">
-        select sub.sublist_id as id, sub.parent_id, sub.sublist_name,sub.scene_num,
-        fir.score as firScore,las.score as lasScore, sub.package_and_rules, las.not_standard_scene_num, las.score_explain
+    <select id="selectSubScore" parameterType="api.common.pojo.param.project.SimulationManualProjectParam"
+            resultType="api.common.pojo.vo.project.SublistScoreVo">
+        select sub.sublist_id as id,
+               sub.parent_id,
+               sub.sublist_name,
+               sub.scene_num,
+               fir.score      as firScore,
+               las.score      as lasScore,
+               sub.package_and_rules,
+               las.not_standard_scene_num,
+               las.score_explain
         from scene_package_sublist sub
-				left JOIN simulation_mpt_first_target_score fir on fir.target=sub.sublist_id and fir.p_id=#{id,jdbcType=VARCHAR}
-				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} and (fir.target is not null or las.target is not null)
-		order by sub.seq
+                 left JOIN simulation_mpt_first_target_score fir
+                           on fir.target = sub.sublist_id and fir.p_id = #{id,jdbcType=VARCHAR}
+                 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}
+          and (fir.target is not null or las.target is not null)
+        order by sub.seq
     </select>
 
     <!--查询所有指标得分-->
-    <select id="selectSubScore2" parameterType="api.common.pojo.param.project.SimulationManualProjectParam" resultType="api.common.pojo.vo.project.SublistScoreVo">
+    <select id="selectSubScore2" parameterType="api.common.pojo.param.project.SimulationManualProjectParam"
+            resultType="api.common.pojo.vo.project.SublistScoreVo">
         select sub.sublist_id as id,
                sub.parent_id,
                sub.sublist_name,
@@ -525,11 +557,16 @@
 
     <!--运行项目状态-->
     <select id="selectRunProjectByState" parameterType="java.util.Map" resultType="java.util.Map">
-        select count(now_run_state) num,now_run_state nowRunState from simulation_manual_project
-        where
-        is_deleted = '0'
+        select count(1) num, temp.now_run_state nowRunState
+        from (select now_run_state, create_user_id
+        from simulation_manual_project
+        where is_deleted = 0
+        union all
+        select now_run_state, create_user_id
+        from simulation_automatic_subproject
+        where is_deleted = 0) temp
         <if test="createUserId != null and createUserId != ''">
-            and create_user_id=#{createUserId,jdbcType=VARCHAR}
+            where temp.create_user_id = '#{createUserId}'
         </if>
         group by now_run_state
     </select>
@@ -547,44 +584,42 @@
     <!--添加第三方算法信息到算发表-->
     <insert id="insertOtherAlgorithm" parameterType="api.common.pojo.po.algorithm.AlgorithmPO">
         insert into algorithm
-        (
-        id,
-        algorithm_name,
-        upload_mode,
-        is_deleted
-        )
-        values
-        (
-        id=#{id,jdbcType=VARCHAR},
-        algorithm_name=#{algorithmName,jdbcType=VARCHAR},
-        upload_mode=#{uploadMode,jdbcType=VARCHAR},
-        is_deleted=#{isDeleted,jdbcType=VARCHAR},
-        )
+        (id,
+         algorithm_name,
+         upload_mode,
+         is_deleted)
+        values (id = #{id,jdbcType=VARCHAR},
+                algorithm_name = #{algorithmName,jdbcType=VARCHAR},
+                upload_mode = #{uploadMode,jdbcType=VARCHAR},
+                is_deleted = #{isDeleted,jdbcType=VARCHAR},)
     </insert>
 
     <!--更新第三方算法信息到算法表-->
     <update id="updateOtherAlgorithm" parameterType="api.common.pojo.po.algorithm.AlgorithmPO">
         update algorithm
         set algorithm_name=#{algorithmName,jdbcType=VARCHAR}
-        where id=#{id,jdbcType=VARCHAR}
-        and is_deleted = '0'
+        where id = #{id,jdbcType=VARCHAR}
+          and is_deleted = '0'
     </update>
 
     <!--查询第三方算法信息是否已经存在-->
-    <select id="selectalgorithmByQuery" parameterType="api.common.pojo.po.algorithm.AlgorithmPO" resultType="api.common.pojo.po.algorithm.AlgorithmPO">
+    <select id="selectalgorithmByQuery" parameterType="api.common.pojo.po.algorithm.AlgorithmPO"
+            resultType="api.common.pojo.po.algorithm.AlgorithmPO">
         select id, algorithmName
         from algorithm
-        where id=#{id,jdbcType=VARCHAR}
-        and is_deleted = '0'
+        where id = #{id,jdbcType=VARCHAR}
+          and is_deleted = '0'
     </select>
 
     <!--根据算法id获取最新的一条报告id-->
-    <select id="selectProjectReportIdByAlgorithmId" parameterType="string" resultType="api.common.pojo.po.project.SimulationManualProjectPo">
+    <select id="selectProjectReportIdByAlgorithmId" parameterType="string"
+            resultType="api.common.pojo.po.project.SimulationManualProjectPo">
         select id
         from simulation_manual_project
-        where algorithm = #{algorithmId,jdbcType=VARCHAR} and is_deleted = '0' and now_run_state='30'
-        order by finish_time desc
-        limit 1
+        where algorithm = #{algorithmId,jdbcType=VARCHAR}
+          and is_deleted = '0'
+          and now_run_state = '30'
+        order by finish_time desc limit 1
     </select>
 
 </mapper>