package com.wms_main.model.dto.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 拣选记录查询参数
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PickTaskBakQuery extends PageQuery{
    /**
     * 任务id
     */
    @JsonProperty(value = "pickId")
    private String pickId;
    /**
     * 拣选站台
     */
    @JsonProperty(value = "pickStand")
    private String pickStand;
    /**
     * 载具号
     */
    @JsonProperty(value = "vehicleId")
    private String vehicleId;
    /**
     * 任务状态
     */
    @JsonProperty(value = "pickStatus")
    private Integer pickStatus;
    /**
     * 创建时间
     */
    @JsonProperty(value = "createTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 发送时间
     */
    @JsonProperty(value = "sendTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime sendTime;
    /**
     * 到达时间
     */
    @JsonProperty(value = "arriveTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime arriveTime;
    /**
     * 离开时间
     */
    @JsonProperty(value = "leaveTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime leaveTime;
}
