package cn.iocoder.yudao.module.system.controller.admin.biz.vo.materialio.stats;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Schema(description = "管理后台 - 物资入库统计汇总 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
public class MaterialInboundStatSummaryReqVO extends PageParam {

    @Schema(description = "租户ID数组", example = "[1, 2]")
    private Long[] tenantIds;

    @Schema(description = "开始日期", required = true, example = "2023-01-01")
    @NotNull(message = "开始日期不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;

    @Schema(description = "结束日期", example = "2023-12-31")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    @Schema(description = "供应商ID", example = "1024")
    private Long supplierId;

}

