package com.zd.bottle.domain;

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


import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * <p>
 * 用气申请表
 * </p>
 *
 * @author hanson
 * @since 2022-09-08
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "UsegasApply对象", description = "用气申请表")
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class UsegasApply extends BaseBean {

    @ApiModelProperty("实验地点")
    private String location;

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

    @ApiModelProperty("申请人")
    private String applyUser;

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

    @ApiModelProperty("联系方式")
    @NotNull(message = "联系方式不能为空！")
    private String phone;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("期限开始")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("期限结束")
    @NotNull(message = "使用期限不能为空！")
    private Date endTime;

    @ApiModelProperty("气体用途")
    @NotNull(message = "气体用途不能为空！")
    private String gasUse;

    @ApiModelProperty("申请凭证")
    private String applyCertificate;

    @ApiModelProperty("安全措施")
    @NotNull(message = "安全措施不能为空！")
    private String safetyPrecautions;

    @ApiModelProperty("气体id")
    private Long useGasId;

    @ApiModelProperty("气体名称")
    private String useGasName;

    @ApiModelProperty("审核状态 0 未审核  1.通过 2.驳回")
    private Short leadAuditStaus;

    @ApiModelProperty("审核人id")
    private Long leadAuditUserid;

    @ApiModelProperty("审核人（实验室）")
    private String leadAuditUsername;

    @ApiModelProperty("审核时间")
    private Date leadAuditTime;

    @ApiModelProperty("原因（实验室负责人）")
    private String leadAuditCause;

    @ApiModelProperty("用气申请表地址")
    private String useGasFile;

}
