package com.ruoyi.project.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 【请填写功能名称】对象 tq_quotation
 * 
 * @author ruoyi
 * @date 2024-05-10
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tq_quotation")
public class TqQuotation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 报价编号 */
    @Excel(name = "报价编号")
    private String quotationNo;

    /** 报价版本（版本从1递增） */
    @Excel(name = "报价版本", readConverterExp = "版=本从1递增")
    private Long version;

    /**
     * 代理商ID
     */
    @Excel(name = "代理商ID")
    private Long agentId;

    /**
     * 项目ID
     */
    @Excel(name = "项目ID")
    private Long projectId;

    /**
     * 区域ID
     */
    @Excel(name = "区域ID")
    private Long areaId;

    /**
     * 报价单币种
     */
    @Excel(name = "报价单币种")
    private Long currencyId;

    /**
     * 报价单币种汇率
     */
    @Excel(name = "报价单币种汇率")
    private BigDecimal exchangeRate;

    private Boolean discountFlag;

    @Excel(name = "代理商折率")
    private BigDecimal agentDiscountRate;

    @Excel(name = "国家折率")
    private BigDecimal countryDiscountRate;

    /**
     * 价格(系统计算价格的合计价格)
     */
    @Excel(name = "价格(系统计算价格的合计价格)")
    private BigDecimal price;

    /**
     * 最终价格
     */
    @Excel(name = "最终价格")
    private BigDecimal finalPrice;

    private BigDecimal finalCurrencyPrice;

    /**
     * 运费
     */
    @Excel(name = "运费")
    private BigDecimal freightPrice;

    /**
     * 基础价格
     */
    @Excel(name = "基础价格")
    private BigDecimal basicPrice;

    /**
     * 初始基础价格(不含代理商折扣，国家折扣)
     */
    @Excel(name = "初始基础价格(不含代理商折扣，国家折扣)")
    private BigDecimal originalBasicPrice;
    private BigDecimal originalOptionalPrice;

    /**
     * 选配价格
     */
    @Excel(name = "选配价格")
    private BigDecimal optionalPrice;

    /**
     * 报价状态（数据字典）
     */
    @Excel(name = "报价状态", readConverterExp = "数=据字典")
    private String quotationStatus;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitTime;

    /** 成单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 系统评审结果（00：标准 01：非标准） */
    @Excel(name = "系统评审结果", readConverterExp = "0=0：标准,0=1：非标准")
    private String systemCheckResult;

    /** 数据权限字符 */
    @Excel(name = "数据权限字符")
    private String permissionChar;

    /** 删除标记（0：未删除  1：已删除） */
    @TableLogic
    private String delFlag;

    private String tradeType;

    private String targetPort;

    private String quotationVersion;
}
