|
@@ -4806,13 +4806,17 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
for (WbsTreeContract childContract : childContracts) {
|
|
|
String ancestorsPId = childContract.getAncestorsPId();
|
|
|
ancestorsPId=ancestorsPId.replace(oldancestorsPId,contract.getAncestorsPId());
|
|
|
+ childContract.setAncestorsPId(ancestorsPId);
|
|
|
String ancestors = childContract.getAncestors();
|
|
|
ancestors=ancestors.replace(oldancestors,contract.getAncestors());
|
|
|
- wbsTreeContractMapper.updateAncestorsPid(ancestorsPId,ancestors,childContract.getPKeyId());
|
|
|
+ childContract.setAncestors(ancestors);
|
|
|
+ //wbsTreeContractMapper.updateAncestorsPid(ancestorsPId,ancestors,childContract.getPKeyId());
|
|
|
}
|
|
|
+ this.saveBatch(childContracts);
|
|
|
}
|
|
|
- this.wbsTreeContractMapper.updateWbsTreeAncestors(contract);
|
|
|
+ //this.wbsTreeContractMapper.updateWbsTreeAncestors(contract);
|
|
|
}
|
|
|
+ this.saveBatch(list);
|
|
|
String ids = dto.getLeftPkeyIds().stream().map(id -> id + "").collect(Collectors.joining(","));
|
|
|
this.wbsTreeContractStatisticsClient.updateAncestors(ids);
|
|
|
return R.success("操作成功");
|