fix(接口测试): 修复用例通过率为空的缺陷

This commit is contained in:
wxg0103 2024-03-22 15:43:20 +08:00 committed by Craftsman
parent a01f87d35d
commit 2112ebbe33
1 changed files with 4 additions and 4 deletions

View File

@ -114,7 +114,7 @@
<select id="findPassRateByIds" resultType="io.metersphere.api.dto.definition.CasePassDTO"> <select id="findPassRateByIds" resultType="io.metersphere.api.dto.definition.CasePassDTO">
SELECT SELECT
atc.api_scenario_id as id, atc.api_test_case_id as id,
CONCAT( CONCAT(
FORMAT( FORMAT(
SUM( SUM(
@ -126,14 +126,14 @@
) value ) value
FROM FROM
api_report ar api_report ar
left join api_scenario_record atc on atc.api_scenario_report_id = ar.id left join api_test_case_record atc on atc.api_report_id = ar.id
WHERE WHERE
atc.api_scenario_id IN atc.api_test_case_id IN
<foreach collection="ids" item="id" separator="," open="(" close=")"> <foreach collection="ids" item="id" separator="," open="(" close=")">
#{id} #{id}
</foreach> </foreach>
GROUP BY GROUP BY
atc.api_scenario_id atc.api_test_case_id
</select> </select>
<select id="selectIdsByCaseIds" resultType="java.lang.String"> <select id="selectIdsByCaseIds" resultType="java.lang.String">
SELECT SELECT