package com.cf.imes.module.system.api.organ.dto;

import com.cf.imes.module.system.validation.org.OrgStatisticsUnitInEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * 统计集合 --- 组织统计
 */
@Schema(description = "管理后台 - 生产单统计 Request VO")
@Data
public class OrgStatisticsReqDTO {
    @Schema(description = "组织id")
    private Long organId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate[] createTime;

    /**
     * 统计维度单位
     */
    @Schema(description = "统计维度单位", example = "0", allowableValues = {"0", "1", "2", "3"}, type = "integer")
    @OrgStatisticsUnitInEnum
    private Integer unit;
}