package com.nantian.cloud.dbcapp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 企业物料产品信息
 * </p>
 *
 * @author suixin
 * @since 2022-05-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CompanyMaterielProduct extends Model<CompanyMaterielProduct> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 社会行用统一编码
     */
    @TableField("enterpriseCode")
    private String enterpriseCode;

    /**
     * 产品名称
     */
    @TableField("produceName")
    private String produceName;

    /**
     * 产品编码
     */
    @TableField("produceNo")
    private String produceNo;

    /**
     * 产品分类
     */
    @TableField("produceType")
    private String produceType;

    /**
     * 计量单位
     */
    @TableField("produceUnit")
    private String produceUnit;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态
     */
    private String state;

    /**
     * 摘要
     */
    private String digest;

    /**
     * 引用
     */
    private Long quoted;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
