fix(修改接口覆盖率统计错误的问题): 修改接口覆盖率统计错误的问题

修改接口覆盖率统计错误的问题
This commit is contained in:
song.tianyang 2020-12-21 19:12:47 +08:00
parent 9449c6ad98
commit c24aac4103
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@
AND create_time BETWEEN #{firstDayTimestamp} AND #{lastDayTimestamp}
</select>
<select id="countApiCoverageByProjectID" resultType="io.metersphere.api.dto.dataCount.ApiDataCountResult">
SELECT count(api.id) AS countNumber, if(test_case_api.api_definition_id is null,"coverage","uncoverage") AS groupField FROM api_definition api left Join (
SELECT count(api.id) AS countNumber, if(test_case_api.api_definition_id is null,"uncoverage","coverage") AS groupField FROM api_definition api left Join (
SELECT DISTINCT api_definition_id FROM api_test_case
) test_case_api ON api.id = test_case_api.api_definition_id
WHERE api.project_id = #{0}