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

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

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 com.hzs.common.domain.scm.pub.ScmItemSpecs;
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_SEQ")
@TableName("IC_STORE_HAND_NUM")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class IcStoreHandNum extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 店铺主键
     */
    @TableField("PK_MEMBER_STORE")
    private Integer pkMemberStore;

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

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

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

    /**
     * 现存数量
     */
    @TableField("NONHANDNUM")
    private BigDecimal nonhandnum;

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

}
