liuyier commented on issue #648:
URL: https://github.com/apache/fesod/issues/648#issuecomment-3414246210
> 请问你能提供一下那个`ExcelTest`实体类吗?
@Data
@Accessors(chain = true)
@ExcelIgnoreUnannotated
@ColumnWidth(20)
@HeadRowHeight(20)
@ContentRowHeight(15)
@HeadStyle(borderBottom = BorderStyleEnum.DOTTED, borderLeft =
BorderStyleEnum.DOTTED, borderRight = BorderStyleEnum.DOTTED, borderTop =
BorderStyleEnum.DOTTED,fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND,
fillForegroundColor = 9)
@HeadFontStyle(fontHeightInPoints = 12)
@ContentStyle(borderBottom = BorderStyleEnum.DOTTED, borderLeft =
BorderStyleEnum.DOTTED, borderRight = BorderStyleEnum.DOTTED, borderTop =
BorderStyleEnum.DOTTED,horizontalAlignment = HorizontalAlignmentEnum.CENTER)
@ContentFontStyle(fontHeightInPoints = 11)
public class ExcelTest {
@ExcelProperty({"刘燃", "姓名"})
@NotBlank(message = "姓名不能为空")
@Encrypt(type = EncryptTypeEnum.NAME)
private String name;
@ExcelProperty({"刘燃", "年龄"})
@Encrypt(type = EncryptTypeEnum.CUSTOMER)
private String age;
@Encrypt(type = EncryptTypeEnum.PHONE)
private String phone;
@Encrypt(type = EncryptTypeEnum.ID_CARD)
private String idCard;
@ExcelProperty({"刘燃1", "性别"})
private String gender;
@ExcelProperty("错误")
private String YC_ComponentCode;
@ExcelProperty("分数")
@DecimalMin("100")
@NumberFormat("#,###.00")
private BigDecimal score;
@ExcelProperty("数量")
private BigDecimal number;
@ExcelProperty("日期")
@DateTimeFormat("yyyy-MM-dd HH:mm:ss")
private LocalDateTime date;
}
很常规的一个实体,
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]