fix: 测试计划报告缺陷统计不完全
This commit is contained in:
parent
c1599107c2
commit
420c4b4ed0
|
@ -43,7 +43,7 @@
|
||||||
where project_id = #{projectId} and platform != 'Local';
|
where project_id = #{projectId} and platform != 'Local';
|
||||||
</select>
|
</select>
|
||||||
<select id="selectForPlanReport" resultType="io.metersphere.track.dto.PlanReportIssueDTO">
|
<select id="selectForPlanReport" resultType="io.metersphere.track.dto.PlanReportIssueDTO">
|
||||||
select id,status,platform_status,platform from issues where resource_id = #{planId} and platform_status != 'delete';;
|
select id,status,platform_status,platform from issues where resource_id = #{planId} and ( platform_status != 'delete' or platform_status is null);
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<sql id="queryWhereCondition">
|
<sql id="queryWhereCondition">
|
||||||
|
|
|
@ -1460,6 +1460,7 @@ public class TestPlanService {
|
||||||
allCases.forEach(item -> {
|
allCases.forEach(item -> {
|
||||||
LoadCaseReportRequest request = new LoadCaseReportRequest();
|
LoadCaseReportRequest request = new LoadCaseReportRequest();
|
||||||
String reportId = item.getLoadReportId();
|
String reportId = item.getLoadReportId();
|
||||||
|
if (StringUtils.isNotBlank(reportId)) {
|
||||||
request.setTestPlanLoadCaseId(item.getId());
|
request.setTestPlanLoadCaseId(item.getId());
|
||||||
request.setReportId(reportId);
|
request.setReportId(reportId);
|
||||||
Boolean existReport = testPlanLoadCaseService.isExistReport(request);
|
Boolean existReport = testPlanLoadCaseService.isExistReport(request);
|
||||||
|
@ -1476,6 +1477,7 @@ public class TestPlanService {
|
||||||
item.setResponse(reportDTO);
|
item.setResponse(reportDTO);
|
||||||
// todo 报告详情
|
// todo 报告详情
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
report.setLoadAllCases(allCases);
|
report.setLoadAllCases(allCases);
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
</el-popover>
|
</el-popover>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-button icon="el-icon-download" :disabled="!isTestManagerOrTestUser" plain size="mini" @click="handleSave()">
|
<el-button icon="el-icon-receiving" :disabled="!isTestManagerOrTestUser" plain size="mini" @click="handleSave()">
|
||||||
{{'保存'}}
|
{{'保存'}}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
Loading…
Reference in New Issue