feat(项目管理产品需求重构): 完善产品需求规格逻辑
查询模块树时设置固定模块值 Signed-off-by: OTTO <731554297@qq.com>
This commit is contained in:
parent
f3ce62e437
commit
76f8f05147
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue