package com.fuyuanshen.equipment.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fuyuanshen.common.tenant.core.TenantEntity;
import com.fuyuanshen.equipment.domain.DeviceRepairRecords;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 设备维修记录视图对象 device_repair_records
 *
 * @author Lion Li
 * @date 2025-08-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = DeviceRepairRecords.class)
public class DeviceRepairRecordsVo extends TenantEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 维修记录ID
     */
    // @ExcelProperty(value = "维修记录ID")
    private Long recordId;

    /**
     * 设备ID
     */
    // @ExcelProperty(value = "设备ID")
    private String deviceId;

    /**
     * 设备名称
     */
    @ExcelProperty(value = "设备名称")
    private String deviceName;

    /**
     * 维修时间
     */
    @ExcelProperty(value = "维修时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ColumnWidth(value = 20)
    private Date repairTime;

    /**
     * 损坏部位
     */
    @ExcelProperty(value = "损坏部位")
    private String repairPart;

    /**
     * 损坏原因
     */
    @ExcelProperty(value = "损坏原因")
    private String repairReason;

    /**
     * 维修人员
     */
    @ExcelProperty(value = "维修人员")
    private String repairPerson;


    private List<DeviceRepairImagesVo> images;

}