zhongrj
2024-12-26 a1272d78844574b86645149a0d8ca257c2b8fe91
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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;
}