package com.ktg.iscs.domain;

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

import java.util.Date;

/**
 * 物资柜开关门记录对象 is_cabinet_open_record
 *
 * @author cgj
 * @date 2025-02-14
 */
@EqualsAndHashCode(callSuper = false)
@Data
public class IsCabinetOpenRecord
{
    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "物资柜ID")
    @Excel(name = "物资柜ID")
    private Long cabinetId;

    @ApiModelProperty(value = "物资柜code")
    @TableField(exist = false)
    private String cabinetCode;

    @ApiModelProperty(value = "开门类型(0-物资领取归还 1-物资检查 2-物资更换)")
    @Excel(name = "开门类型(0-物资领取归还 1-物资检查 2-物资更换)")
    private String openType;

    @ApiModelProperty(value = "开门时间")
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开门时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date openTime;

    @ApiModelProperty(value = "关门时间")
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "关门时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date closeTime;

    @ApiModelProperty(value = "开门人员")
    @Excel(name = "开门人员")
    private String userId;


}
