1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
 
}