feat(项目管理产品需求重构): 完善产品需求规格逻辑

查询模块树时设置固定模块值

Signed-off-by: OTTO <731554297@qq.com>
This commit is contained in:
OTTO 2024-12-18 11:54:44 +08:00
parent f3ce62e437
commit 76f8f05147
2 changed files with 10 additions and 0 deletions

View File

@ -32,6 +32,11 @@ public class TreeSelect implements Serializable {
/** 层级 */
private Integer level;
/**
* 层级
*/
private Boolean isFixedModule = true;
/** 子节点 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<TreeSelect> children;
@ -51,5 +56,9 @@ public class TreeSelect implements Serializable {
this.children = pmsProductModule.getChildren().stream().map(x->new TreeSelect(x,this.level+1)).collect(Collectors.toList());
this.isLeaf= this.children.isEmpty();
if (pmsProductModule.getIsFixedModule() != null) {
this.isFixedModule = pmsProductModule.getIsFixedModule();
}
}
}

View File

@ -319,6 +319,7 @@ public class PmsProductModuleServiceImpl implements IPmsProductModuleService
allPmsProductModule.setId(0L);
allPmsProductModule.setModuleName(ALL_MODULE);
allPmsProductModule.setNodeDataCount(allNodeDataCount);
allPmsProductModule.setIsFixedModule(pmsProductModule.getIsFixedModule());
moduleList.add(allPmsProductModule);
// 构建无所属模块
PmsProductModule noPmsProductModule = new PmsProductModule();