package com.jwipc.tender.dto;

import com.jwipc.aggregation.annotation.RelationAggregationField;
import com.jwipc.supplier.client.SupplierClient;
import lombok.Data;

import java.math.BigDecimal;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
@Data
public class TenderSupplierDTO {
    /**
     * 物理主键
     */
    private Long id;

    /**
     * 招标单id
     */
    private Long tenderId;
    /**
     * 供应商id
     */
    private Long supplierId;
    @RelationAggregationField(
            masterIdField = "supplierId",
            relationIdField = "id",
            relationNameField = "supplierCode",
            relationClientClass = SupplierClient.class,
            relationMethod = "getSupplierByIds"
    )
    private String supplierCode;

    @RelationAggregationField(
            masterIdField = "supplierId",
            relationIdField = "id",
            relationNameField = "supplierName",
            relationClientClass = SupplierClient.class,
            relationMethod = "getSupplierByIds"
    )
    private String supplierName;
    /**
     * 税码
     */
    private String taxCode;

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

    /**
     * 币种
     */
    private String currency;
    private String contactsId;
    private String contacts;
    private BigDecimal finalCnyAmount;
    //汇率
    private BigDecimal exchangeRate;
    private String purchaseCategoryCode;
    private String purchaseCategoryName;
    private String paymentWay;
    private String paymentMethod;
    private String companyCode;
}
