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

import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.module.infra.api.businessfile.dto.BusinessFileWithUrlRespDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 设备-点检、保养记录 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DeviceMaintainRespVO {

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

    @Schema(description = "数据类型", example = "2")
    @ExcelProperty("数据类型")
    private String dataType;

    @Schema(description = "业务配置id", example = "5423")
    @ExcelProperty("业务配置id")
    private Long ruleId;

    @Schema(description = "设备id", example = "32060")
    @ExcelProperty("设备id")
    private Long deviceId;

    @Schema(description = "保养日期")
    @ExcelProperty("保养日期")
    private LocalDateTime checkDate;

    @Schema(description = "保养内容")
    @ExcelProperty("保养内容")
    private String content;

    @Schema(description = "保养人", example = "30355")
    @ExcelProperty("保养人")
    private Long checkUserId;

    @Schema(description = "保养人", example = "王五")
    @ExcelProperty("保养人")
    private String checkUserName;

    @Schema(description = "频次类型", example = "1")
    @ExcelProperty("频次类型")
    private String frequencyType;

    @Schema(description = "频次")
    @ExcelProperty("频次")
    private String frequency;

    @Schema(description = "频次说明")
    @ExcelProperty("频次说明")
    private String frequencyRemark;

    @Schema(description = "所属周期开始日期")
    @ExcelProperty("所属周期开始日期")
    private LocalDateTime frequencyTimeStart;

    @Schema(description = "所属周期截止日期")
    @ExcelProperty("所属周期截止日期")
    private LocalDateTime frequencyTimeEnd;

    @Schema(description = "提交标识")
    @ExcelProperty("提交标识")
    private String submitFlag;

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

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

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


    //=====================================扩展字段===============================================
    @Schema(description = "附件对象")
    private CommonResult<List<BusinessFileWithUrlRespDTO>> businessFileRet;


}