1、发布工具流程-关联工具细节调整
2、文档资源管理调整
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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); // 去掉点(.)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user