package com.chushang.inspection.terminal.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chushang.common.dict.annotation.DictFormat;
import com.chushang.common.mybatis.base.BaseEntity;
import lombok.*;

/**
  * @auther: zhao
  * @date: 2024/6/21 11:47
  */
@Data
@EqualsAndHashCode(callSuper=true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "consumable_details")
@Builder
public class ConsumableDetails extends BaseEntity {
    /**
     * 详情id
     */
    @TableId(value = "detail_id")
    private Long detailId;
    /**
     * 部门id
     */
    @TableField(value = "dept_id")
    private Long deptId;
    /**
     * 总数表id
     */
    @TableField(value = "total_id")
    private Long totalId;
    /**
     * 出入库类型 （1 是入库  2 出库）
     */
    @TableField(value = "inbound_and_outbound_type")
    private Integer inboundAndOutboundType;
    /**
     * 数量
     */
    @TableField(value = "quantity")
    private Integer quantity;

    /**
     * 耗材类型
     */
    @DictFormat(dictType = "specs")
    @TableField(exist = false)
    private Integer type;
}
