package com.hzs.common.domain.scm.ic;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hzs.common.core.web.domain.BaseEntity;
import com.hzs.common.domain.scm.pub.ScmItemSpecs;
import lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.List;

/**
 * 可用量
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("IC_AVAILABLE_NUM_SEQ")
@TableName("IC_AVAILABLE_NUM")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class IcAvailableNum extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 库存组织
     */
    @TableField("PK_CORP")
    private Integer pkCorp;

    /**
     * 供应商
     */
    @TableField("PK_CUBASDOC")
    private Integer pkCubasdoc;

    /**
     * 产品基础信息主键
     */
    @TableField("PK_PRODUCT_BAS")
    private Integer pkProductBas;

    /**
     * 产品信息主键
     */
    @TableField("PK_PRODUCT")
    private Integer pkProduct;

    /**
     * 单位
     */
    @TableField("PK_UNIT")
    private Integer pkUnit;

    /**
     * 仓库
     */
    @TableField("PK_STOREHOUSE")
    private Integer pkStorehouse;

    /**
     * 可用数量
     */
    @TableField("AVAILABLE_NUM")
    private BigDecimal availableNum;

    @TableField(exist = false)
    private List<ScmItemSpecs> scmItemSpecsList;

    /**
     * 预售状态
     */
    @TableField(exist = false)
    private Integer preSaleStatus;
}
