fix(产品模块): 模块处的需求数量统计错误

优化配置项需求名称显示

Signed-off-by: OTTO <731554297@qq.com>
This commit is contained in:
OTTO 2025-02-18 16:50:33 +08:00
parent 8e51a872ba
commit 44d78caca1
1 changed files with 3 additions and 3 deletions

View File

@ -66,8 +66,6 @@ public class PmsProductModuleServiceImpl implements IPmsProductModuleService
return "无所属模块";
}
;
private final static String ALL_MODULE = "全部模块";
/**
* 查询产品模块
@ -288,6 +286,7 @@ public class PmsProductModuleServiceImpl implements IPmsProductModuleService
}
Integer allNodeDataCount;
Integer noModuleNodeDataCount;
String allNodeName = "全部模块";
if (type == PmsConstants.PRODUCT_TAG_AND_MODULE_TYPE) {
// 设置各节点数量为需求数量
moduleList.forEach(x -> x.setNodeDataCount(x.getRequirementCount()));
@ -298,6 +297,7 @@ public class PmsProductModuleServiceImpl implements IPmsProductModuleService
PmsProductRequirement pmsProductRequirementSearch = new PmsProductRequirement();
pmsProductRequirementSearch.setPmsProductModuleId(-1L);
noModuleNodeDataCount = pmsProductRequirementService.selectProductReqSpecsCount(pmsProductRequirementSearch);
allNodeName = "配置项(CSCI)需求";
} else if (type == PmsConstants.TESTSHEET_TAG_AND_MODULE_TYPE) {
// 设置各节点数量为测试单执行用例数量
moduleList.forEach(x -> x.setNodeDataCount(x.getTestsheetCasesCount()));
@ -329,7 +329,7 @@ public class PmsProductModuleServiceImpl implements IPmsProductModuleService
PmsProductModule allPmsProductModule=new PmsProductModule();
allPmsProductModule.setPmsProductIdentifier(pmsProductModule.getPmsProductIdentifier());
allPmsProductModule.setId(0L);
allPmsProductModule.setModuleName(ALL_MODULE);
allPmsProductModule.setModuleName(allNodeName);
allPmsProductModule.setNodeDataCount(allNodeDataCount);
allPmsProductModule.setIsFixedModule(true);
moduleList.add(allPmsProductModule);