|
@@ -39,7 +39,7 @@ public class WbsParamServiceImpl extends BaseServiceImpl<WbsParamMapper, WbsPara
|
|
|
StaticLog.info("获取节点{}文件题名",nodeId);
|
|
|
List<WbsTreeContract> nodes = chain(contractId,nodeId,wbsTreeContract.getPKeyId(),wbsTreeContract);
|
|
|
if(Func.isNotEmpty(nodes)){
|
|
|
- /**优先取私有*/
|
|
|
+ /*优先取私有*/
|
|
|
WbsParam wp = this.getOne(Wrappers.<WbsParam>lambdaQuery().eq(WbsParam::getNodeId,wbsTreeContract.getPKeyId()).eq(WbsParam::getK,FILE_TITLE));
|
|
|
if(wp==null){
|
|
|
wp = this.getOne(Wrappers.<WbsParam>lambdaQuery().eq(WbsParam::getNodeId,nodeId).eq(WbsParam::getK,FILE_TITLE));
|
|
@@ -71,11 +71,14 @@ public class WbsParamServiceImpl extends BaseServiceImpl<WbsParamMapper, WbsPara
|
|
|
if(pkId!=null&&wbsTreeContract==null) {
|
|
|
wbsTreeContract = treeContractService.getOne(Wrappers.<WbsTreeContract>lambdaQuery().eq(WbsTreeContract::getPKeyId, pkId));
|
|
|
}
|
|
|
+ /*去头尾*/
|
|
|
nodes.remove(nodes.size() - 1);
|
|
|
+ nodes.remove(0);
|
|
|
+ assert wbsTreeContract != null;
|
|
|
if(Func.isNotBlank(wbsTreeContract.getFullName())) {
|
|
|
wbsTreeContract.setNodeName(wbsTreeContract.getFullName());
|
|
|
}
|
|
|
- nodes.set(0, wbsTreeContract);
|
|
|
+ nodes.add(wbsTreeContract);
|
|
|
}
|
|
|
return nodes;
|
|
|
}
|