package com.jwipc.supplier.dto;

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

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

/**
 * <p>
 * 供应商资质补录申请
 * </p>
 *
 * @author ZhangJie
 * @since 2024-02-26
 */
@Getter
@Setter
public class SupplierQualificationApplyBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 补录申请单号 序列号编码（supplier_qualification_supplement_code）
     */
    private String applyNo;

    /**
     * 审批状态：1-新建，2-提交
     */
    private Byte status;

    /**
     * 创建人id
     */
    private Long creatorId;

    /**
     * 创建人姓名
     */
    @RelationAggregationField(
            masterIdField = "creatorId",
            relationIdField = "id",
            relationNameField = "username",
            relationClientClass = UserClient.class,
            relationMethod = "getByUserIds"
    )
    private String createName;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改人id
     */
    private Integer updateId;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

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

    /**
     * 删除标记 0.正常 1.删除
     */
    private Integer deleteFlag;
    /**
     * 类型:1:转合格 2:转小批量 3:正常
     */
    private Integer type;
    /**
     * 品类多个逗号分割
     */
    private String purchaseCategoryCodes;
}
