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

import com.zt.plat.module.qms.core.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 设备通用流程,验收、降级、停用、报废、还原、启用 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DeviceApplyRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23536")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "业务名称,【字典】【jy_device_lifecycle_bsn_type】验收、降级、停用、报废、还原、启用等", example = "王五")
    @ExcelProperty("业务名称,【字典】【jy_device_lifecycle_bsn_type】验收、降级、停用、报废、还原、启用等")
    private String businessName;

    @Schema(description = "申请部门", example = "王五")
    @ExcelProperty("申请部门")
    private String applyDepartmentName;

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

    @Schema(description = "申请人", example = "ZT")
    @ExcelProperty("申请人")
    private String applyUserName;

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

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

    @Schema(description = "业务编码")
    @ExcelProperty("业务编码")
    private String businessCode;

    @Schema(description = "业务日期")
    @ExcelProperty("业务日期")
    private LocalDateTime businessDate;

    @Schema(description = "业务原因")
    @ExcelProperty("业务原因")
    private String businessReason;

    @Schema(description = "业务状态", example = "1")
    @ExcelProperty("业务状态")
    @Dict(dicCode = "flow_status")
    private String businessStatus;

    @Schema(description = "借用人")
    @ExcelProperty("借用人")
    private String businessUser;

    @Schema(description = "借用人id", example = "30865")
    @ExcelProperty("借用人id")
    private Long businessUserId;

    @Schema(description = "借用部门")
    @ExcelProperty("借用部门")
    private String businessDepartment;

    @Schema(description = "借用部门id", example = "3852")
    @ExcelProperty("借用部门id")
    private Long businessDepartmentId;

    @Schema(description = "计划归还日期")
    @ExcelProperty("计划归还日期")
    private LocalDateTime planGivebackDate;

    @Schema(description = "归还接收人")
    @ExcelProperty("归还接收人")
    private String givebackReceiveUser;

    @Schema(description = "归还接收人id", example = "1499")
    @ExcelProperty("归还接收人id")
    private Long givebackReceiveUserId;

    @Schema(description = "表单模板ID", example = "23422")
    @ExcelProperty("表单模板ID")
    private String templateId;

    @Schema(description = "表单组件")
    @ExcelProperty("表单组件")
    private String formComponent;

    @Schema(description = "数据集配置ID", example = "17263")
    @ExcelProperty("数据集配置ID")
    private Long dataCollectionId;

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

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

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

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

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}