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

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

import java.util.List;

/**
 * <p>
 * 产品预警配置
 * </p>
 *
 * @author hzs
 * @since 2024-03-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("IC_WARN_CONFIG_SEQ")
@TableName("IC_WARN_CONFIG")
public class IcWarnConfig extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

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

    /**
     * 预警数量
     */
    @TableField("WARN_QUANTITY")
    private Integer warnQuantity;

    /**
     * 预警期间
     */
    @TableField("WARN_PERIOD")
    private Integer warnPeriod;

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