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_materials_change_record
 *
 * @author cgj
 * @date 2025-01-14
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class IsMaterialsChangeRecord extends BaseBean
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "物资更换id")
    @TableId(type = IdType.AUTO)
    private Long changeId;

    @ApiModelProperty(value = "物资检查记录id")
    @Excel(name = "物资检查记录id")
    private Long checkRecordId;

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

    @ApiModelProperty(value = "原物资rfid")
    @Excel(name = "原物资rfid")
    private String oldMaterialsRfid;

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

    @ApiModelProperty(value = "新物资rfid")
    @Excel(name = "新物资rfid")
    private String newMaterialsRfid;

    @ApiModelProperty(value = "更换人id")
    @Excel(name = "更换人id")
    private Long changeUserId;

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

    @ApiModelProperty(value = "更换类型（0-手动更换 1-自动更换 ）")
    private String changeType;

    @ApiModelProperty(value = "操作类型(0-取出 1-放入 2-替换 3-维修)")
    private String operateType;

    @ApiModelProperty(value = "状态")
    @Excel(name = "状态")
    private String status;

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


}
