package com.skr.mdm.bean.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import lombok.Builder;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

/**
 * @author nfq
 * @date 2023-02-20 17:50
 */
@Data
@Builder
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@ContentStyle(horizontalAlignment = HorizontalAlignment.LEFT)
@ColumnWidth(50)
public class DepartmentImportFailDTO {

    /**
     * 部门全称
     */
    @ExcelProperty(value = "部门")
    private String department;
    /**
     * 状态（ 1：部门与excel中数据重复 2:该条数据部门名称存在重复 3：系统数据库中已存在 4：部门格式错误）
     */
    @ExcelIgnore
    private Integer status;
    /**
     * 失败信息
     */
    @ExcelProperty(value = "失败信息")
    private String msg;

}
