|
@@ -4812,11 +4812,11 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
childContract.setAncestors(ancestors);
|
|
|
//wbsTreeContractMapper.updateAncestorsPid(ancestorsPId,ancestors,childContract.getPKeyId());
|
|
|
}
|
|
|
- this.saveBatch(childContracts);
|
|
|
+ this.updateBatchById(childContracts);
|
|
|
}
|
|
|
//this.wbsTreeContractMapper.updateWbsTreeAncestors(contract);
|
|
|
}
|
|
|
- this.saveBatch(list);
|
|
|
+ this.updateBatchById(list);
|
|
|
String ids = dto.getLeftPkeyIds().stream().map(id -> id + "").collect(Collectors.joining(","));
|
|
|
this.wbsTreeContractStatisticsClient.updateAncestors(ids);
|
|
|
return R.success("操作成功");
|