package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 现货商品要素项定义表
 * </p>
 *
 * @author XKF
 * @since 2024-12-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("WRSTANDARDFACTORYITEM")
@ApiModel(value="Wrstandardfactoryitem对象", description="现货商品要素项定义表")
public class Wrstandardfactoryitem extends Model<Wrstandardfactoryitem> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "现货商品ID")
    @TableId(value = "WRSTANDARDID", type = IdType.AUTO)
    private Long wrstandardid;

    @ApiModelProperty(value = "要素项类型ID")
    @TableField("DGFACTORYITEMTYPEID")
    private Long dgfactoryitemtypeid;

    @ApiModelProperty(value = "要素项ID - 输入项默认为0，选择项为选择项ID")
    @TableField("DGFACTORYITEMID")
    private Long dgfactoryitemid;


    @Override
    public Serializable pkVal() {
        return this.wrstandardid;
    }

}
