|
@@ -989,14 +989,15 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public List<AppWbsTreeContractVO> searchNodeAllTableAndFile(String primaryKeyId, String type, String
|
|
public List<AppWbsTreeContractVO> searchNodeAllTableAndFile(String primaryKeyId, String type, String
|
|
- contractId, String projectId) {
|
|
|
|
|
|
+ contractId, String projectId,Integer classify) {
|
|
List<AppWbsTreeContractVO> vos = this.searchNodeAllTable(primaryKeyId, type, contractId, projectId, null);
|
|
List<AppWbsTreeContractVO> vos = this.searchNodeAllTable(primaryKeyId, type, contractId, projectId, null);
|
|
List<AppWbsTreeContractVO> voList = new ArrayList<>();
|
|
List<AppWbsTreeContractVO> voList = new ArrayList<>();
|
|
List<TableFile> files2 = tableFileService.list(new LambdaQueryWrapper<TableFile>()
|
|
List<TableFile> files2 = tableFileService.list(new LambdaQueryWrapper<TableFile>()
|
|
- .eq(TableFile::getTabId,primaryKeyId));
|
|
|
|
|
|
+ .eq(TableFile::getTabId,primaryKeyId)
|
|
|
|
+ .eq(TableFile::getClassify,classify));
|
|
if (vos != null && vos.size() > 0) {
|
|
if (vos != null && vos.size() > 0) {
|
|
List<Long> list = vos.stream().map(AppWbsTreeContractVO::getPKeyId).collect(Collectors.toList());
|
|
List<Long> list = vos.stream().map(AppWbsTreeContractVO::getPKeyId).collect(Collectors.toList());
|
|
- List<TableFile> files = tableFileService.getAllFileByIds(list);
|
|
|
|
|
|
+ List<TableFile> files = tableFileService.getAllFileByIds(list,classify);
|
|
if (files != null && files.size() > 0) {
|
|
if (files != null && files.size() > 0) {
|
|
Map<String, List<TableFile>> map = files.parallelStream()
|
|
Map<String, List<TableFile>> map = files.parallelStream()
|
|
.collect(Collectors.groupingBy(TableFile::getTabId));
|
|
.collect(Collectors.groupingBy(TableFile::getTabId));
|
|
@@ -1095,6 +1096,11 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
return ForestNodeMerger.merge(baseMapper.apiTreeNodeHzrc(contractId,classType));
|
|
return ForestNodeMerger.merge(baseMapper.apiTreeNodeHzrc(contractId,classType));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public List<ArchiveSyncWbsVO> getContractAllNode(Long contractId) {
|
|
|
|
+ return baseMapper.getContractAllNode(contractId);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 递归获取隐蔽工程节点的所有父级节点
|
|
* 递归获取隐蔽工程节点的所有父级节点
|
|
*
|
|
*
|