From 8bda10c23c7a7d772669e610e56e80de099b0747 Mon Sep 17 00:00:00 2001
From: CharlieJohn <8595764@qq.com>
Date: 星期四, 17 六月 2021 09:30:52 +0800
Subject: [PATCH] !54 fix 生成器生成的 service 和 serviceImpl 中 deleteWithValidByIds 参数字段类型错误 * fix 生成器生成的 service 和 serviceImpl 中 deleteWithValidByIds 参数字段类型错误
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
index 7418a2c..38913f5 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
@@ -54,10 +54,10 @@
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
FileUtils.setAttachmentResponseHeader(response, realFileName);
- FileUtils.writeBytes(filePath, response.getOutputStream());
+ FileUtils.writeToStream(filePath, response.getOutputStream());
if (delete)
{
- FileUtils.deleteFile(filePath);
+ FileUtils.del(filePath);
}
}
catch (Exception e)
@@ -111,7 +111,7 @@
String downloadName = StrUtil.subAfter(downloadPath, "/",true);
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
FileUtils.setAttachmentResponseHeader(response, downloadName);
- FileUtils.writeBytes(downloadPath, response.getOutputStream());
+ FileUtils.writeToStream(downloadPath, response.getOutputStream());
}
catch (Exception e)
{
--
Gitblit v1.9.3