package easydo.technology.model;

import easydo.technology.annotation.Minio;
import easydo.technology.annotation.NotTableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@Minio
public class SaleOrder extends CommonModel{
    private String id;
    private String code;
    private String customerId;
    private Long managerId;
    private BigDecimal incomePrice;
    private BigDecimal freePrice;
    private BigDecimal actualPrice;
    private String createTime;
    private String status;
    private String planReceiveDate;
    private String actualReceiveDate;
    private String deliveryDate;
    private String deliveryAddress;
    private String contractNo;
    private String orderDate;
    private String remark;
    private String tenantId;
    private Long createId;
    private Long updateId;
    private String updateTime;

    @NotTableField
    private List<SaleOrderDetail> childrenList = new ArrayList<>();
    @NotTableField
    private String managerName;
    @NotTableField
    private String customerName;
}
