package com.ruoyi.ehsMaterialDetail.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资源管理出库入库明细对象 ehs_material_detail
 *
 * @author ruoyi
 * @date 2023-12-05
 */
@Data
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName("ehs_material_detail")
public class EhsMaterialDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type= IdType.AUTO)
    private Long materialDetailId;

    /** 物资表 */
    @Excel(name = "物资表")
    private Long materialId;

    /** 出库指令发送人 */
    @Excel(name = "出库指令发送人")
    @TableField(exist = false)
    private String sendUserName;
    private Long sendUserId;

    /** 出库指令发送数量 */
    @Excel(name = "出库指令发送数量")
    private String sendQuantity;

    /** 出库指令发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出库指令发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    /** 出库人 */
    @Excel(name = "出库人")
    @TableField(exist = false)
    private String outboundUserName;
    private Long outboundUserId;

    /** 出库数量 */
    @Excel(name = "出库数量")
    private String outboundQuantity;

    /** 出库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outboundTime;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private BigDecimal inventory;

    /** 库存数量 */
    @Excel(name = "操作类型", readConverterExp = "0=出库,1=入库")
    private Integer operateType;

    /** 请求参数 */
    @TableField(exist = false)
    private  String getOut;
}
