package com.jwipc.spe.dto;

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

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
@Data
public class AppraiseSupplierInfoDTO {
    private Integer evaluationCycle;
    private String month;
    private String quarter;
    private String year;
    private Long supplierId;
    @RelationAggregationField(
            masterIdField = "supplierId",
            relationIdField = "id",
            relationNameField = "supplierName",
            relationClientClass = SupplierClient.class,
            relationMethod = "getSupplierByIds"
    )
    private String supplierName;
    @RelationAggregationField(
            masterIdField = "supplierId",
            relationIdField = "id",
            relationNameField = "supplierCode",
            relationClientClass = SupplierClient.class,
            relationMethod = "getSupplierByIds"
    )
    private String supplierCode;
    private String companyCode;
    @RelationAggregationField(
            masterIdField = "companyCode",
            relationIdField = "companyCode",
            relationNameField = "companyName",
            relationClientClass = CompanyClient.class,
            relationMethod = "getByCodes"
    )
    private String companyName;
    private String score;
    private String level;
}
