package com.maintain.business.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.maintain.common.annotation.ExcelDictFormat;
import com.maintain.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;

import java.io.Serializable;

/**
 * 维修项目类型视图对象 erp_project_type
 *
 * @author liushuai
 * @date 2025-03-28
 */
@Data
@ExcelIgnoreUnannotated
public class ErpProjectTypeVo implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /**
     * 部门名称
     */
    @ExcelProperty(value = "部门名称")
    private String typeName;

    /**
     * 父部门id
     */
    @ExcelProperty(value = "父部门id")
    private Long parentId;

    /**
     * 祖级列表
     */
    @ExcelProperty(value = "祖级列表")
    private String ancestors;

    /**
     * 显示顺序
     */
    @ExcelProperty(value = "显示顺序")
    private Integer orderNum;

    /**
     * 类型（1维修 2故障 3检验）
     */
    @ExcelProperty(value = "类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=维修,2=故障,3=检验")
    private Integer type;


}
