1. 模板样式

2. class
/**
* 员工信息模板
*/
@Data
public class StaffExcelDTO{
private static final String GN_FSIAOHF = "社保、公积金、残保金";
private static final String GN_INSURANCE = "商保信息";
@Excel(name = "姓名")
private String name;
@Excel(name = "身份证号码")
private String idCard;
@Excel(name = "手机号码")
private String phone;
@Excel(name = "银行卡号")
private String bankCard;
@Excel(name = "银行名称")
private String bankName;
@Excel(name = "养老保险基数", groupName = GN_FSIAOHF)
private BigDecimal endowmentInsurance;
@Excel(name = "医疗保险基数", type = XkjCnst.EXCEL_CELL_TYPE_NUM, numFormat = XkjCnst.EXCEL_CELL_NUM_FORMAT, orderNum = "1", groupName = GN_FSIAOHF)
private BigDecimal medicalInsurance;
@Excel(name = "大病保险基数", type = XkjCnst.EXCEL_CELL_TYPE_NUM, numFormat = X