1. 文件下载无法打开bug

This commit is contained in:
zhaowenyuan 2024-06-29 10:41:50 +08:00
parent 3c28d43fe4
commit bae601c048
2 changed files with 16 additions and 2 deletions

View File

@ -74,13 +74,15 @@ public class FileUtils extends FileUtil {
}
public static boolean deleteFile(String filePath) {
boolean flag = false;
File file = new File(filePath);
return deleteFile(file);
}
public static boolean deleteFile(File file){
boolean flag = false;
if (file.isFile() && file.exists()) {
file.delete();
flag = true;
}
return flag;
}

View File

@ -69,6 +69,18 @@ public enum BusinessType
* 查询日志
*/
QUERY(12, "查询"),
/**
* 上传
*/
UPLOAD(13, "上传"),
/**
* 下载
*/
DOWNLOAD(14, "下载"),
/**
* 预览
*/
PREVIEW(15, "预览")
;
private final Integer code;
private final String desc;