package com.jwipc.supplier.dto;

import com.jwipc.aggregation.annotation.RelationAggregationField;
import com.jwipc.sys.client.UserClient;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
@Data
public class SupplierQualificationChangeBaseDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 7543266940553114893L;
    private Long id;
    private Integer state;
    private String changeType;
    private String code;
    private String supplementCode;
    private Long supplierId;
    private String supplierCode;
    private String supplierName;
    private String createName;
    private LocalDateTime createTime;
    private Long approverId;
    @RelationAggregationField(
            masterIdField = "approverId",
            relationIdField = "id",
            relationNameField = "username",
            relationClientClass = UserClient.class,
            relationMethod = "getByUserIds"
    )
    private String approverName;
    private String remark;
    private String purchaseCategoryCodes;
    /**
     * SQE审批人id
     */
    private Long sqeApproverId;
    @RelationAggregationField(
            masterIdField = "sqeApproverId",
            relationIdField = "id",
            relationNameField = "username",
            relationClientClass = UserClient.class,
            relationMethod = "getByUserIds"
    )
    private String sqeApproverName;
    /**
     * SQE审批意见
     */
    private String sqeRemark;
}
