package com.ktg.iscs.domain.vo.hardwareApi;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ktg.common.annotation.Excel;
import com.ktg.common.core.domain.model.BaseBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 作业票锁具对象 is_job_ticket_lockset
 *
 * @author cgj
 * @date 2024-11-19
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class JobTicketLocksetVO extends BaseBean
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "记录ID")
    @TableId(type = IdType.AUTO)
    private Long recordId;

    @ApiModelProperty(value = "作业票ID")
    private Long jobTicketId;

    @ApiModelProperty(value = "隔离点ID")
    private Long pointId;

    @ApiModelProperty(value = "锁具ID")
    private Long locksetId;

    @ApiModelProperty(value = "取出硬件ID")
    private Long fromHardwareId;

    @ApiModelProperty(value = "归还硬件ID")
    private Long toHardwareId;

    @ApiModelProperty(value = "所需锁具类型ID")
    @Excel(name = "所需锁具类型ID")
    private Long locksetTypeId;

    @ApiModelProperty(value = "附件状态(0待取出（点击开始作业）" +
            "1已取出（锁具出柜子）" +
            "2待使用（上锁钥匙出机柜）" +
            "3使用中（上锁钥匙还机柜）" +
            "4待拆除（解锁钥匙出机柜）" +
            "5待归还（解锁钥匙还机柜，但锁具为归还）" +
            "6已归还（锁具还物资柜）)")
    private String locksetStatus;

    @ApiModelProperty(value = "取出时间")
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd")
    private Date collectTime;

    @ApiModelProperty(value = "归还时间")
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd")
    private Date giveBackTime;

    @ApiModelProperty(value = "删除标志（0代表存在 2代表删除）")
    private String delFlag;

}
