|
@@ -1011,6 +1011,46 @@ public class ArchiveTreeContractServiceImpl extends BaseServiceImpl<ArchiveTreeC
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param wbsId
|
|
|
+ * @param level
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public Long getWbsKeyIdFromLayer(Long wbsId,Long level){
|
|
|
+ return 0L;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param wbskeyId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public Long getNodeIdFromWbsKeyId(Long wbskeyId,Long attachId){
|
|
|
+ return 0L;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据 wbsId,contractId 获取u_information_query得信息,
|
|
|
+ * 根据nodeId,看是否有归属于该nodeId得文件,新增或者更新url
|
|
|
+ * @param nodeId
|
|
|
+ * @param wbsId
|
|
|
+ * @param contractId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public Integer addOrUpDateArchiveFile(Long nodeId,Long wbsId, Long contractId ) {
|
|
|
+
|
|
|
+ return 0;
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 将电签文件写到
|
|
|
+ * @param wbsId
|
|
|
+ * @param contractId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
public Integer writeBusinessData(Long wbsId, Long contractId) {
|
|
|
// 这里省略了具体实现,可根据业务需求编写相应的逻辑
|
|
|
|
|
@@ -1020,8 +1060,17 @@ public class ArchiveTreeContractServiceImpl extends BaseServiceImpl<ArchiveTreeC
|
|
|
}
|
|
|
|
|
|
for (ArchiveTreeContract associatedNode:associatedNodes) {
|
|
|
+ Long attachId = associatedNode.getId();
|
|
|
+
|
|
|
+ Long level = null;
|
|
|
+ if (associatedNode.getDisplayHierarchy()!= null) {
|
|
|
+ level = Long.parseLong(associatedNode.getDisplayHierarchy());
|
|
|
+ }
|
|
|
|
|
|
+ Long keyId = getWbsKeyIdFromLayer(wbsId,level);
|
|
|
+ Long nodeId = getNodeIdFromWbsKeyId(keyId,attachId);
|
|
|
|
|
|
+ addOrUpDateArchiveFile(nodeId,wbsId,contractId);
|
|
|
|
|
|
}
|
|
|
|