LingxinMeng 1 рік тому
батько
коміт
8c49b296ec

+ 1 - 1
simulation-resource-server/src/main/java/com/css/simulation/resource/server/infra/util/ProjectUtil.java

@@ -118,7 +118,7 @@ public class ProjectUtil {
         if (sceneNum == 0) {
             throw new RuntimeException("场景测试包内的场景已被全部删除,请添加场景。");
         }
-        log.info("5 判断并行度是否大于场景测试包内场景数量。");
+        log.info("5 判断并行度 " + parallelism + "是否大于场景测试包内场景数量:" + sceneNum);
         if (sceneNum < parallelism) {
             throw new RuntimeException("并行度 " + parallelism + " 大于场景测试包内场景数量 " + sceneNum + " ,请修改并行度。");
         }

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

@@ -210,6 +210,7 @@
     <select id="selectSceneNumByPackageId" resultType="java.lang.Integer">
         select sum(scene_num)
         from scene_package_sublist
-        where root_id = #{scenePackageId}
+        where is_deleted = '0'
+          and root_id = #{scenePackageId}
     </select>
 </mapper>