package com.yuanchu.mom.pojo;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
/**
|
*
|
* @TableName product
|
*/
|
@TableName(value ="product")
|
@Data
|
public class Product implements Serializable {
|
/**
|
* 项目id
|
*/
|
@TableId(type = IdType.AUTO)
|
private Integer id;
|
|
/**
|
* 项目名称
|
*/
|
private String name;
|
|
/**
|
* 项目父类
|
*/
|
private String father;
|
|
/**
|
* 单位
|
*/
|
private String unit;
|
|
/**
|
* 标准值
|
*/
|
private String required;
|
|
/**
|
* 内控值
|
*/
|
private String internal;
|
|
@ApiModelProperty(value = "逻辑删除 正常>=1,删除<=0", hidden = true)
|
@TableLogic(value = "1", delval = "0")
|
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)
|
@Version
|
private Integer version;
|
|
/**
|
* 关联 型号id
|
*/
|
private Integer specificationsId;
|
|
@TableField(exist = false)
|
private static final long serialVersionUID = 1L;
|
}
|