From f0aac7e028b09aefa2428a8d66fdb81e466a89fe Mon Sep 17 00:00:00 2001
From: fei <791364011@qq.com>
Date: 星期三, 19 十一月 2025 15:35:52 +0800
Subject: [PATCH] 修改了对应代码
---
archiveManager/src/main/java/com/ruoyi/domain/DocumentMaterials.java | 65 ++++++++++++++++++++++++++------
1 files changed, 53 insertions(+), 12 deletions(-)
diff --git a/archiveManager/src/main/java/com/ruoyi/domain/DocumentMaterials.java b/archiveManager/src/main/java/com/ruoyi/domain/DocumentMaterials.java
index 5206ff0..0becc32 100644
--- a/archiveManager/src/main/java/com/ruoyi/domain/DocumentMaterials.java
+++ b/archiveManager/src/main/java/com/ruoyi/domain/DocumentMaterials.java
@@ -7,13 +7,14 @@
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.common.annotation.NumberFormatHandler;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
- * 銆愯濉啓鍔熻兘鍚嶇О銆戝璞� document_materials
+ * 銆愭枃浠舵潗鏂欑患鍚堜俊鎭�戝璞� document_materials
*
* @author ruoyi
* @date 2025-07-26
@@ -25,21 +26,38 @@
/** $column.columnComment */
@TableId(type = IdType.AUTO)
private Long materialId;
+ @Excel(name = "鏂囦欢鏉愭枡搴忓彿", handler = NumberFormatHandler.class)
+ private Long fileNumber;
+
+
+ @Excel(name = "鏂囦欢缂栧彿")
+ private String documentNumber;
+
+
+
+ public Long getFileNumber() {
+ return fileNumber;
+ }
+
+ public void setFileNumber(Long fileNumber) {
+ this.fileNumber = fileNumber;
+ }
/** $column.columnComment */
- @Excel(name = "鏂囦欢缂栦换鑰�")
+ @Excel(name = "缂栦换鑰�")
private String creator;
/** $column.columnComment */
- @Excel(name = "鏂囦欢鎻愬悕")
+ @Excel(name = "鏂囦欢棰樺悕")
private String title;
/** $column.columnComment */
- @Excel(name = "鏃ユ湡")
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = "鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd")
private Date date;
/** $column.columnComment */
- @Excel(name = "椤靛彿")
+ @Excel(name = "椤靛彿", handler = NumberFormatHandler.class)
private Long pageNumber;
/** $column.columnComment */
@@ -55,11 +73,11 @@
private String publicity;
/** $column.columnComment */
- @Excel(name = "鏄惁涓洪檮浠�")
+ @Excel(name = "鏄惁涓洪檮浠堕檮鍥�")
private String isAttachment;
/** $column.columnComment */
- @Excel(name = "鏄惁涓洪檮鍥�")
+// @Excel(name = "鏄惁涓洪檮鍥�")
private String isDiagram;
/** $column.columnComment */
@@ -104,7 +122,7 @@
/** $column.columnComment */
@Excel(name = "澶у皬")
- private Long fileSize;
+ private Double fileSize;
/** $column.columnComment */
@Excel(name = "闄勪欢鍙婂巻鍙插彂鏂囧彿")
@@ -115,15 +133,30 @@
private String remarks;
/** $column.columnComment */
- @Excel(name = "${comment}")
private Date createdAt;
/** $column.columnComment */
- @Excel(name = "${comment}")
private Date updatedAt;
+ private String fileStyle;
+ public String getUrl() {
+ return url;
+ }
+ public void setUrl(String url) {
+ this.url = url;
+ }
+
+ private String url;
private Long recordId;
+
+ public String getFileStyle() {
+ return fileStyle;
+ }
+
+ public void setFileStyle(String fileStyle) {
+ this.fileStyle = fileStyle;
+ }
public Long getRecordId() {
return recordId;
@@ -253,6 +286,14 @@
return securityLevel;
}
+ public String getDocumentNumber() {
+ return documentNumber;
+ }
+
+ public void setDocumentNumber(String documentNumber) {
+ this.documentNumber = documentNumber;
+ }
+
public void setIsSensitive(String isSensitive)
{
this.isSensitive = isSensitive;
@@ -333,12 +374,12 @@
return height;
}
- public void setFileSize(Long fileSize)
+ public void setFileSize(Double fileSize)
{
this.fileSize = fileSize;
}
- public Long getFileSize()
+ public Double getFileSize()
{
return fileSize;
}
--
Gitblit v1.9.1