From 179c4d64313c9b7572778da4aaaf6c6584fe457d Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期二, 20 五月 2025 23:48:08 +0800 Subject: [PATCH] 修改文件上传类型限制 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComMngRealAssetsExcelVO.java | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComMngRealAssetsExcelVO.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComMngRealAssetsExcelVO.java index de93c7a..8d2c01b 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComMngRealAssetsExcelVO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComMngRealAssetsExcelVO.java @@ -1,9 +1,11 @@ package com.panzhihua.common.model.vos.community; -import com.alibaba.excel.annotation.ExcelProperty; -import lombok.Data; - import java.io.Serializable; +import java.math.BigDecimal; + +import com.alibaba.excel.annotation.ExcelProperty; + +import lombok.Data; /** * @description: 实有单位 @@ -13,26 +15,25 @@ @Data public class ComMngRealAssetsExcelVO implements Serializable { - - @ExcelProperty(value = "资产名称" ,index = 0) + @ExcelProperty(value = "资产名称", index = 0) private String name; - @ExcelProperty(value = "位置" ,index = 1) + @ExcelProperty(value = "位置", index = 1) private String address; - @ExcelProperty(value = "分类" ,index = 2) + @ExcelProperty(value = "分类", index = 2) private String category; - @ExcelProperty(value = "占地面积" ,index = 3) - private String square; + @ExcelProperty(value = "占地面积", index = 3) + private BigDecimal square; - @ExcelProperty(value = "数量" ,index = 4) + @ExcelProperty(value = "数量", index = 4) private Integer num; - @ExcelProperty(value = "建筑类型" ,index = 5) + @ExcelProperty(value = "建筑类型", index = 5) private String buildTypeName; - @ExcelProperty(value = "楼层类型" ,index = 6) + @ExcelProperty(value = "楼层类型", index = 6) private String floorType; } -- Gitblit v1.7.1