package com.aps.entity.Schedule;


import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.Alias;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author jvs
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(name = "排产结果可视化——资源任务甘特图", description = "排产结果可视化——资源任务甘特图")
@Alias("SchedulePlanResourceTaskGanttVO")
public class PlanResourceTaskGanttVO {

    @Schema(description = "任务计划最早开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    private LocalDateTime earliestTaskStartTime;

    @Schema(description = "最近任务派工截止时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    private LocalDateTime lastTaskAssignmentTime;

    @Schema(description = "资源任务集合")
    private List<MachineVO> resources;

    @Schema(description = "场景id")
    private Long sceneId;
}
