diff --git a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.java b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.java index 968fb1bd81..9b863a1ddb 100644 --- a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.java +++ b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.java @@ -84,4 +84,6 @@ public interface ExtTestPlanTestCaseMapper { @Select("SELECT id FROM test_plan_test_case WHERE plan_id = #{planId} AND case_id = #{caseId}") List selectIdByTestCaseIdAndTestPlanId(@Param("caseId") String caseId, @Param("planId") String planId); + + boolean checkOwner(@Param("planId") String planId, @Param("ids") List ids); } diff --git a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml index fc38ac6e62..8f5806a5dc 100644 --- a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml +++ b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml @@ -711,6 +711,15 @@ UPDATE test_case SET last_execute_result = #{execResult} WHERE id = #{testCaseId} AND (last_execute_result != #{execResult} or last_execute_result is null) +