mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
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
package com.panzhihua.common.model.dtos;
 
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
 
@Data
public class PartyExcelDO {
 
    @ColumnWidth(10) // 定义列宽
    @ExcelProperty(value = {"单位归属"}, index = 0)
    private String belongTo;
 
    @ColumnWidth(20) // 定义列宽
    @ExcelProperty(value = {"所属党组织"}, index = 1)
    private String orgName;
 
    @ColumnWidth(26) // 定义列宽
    @ExcelProperty(value = {"单位名称"}, index = 2)
    private String unitName;
 
    @ColumnWidth(26) // 定义列宽
    @ExcelProperty(value = {"姓名"}, index = 3)
    private String memberName;
 
    @ColumnWidth(20) // 定义列宽
    @ExcelProperty(value = {"报道社区名称"}, index = 4)
    private String belongCommunity;
 
    @ColumnWidth(20) // 定义列宽
    @ExcelProperty(value = {"服务次数"}, index = 5)
    private Integer serviceTimes;
 
    @ColumnWidth(20) // 定义列宽
    @ExcelProperty(value = {"服务时长"}, index = 6)
    private Double serviceTime;
 
    @ColumnWidth(20) // 定义列宽
    @ExcelProperty(value = {"累计积分"}, index = 7)
    private Long partyCount;
}