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

import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.module.qms.core.aspect.annotation.Dict;
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 MaterialLifecyclePageReqVO extends PageParam {

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

    @Schema(description = "业务类型,【字典】【jy_material_lifecycle_bsn_type】验收、退换货、配置申请", example = "2")
    private String businessType;

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

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

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

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

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

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

    @Schema(description = "表单数据,表单数据")
    private String formData;

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

    @Schema(description = "提交状态,0-未提交，1-已提交", example = "1")
    private Integer submitStatus;

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

    @Schema(description = "执行人id")
    private Long operatorId;

    @Schema(description = "执行人")
    private String operatorName;

    @Schema(description = "执行进度")
    private String progress;

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

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

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

}