1、发布工具流程-关联工具细节调整

2、文档资源管理调整
This commit is contained in:
pan
2024-08-29 22:01:03 +08:00
parent f1b84cb823
commit f0a14bcd3c
19 changed files with 995 additions and 53 deletions

View File

@@ -182,4 +182,17 @@ public class Constants
public static final String DOWNLOAD_TOOL_PERMISSION = "download:done:tool";
/** 文档-状态-已发布 **/
public static final String DOC_STATUS_YFB = "yfb";
/** 文档-状态-已上传 **/
public static final String DOC_STATUS_YSC = "ysc";
/** 文档-状态-审核中 **/
public static final String DOC_STATUS_SHZ = "shz";
/** 文档-doc **/
public static final String DOC_TYPE_DOC = "doc";
public static final String STR_ZERO = "0";
public static final String STR_ONE = "1";
}

View File

@@ -328,4 +328,12 @@ public class FileUploadUtils
}
return null;
}
public static String extractSuffix(String filePath) {
int lastDotIndex = filePath.lastIndexOf('.');
if (lastDotIndex == -1) {
return ""; // 没有后缀
}
return filePath.substring(lastDotIndex + 1); // 去掉点(.
}
}