package com.ruoyi.lims.pojo; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; @Data @TableName("lims_instrument") public class Instrument implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty(value = "ID") @TableId(value = "id", type = IdType.AUTO) private Long id; @ApiModelProperty(value = "Instrument code") private String instrumentCode; @ApiModelProperty(value = "Instrument name") private String instrumentName; @ApiModelProperty(value = "Model") private String instrumentModel; @ApiModelProperty(value = "Manufacturer") private String manufacturer; @ApiModelProperty(value = "Serial number") private String serialNo; @ApiModelProperty(value = "Storage location") private String location; @ApiModelProperty(value = "Purchase date") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate purchaseDate; @ApiModelProperty(value = "Warranty end date") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate warrantyEndDate; @ApiModelProperty(value = "Status: normal/maintenance/scrapped/idle") private String status; @ApiModelProperty(value = "Responsible person") private String responsiblePerson; @ApiModelProperty(value = "Remark") private String remark; @ApiModelProperty(value = "Maintainer") private String maintainer; @ApiModelProperty(value = "Maintenance time") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate maintenanceTime; @ApiModelProperty(value = "Delete flag") private String delFlag; @ApiModelProperty(value = "Tenant id") @TableField(fill = FieldFill.INSERT) private Long tenantId; @ApiModelProperty(value = "Create time") @TableField(fill = FieldFill.INSERT) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime createTime; @ApiModelProperty(value = "Create user") @TableField(fill = FieldFill.INSERT) private Integer createUser; @ApiModelProperty(value = "Update time") @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(value = "Update user") @TableField(fill = FieldFill.INSERT_UPDATE) private Integer updateUser; }