From 359f1d48b1d859a23cd35a425d2cffb1e9d1c811 Mon Sep 17 00:00:00 2001
From: fei <791364011@qq.com>
Date: 星期五, 26 十二月 2025 19:58:59 +0800
Subject: [PATCH] 修改了对应代码

---
 archiveManager/src/main/java/com/ruoyi/domain/vo/DocumentMaterialsVo.java |   27 +++++++++++++++++----------
 1 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/archiveManager/src/main/java/com/ruoyi/domain/vo/DocumentMaterialsVo.java b/archiveManager/src/main/java/com/ruoyi/domain/vo/DocumentMaterialsVo.java
index d9f57ba..7cf33a2 100644
--- a/archiveManager/src/main/java/com/ruoyi/domain/vo/DocumentMaterialsVo.java
+++ b/archiveManager/src/main/java/com/ruoyi/domain/vo/DocumentMaterialsVo.java
@@ -3,6 +3,7 @@
 import com.fasterxml.jackson.annotation.JsonFormat;
 import com.ruoyi.common.annotation.Excel;
 import lombok.Data;
+import org.apache.poi.ss.usermodel.IndexedColors;
 
 import java.util.Date;
 
@@ -10,30 +11,33 @@
 public class DocumentMaterialsVo {
 
 
-    @Excel(name="搴忓彿", height = 10,width=10)
+    @Excel(name="搴忓彿", height = 10,width=8,headerColor = IndexedColors.RED, headerBackgroundColor = IndexedColors.WHITE)
     private Long num;
-    @Excel(name = "鏂囦欢缂栧彿", height = 10, width=15)
+    @Excel(name = "鏂囦欢缂栧彿", height = 10, width=8,headerColor = IndexedColors.BLACK, headerBackgroundColor = IndexedColors.WHITE)
     private String documentNumber;
-    @Excel(name = "璐d换鑰�", height = 10, width=10)
+    @Excel(name = "璐d换鑰�", height = 10, width=8,headerColor = IndexedColors.BLACK, headerBackgroundColor = IndexedColors.WHITE)
     private String creator;
-    @Excel(name = "鏂囦欢棰樺悕", height = 20)
+    @Excel(name = "鏂囦欢棰樺悕", height = 8,headerColor = IndexedColors.RED, headerBackgroundColor = IndexedColors.WHITE)
 
     private String title;
 
     @JsonFormat(pattern = "yyyy-MM-dd")
 
-    @Excel(name = "鏃ユ湡", width = 10, dateFormat = "yyyy-MM-dd", height = 10)
+    @Excel(name = "鏃ユ湡", width = 10, dateFormat = "yyyy-MM-dd", height = 10,headerColor = IndexedColors.BLACK, headerBackgroundColor = IndexedColors.WHITE)
 
     private Date date;
-    @Excel(name = "椤靛彿", height = 10,width = 10)
-
+    // 椤靛彿锛堝師濮嬫暟鍊硷紝鐢ㄤ簬璁$畻锛�
     private Long pageNumber;
-    @Excel(name = "澶囨敞", height = 20)
+    
+    // 鏍煎紡鍖栧悗鐨勯〉鍙凤紝鐢ㄤ簬鏄剧ず鑼冨洿锛屽"38-38"鎴�"23-38"
+    @Excel(name = "椤靛彿", height = 10,width = 10,headerColor = IndexedColors.RED, headerBackgroundColor = IndexedColors.WHITE)
+    private String pageNumberFormatted;
+    @Excel(name = "澶囨敞", height = 20,width=10,headerColor = IndexedColors.BLACK, headerBackgroundColor = IndexedColors.WHITE)
     private String remarks;
 
-    @Excel(name = "妗e彿", height = 10)
+    @Excel(name = "妗e彿", height = 10,width=10,headerColor = IndexedColors.RED, headerBackgroundColor = IndexedColors.WHITE, headerFontName = "Arial", headerFontBold = true)
     private String recordId;
-    @Excel(name = "鍏紑灞炴��", height = 10)
+    @Excel(name = "鍏紑灞炴��", height = 10,width=10,headerColor = IndexedColors.BLACK, headerBackgroundColor = IndexedColors.WHITE)
     private String publicity;
 
 
@@ -41,3 +45,6 @@
 //    @Excel(name = "鍥剧墖", cellType = Excel.ColumnType.IMAGE)
 //    private String url;
 }
+
+
+

--
Gitblit v1.9.1