package com.aps.entity.Gantt;

import com.aps.entity.ScheduledTask;
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 = "排产结果可视化——资源任务甘特图1", description = "排产结果可视化——资源任务甘特图1")
@Alias("PlanResourceTaskGanttVO1")
public class PlanResourceTaskGanttVO1 {

    @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<SimpleEquipinfo1> resources;

}
