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

import java.math.BigDecimal;

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

/**
 * <p>
 * 现存量明细表
 * </p>
 *
 * @author hzs
 * @since 2024-05-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("IC_STORE_HAND_NUM_B_SEQ")
@TableName("IC_STORE_HAND_NUM_B")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class IcStoreHandNumB extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 主表主键
     */
    @TableField("PK_ONHANDNUM")
    private Long pkOnhandnum;

    /**
     * 供应链订单类型 EScmOrderType
     */
    @TableField("ORDER_TYPE")
    private Integer orderType;

    /**
     * 来源单据主键
     */
    @TableField("PK_SOURCE")
    private Long pkSource;

    /**
     * 来源单据明细主键
     */
    @TableField("PK_SOURCE_B")
    private Long pkSourceB;

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


}
