package com.xunhong.erp.turbo.biz.domain.entity;

import com.alibaba.cola.domain.Entity;
import com.alibaba.cola.dto.DTO;
import com.xunhong.erp.turbo.api.biz.dto.common.OrderSupplierInvoice;
import com.xunhong.erp.turbo.api.biz.dto.common.UploadFileItem;
import com.xunhong.erp.turbo.api.biz.dto.enums.SupplierInvoiceTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author shenyifei
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
public class SupplierInvoice extends DTO {

    /**
     * 发票ID
     */
    private Long supplierInvoiceId;

    /**
     * 发票类型：1_瓜农
     */
    private SupplierInvoiceTypeEnum type;

    /**
     * 发票开具人
     */
    private Long supplierId;

    /**
     * 发票开具人名称
     */
    private String supplierName;

    /**
     * 代开发票人的信息
     */
    private List<OrderSupplierInvoice> orderSupplierInvoiceList;

    /**
     * 发票图片（支持多张）
     */
    private List<UploadFileItem> invoiceImg;

    /**
     * 登记时间
     */
    private LocalDateTime registrationTime;

    /**
     * 创建人ID
     */
    private Long createdBy;

    /**
     * 创建人姓名
     */
    private String createdByName;

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

}

