|
@@ -254,7 +254,7 @@ public class ArchiveTreeContractSyncImpl {
|
|
|
*/
|
|
|
public void syncBusinessDataThread(Long projectId,Long contractId) {
|
|
|
|
|
|
- executorService.execute(()->{
|
|
|
+ //executorService.execute(()->{
|
|
|
try{
|
|
|
//将项目未锁定案卷拆卷
|
|
|
syncBusinessData(projectId,contractId);
|
|
@@ -267,7 +267,7 @@ public class ArchiveTreeContractSyncImpl {
|
|
|
//设置自动组卷结束
|
|
|
contractInfoService.updateIsArchivesAutoById(contractId, 0);
|
|
|
}
|
|
|
- });
|
|
|
+ //});
|
|
|
|
|
|
}
|
|
|
|
|
@@ -279,6 +279,8 @@ public class ArchiveTreeContractSyncImpl {
|
|
|
*/
|
|
|
public void syncBusinessData(Long projectId,Long contractId) {
|
|
|
|
|
|
+ log.info("同步文件 projectId:"+projectId+"-contractId:"+contractId);
|
|
|
+
|
|
|
//项目信息
|
|
|
ProjectInfo projectInfo = projectInfoService.getOne(projectId);
|
|
|
|
|
@@ -325,6 +327,10 @@ public class ArchiveTreeContractSyncImpl {
|
|
|
wbsTreeKeyToIdMap.put(wbsTreeContractVO6.getPKeyId(),wbsTreeContractVO6.getId());
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ log.info("同步文件 informationQueryList size :"+informationQueryList.size()+
|
|
|
+ " - archiveFiles :"+archiveFiles.size() + " - wbsTreeContractVO6s :"+wbsTreeContractVO6s.size());
|
|
|
+
|
|
|
//同步质检关联节点
|
|
|
syncNodes(contractId, informationQueryList, wbsTreeContractVO6Map, wbsTreeKeyToSortMap,
|
|
|
wbsTreeKeyToIdMap, archiveKeyIdMap, contractIndfo);
|
|
@@ -421,10 +427,14 @@ public class ArchiveTreeContractSyncImpl {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ log.info("同步文件 syncNodes"+associatedNodes.size());
|
|
|
+
|
|
|
Map<Long,Long> archiveTreeContractIdMap = new LinkedHashMap<>();
|
|
|
|
|
|
for (ArchiveTreeContract node : associatedNodes) {
|
|
|
Integer nodeLevel = Integer.valueOf(associatedNodes.get(0).getDisplayHierarchy());
|
|
|
+
|
|
|
+ log.info("同步文件 syncNode"+ nodeLevel + " " + node.getId() + " " + node.getNodeName());
|
|
|
if (nodeLevel == 0) {
|
|
|
continue;
|
|
|
}
|