package com.nantian.cloud.dbcapp.carbon.domain.ent;

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.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 计量器具检定信息
 * </p>
 *
 * @author wujing
 * @since 2022-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("instrument_verify_info")
@ApiModel(value="InstrumentVerifyInfo对象", description="计量器具检定信息")
public class InstrumentVerifyInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "计量器具iD")
    @TableField("INSTRUMENT_ID")
    private Integer instrumentId;

    @ApiModelProperty(value = "检定单位")
    @TableField("VERIFY_UNIT")
    private String verifyUnit;

    @ApiModelProperty(value = "检定日期")
    @TableField("VERIFY_DATE")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date verifyDate;

    @ApiModelProperty(value = "有效期至")
    @TableField("VALIDATE_DATE")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date validateDate;

    @ApiModelProperty(value = "检定证书")
    @TableField("VERIFY_PAPER_URL")
    private String verifyPaperUrl;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_DATE")
    private Date createDate;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_DATE")
    private Date updateDate;

    @TableField("ENT_ID")
    private String entId;


    public static final String ID = "ID";

    public static final String INSTRUMENT_ID = "INSTRUMENT_ID";

    public static final String VERIFY_UNIT = "VERIFY_UNIT";

    public static final String VERIFY_DATE = "VERIFY_DATE";

    public static final String VALIDATE_DATE = "VALIDATE_DATE";

    public static final String VERIFY_PAPER_URL = "VERIFY_PAPER_URL";

    public static final String CREATE_DATE = "CREATE_DATE";

    public static final String UPDATE_DATE = "UPDATE_DATE";

}
