package com.jwipc.tender.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

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

/**
 * <p>
 * 招标项目明细表
 * </p>
 *
 * @author zhangjie
 * @since 2024-03-02
 */
@Getter
@Setter
@TableName("t_tender_bid_detail")
public class TenderBidDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 招标id
     */
    private Long tenderId;

    /**
     * 行号编号
     */
    private Integer rowNo;

    /**
     * 行项目名称
     */
    private String rowName;
    private Long materialId;
    /**
     * 物料编号
     */
    private String materialCode;

    /**
     * 物料名称
     */
    private String materialName;
    private String materialDesc;
    /**
     * 品牌
     */
    private String materialBrand;

    /**
     * 当前价
     */
    private BigDecimal currentPrice;

    /**
     * 门槛价
     */
    private BigDecimal doorPrice;

    /**
     * 期望价
     */
    private BigDecimal expectedPrice;

    /**
     * 基准价税码
     */
    private String baseTaxRateCode;

    /**
     * 基准价税率
     */
    private BigDecimal baseTaxRate;

    /**
     * 税码
     */
    private String taxRateCode;

    /**
     * 税率
     */
    private BigDecimal taxRate;

    /**
     * 基准价币种
     */
    private String baseCurrency;

    /**
     * 币种
     */
    private String currency;

    /**
     * 采购数量
     */
    private BigDecimal count;

    /**
     * 订单单位
     */
    private String unit;

    /**
     * 交货日期
     */
    private LocalDate deliveryDate;
    private LocalDate priceStartDate;
    private LocalDate priceValidityDate;

    /**
     * 采购组织
     */
    private String purchaseOrg;

    /**
     * 采购组
     */
    private String purchaseGroup;

    /**
     * 工厂编码
     */
    private String factoryCode;

    /**
     * 投标表主键
     */
    private Long bidId;

    /**
     * 供应商id
     */
    private Long supplierId;

    /**
     * 招标单明细表id
     */
    private Long tenderDetailId;

    /**
     * 含税报价
     */
    private BigDecimal taxPrice;

    /**
     * 供应商看到的状态(1.已中标;)
     */
    private Integer supplierStatus;

    /**
     * 状态(1:中标;2:议价中;3:淘汰;)
     */
    private Integer status;

    /**
     * 上轮排名
     */
    private Integer lastRanking;

    /**
     * 排名
     */
    private Integer ranking;

    /**
     * 报价状态(1:已投;0:未投)
     */
    private Integer offerStatus;

    /**
     * 最终的供应商报价，如果没有议价，就是含税报价，如果有议价就是议价
     */
    private BigDecimal finalPrice;

    private BigDecimal finalNoTaxPrice;

    /**
     * 议价
     */
    private BigDecimal bargaining;
    /**
     * 供应商填写的议价
     */
    private BigDecimal bargainingSupplier;
    /**
     * 议价状态(1:议价中;2:已回复)
     */
    private Integer bargainingStatus;
    /**
     * 供应商回复议价备注
     */
    private String bargainingSupplierRemark;
    /**
     * 议价备注
     */
    private String bargainingRemark;

    /**
     * 配额
     */
    private BigDecimal quota;

    private String bidRemark;

    /**
     * 定标数量
     */
    private BigDecimal bidNum;
    private BigDecimal finalCnyAmount;
    private BigDecimal finalCnyTaxAmount;
    private BigDecimal exchangeRate;

    private Long moq;
    private Long mpq;

    private Long priceInfoId;

    /**
     * 发票类型
     */
    private String invoiceType;
}
