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 lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 现存量明细表
 * </p>
 *
 * @author hzs
 * @since 2023-11-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("IC_ON_HAND_NUM_B_SEQ")
@TableName("IC_ON_HAND_NUM_B")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class IcOnHandNumB 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_GENERAL_H")
    private Long pkGeneralH;

    /**
     * 出入库单子表
     */
    @TableField("PK_GENERAL_B")
    private Long pkGeneralB;

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

}
