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
71
72
73
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-26
 */
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class ProTarExcel implements Serializable {
    private static final long serialVersionUID = 1L;
 
    @ColumnWidth(20)
    @ExcelProperty("名称")
    private String name;
 
    @ExcelProperty(value = "归类",converter = ExcelDictConverter.class)
    @ExcelDictItemLabel(type = "pro_tar_category")
    private String category;
 
    @ColumnWidth(20)
    @ExcelProperty("经度")
    private String lng;
 
    @ColumnWidth(20)
    @ExcelProperty("纬度")
    private String lat;
 
    @ColumnWidth(20)
    @ExcelProperty("终点经度")
    private String endLng;
 
    @ColumnWidth(20)
    @ExcelProperty("终点纬度")
    private String endLat;
 
    @ExcelProperty("地址")
    private String address;
 
    @ExcelProperty(value = "类型",converter = ExcelDictConverter.class)
    @ExcelDictItemLabel(type = "pro_tar_type")
    private String feature;
 
    @ExcelProperty("占地面积(m2)")
    private Double area;
 
    @ExcelProperty("容积(万立方米)")
    private Double vol;
 
    @ExcelProperty("长度(公里)")
    private Double length;
 
    @ExcelProperty("平均流量(立方米/秒)")
    private Double aveDis;
 
    @ExcelProperty("平均流速(米/秒)")
    private Double aveVel;
 
    @ExcelProperty("说明")
    private String remark;
}