package org.dromara.machinery.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.machinery.domain.BusMachineryDetail;
import org.dromara.system.domain.vo.SysOssVo;

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


/**
 * 机械详情视图对象 bus_machinery_detail
 *
 * @author lcj
 * @date 2025-03-07
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BusMachineryDetail.class)
public class BusMachineryDetailVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ExcelProperty(value = "主键id")
    private Long id;

    /**
     * 检验证编号
     */
    @ExcelProperty(value = "检验证编号")
    private String checkoutNumber;

    /**
     * 检验单位
     */
    @ExcelProperty(value = "检验单位")
    private String checkoutUnit;

    /**
     * 检定日期/有效期
     */
    @ExcelProperty(value = "检定日期/有效期")
    private String checkoutDate;

    /**
     * 施工类型状态（0正常 1停用）
     */
    @ExcelProperty(value = "施工类型状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 0入场 1出场
     */
    @ExcelProperty(value = "0入场 1出场")
    private String type;

    /**
     * 入场时间
     */
    @ExcelProperty(value = "入场时间")
    private Date entryTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 图片(英文逗号分隔)
     */
    @ExcelProperty(value = "图片(英文逗号分隔)")
    private String picture;

    /**
     * 图片详情列表
     */
    private List<SysOssVo> pictureList;

    /**
     * 机械主键id
     */
    @ExcelProperty(value = "机械主键id")
    private Long machineryId;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

}
