package com.fjhx.entity.logistics;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fjhx.base.BaseEntity;
import com.fjhx.entity.FileInfo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * <p>
 * 物流信息
 * </p>
 *
 * @author ${author}
 * @since 2022-11-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class LogisticsInfo extends BaseEntity {

    /**
     * 采购单id
     */
    private Long purchaseId;

    /**
     * 物流单号
     */
    private String code;

    /**
     * 完成状态 1是 0否
     */
    private Integer status;

    /**
     * 物流公司编码
     */
    private String logisticsCompanyCode;

    /**
     * 物流状态（快递100的状态）
     */
    private Integer logisticsStatus;

    /**
     * 逻辑删除 0未删除 1已删除
     */
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;

    /**
     * 物流明细
     */
    @TableField(exist = false)
    private List<LogisticsDetails> details;

    /**
     * 附件集合
     */
    @TableField(exist = false)
    private List<FileInfo> fileInfos;
}
