Browse Source

修改sql

ztf 3 months ago
parent
commit
983eaca45d

+ 2 - 2
simulation-resource-server/src/main/resources/mysql/mapper/SceneComputerRateMapper.xml

@@ -53,8 +53,9 @@
         select computer_rate_id, task_id, computer_type, computer_result, process_status
         from simulation.scene_computer_rate
         <where>
+            is_deleted = '0'
             <if test="taskId != null and taskId != ''">
-                task_id = #{taskId}
+                and task_id = #{taskId}
             </if>
             <if test="computerTypeList != null and computerTypeList.size()>0">
                 AND computer_type IN
@@ -63,7 +64,6 @@
                     #{item}
                 </foreach>
             </if>
-            and is_deleted = '0'
         </where>
     </select>
 </mapper>