package com.jwipc.spe.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
 * @since 2024-03-11
 */
@Data
public class SupAppraisePlanSupplierBaseDTO implements Serializable {


    @Serial
    private static final long serialVersionUID = 6469922474977953498L;
    private Long id;

    private Long planId;

    /**
     * 供应商主键
     */
    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;

    /**
     * 删除标记 0:未删除 1:已删除
     */
    private Integer deleteFlag;

    /**
     * 数据状态 0:新建 2:已提交整改
     */
    private Integer status;

    /**
     * 数据状态 0 未评分 1已评分  2 评分中
     */
    private Integer evaluateState;

    /**
     * 综合评价意见
     */
    private String opinionEvaluation;

    /**
     * 备注
     */
    private String remark;

    /**
     * 总分
     */
    private String allScore;

    /**
     * 加权得分
     */
    private String weightScore;

    /**
     * 等级   A ,B ,C ,D
     */
    private String grade;

    /**
     * 公司编码
     */
    private String companyCode;
}
