package com.yh.saas.plugin.yiliangyiyun.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import com.baomidou.mybatisplus.enums.IdType;
import com.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 合同货物信息
 * </p>
 *
 * @author Gongdc
 * @since 2021-05-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("contract_goods_info")
public class ContractGoodsInfo extends BaseModel<ContractGoodsInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 公司
     */
    private String compId;
    /**
     * 合同ID
     */
    private String contractId;
    /**
     * 货名key
     */
    private String goodsNameKey;
    /**
     * 货名
     */
    private String goodsName;
    /**
     * 水分
     */
    private String waterContent;
    /**
     * 杂质
     */
    private String impurity;
    /**
     * 霉变粒
     */
    private String mildewGrain;
    /**
     * 不完善粒
     */
    private String imperfectGrain;
    /**
     * 容重
     */
    private String bulkDensity;
    /**
     * 焦糊粒
     */
    private String jiaorenli;
    /**
     * 品级key
     */
    private String gradeKey;
    /**
     * 品级
     */
    private String grade;
    /**
     * 蛋白
     */
    private String protein;
    /**
     * 转基因
     */
    private String transgene;
    /**
     * 产地省
     */
    private String outputPrivate;
    /**
     * 产地市
     */
    private String outputCity;
    /**
     * 产地区
     */
    private String outputArea;

    /**
     * 重量（吨）
     */
    @TableField(exist = false)
    private Float weight;
    /**
     * 合同单价（元/每吨）
     */
    @TableField(exist = false)
    private Double unitContractPrice;

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


    public static class QueryFiles {

        public static final String CONTRACT_ID = "contract_id";


    }
}
