package com.zt.plat.module.qms.resource.material.controller.vo;

import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 入库明细,验收入库、盘盈入库等分页 Request VO")
@Data
public class MaterialInventoryInboundDetailPageReqVO extends PageParam {

    @Schema(description = "入库单ID", example = "30205")
    private Long inboundId;

    @Schema(description = "物料大类id", example = "30205")
    private Long productId;

    @Schema(description = "批次id", example = "16666")
    private Long batchId;

    @Schema(description = "批次工段id", example = "1454")
    private Long batchGongduanId;

    @Schema(description = "物料实例ID", example = "17457")
    private Long materialInfomationId;

    @Schema(description = "入库人", example = "赵六")
    private String inboundUserName;

    @Schema(description = "入库人id", example = "6313")
    private Long inboundUserId;

    @Schema(description = "入库人部门", example = "张三")
    private String inboundDepartmentName;

    @Schema(description = "入库人部门id", example = "10963")
    private Long inboundDepartmentId;

    @Schema(description = "入库时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] inboundTime;

    @Schema(description = "所属部门")
    private String systemDepartmentCode;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}