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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 机器人任务明细 Response VO")
@Data
@ExcelIgnoreUnannotated
public class RobotTaskDetailRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26224")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "机器人任务主表id", requiredMode = Schema.RequiredMode.REQUIRED, example = "9241")
    @ExcelProperty("机器人任务主表id")
    private Long robotTaskId;

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

    @Schema(description = "放货类型（1：库位、2：线库、 3：区域）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("放货类型（1：库位、2：线库、 3：区域）")
    private Integer releaseType;

    @Schema(description = "取货类型（1：库位、2：线库、 3：区域）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("取货类型（1：库位、2：线库、 3：区域）")
    private Integer takeType;

    @Schema(description = "放货库位/线库/区域", requiredMode = Schema.RequiredMode.REQUIRED, example = "6223")
    @ExcelProperty("放货库位/线库/区域")
    private Long releaseId;

    @Schema(description = "取货库位/线库/区域", requiredMode = Schema.RequiredMode.REQUIRED, example = "24801")
    @ExcelProperty("取货库位/线库/区域")
    private Long takeId;

    @Schema(description = "计算后的来源库位编号")
    @ExcelProperty("计算后的来源库位编号")
    private String fromLocationNo;
    @Schema(description = "计算后的来源库位id")
    private Long fromLocationId;
    @Schema(description = "计算后的目标库位编号")
    @ExcelProperty("计算后的目标库位编号")
    private String toLocationNo;
    @Schema(description = "计算后的目标库位id")
    private Long toLocationId;

    @Schema(description = "AGV编号")
    @ExcelProperty("AGV编号")
    private String robotNo;

    @Schema(description = "AGV动作")
    @ExcelProperty("AGV动作")
    private String robotAction;

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

    @Schema(description = "任务阶段(0:待执行、1：前往取货、2：取货中、3：运输中、4：放货中、5：结束)")
    @ExcelProperty("任务阶段(0:待执行、1：前往取货、2：取货中、3：运输中、4：放货中、5：结束)")
    private Long taskStage;

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

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

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "取货线库id")
    @ExcelProperty("取货线库id")
    private Long fromLaneId;

    @Schema(description = "放货线库id")
    @ExcelProperty("放货线库id")
    private Long toLaneId;

    @Schema(description = "取货层数")
    @ExcelProperty("取货层数")
    private Integer fromLocationStorey;
    @Schema(description = "放货层数")
    @ExcelProperty("放货层数")
    private Integer toLocationStorey;
    @Schema(description = "优先级")
    @ExcelProperty("优先级")
    private Long priority;
    @Schema(description = "停车后是否锁定(0:否、1:是)")
    @ExcelProperty("停车后是否锁定(0:否、1:是)")
    private Integer needLock;
    @Schema(description = "所选车辆电量(充电模式)")
    @ExcelProperty("所选车辆电量(充电模式)")
    private Integer electricity;

    @Schema(description = "取货库位的排序")
    @ExcelProperty("取货库位的排序")
    private Long fromLocationNumber;

    @Schema(description = "放货库位的排序")
    @ExcelProperty("放货库位的排序")
    private Long toLocationNumber;

    @Schema(description = "取货库位ware_position_map_item的id")
    private Long fromMapItemId;

    @Schema(description = "放货库位ware_position_map_item的id")
    private Long toMapItemId;
}