|
@@ -43,6 +43,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.io.File;
|
|
|
import java.io.FileInputStream;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
@@ -230,7 +231,10 @@ public class SysUserExportServiceImpl implements SysUserExportService {
|
|
|
resultValue = ERROR_MSG_UNKNOWN;
|
|
|
} finally {
|
|
|
// 移除缓存文件
|
|
|
- FileUtil.del(fileName);
|
|
|
+ File file = new File(fileName);
|
|
|
+ if (file.exists()) {
|
|
|
+ file.delete();
|
|
|
+ }
|
|
|
|
|
|
// 删除限流key
|
|
|
String limitKey = CacheConstants.ASYNC_EXPORT_LIMIT_KEY;
|