|
@@ -64,6 +64,9 @@ public class WbsParamServiceImpl extends BaseServiceImpl<WbsParamMapper, WbsPara
|
|
|
@Override
|
|
|
public List<WbsTreeContract> chain(Long contractId ,Long id, Long pkId,WbsTreeContract wbsTreeContract) {
|
|
|
List<WbsTreeContract> nodes = treeContractService.searchParentAllNode(id,contractId);
|
|
|
+ if(Func.isEmpty(nodes)&&wbsTreeContract!=null){
|
|
|
+ nodes=treeContractService.searchParentAllNode(wbsTreeContract.getId(),contractId);
|
|
|
+ }
|
|
|
if(Func.isNotEmpty(nodes)) {
|
|
|
if(pkId!=null&&wbsTreeContract==null) {
|
|
|
wbsTreeContract = treeContractService.getOne(Wrappers.<WbsTreeContract>lambdaQuery().eq(WbsTreeContract::getPKeyId, pkId));
|