|
@@ -1770,10 +1770,8 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
|
|
|
Integer indexType = 0;
|
|
Integer indexType = 0;
|
|
ArchiveProjectConfig config = archiveProjectConfigService.getByProjectIdOrNew(projectId);
|
|
ArchiveProjectConfig config = archiveProjectConfigService.getByProjectIdOrNew(projectId);
|
|
- if (config!= null && config.bAutoIndexLen4()) {
|
|
|
|
- indexType = 1;
|
|
|
|
- }
|
|
|
|
- this.refreshFileNumberNoSlipt(list,contractId,nodeId,bforce,indexType);
|
|
|
|
|
|
+
|
|
|
|
+ this.refreshFileNumberNoSlipt(list,contractId,nodeId,bforce,config.getIndexType(),config.getDirType());
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1782,11 +1780,18 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
* @param contractId
|
|
* @param contractId
|
|
* @param nodeId
|
|
* @param nodeId
|
|
*/
|
|
*/
|
|
- public void refreshFileNumberNoSlipt(List<ArchiveTreeContract> archiveTreeContracts,Long contractId,Long nodeId,boolean bforce,Integer indexType) {
|
|
|
|
|
|
+ public void refreshFileNumberNoSlipt(List<ArchiveTreeContract> archiveTreeContracts,Long contractId,Long nodeId,boolean bforce,Integer indexType, Integer dirType) {
|
|
|
|
|
|
List<ArchiveTreeContractVO2> subTreeList = new ArrayList<>();
|
|
List<ArchiveTreeContractVO2> subTreeList = new ArrayList<>();
|
|
List<List<ArchiveTreeContract>> subGroupedList = new ArrayList<>();
|
|
List<List<ArchiveTreeContract>> subGroupedList = new ArrayList<>();
|
|
- ArchiveTreeUtil.getGroupedList(archiveTreeContracts,subTreeList,subGroupedList);
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if (dirType == 1) {
|
|
|
|
+ ArchiveTreeUtil.getGroupedListSub(archiveTreeContracts,subTreeList,subGroupedList);
|
|
|
|
+ }else {
|
|
|
|
+ ArchiveTreeUtil.getGroupedList(archiveTreeContracts,subTreeList,subGroupedList);
|
|
|
|
+ }
|
|
|
|
+
|
|
Integer index = 1;
|
|
Integer index = 1;
|
|
|
|
|
|
List<ArchivesAuto> changeList = new ArrayList<>();
|
|
List<ArchivesAuto> changeList = new ArrayList<>();
|