package com.cpop.oam.business.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.util.List;

/**
 * Description:
 * date: 2023/5/15 16:44
 *
 * @Author ST
 */
@Data
@Accessors(chain = true)
@Schema(description = "OAM-任务表")
public class TaskMonthStatisticsVo {

    /**
     * 进行中
     */
    @Schema(description = "进行中")
    private Long inProgress = 0L;

    /**
     * 已完成
     */
    @Schema(description = "已完成")
    private Long haveCompleted = 0L;

    /**
     * 测试中
     */
    @Schema(description = "测试中")
    private Long inTest = 0L;

    /**
     * 已逾期
     */
    @Schema(description = "已逾期")
    private Long overdue = 0L;

    /**
     * 当月绩点
     */
    @Schema(description = "当月绩点")
    private Long gpaOfTheMonth = 0L;

    /**
     * 月度数据统计对象集合
     */
    @Schema(description = "月度数据统计对象集合")
    private List<DataStatisticsVo> vos;

    @Data
    @Accessors(chain = true)
    @Schema(description = "OAM-任务表")
    public class DataStatisticsVo {

        /**
         * 日期
         */
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        @Schema(description = "日期")
        private LocalDate date;

        /**
         * 任务内容
         */
        @Schema(description = "任务内容")
        private List<String> taskContents;
    }
}
