1. 文件下载无法打开bug
This commit is contained in:
parent
3c28d43fe4
commit
bae601c048
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,6 +69,18 @@ public enum BusinessType
|
|||
* 查询日志
|
||||
*/
|
||||
QUERY(12, "查询"),
|
||||
/**
|
||||
* 上传
|
||||
*/
|
||||
UPLOAD(13, "上传"),
|
||||
/**
|
||||
* 下载
|
||||
*/
|
||||
DOWNLOAD(14, "下载"),
|
||||
/**
|
||||
* 预览
|
||||
*/
|
||||
PREVIEW(15, "预览")
|
||||
;
|
||||
private final Integer code;
|
||||
private final String desc;
|
||||
|
|
|
|||
Loading…
Reference in New Issue