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;
import java.util.List;

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

    @ApiModelProperty(value = "物资计划id")
    @TableId(type = IdType.AUTO)
    private Long planId;

    @ApiModelProperty(value = "计划名称")
    @Excel(name = "计划名称")
    private String planName;

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

    @ApiModelProperty(value = "计划日期")
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd")
    @Excel(name = "计划日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planDate;

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

    @TableField(exist = false)
    @ApiModelProperty(value = "检察员")
    @Excel(name = "检察员")
    private String checkUserName;

    @ApiModelProperty(value = "检查状态(0代表未开始，1代表已完成 2.进行中)")
    @Excel(name = "检查状态(0代表未开始，1代表已完成 2.进行中)")
    private String status;

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

    @ApiModelProperty(value = "检查的物资柜名称")
    @TableField(exist = false)
    private String cabinetName;

    @ApiModelProperty(value = "检查的物资柜集合")
    @TableField(exist = false)
    private List<Long> cabinetIds;

}
