|
@@ -75,6 +75,9 @@ public class RecycleBinController extends BladeController {
|
|
|
List<String> processNodeList = new ArrayList<>();
|
|
|
this.foreachQueryData(nodeTypeList, recycleBinIds, processNodeList);
|
|
|
try {
|
|
|
+ //筛选出项目级存在的节点
|
|
|
+ processNodeList = this.wbsTreeContractClient.findIsExistTreeNode(processNodeList);
|
|
|
+
|
|
|
//恢复数据
|
|
|
if (processNodeList.size() > 0) {
|
|
|
regainNode = this.wbsTreeContractClient.regainRemoveTreeByPrimaryKeyIds(processNodeList);
|
|
@@ -123,7 +126,7 @@ public class RecycleBinController extends BladeController {
|
|
|
|
|
|
private void foreachQueryData(List<RecycleBin> recycleList, List<String> recycleBinIds, List<String> result) {
|
|
|
for (RecycleBin recycleBin : recycleList) {
|
|
|
- if (StringUtils.isNotEmpty(recycleBin.getBusinessId())) {
|
|
|
+ if (StringUtils.isNotEmpty(recycleBin.getBusinessId()) && recycleBin.getStatus() == 1) {
|
|
|
if (recycleBin.getBusinessId().contains(",")) {
|
|
|
result.addAll(new ArrayList<>(Arrays.asList(recycleBin.getBusinessId().split(","))));
|
|
|
} else {
|