fix(接口测试): 修复接口测试首页7天更新接口统计模块中关联场景统计不对的问题
--bug=1017946 --user=宋天阳 【接口测试】首页-过去7天有更新的接口-关联场景数为0 https://www.tapd.cn/55049933/s/1261060
This commit is contained in:
parent
90a4dce5dc
commit
189ee21f6a
|
@ -1024,13 +1024,13 @@
|
||||||
and api_definition.status != 'Trash';
|
and api_definition.status != 'Trash';
|
||||||
</select>
|
</select>
|
||||||
<select id="scenarioList" resultType="io.metersphere.base.domain.ApiScenario">
|
<select id="scenarioList" resultType="io.metersphere.base.domain.ApiScenario">
|
||||||
select DISTINCT t1.id
|
SELECT DISTINCT
|
||||||
from api_scenario t1
|
t1.id
|
||||||
join api_scenario_reference_id t2 on t1.id = t2.api_scenario_id and t1.`status` !='Trash'
|
FROM
|
||||||
join api_test_case t3
|
api_scenario t1
|
||||||
on t2.reference_id = t3.id and t2.reference_type = 'REF'
|
JOIN api_scenario_reference_id t2 ON t1.id = t2.api_scenario_id AND t1.`status` != 'Trash'
|
||||||
where t3.api_definition_id = #{apiDefinitionId}
|
WHERE
|
||||||
and t3.`status`!='Trash'
|
t2.reference_id = #{apiDefinitionId}
|
||||||
</select>
|
</select>
|
||||||
<select id="countByIds" resultType="java.lang.Integer">
|
<select id="countByIds" resultType="java.lang.Integer">
|
||||||
select count(id) from api_definition
|
select count(id) from api_definition
|
||||||
|
|
Loading…
Reference in New Issue