package com.zt.plat.module.qms.resource.record.controller.admin.recordapply.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.zt.plat.module.qms.resource.clientManage.controller.vo.UploadFileVo;
import com.zt.plat.module.qms.resource.record.controller.admin.recordapplydetail.vo.RecordApplyDetailRespVO;
import com.zt.plat.module.qms.resource.record.controller.admin.recordapplydetail.vo.RecordApplyDetailSaveReqVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 文件记录通用申请新增/修改 Request VO")
@Data
public class RecordApplySaveReqVO {

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

    @Schema(description = "申请标题,【字典】【jy_record_apply_bsn_type】分发、查看申请、作废、评审", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "申请标题,【字典】【jy_record_apply_bsn_type】分发、查看申请、作废、评审不能为空")
    private String title;

    @Schema(description = "业务类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
//    @NotEmpty(message = "业务类型不能为空")
    private String businessType;

    @Schema(description = "业务状态")
    private String businessStatus;

    @Schema(description = "申请人id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15000")
//    @NotNull(message = "申请人id不能为空")
    private Long applyUserId;

    @Schema(description = "申请人姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
//    @NotEmpty(message = "申请人姓名不能为空")
    private String applyUserName;

    @Schema(description = "部门id", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "部门id不能为空")
    private Long applyDepartmentId;

    @Schema(description = "部门名称", example = "研发部")
    @ExcelProperty("部门名称")
    private String applyDepartmentName;

    @Schema(description = "修改标识")
    private String modifyFlag;

    @Schema(description = "评审时间")
    private LocalDateTime reviewTime;

    @Schema(description = "评审范围")
    private String reviewRange;

    @Schema(description = "参加评审部门")
    private String targetDepartmentIds;

    @Schema(description = "参加评审人员", example = "赵六")
    private String reviewUserName;

    @Schema(description = "参加评审人员id")
    private String targetUserIds;

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

    @Schema(description = "申请事由")
    private String applyContent;

    @Schema(description = "更改前内容")
    private String changeBefore;

    @Schema(description = "更改后内容")
    private String changeAfter;

    @Schema(description = "是否长期有效")
    private String permanently;

    @Schema(description = "开始日期")
    private LocalDateTime applyStartDate;

    @Schema(description = "截止日期")
    private LocalDateTime applyEndDate;

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

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

    @Schema(description = "流程实例ID")
    private String flowInstanceId;

    @Schema(description = "是否提交")
    private Integer isSubmit;

    // ============================================

    @Schema(description = "上传文件列表")
    private List<UploadFileVo> files;

    @Schema(description = "删除的文件id")
    private List<Long> deleteFileIdList;

    private List<RecordApplyDetailSaveReqVO> detailList;

    // 记录Id
    private List<Long> recordList;


}