REQ-3540: try to repair tree

This commit is contained in:
yanglin 2025-03-21 14:06:13 +08:00
parent 2777ca5b55
commit 0dde6cba80

View File

@ -19,9 +19,9 @@ import lombok.Setter;
@ConfigurationProperties(prefix = "doc")
public class DocProps {
private String createFileWordOssFileKey = "ent-workspace-empty-docx";
private String createFileExcelFileKey = "ent-workspace-empty-xlsx";
private String createFilePptFileKey = "ent-workspace-empty-pptx";
private String createFileOssFileKeyWord = "ent-workspace-empty-docx";
private String createFileFileKeyExcel = "ent-workspace-empty-xlsx";
private String createFileFileKeyPpt = "ent-workspace-empty-pptx";
private int indexNodeMaxChildrenSize = 200;
private int indexNodeMaxDepth = 10;
private int indexNodeMaxCopyFileSize = 1000;
@ -37,11 +37,11 @@ public class DocProps {
public String createFileOssFileKey(FileFormat format) {
if (format == FileFormat.WORD)
return createFileWordOssFileKey;
return createFileOssFileKeyWord;
if (format == FileFormat.EXCEL)
return createFileExcelFileKey;
return createFileFileKeyExcel;
if (format == FileFormat.PDF)
return createFilePptFileKey;
return createFileFileKeyPpt;
return "";
}