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 MaterialInventoryInboundPageReqVO extends PageParam {

    @Schema(description = "标题")
    private String title;

    @Schema(description = "业务类型,【字典】【jy_material_in_bsn_type】验收入库、盘盈入库等", example = "2")
    private String businessType;

    @Schema(description = "业务类型编码")
    private String businessTypeCode;

    @Schema(description = "申请人")
    private String applyUser;

    @Schema(description = "申请人id", example = "18778")
    private Long applyUserId;

    @Schema(description = "申请部门")
    private String applyDepartment;

    @Schema(description = "申请部门id", example = "29535")
    private Long applyDepartmentId;

    @Schema(description = "申请时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] applyTime;

    @Schema(description = "流程实例id", example = "16660")
    private String flowInstanceId;

    @Schema(description = "流程审批状态", example = "1")
    private String flowStatus;

    @Schema(description = "意见json")
    private String commentJson;

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

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

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

}