fix(工作台):修复工作台我的待办中测试计划数据统计有误问题

--bug=1024415 --user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001024415
This commit is contained in:
guoyuqi 2023-03-16 18:09:48 +08:00 committed by xiaomeinvG
parent 8a6121e097
commit f6d12e1647
2 changed files with 3 additions and 2 deletions

View File

@ -213,6 +213,7 @@
test_plan_test_case.status in
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.filterInWrapper"/>
))
and (test_plan.status is null or test_plan.status != 'Trash')
</when>
<otherwise>
and test_plan.status in

View File

@ -216,11 +216,11 @@
and (tp.status is null or tp.status != 'Trash');
</select>
<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_test_case on test_plan_test_case.plan_id = test_plan.id
where
test_plan.project_id in
test_plan.project_id in
<foreach collection="projectIds" item="projectId" separator="," open="(" close=")">
#{projectId}
</foreach>