fix(测试计划): 报告统计失败的功能用例ID为空

This commit is contained in:
shiziyuan9527 2021-06-02 14:31:16 +08:00 committed by 刘瑞斌
parent 60a70339ef
commit a6ead63694
1 changed files with 1 additions and 0 deletions

View File

@ -138,6 +138,7 @@
<select id="list" resultType="io.metersphere.track.dto.TestPlanCaseDTO">
select test_plan_test_case.id as id, test_case.id as caseId, test_case.name, test_case.priority,
test_case.type,test_case.test_id as testId,test_case.node_id, test_case.tags, test_case.maintainer,
if(project.custom_num = 0, cast(test_case.num as char), test_case.custom_num) as num,
test_case.node_path, test_case.method, if(project.custom_num = 0, cast(test_case.num as char), test_case.custom_num) as customNum, test_plan_test_case.executor, test_plan_test_case.status, test_plan_test_case.actual_result,
test_plan_test_case.update_time, test_case_node.name as model, project.name as projectName,
test_plan_test_case.plan_id as planId