From 4ed22ab2c783a4317860025bdc2fb994afe2e3fc Mon Sep 17 00:00:00 2001
From: zm <2369059705qq.com>
Date: 星期三, 04 九月 2024 18:43:24 +0800
Subject: [PATCH] 归档优化
---
src/main/java/com/product/file/controller/WebOfficeController.java | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/product/file/controller/WebOfficeController.java b/src/main/java/com/product/file/controller/WebOfficeController.java
index 1ad734e..7478895 100644
--- a/src/main/java/com/product/file/controller/WebOfficeController.java
+++ b/src/main/java/com/product/file/controller/WebOfficeController.java
@@ -176,11 +176,15 @@
}
//鏂囦欢鍚嶏紙绐楀彛鐨勫悕瀛楋級
String file_title = fse.getString("fileName");
- if (file_title == null) {
- file_title = "";
- } else {
- file_title = UnicodeUtil.toString(file_title);
+ FieldSetEntity fieldSetEntity = fileManagerService.getBaseDao().getFieldSetEntity("product_sys_attachments", fse.getString("uuid"), false);
+ if (!FieldSetEntity.isEmpty(fieldSetEntity)) {
+ file_title = fieldSetEntity.getString("file_name");
}
+// if (file_title == null) {
+// file_title = "";
+// } else {
+// file_title = UnicodeUtil.toString(file_title);
+// }
SystemUser currentUser = SpringMVCContextHolder.getCurrentUser();
//
Boolean allowNestRed = false;
--
Gitblit v1.9.2