package com.jwipc.tender.dto;

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

import java.io.Serial;
import java.io.Serializable;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
@Data
public class BenchmarksScoreExportDTO extends TenderScoreDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = -2294704322420882027L;

    //投标单ID t_tender_bid.id
    private Long bidId;
    //投标单明细ID t_tender_bid_detail.id
    private Long 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 rowNo;
    /**
     * 物料编号
     */
    private String materialCode;

    /**
     * 物料名称
     */
    private String materialName;
    private String type;
}
