package com.yuanchu.limslaboratory.pojo;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|
import java.time.LocalDateTime;
|
import java.io.Serializable;
|
import java.util.Date;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
|
/**
|
* <p>
|
*
|
* </p>
|
*
|
* @author 江苏鵷雏网络科技有限公司
|
* @since 2023-07-17
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = false)
|
@ApiModel(value="Product对象", description="")
|
public class Product implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@ApiModelProperty(value = "项目id", hidden = true)
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
|
@ApiModelProperty(value = "项目名称", example = "铝包钢芯铝绞线", required = true)
|
private String name;
|
|
@ApiModelProperty(value = "项目父类", example = "单位长度质量")
|
private String father;
|
|
@ApiModelProperty(value = "单位", example = "km")
|
private String unit;
|
|
@ApiModelProperty(value = "标准值", example = "<=0.3458")
|
private String required;
|
|
@ApiModelProperty(value = "内控值", example = "<=0.3458")
|
private String internal;
|
|
|
@ApiModelProperty(value = "逻辑删除 正常>=1,删除<=0", hidden = true)
|
private Integer state;
|
|
@TableField(fill = FieldFill.INSERT)
|
@ApiModelProperty(value = "创建时间", hidden = true)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date createTime;
|
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
@ApiModelProperty(value = "更新时间", hidden = true)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date updateTime;
|
|
@ApiModelProperty(value = "版本", hidden = true)
|
private Integer version;
|
|
@ApiModelProperty(value = "关联 型号id", example = "1", hidden = true)
|
private Integer specifications_id;
|
|
public Product() {
|
}
|
|
public Product(Integer id, String name, String father, String unit, String required, String internal, Integer state, Date createTime, Date updateTime, Integer version, Integer specifications_id) {
|
this.id = id;
|
this.name = name;
|
this.father = father;
|
this.unit = unit;
|
this.required = required;
|
this.internal = internal;
|
this.state = state;
|
this.createTime = createTime;
|
this.updateTime = updateTime;
|
this.version = version;
|
this.specifications_id = specifications_id;
|
}
|
|
public Product(String name, String father, String unit, Date createTime, Date updateTime, Integer version, Integer specifications_id) {
|
this.name = name;
|
this.father = father;
|
this.unit = unit;
|
this.createTime = createTime;
|
this.updateTime = updateTime;
|
this.version = version;
|
this.specifications_id = specifications_id;
|
}
|
}
|