| | |
| | | import com.alibaba.excel.annotation.ExcelIgnore; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.iailab.iems.common.annotation.Dict; |
| | | import com.iailab.iems.common.validator.group.AddGroup; |
| | | import com.iailab.iems.common.validator.group.UpdateGroup; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Null; |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Schema(description = "id") |
| | | @Null(message="{id.null}", groups = AddGroup.class) |
| | | @NotNull(message="{id.require}", groups = UpdateGroup.class) |
| | | @ExcelIgnore |
| | | private String id; |
| | | |
| | |
| | | private String xm; |
| | | |
| | | @Schema(description = "项目名称") |
| | | @Dict(dicCode = "sckjxm", itemValue = "xm") |
| | | @ExcelProperty(index = 0) |
| | | private String xmName; |
| | | |