package org.springblade.modules.yw.excel;
|
|
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
|
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
|
import lombok.Data;
|
import org.springblade.common.excel.ExcelDictConverter;
|
import org.springblade.common.excel.ExcelDictItemLabel;
|
|
import java.io.Serializable;
|
|
/**
|
* 应急物资 excel 模板
|
* @author zhongrj
|
* @date 2024-10-28
|
*/
|
@Data
|
@ColumnWidth(25)
|
@HeadRowHeight(20)
|
@ContentRowHeight(18)
|
public class EmergencySuppliesExcel implements Serializable {
|
private static final long serialVersionUID = 1L;
|
|
@ColumnWidth(20)
|
@ExcelProperty("企业名称*")
|
private String firmName;
|
|
@ColumnWidth(20)
|
@ExcelProperty("仓库名称*")
|
private String suppliesName;
|
|
@ColumnWidth(20)
|
@ExcelProperty("应急物资名称*")
|
private String name;
|
|
@ColumnWidth(20)
|
@ExcelProperty(value = "应急物资类型",converter = ExcelDictConverter.class)
|
@ExcelDictItemLabel(type = "eme_sup_type")
|
private String type;
|
/**
|
* 数量
|
*/
|
@ExcelProperty("型号")
|
private String model;
|
|
/**
|
* 数量
|
*/
|
@ExcelProperty("数量/单位")
|
private String numbers;
|
|
/**
|
* 数量
|
*/
|
@ExcelProperty("数量")
|
private String num;
|
/**
|
* 单位
|
*/
|
@ExcelProperty(value = "单位",converter = ExcelDictConverter.class)
|
@ExcelDictItemLabel(type = "unit")
|
private String unit;
|
|
@ExcelProperty("存储位置")
|
private String stoLoc;
|
|
@ExcelProperty("备注")
|
private String remark;
|
}
|