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/DocumentMaterials.java |   50 ++++++++++++++++++++++++++------------------------
 1 files changed, 26 insertions(+), 24 deletions(-)

diff --git a/archiveManager/src/main/java/com/ruoyi/domain/DocumentMaterials.java b/archiveManager/src/main/java/com/ruoyi/domain/DocumentMaterials.java
index 5ee3df9..002ce80 100644
--- a/archiveManager/src/main/java/com/ruoyi/domain/DocumentMaterials.java
+++ b/archiveManager/src/main/java/com/ruoyi/domain/DocumentMaterials.java
@@ -12,6 +12,7 @@
 import org.apache.commons.lang3.builder.ToStringStyle;
 import com.ruoyi.common.annotation.Excel;
 import com.ruoyi.common.core.domain.BaseEntity;
+import org.apache.poi.ss.usermodel.IndexedColors;
 
 /**
  * 銆愭枃浠舵潗鏂欑患鍚堜俊鎭�戝璞� document_materials
@@ -26,11 +27,11 @@
     /** $column.columnComment */
     @TableId(type = IdType.AUTO)
     private Long materialId;
-    @Excel(name = "鏂囦欢鏉愭枡搴忓彿", handler = NumberFormatHandler.class)
+    @Excel(name = "鏂囦欢鏉愭枡搴忓彿", handler = NumberFormatHandler.class, headerColor = IndexedColors.BLACK)
     private Long fileNumber;
 
 
-    @Excel(name = "鏂囦欢缂栧彿")
+    @Excel(name = "鏂囦欢缂栧彿", headerColor = IndexedColors.BLACK)
     private String documentNumber;
 
 
@@ -44,36 +45,37 @@
     }
 
     /** $column.columnComment */
-    @Excel(name = "缂栦换鑰�")
+    @Excel(name = "缂栦换鑰�", headerColor = IndexedColors.BLACK)
     private String creator;
 
     /** $column.columnComment */
-    @Excel(name = "鏂囦欢棰樺悕")
+    @Excel(name = "鏂囦欢棰樺悕", headerColor = IndexedColors.BLACK)
     private String title;
 
     /** $column.columnComment */
     @JsonFormat(pattern = "yyyy-MM-dd")
-    @Excel(name = "鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd")
+    @Excel(name = "鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd", headerColor = IndexedColors.BLACK)
     private Date date;
 
     /** $column.columnComment */
-    @Excel(name = "椤靛彿", handler = NumberFormatHandler.class)
+   // @Excel(name = "椤靛彿", handler = NumberFormatHandler.class, headerColor = IndexedColors.BLACK)
     private Long pageNumber;
-
+    @Excel(name = "椤靛彿", height = 10,width = 10,headerColor = IndexedColors.RED, headerBackgroundColor = IndexedColors.WHITE)
+    private String pageNumberFormatted;
     /** $column.columnComment */
-    @Excel(name = "椤垫")
+    @Excel(name = "椤垫", headerColor = IndexedColors.BLACK)
     private Long pageOrder;
 
     /** $column.columnComment */
-    @Excel(name = "鎵�澶勯樁娈�")
+    @Excel(name = "鎵�澶勯樁娈�", headerColor = IndexedColors.BLACK)
     private String stage;
 
     /** $column.columnComment */
-    @Excel(name = "鍏紑灞炴��")
+    @Excel(name = "鍏紑灞炴��", headerColor = IndexedColors.BLACK)
     private String publicity;
 
     /** $column.columnComment */
-    @Excel(name = "鏄惁涓洪檮浠堕檮鍥�")
+    @Excel(name = "鏄惁涓洪檮浠堕檮鍥�", headerColor = IndexedColors.BLACK)
     private String isAttachment;
 
     /** $column.columnComment */
@@ -81,55 +83,55 @@
     private String isDiagram;
 
     /** $column.columnComment */
-    @Excel(name = "淇濈鏈熼檺")
+    @Excel(name = "淇濈鏈熼檺", headerColor = IndexedColors.BLACK)
     private String retentionPeriod;
 
     /** $column.columnComment */
-    @Excel(name = "瀵嗙骇")
+    @Excel(name = "瀵嗙骇", headerColor = IndexedColors.BLACK)
     private String securityLevel;
 
     /** $column.columnComment */
-    @Excel(name = "鏄惁娑夊瘑鍙婃晱鎰熶俊鎭�")
+    @Excel(name = "鏄惁娑夊瘑鍙婃晱鎰熶俊鎭�", headerColor = IndexedColors.BLACK)
     private String isSensitive;
 
     /** $column.columnComment */
-    @Excel(name = "鏄惁娉ㄩ攢")
+    @Excel(name = "鏄惁娉ㄩ攢", headerColor = IndexedColors.BLACK)
     private String isCanceled;
 
     /** $column.columnComment */
-    @Excel(name = "鏍煎紡")
+    @Excel(name = "鏍煎紡", headerColor = IndexedColors.BLACK)
     private String format;
 
     /** $column.columnComment */
-    @Excel(name = "骞呴潰")
+    @Excel(name = "骞呴潰", headerColor = IndexedColors.BLACK)
     private String sizeType;
 
     /** $column.columnComment */
-    @Excel(name = "姘村钩鍒嗚鲸鐜�")
+    @Excel(name = "姘村钩鍒嗚鲸鐜�", headerColor = IndexedColors.BLACK)
     private Long horizontalResolution;
 
     /** $column.columnComment */
-    @Excel(name = "鍨傜洿鍒嗚鲸鐜�")
+    @Excel(name = "鍨傜洿鍒嗚鲸鐜�", headerColor = IndexedColors.BLACK)
     private Long verticalResolution;
 
     /** $column.columnComment */
-    @Excel(name = "瀹藉害")
+    @Excel(name = "瀹藉害", headerColor = IndexedColors.BLACK)
     private Long width;
 
     /** $column.columnComment */
-    @Excel(name = "楂樺害")
+    @Excel(name = "楂樺害", headerColor = IndexedColors.BLACK)
     private Long height;
 
     /** $column.columnComment */
-    @Excel(name = "澶у皬")
+    @Excel(name = "澶у皬", headerColor = IndexedColors.BLACK)
     private Double fileSize;
 
     /** $column.columnComment */
-    @Excel(name = "闄勪欢鍙婂巻鍙插彂鏂囧彿")
+    @Excel(name = "闄勪欢鍙婂巻鍙插彂鏂囧彿", headerColor = IndexedColors.BLACK)
     private String attachmentHistoryNumbers;
 
     /** $column.columnComment */
-    @Excel(name = "澶囨敞")
+    @Excel(name = "澶囨敞", headerColor = IndexedColors.BLACK)
     private String remarks;
 
     /** $column.columnComment */

--
Gitblit v1.9.1