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

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

import java.time.LocalDate;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Schema(description = "管理后台 - 物资出入库单分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class MaterialIoOrderPageReqVO extends PageParam {

    @Schema(description = "业务类型：IN/OUT/IN_RETURN/OUT_RETURN")
    private String bizType;

    @Schema(description = "入库状态（预留字段：如 0-草稿 1-已入库等）")
    private Integer status;

    @Schema(description = "单据号")
    private String orderNo;

    @Schema(description = "出入库日期范围")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] orderDate;

    @Schema(description = "租户id数组")
    private Long[] tenantIds;
}

