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/dtos/community/DisabledPersonsDTO.java | 46 +++++++++++++++++++++++++++++----------------- 1 files changed, 29 insertions(+), 17 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/DisabledPersonsDTO.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/DisabledPersonsDTO.java index 961d48e..76c3f8e 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/DisabledPersonsDTO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/DisabledPersonsDTO.java @@ -1,14 +1,14 @@ package com.panzhihua.common.model.dtos.community; +import java.io.Serializable; + import com.alibaba.excel.annotation.ExcelProperty; + +import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; -import java.io.Serializable; -import java.util.Date; - /** - * Description 残疾人dto - * ClassName DisabledPersons + * Description 残疾人dto ClassName DisabledPersons * * @author manailin */ @@ -32,17 +32,20 @@ /** * 名字 */ - @ExcelProperty(value = "名字" ,index = 0) + @ExcelProperty(value = "名字", index = 0) + @Excel(name = "姓名(必填项)", width = 20, isImportField = "true_st") private String name; /** * 身份证号码 */ - @ExcelProperty(value = "身份证号码" ,index = 1) + @ExcelProperty(value = "身份证号码", index = 1) + @Excel(name = "身份证号码(必填项)", width = 20, isImportField = "true_st") private String cardNo; /** * 残疾人证编码 */ - @ExcelProperty(value = "残疾人证编码" ,index = 2) + @ExcelProperty(value = "残疾人证编码", index = 2) + @Excel(name = "残疾人证编码(必填项)", width = 20, isImportField = "true_st") private String disableSn; /** * 出生年月 @@ -51,12 +54,14 @@ /** * 残疾人证 */ - @ExcelProperty(value = "残疾人证" ,index = 3) + @ExcelProperty(value = "残疾人证类型", index = 3) + @Excel(name = "残疾人证类型(必填项)", width = 20, isImportField = "true_st") private String level; /** * 性别(取字典表国家编码) */ - @ExcelProperty(value = "性别" ,index = 4) + @ExcelProperty(value = "性别", index = 4) + @Excel(name = "性别(必填项)", width = 20, isImportField = "true_st") private String sex; /** * 性别名称 @@ -65,37 +70,44 @@ /** * 文化程度(取字典表国家编码)) */ - @ExcelProperty(value = "文化程度" ,index = 5) + @ExcelProperty(value = "文化程度", index = 5) + @Excel(name = "文化程度(必填项)", width = 20, isImportField = "true_st") private String cultureLevel; /** * 民族 */ - @ExcelProperty(value = "民族" ,index = 6) + @ExcelProperty(value = "民族", index = 6) + @Excel(name = "民族(必填项)", width = 20, isImportField = "true_st") private String nation; /** * 残疾部位/类别 */ - @ExcelProperty(value = "残疾部位" ,index = 7) + @ExcelProperty(value = "残疾类别", index = 7) + @Excel(name = "残疾类别(必填项)", width = 20, isImportField = "true_st") private String disableType; /** * 残疾级别 */ - @ExcelProperty(value = "残疾级别" ,index = 8) + @ExcelProperty(value = "残疾级别", index = 8) + @Excel(name = "残疾级别(必填项)", width = 20, isImportField = "true_st") private String disableLevel; /** * 联系电话 */ - @ExcelProperty(value = "联系电话" ,index = 9) + @ExcelProperty(value = "联系电话", index = 9) + @Excel(name = "联系电话(必填项)", width = 20, isImportField = "true_st") private String phone; /** * 监护人联系电话 */ - @ExcelProperty(value = "监护人联系电话" ,index =10) + @ExcelProperty(value = "监护人联系电话", index = 10) + @Excel(name = "监护人联系电话(必填项)", width = 20, isImportField = "true_st") private String guardianPhone; /** * 地址 */ - @ExcelProperty(value = "地址" ,index = 11) + @ExcelProperty(value = "地址", index = 11) + @Excel(name = "地址(必填项)", width = 20, isImportField = "true_st") private String address; /** * 创建用户 -- Gitblit v1.7.1