| | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | |
| | | */ |
| | | private String sparePartsNo; |
| | | /** |
| | | * 备件价格 |
| | | */ |
| | | private BigDecimal price; |
| | | /** |
| | | * 数量 |
| | | */ |
| | | private BigDecimal quantity; |
| | | |
| | | /** |
| | | * 设备id集合(字符串,隔开) |
| | | */ |
| | | private String deviceIds; |
| | | |
| | | /** |
| | | * 设备名称集合(字符串,隔开) |
| | | */ |
| | | @TableField(exist = false) |
| | | private String deviceNameStr; |
| | | /** |
| | | * 备件父id |
| | | */ |
| | | private Long parentId; |
| | |
| | | * 备件分类描述 |
| | | */ |
| | | private String description; |
| | | @ApiModelProperty("创建时间") |
| | | @Schema(description = "创建时间") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("更新时间") |
| | | @Schema(description = "更新时间") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("创建人") |
| | | @Schema(description = "创建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("更新人") |
| | | @Schema(description = "更新人") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("租户id") |
| | | @Schema(description = "租户id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long tenantId; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long deptId; |
| | | } |