package com.yuanchu.limslaboratory.pojo; import com.baomidou.mybatisplus.annotation.*; import java.io.Serializable; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import org.springframework.format.annotation.DateTimeFormat; /** *

* *

* * @author 江苏鵷雏网络科技有限公司 * @since 2023-07-20 */ @Data @EqualsAndHashCode(callSuper = false) @ApiModel(value="Instrument对象", description="") public class Instrument implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty(value = "主键", hidden = true) @TableId(value = "id", type = IdType.AUTO) private Integer id; @ApiModelProperty(value = "分类ID 关联", example = "1", required = true) private Integer classifyId; @ApiModelProperty(value = "保管人:用户表关联Id", example = "9", required = true) private Integer userId; @ApiModelProperty(value = "保管人:用户表关联Id", hidden = true) private Integer createUserId; @ApiModelProperty(value = "仪器设备编号", example = "JSTC-W1-00001", required = true) private String equipmentCode; @ApiModelProperty(value = "仪器设备名称", example = "数字电桥", required = true) private String equipmentName; @ApiModelProperty(value = "默认1;1:运行、2:故障、3:报修、4:检修、5:待机", example = "1", required = true) private Integer conditions; @ApiModelProperty(value = "规格型号", example = "WCDMS-1", required = true) private String specificationsModels; @ApiModelProperty(value = "测量范围", example = "12毫米") private String measuringRange; @ApiModelProperty(value = "误差", example = "0.000001微米") private String errorRate; @ApiModelProperty(value = "生产厂家", example = "江苏鵷雏") private String manufacturer; @ApiModelProperty(value = "到货日期", example = "2001-07-06", dataType = "date") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @DateTimeFormat(pattern = "yyyy-MM-dd") private Date arrivalDate; @ApiModelProperty(value = "验收日期", example = "2060-07-06", dataType = "date") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @DateTimeFormat(pattern = "yyyy-MM-dd") private Date acceptanceDate; @ApiModelProperty(value = "存放地", example = "地球亚洲中国江苏南通") private String storagePlace; @ApiModelProperty(value = "是否支持数采;1:支持;0:不支持", example = "1") private Integer whetherDataAcquisition; @ApiModelProperty(value = "是否需要仪器设备计量:如果需要计量周期必填;如果不需要计量周期不必填.1:需要;0:不需要", example = "0") private Integer equipmentMeasurement; @ApiModelProperty(value = "计量截止有效期:与equipmentMeasurement相关联", example = "12") private Integer termValidity; @ApiModelProperty(value = "描述", example = "疯狂星期五!!!") private String descriptiveness; @JsonIgnore @TableLogic(value = "1", delval = "0") @ApiModelProperty(value = "逻辑删除 正常>=1,删除<=0", hidden = true) private Integer state; @TableField(fill = FieldFill.INSERT) @ApiModelProperty(value = "创建时间", hidden = true) @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") private Date createTime; @JsonIgnore @TableField(fill = FieldFill.INSERT_UPDATE) @ApiModelProperty(value = "更新时间", hidden = true) private Date updateTime; @JsonIgnore @ApiModelProperty(value = "乐观锁", hidden = true) private Integer version; }