package com.cf.imes.module.executor.controller.admin.order.vo.order;

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

import java.time.LocalDate;

/**
 * @author Gqr
 * @since 2024/8/5 17:10
 */
@Schema(description = "管理后台 - 生产单统计 Request VO")
@Data
public class OrderStatisticsReqVO {
    @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")
    @OrderStatisticsUnitInEnum
    private Integer unit;
}
