package com.ktg.iscs.domain;

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_key
 *
 * @author cgj
 * @date 2024-11-19
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class IsJobTicketKey extends BaseBean
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "记录ID")
    private Long recordId;

    @ApiModelProperty(value = "作业票ID")
    @Excel(name = "作业票ID")
    private Long ticketId;

    @ApiModelProperty(value = "钥匙ID")
    @Excel(name = "钥匙ID")
    private Long keyId;

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

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

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

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

    @ApiModelProperty(value = "钥匙状态(0-待取出 1-已取出 2-已归还)")
    @Excel(name = "钥匙状态(0-待取出 1-已取出 2-已归还)")
    private String keyStatus;

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

    @ApiModelProperty(value = "作业锁类型(0-上锁 1-解锁)")
    private Integer ticketType;

}
