fix(工作台):修复工作台我的待办中测试计划数据统计有误问题
--bug=1024415 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001024415
This commit is contained in:
parent
8a6121e097
commit
f6d12e1647
|
@ -213,6 +213,7 @@
|
||||||
test_plan_test_case.status in
|
test_plan_test_case.status in
|
||||||
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.filterInWrapper"/>
|
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.filterInWrapper"/>
|
||||||
))
|
))
|
||||||
|
and (test_plan.status is null or test_plan.status != 'Trash')
|
||||||
</when>
|
</when>
|
||||||
<otherwise>
|
<otherwise>
|
||||||
and test_plan.status in
|
and test_plan.status in
|
||||||
|
|
|
@ -216,7 +216,7 @@
|
||||||
and (tp.status is null or tp.status != 'Trash');
|
and (tp.status is null or tp.status != 'Trash');
|
||||||
</select>
|
</select>
|
||||||
<select id="getCountUpcoming" resultType="java.lang.Integer">
|
<select id="getCountUpcoming" resultType="java.lang.Integer">
|
||||||
select count(*) from test_plan
|
select COUNT(DISTINCT(test_plan.id)) from test_plan
|
||||||
left join test_plan_principal ON test_plan_principal.test_plan_id = test_plan.id
|
left join test_plan_principal ON test_plan_principal.test_plan_id = test_plan.id
|
||||||
left join test_plan_test_case on test_plan_test_case.plan_id = test_plan.id
|
left join test_plan_test_case on test_plan_test_case.plan_id = test_plan.id
|
||||||
where
|
where
|
||||||
|
|
Loading…
Reference in New Issue