package com.zd.bottle.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.zd.common.core.annotation.Excel;
import com.zd.common.core.web.domain.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 气瓶入库表
 * </p>
 *
 * @author hanson
 * @since 2022-09-08
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "BottleStorage对象", description = "气瓶入库表")
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class BottleStorage extends BaseBean {

    @Excel(name = "操作人")
    @ApiModelProperty("入库人姓名")
    private String userName;

    @Excel(name = "联系方式")
    @ApiModelProperty("入库人联系方式")
    private String userPhone;

    @Excel(name = "标签吗")
    @ApiModelProperty("电子标签")
    private String electronicTag;

    @Excel(name = "气瓶编号")
    @ApiModelProperty("气瓶编号")
    private String airNumber;

    @Excel(name = "气体名称")
    @ApiModelProperty("气体名称")
    private String airName;

    @Excel(name = "气瓶规格")
    @ApiModelProperty("规格详情")
    private String configName;

    @Excel(name = "入库时间" ,type = Excel.Type.ALL,dateFormat = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty("是否有手轮 1有 0无")
    private Short isHandwheel;

    @ApiModelProperty("是否固定 1.是 0 否")
    private Short isFixed;

    @ApiModelProperty("电子标签 1有 0没有")
    private Short isElectronicTag;

    @ApiModelProperty("状态标牌 1有 0 没有 ")
    private Short isStatusSign;

    @ApiModelProperty("是否已拍照 1已拍照  0未拍照")
    private Short isPhoto;

    @ApiModelProperty("气表压力")
    private BigDecimal gasPressure;

    @ApiModelProperty("最低气压值")
    private BigDecimal minPressure;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @ApiModelProperty("检验有效期(开始时间)")
    private Date validateStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @ApiModelProperty("检验有效期(结束时间)")
    private Date validateEndTime;

    @ApiModelProperty("余量是否符合 0符合  1不符合")
    private Integer isSurplus;

    @ApiModelProperty("当前压力值")
    private BigDecimal currentPressure;

    @ApiModelProperty("验收备注")
    private String validateRemark;

    @ApiModelProperty("入库状态 1闲置 2使用 3出库")
    private Integer storageStatus;

    @ApiModelProperty("部门名称")
    private String deptName;

    @ApiModelProperty("实验室id")
    private Long subjectId;

    @ApiModelProperty("实验室名称")
    private String subjectName;

    @ApiModelProperty("气体组分")
    private String airComponent;



    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


}
