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 com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceMaintainDO;
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceMaintainItemDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;
@Schema(description = "管理后台 - 设备维护VO")
@Data
public class DeviceMaintainVO extends DeviceMaintainRespVO {


    //============大类字段============
    @Schema(description = "产品id")
    private Long productId;

    @Schema(description = "规格")
    private String specification;

    @Schema(description = "型号")
    private String modelNo;

    @Schema(description = "制造商")
    private String  manufacturer;

    //============设备字段============
    @Schema(description = "设备名称")
    private String deviceName;

    @Schema(description = "别名")
    private String alias;

    @Schema(description = "管理编号")
    private String deviceCode;

    @Schema(description = "资产编号")
    private String assetCode;

    @Schema(description = "出厂编号")
    private String factoryCode;

    @Schema(description = "所属部门名称")
    private String deptName;

    @Schema(description = "设备状态")
    private String deviceStatus;

    @Schema(description = "使用中状态")
    private Integer inUseFlag;

    //============维护信息字段============
    @Schema(description = "维护项目列表")
    List<DeviceMaintainItemDO> maintainItemList;

    @Schema(description = "未提交数据量")
    private Integer runningCount;

    @Schema(description = "已提交数据量")
    private Integer finishedCount;

    //导出报表时使用
    @Schema(description = "维护保养内")
    private String maintainContent;

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