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 com.ktg.common.core.domain.model.BaseBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 物资检查记录对象 is_materials_check_record
 *
 * @author cgj
 * @date 2025-01-14
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class IsMaterialsCheckRecord extends BaseBean
{
    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "计划id")
    @Excel(name = "计划id")
    private Long planId;

    @ApiModelProperty(value = "所属岗位ID")
    @Excel(name = "所属岗位ID")
    private Long workstationId;

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

    @ApiModelProperty(value = "物资id")
    @Excel(name = "物资id")
    private Long materialsId;

    @ApiModelProperty(value = "物资名称")
    @TableField(exist = false)
    private String materialsName;

    @ApiModelProperty(value = "物资类型名称")
    @TableField(exist = false)
    private String materialsTypeName;

    @ApiModelProperty(value = "物资类型图标")
    @TableField(exist = false)
    private String materialsTypeIcon;

    @ApiModelProperty(value = "物资类型缩略图")
    @TableField(exist = false)
    private String materialsTypePicture;

    @ApiModelProperty(value = "物资RFID")
    @TableField(exist = false)
    private String materialsRfid;

    @ApiModelProperty(value = "检察员")
    @Excel(name = "检察员")
    private Long checkUserId;

    @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 checkDate;

    @ApiModelProperty(value = "检查记录状态")
    @Excel(name = "检查记录状态(0-正常 1-异常)")
    private String status;

    @ApiModelProperty(value = "异常原因")
    @Excel(name = "异常原因")
    private String reason;

    @ApiModelProperty(value = "措施")
    private String measure;

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


}
