fix(接口测试): 修复用例通过率为空的缺陷
This commit is contained in:
parent
a01f87d35d
commit
2112ebbe33
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue