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

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 物料出库新增/修改 Request VO")
@Data
public class MaterialInventoryOutboundSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "10436")
    private Long id;

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

    @Schema(description = "业务类型,领用出库、盘亏出库等", example = "2")
    @NotNull(message = "业务类型不能为空")
    private String businessType;

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

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

    @Schema(description = "申请人id", example = "13273")
    @NotNull(message = "申请人id不能为空")
    private Long applyUserId;

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

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

    @Schema(description = "申请时间")
    private LocalDateTime applyTime;

    @Schema(description = "监督人")
    private String superviseUser;

    @Schema(description = "监督人id", example = "14493")
    private Long superviseUserId;

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

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

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

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

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

    @Schema(description = "物料实例id集合")
    private List<Long> infomationIds;

}