package com.wms_main.model.bo.wms;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * WMS的拣选任务
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WmsPickTask {
    /**
     * 任务id
     */
    @JsonProperty("pickId")
    private String pickId;
    /**
     * 拣选站台
     */
   @JsonProperty("pickStand")
    private String pickStand;
    /**
     * 载具号
     */
    @JsonProperty("vehicleId")
    private String vehicleId;
    /**
     * 任务状态
     */
    @JsonProperty("pickStatus")
    private Integer pickStatus;
    /**
     * 创建时间
     */
    @JsonProperty("createTime")
    private LocalDateTime createTime;
    /**
     * 发送时间
     */
    @JsonProperty("sendTime")
    private LocalDateTime sendTime;
    /**
     * 到达时间
     */
    @JsonProperty("arriveTime")
    private LocalDateTime arriveTime;
    /**
     * 离开时间
     */
    @JsonProperty("leaveTime")
    private LocalDateTime leaveTime;

    public WmsPickTask(String pickStand, String vehicleId) {
        this.pickStand = pickStand;
        this.vehicleId = vehicleId;
    }
}
