package cn.iocoder.yudao.module.system.controller.admin.robot.detail;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class RobotTaskDetailLogResoVO {
    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26224")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(description = "任务号")
    private String taskNo;

    @Schema(description = "任务类型（1：取放货、2：停车、 3：充电、4：移动、5：仅取货、6：仅放货）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private Integer taskType;

    @Schema(description = "任务内容")
    private String msg;

    @Schema(description = "任务状态(0:未开始、1：执行中、2：已完成、3：已取消、4:异常)", example = "1")
    private Integer taskStatus;

    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "计算后的目标库位编号")
    private String toLocationNo;

    @Schema(description = "计算后的来源库位编号")
    private String fromLocationNo;

    @Schema(description = "任务阶段(0:待执行、1：前往取货、2：取货中、3：前往放货、4：放货中、5：结束、6：移动中、7:正在充电、8:取消、9:人工完成、10:异常)")
    private Long taskStage;

}
