diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiTestCaseMapper.xml b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiTestCaseMapper.xml index afb021082e..7a9d2b50fb 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiTestCaseMapper.xml +++ b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiTestCaseMapper.xml @@ -643,41 +643,6 @@ - - - - - atc.id in ( - select atcr.api_test_case_id as id - from api_report ar left join api_test_case_record atcr on atcr.api_report_id = ar.id - group by atcr.api_test_case_id - ) - - - atc.id not in ( - select atcr.api_test_case_id as id - from api_report ar left join api_test_case_record atcr on atcr.api_report_id = ar.id - group by atcr.api_test_case_id - ) - - - 1=2 - - - atc.id in ( - select rate_tmp.id from ( - select atcr.api_test_case_id as id, format(sum(if(ar.`status` = 'success', 1, 0)) / count(ar.id) * 100, 2) as passRate - from api_report ar left join api_test_case_record atcr on atcr.api_report_id = ar.id - group by atcr.api_test_case_id having - - - - - ) rate_tmp - ) - - -