package com.fjhx.entity.quality;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fjhx.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 质检明细
 * </p>
 *
 * @author ${author}
 * @since 2023-02-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class QualityDetails extends BaseEntity {


    /**
     * 质检id
     */
    private Long qualityInfoId;

    /**
     * 出入库流水明细id
     */
    private Long stockJournalId;

    /**
     * 物流明细id
     */
    private Long logisticsDetailsId;

    /**
     * 产品id
     */
    private Long productInfoId;

    /**
     * 仓库id
     */
    private Long warehouseId;

    /**
     * 需要质检数量
     */
    private BigDecimal totalQuantity;

    /**
     * 合格数量
     */
    private BigDecimal qualifiedQuantity;

    /**
     * 不合格数量
     */
    private BigDecimal disqualificationQuantity;

    /**
     * 逻辑删除 0未删除 1已删除
     */
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;


}
