|
@@ -149,7 +149,7 @@ public class TbEnterpriseService extends ServiceImpl<TbEnterpriseMapper, TbEnter
|
|
|
public String outportExcel(String keyword,String filepath) throws IOException {
|
|
|
System.out.println("\n开始执行文件导出....\n");
|
|
|
//导出的文件的路径
|
|
|
- if(filepath == null){
|
|
|
+ if(filepath == null || filepath.trim().equals("")){
|
|
|
// 获取当前用户的桌面路径
|
|
|
FileSystemView fileSystemView = FileSystemView.getFileSystemView();
|
|
|
filepath = fileSystemView.getHomeDirectory().getPath();
|