package com.by4cloud.platformx.business.vo; import com.alibaba.excel.annotation.ExcelIgnore; import com.alibaba.excel.annotation.ExcelProperty; import com.by4cloud.platformx.common.excel.annotation.ExcelLine; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotNull; import lombok.Data; import java.math.BigDecimal; @Data public class SubjectMatterExcelVO { /** * 导入时候回显行号 */ @ExcelLine @ExcelIgnore private Long lineNum; @ExcelProperty("标的物名称") private String materialName; @NotBlank(message = "erp编码不能为空") @ExcelProperty("erp编码") private String materialCode; @NotNull(message = "单价不能为空") @ExcelProperty("单价") private BigDecimal unitPrice; @NotNull(message = "数量不能为空") @ExcelProperty("数量") private BigDecimal quantity; }