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

计算产品需求的配置项模块的所有需求时,通过数据库查询不包含无所属模块以及非固定模块的需求数量来统计

Signed-off-by: OTTO <731554297@qq.com>
This commit is contained in:
OTTO 2025-02-19 15:05:15 +08:00
parent 6d547cd0df
commit e21c8b451e
1 changed files with 3 additions and 0 deletions

View File

@ -389,6 +389,9 @@ public class PmsProductRequirementServiceImpl implements IPmsProductRequirementS
productReqSpecsSearchVo.setChildrenModuleIdList(moduleIdList);
} else if (productReqSpecsSearchVo.getPmsProductModuleId() == 0) {
List<Long> moduleIdList = pmsProductModuleService.selectNotIncludedFixedProductModuleIdList(productReqSpecsSearchVo.getPmsProductIdentifier());
if (moduleIdList.isEmpty()) {
moduleIdList = null;
}
productReqSpecsSearchVo.setChildrenModuleIdList(moduleIdList);
}
}