package com.yc.ship.module.trade.controller.admin.orderjzdetail.vo;

import com.yc.ship.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

import static com.yc.ship.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Data
@Schema(description = "管理后台 - 订单分车分页 Request VO")
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
public class OrderJzDispatchPageReqVO extends PageParam {


    @io.swagger.v3.oas.annotations.media.Schema(description = "页码", example = "1")
    private Integer pageNo = 1;

    @io.swagger.v3.oas.annotations.media.Schema(description = "每页条数", example = "10")
    private Integer pageSize = 10;


    @Schema(description = "订单ID", example = "18565")
    private Long orderId;

    @Schema(description = "航次ID", example = "10086")
    private Long voyageId;

    @Schema(description = "分车号", example = "FC001")
    private String dispatchNo;

    @Schema(description = "车牌号", example = "川A12345")
    private String busNumber;

    @Schema(description = "司机姓名", example = "张师傅")
    private String driverName;

    @Schema(description = "分车来源类型（1：接站服务 2：赠送行程）", example = "1")
    private Integer sourceType;


    @Schema(description = "分车时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] dispatchTime;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "分车组团号")
    private String groupNo;




}
