package com.jwipc.order.dto;

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

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

/**
 * <p>
 * 送货单附件
 * </p>
 *
 * @author zhangjie
 * @since 2024-03-06
 */
@Getter
@Setter
public class DeliveryOrderFileDTO implements Serializable {


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

    /**
     * 关联主表
     */
    private Long masterId;

    /**
     * 文件主键
     */
    private Long fileId;

    /**
     * 1:删除;0:正常
     */
    private Integer delFlag;

    /**
     * 备注
     */
    private String remark;
    /**
     * 文件名称
     */
    @RelationAggregationField(masterIdField = "fileId", relationIdField = "id", relationNameField = "fileType",
            relationClientClass = FileClient.class, relationMethod = "getFileInfos")
    private String fileType;
    /**
     * 文件名称
     */
    @RelationAggregationField(masterIdField = "fileId", relationIdField = "id", relationNameField = "fileName",
            relationClientClass = FileClient.class, relationMethod = "getFileInfos")
    private String fileName;
    @RelationAggregationField(masterIdField = "fileId", relationIdField = "id", relationNameField = "dateline",
            relationClientClass = FileClient.class, relationMethod = "getFileInfos")
    private LocalDateTime createTime;


    /**
     * 删除标记1:是;0:否
     */
    private Integer deleteFlag;
}
