| | |
| | | import cn.idev.excel.annotation.ExcelIgnoreUnannotated; |
| | | import cn.idev.excel.annotation.ExcelProperty; |
| | | import cn.idev.excel.annotation.write.style.ColumnWidth; |
| | | import com.ruoyi.system.annotation.ExcelValid; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @ApiModelProperty(value = "物料名称") |
| | | @ExcelProperty("物料名称") |
| | | @ColumnWidth(15) |
| | | @ExcelValid(message = "名称不能为空") |
| | | @NotBlank(message = "物料名称不能为空") |
| | | private String materialName; |
| | | |
| | |
| | | @ExcelProperty("单价") |
| | | @ColumnWidth(10) |
| | | @NotNull(message = "单价不能为空") |
| | | @ExcelValid(message = "单价不能为空") |
| | | @DecimalMin(value = "0.01", message = "单价必须大于0") |
| | | private BigDecimal unitPrice; |
| | | |
| | | @ApiModelProperty(value = "单位(元、平方米等)") |
| | | @ExcelProperty("单位") |
| | | @ColumnWidth(8) |
| | | @ExcelValid(message = "单位不能为空") |
| | | @NotBlank(message = "单位不能为空") |
| | | private String priceUnit; |
| | | |