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.LocalDateTime;

/**
 * <p>
 * 招标单
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-02-29
 */
@Getter
@Setter
@TableName("t_tender_bid")
public class TenderBid implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 物理主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

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

    /**
     * 轮次id
     */
    private Long roundId;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 接受标记
     */
    private Integer agreeFlag;

    /**
     * 不参与原因
     */
    private String disagreeRemark;

    /**
     * 投标时间
     */
    private LocalDateTime tenderTime;

    /**
     * 总报价(服务、基建和资产)
     */
    private BigDecimal totalAmount;

    /**
     * 税码
     */
    private String taxCode;

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

    /**
     * 是否中标:是 或者 否
     */
    private String bidStatus;

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

    /**
     * 最终报价
     */
    private BigDecimal finalAmount;

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

    /**
     * 总分
     */
    private BigDecimal totalScore;

    private Integer ranking;

    private Integer stateTurned;

    private String contactsId;
    //汇率
    private BigDecimal exchangeRate;
    private String purchaseCategoryCode;
    private String purchaseCategoryName;
    private String paymentWay;
    private String paymentMethod;
    private String companyCode;
    private BigDecimal finalCnyAmount;
}
