package com.cf.imes.module.executor.controller.admin.order.vo.order;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

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

@Schema(description = "管理后台 - 订单逾期列表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class OrderOverdueRespVO {

    @Schema(description = "订单号")
    private Long id;

    @Schema(description = "父单号")
    private Long parentId;

    @Schema(description = "订单日期", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime orderDate;

    @Schema(description = "交付日期", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime deliveryDate;

    @Schema(description = "订单类型，1主单 2子单", example = "1")
    private Integer orderType;

    @Schema(description = "订单状态，订单状态，0空订单1新单2生产中3生产完成", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer status;

    @Schema(description = "自定义单号")
    private String customOrderNo;

    @Schema(description = "客户", requiredMode = Schema.RequiredMode.REQUIRED)
    private String customer;

    @Schema(description = "客户地址", requiredMode = Schema.RequiredMode.REQUIRED)
    private String address;

    @Schema(description = "客户电话", requiredMode = Schema.RequiredMode.REQUIRED)
    private String phoneNumber;

    @Schema(description = "经销商", requiredMode = Schema.RequiredMode.REQUIRED)
    private String dealer;

    @Schema(description = "业务员")
    private String salesman;

    @Schema(description = "拆单员")
    private String splitter;

    @Schema(description = "子单列表")
    private List<OrderOverdueRespVO> child;
}
