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

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

/**
 * <p>
 * 其他入库单明细
 * </p>
 *
 * @author hzs
 * @since 2023-11-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("IC_GENERALOUT_B_SEQ")
@TableName("IC_GENERALOUT_B")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class IcGeneralOutB extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

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

    /**
     * 主表主键
     */
    @TableField("PK_GENERAL")
    private Long pkGeneral;

    /**
     * 货位
     */
    @TableField("PK_CLOCATION")
    private Integer pkClocation;

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

    /**
     * 出入库类型 1=入库 2=出库
     */
    @TableField("TRANS_TYPE")
    private Integer transType;

    /**
     * 入库日期
     */
    @TableField("BIZ_DATE")
    private Date bizDate;

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

    /**
     * 汇率
     */
    @TableField("PK_RATE")
    private Integer pkRate;

    /**
     * 数量
     */
    @TableField("NNUM")
    private BigDecimal nnum;

    /**
     * 单价
     */
    @TableField("NCOSTPRICE")
    private BigDecimal ncostprice;

    /**
     * 金额
     */
    @TableField("NCOSTMNY")
    private BigDecimal ncostmny;

    /**
     * 批次主键
     */
    @TableField("PK_BATCH_CODE")
    private Long pkBatchCode;

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