package com.hotwj.platform.resourceManagement.vehicleRepair.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.hotwj.platform.resourceManagement.vehicleRepair.domain.HotVehicleRepair;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 车辆维修记录视图对象 hot_vehicle_repair
 *
 * @author shihongwei
 * @date 2025-12-15
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotVehicleRepair.class)
public class HotVehicleRepairVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 公司ID
     */
    private Long companyId;

    /**
     * 车辆ID
     */
    private String vehicleId;

    /**
     * 车牌号
     */
    @ExcelProperty(value = "车牌号")
    private String plateNumber;

    /**
     * 运营状态:1=正常,2=暂停,3=过户,4=报废
     */
    private Long operationStatus;

    /**
     * 维修类别
     */
    @ExcelProperty(value = "维修类别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "hot_vehicle_repair")
    private String repairCategory;

    /**
     * 维修缘由
     */
    @ExcelProperty(value = "维修缘由", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "hot_vehicle_reason")
    private String repairReason;

    /**
     * 维修单位
     */
    @ExcelProperty(value = "维修单位")
    private String repairUnit;

    /**
     * 维修单位电话
     */
    @ExcelProperty(value = "维修单位电话")
    private String repairUnitPhone;

    /**
     * 维修金额
     */
    @ExcelProperty(value = "维修金额")
    private BigDecimal repairAmount;

    /**
     * 是否主要部件更换:0=否,1=是
     */
    @ExcelProperty(value = "是否主要部件更换:0=否,1=是")
    private Long isMajorPartReplaced;

    /**
     * 记录人
     */
    @ExcelProperty(value = "记录人")
    private String recorder;

    /**
     * 维修日期
     */
    @ExcelProperty(value = "维修日期")
    private Date repairDate;

    /**
     * 维修完成日期
     */
    @ExcelProperty(value = "维修完成日期")
    private Date finishDate;

    /**
     * 更换部件
     */
    @ExcelProperty(value = "更换部件")
    private String replacedParts;

    /**
     * 部件规格
     */
    @ExcelProperty(value = "部件规格")
    private String partSpec;

    /**
     * 维修内容
     */
    @ExcelProperty(value = "维修内容")
    private String repairContent;

    /**
     * 维修凭据图片URL(多个逗号分隔)
     */
    private String proofImageUrls;

    /**
     * 0=正常, 1=已删除
     */
    @ExcelProperty(value = "0=正常, 1=已删除")
    private Long isDeleted;


    /**
     * 图片列表
     */
    private java.util.List<String> images;

    /**
     * 车辆信息
     */
    private com.hotwj.platform.resourceManagement.vehicleManagement.domain.vo.HotVehicleVo vehicle;

}
