From 34993855d43464975517e812e6bb0538bc2dc926 Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期二, 23 九月 2025 09:59:00 +0800
Subject: [PATCH] yys 1.回款登记台账页面,增加一个开票日期列,和开票日期时间段查询 2.开票登记台账页面,增加合同录入日期列,和合同录入日期时间段查询
---
src/main/java/com/ruoyi/project/common/CommonController.java | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/main/java/com/ruoyi/project/common/CommonController.java b/src/main/java/com/ruoyi/project/common/CommonController.java
index d5a6bcf..c575425 100644
--- a/src/main/java/com/ruoyi/project/common/CommonController.java
+++ b/src/main/java/com/ruoyi/project/common/CommonController.java
@@ -1,5 +1,6 @@
package com.ruoyi.project.common;
+import java.io.File;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
@@ -52,16 +53,15 @@
{
throw new Exception(StringUtils.format("鏂囦欢鍚嶇О({})闈炴硶锛屼笉鍏佽涓嬭浇銆� ", fileName));
}
- String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1);
- String filePath = RuoYiConfig.getDownloadPath() + fileName;
+ String realFileName = fileName.substring(fileName.indexOf("_") + 1);
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
FileUtils.setAttachmentResponseHeader(response, realFileName);
- FileUtils.writeBytes(filePath, response.getOutputStream());
- if (delete)
- {
- FileUtils.deleteFile(filePath);
- }
+ FileUtils.writeBytes(fileName, response.getOutputStream());
+// if (delete)
+// {
+// FileUtils.deleteFile(fileName);
+// }
}
catch (Exception e)
{
--
Gitblit v1.9.3