|
@@ -996,12 +996,31 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
archivesAuto.setUnit(unit);//立卷单位
|
|
|
//archivesAuto.setQuantity();//数量/单位
|
|
|
|
|
|
- archivesAuto.setSpecification(node.getSpecification());//案卷规格 从节点规格获取
|
|
|
+
|
|
|
//archivesAuto.setStartDate(LocalDateTime.parse(startDate));//文件开始时间
|
|
|
//archivesAuto.setEndDate(LocalDateTime.parse(endDate));//文件结束时间
|
|
|
+ String storageTime = node.getStorageTime();
|
|
|
+ String specification = node.getSpecification();
|
|
|
+ String rollor = node.getRollor();
|
|
|
+ String reviewer = node.getReviewer();
|
|
|
+
|
|
|
+ //如果没有找到立卷人,则向上找到配置立卷人的节点,取配置
|
|
|
+ if (StringUtils.isEmpty(node.getRollor())) {
|
|
|
+ ArchiveTreeContract matchNode = archiveTreeContractClient.getMatchNode(node.getId());
|
|
|
+
|
|
|
+ if (matchNode!= null ) {
|
|
|
+ storageTime = matchNode.getStorageTime();
|
|
|
+ specification = matchNode.getSpecification();
|
|
|
+ rollor = matchNode.getRollor();
|
|
|
+ reviewer = matchNode.getReviewer();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ archivesAuto.setSpecification(specification);//案卷规格 从节点规格获取
|
|
|
|
|
|
//TODO 保管期限
|
|
|
- String storageTime = node.getStorageTime();
|
|
|
+ //String storageTime = node.getStorageTime();
|
|
|
if (StringUtils.isEmpty(storageTime)) {
|
|
|
//节点没有值,就从合同段获取,没有合同段id的 用业主的合同段
|
|
|
Long nodeContractId = archivesAuto.getContractId();
|
|
@@ -1065,7 +1084,7 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
archivesAuto.setSecretLevel(secretLevel);
|
|
|
|
|
|
//立卷人 从节点规格获取
|
|
|
- String rollor = node.getRollor();
|
|
|
+ //String rollor = node.getRollor();
|
|
|
if (StringUtils.isEmpty(rollor)) {
|
|
|
//节点没有值,就从合同段获取,没有合同段id的 用业主的合同段
|
|
|
Long nodeContractId = archivesAuto.getContractId();
|
|
@@ -1089,7 +1108,7 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
archivesAuto.setRollor(rollor);
|
|
|
|
|
|
//审核人 从节点规格获取
|
|
|
- String reviewer = node.getReviewer();
|
|
|
+ //String reviewer = node.getReviewer();
|
|
|
if (StringUtils.isEmpty(reviewer)) {
|
|
|
//节点没有值,就从合同段获取,没有合同段id的 用业主的合同段
|
|
|
Long nodeContractId = archivesAuto.getContractId();
|