package com.zt.modules.sample.excel;
|
|
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
import lombok.AllArgsConstructor;
|
import lombok.Data;
|
import lombok.NoArgsConstructor;
|
|
@Data
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class SampleExcel {
|
|
/**
|
* 编号
|
*/
|
@ColumnWidth(15)
|
@ExcelProperty("编号")
|
private String code;
|
|
/**
|
* 名称
|
*/
|
@ColumnWidth(30)
|
@ExcelProperty("名称")
|
private String name;
|
|
/**
|
* 简称
|
*/
|
@ColumnWidth(20)
|
@ExcelProperty("简称")
|
private String shortName;
|
|
/**
|
* 组合名
|
*/
|
@ColumnWidth(40)
|
@ExcelProperty("组合名")
|
private String mergerName;
|
|
/**
|
* 拼音
|
*/
|
@ColumnWidth(30)
|
@ExcelProperty("拼音")
|
private String pinyin;
|
|
}
|