package com.jwipc.tender.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-03-01
 */
@Getter
@Setter
public class TenderOpenUserDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 招标id
     */
    private Long tenderId;

    /**
     * 用户id
     */
    private Long userId;

    @RelationAggregationField(
            masterIdField = "userId",
            relationIdField = "id",
            relationNameField = "username",
            relationClientClass = UserClient.class,
            relationMethod = "getByUserIds"
    )
    private String username;
    @RelationAggregationField(
            masterIdField = "userId",
            relationIdField = "id",
            relationNameField = "accountName",
            relationClientClass = UserClient.class,
            relationMethod = "getByUserIds"
    )
    private String accountName;

    /**
     * 开标状态0-新增,1-待定标,2-同意,3-退回
     */
    private Integer state;

    /**
     * 操作时间
     */
    private LocalDateTime time;
}
