|
@@ -370,9 +370,27 @@ public class NodeAttachmentImpl implements NodeAttachmentService {
|
|
|
//处理-出让图形依赖
|
|
//处理-出让图形依赖
|
|
|
nodeAttachment = this.assemblyAttachment(projectId,TdgyAttachmentNameEnum.NAME_3,nodeAttachment);
|
|
nodeAttachment = this.assemblyAttachment(projectId,TdgyAttachmentNameEnum.NAME_3,nodeAttachment);
|
|
|
}else if("划拨".equals(gdType)) {
|
|
}else if("划拨".equals(gdType)) {
|
|
|
-
|
|
|
|
|
|
|
+ //处理-项目批准文件
|
|
|
|
|
+ nodeAttachment = this.assemblyAttachment(projectId,TdgyHbAttachmentNameEnum.NAME_1,nodeAttachment);
|
|
|
|
|
+ //处理-土地权属来源文件
|
|
|
|
|
+ nodeAttachment = this.assemblyAttachment(projectId,TdgyHbAttachmentNameEnum.NAME_2_B,nodeAttachment);
|
|
|
|
|
+ //处理-测量报告
|
|
|
|
|
+ nodeAttachment = this.assemblyAttachment(projectId,TdgyHbAttachmentNameEnum.NAME_4_B,nodeAttachment);
|
|
|
}
|
|
}
|
|
|
|
|
+ }else if(AloneWorkFlowEnum.NODE_3.getTableName().equalsIgnoreCase(nodeTableName)){
|
|
|
|
|
+ //处理-主体资格文件
|
|
|
|
|
+ nodeAttachment = this.assemblyAttachment(projectId,GyjsydscdjAttachmentNameEnum.NAME_2,nodeAttachment);
|
|
|
|
|
+ nodeAttachment = this.assemblyAttachment(projectId,GyjsydscdjAttachmentNameEnum.NAME_3,nodeAttachment);
|
|
|
|
|
+ nodeAttachment = this.assemblyAttachment(projectId,GyjsydscdjAttachmentNameEnum.NAME_4,nodeAttachment);
|
|
|
|
|
+ } else if(AloneWorkFlowEnum.NODE_4.getTableName().equalsIgnoreCase(nodeTableName)){
|
|
|
|
|
+ nodeAttachment = this.assemblyAttachment(projectId,JsydghxkAttachmentNameEnum.NAME_3,nodeAttachment);
|
|
|
|
|
+ nodeAttachment = this.assemblyAttachment(projectId,JsydghxkAttachmentNameEnum.NAME_4,nodeAttachment);
|
|
|
|
|
+ nodeAttachment = this.assemblyAttachment(projectId,JsydghxkAttachmentNameEnum.NAME_5,nodeAttachment);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
/*
|
|
/*
|
|
|
else if(AloneWorkFlowEnum.NODE_3.getTableName().equalsIgnoreCase(nodeTableName)){
|
|
else if(AloneWorkFlowEnum.NODE_3.getTableName().equalsIgnoreCase(nodeTableName)){
|
|
|
//处理-规划条件出具依赖
|
|
//处理-规划条件出具依赖
|
|
@@ -420,7 +438,6 @@ public class NodeAttachmentImpl implements NodeAttachmentService {
|
|
|
* 1.如果当前节点附件信息不包含该资料,则进行合并
|
|
* 1.如果当前节点附件信息不包含该资料,则进行合并
|
|
|
* 获取依赖的map,写一个方法:
|
|
* 获取依赖的map,写一个方法:
|
|
|
*
|
|
*
|
|
|
- *
|
|
|
|
|
*/
|
|
*/
|
|
|
public NodeAttachment assemblyAttachment(String projectId,UnifyAttachmentEnum attachmentEnum,NodeAttachment nodeAttachment){
|
|
public NodeAttachment assemblyAttachment(String projectId,UnifyAttachmentEnum attachmentEnum,NodeAttachment nodeAttachment){
|
|
|
String name = attachmentEnum.getName();
|
|
String name = attachmentEnum.getName();
|
|
@@ -429,11 +446,10 @@ public class NodeAttachmentImpl implements NodeAttachmentService {
|
|
|
attachmentMap = nodeAttachment.getAttachment();
|
|
attachmentMap = nodeAttachment.getAttachment();
|
|
|
}else {
|
|
}else {
|
|
|
attachmentMap = new LinkedHashMap<>();
|
|
attachmentMap = new LinkedHashMap<>();
|
|
|
- attachmentMap.put("name",name);
|
|
|
|
|
|
|
+ attachmentMap.put("name",attachmentEnum.getParentName());
|
|
|
attachmentMap.put("path","");
|
|
attachmentMap.put("path","");
|
|
|
attachmentMap.put("type","directory");
|
|
attachmentMap.put("type","directory");
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
//当前材料的首层目录结构list
|
|
//当前材料的首层目录结构list
|
|
|
List<Map <String,Object>> attachmentChildrenList = null;
|
|
List<Map <String,Object>> attachmentChildrenList = null;
|
|
|
if(Objects.nonNull(attachmentMap.get("children"))) {
|
|
if(Objects.nonNull(attachmentMap.get("children"))) {
|
|
@@ -443,7 +459,7 @@ public class NodeAttachmentImpl implements NodeAttachmentService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//当前节点的当前名称子children list
|
|
//当前节点的当前名称子children list
|
|
|
- List<Map <String,String>> currentAttachmentList = this.getDirChildrenList(name,nodeAttachment);
|
|
|
|
|
|
|
+ List<Map <String,String>> currentAttachmentList = ServiceUtil.getDirChildrenList(name,nodeAttachment);
|
|
|
//当前目录不存在此节点,需要通过依赖关系填充
|
|
//当前目录不存在此节点,需要通过依赖关系填充
|
|
|
if(CollectionUtils.isEmpty(currentAttachmentList)) {
|
|
if(CollectionUtils.isEmpty(currentAttachmentList)) {
|
|
|
currentAttachmentList = new ArrayList<>();
|
|
currentAttachmentList = new ArrayList<>();
|
|
@@ -457,7 +473,7 @@ public class NodeAttachmentImpl implements NodeAttachmentService {
|
|
|
String relationName = innerRelationNameList.get(0);
|
|
String relationName = innerRelationNameList.get(0);
|
|
|
String tableName = innerRelationNameList.get(1);
|
|
String tableName = innerRelationNameList.get(1);
|
|
|
NodeAttachment relationNodeAttachment = this.getAttachmentByProjectIdAndTable(projectId, tableName);
|
|
NodeAttachment relationNodeAttachment = this.getAttachmentByProjectIdAndTable(projectId, tableName);
|
|
|
- List<Map<String, String>> relationNodeFileList = this.getDirChildrenList(relationName, relationNodeAttachment);
|
|
|
|
|
|
|
+ List<Map<String, String>> relationNodeFileList = ServiceUtil.getDirChildrenList(relationName, relationNodeAttachment);
|
|
|
currentAttachmentList.addAll(relationNodeFileList);
|
|
currentAttachmentList.addAll(relationNodeFileList);
|
|
|
}
|
|
}
|
|
|
}//end for
|
|
}//end for
|
|
@@ -481,26 +497,6 @@ public class NodeAttachmentImpl implements NodeAttachmentService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- public List<Map <String,String>> getDirChildrenList(String dirName,NodeAttachment nodeAttachment) {
|
|
|
|
|
- List<Map <String,String>> list = new ArrayList<>();
|
|
|
|
|
- if (Objects.nonNull(nodeAttachment) && Objects.nonNull(nodeAttachment.getAttachment())) {
|
|
|
|
|
- Map<String, Object> attachment = nodeAttachment.getAttachment();
|
|
|
|
|
- //第一曾经children 所有目录list
|
|
|
|
|
- List<Map> childrenList = (List<Map>) attachment.get("children");
|
|
|
|
|
- if (CollectionUtils.isNotEmpty(childrenList)) {
|
|
|
|
|
- for (Map childMap : childrenList) {
|
|
|
|
|
- String childName = (String) childMap.get("name");
|
|
|
|
|
- if (childName.equalsIgnoreCase(dirName)) {
|
|
|
|
|
- list = (List<Map<String, String>>) childMap.get("children");
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- return list;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|