fix(测试计划): 报告详情功能用例总数报错问题

This commit is contained in:
song-cc-rock 2024-06-16 19:08:31 +08:00 committed by Craftsman
parent dd1e5619e3
commit 83d475aeef
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ public class TestPlanReportService {
planReportDetail.setBugCount(reportSummary.getBugCount().intValue()); planReportDetail.setBugCount(reportSummary.getBugCount().intValue());
// 暂时只有功能用例能关联缺陷 // 暂时只有功能用例能关联缺陷
Long functionalBugCount = extTestPlanReportFunctionalCaseMapper.countBug(reportId); Long functionalBugCount = extTestPlanReportFunctionalCaseMapper.countBug(reportId);
planReportDetail.setFunctionalBugCount(functionalBugCount.intValue()); planReportDetail.setFunctionalBugCount(functionalBugCount == null ? 0 : functionalBugCount.intValue());
if (planReport.getIntegrated()) { if (planReport.getIntegrated()) {
// 计划组报告, 需要统计计划的执行数据 // 计划组报告, 需要统计计划的执行数据
planReportDetail.setPlanCount(reportSummary.getPlanCount().intValue()); planReportDetail.setPlanCount(reportSummary.getPlanCount().intValue());