触发场景描述
触发Bug的代码
.withTemplate(templateFileName)
.relativeHeadRowIndex(0)
.head(head())
.sheet("专利清单")
.doWrite(datas);
private List<List<String>> head() {
List<List<String>> headList = new ArrayList<List<String>>();
List<String> index = new ArrayList<String>();
List<String> patentName = new ArrayList<String>();
List<String> inventionType = new ArrayList<String>();
List<String> departmentName = new ArrayList<String>();
List<String> inventor = new ArrayList<String>();
List<String> mainInventorName = new ArrayList<String>();
List<String> mainInventorTel = new ArrayList<String>();
List<String> mainInventorPhone = new ArrayList<String>();
List<String> mainInventorEmail = new ArrayList<String>();
List<String> technicalField = new ArrayList<String>();
List<String> standardType = new ArrayList<String>();
List<String> expeditedFlag = new ArrayList<String>();
List<String> description = new ArrayList<String>();
List<String> remark = new ArrayList<String>();
index.add("动态列表"+ System.currentTimeMillis());
index.add("序号");
patentName.add("动态列表"+ System.currentTimeMillis());
patentName.add("提交姓名");
inventionType.add("动态列表"+ System.currentTimeMillis());
inventionType.add("申请类别");
departmentName.add("动态列表"+ System.currentTimeMillis());
departmentName.add("上报单位");
inventor.add("动态列表"+ System.currentTimeMillis());
inventor.add("发明人");
mainInventorName.add("动态列表"+ System.currentTimeMillis());
mainInventorName.add("联系人");
mainInventorTel.add("动态列表"+ System.currentTimeMillis());
mainInventorTel.add("联系电话");
mainInventorPhone.add("动态列表"+ System.currentTimeMillis());
mainInventorPhone.add("联系手机");
mainInventorEmail.add("动态列表"+ System.currentTimeMillis());
mainInventorEmail.add("联系邮件");
technicalField.add("动态列表"+ System.currentTimeMillis());
technicalField.add("所属技术领域");
standardType.add("动态列表"+ System.currentTimeMillis());
standardType.add("与标准关系");
expeditedFlag.add("动态列表"+ System.currentTimeMillis());
expeditedFlag.add("是否加急处理");
description.add("动态列表"+ System.currentTimeMillis());
description.add("专利简要说明");
remark.add("动态列表"+ System.currentTimeMillis());
remark.add("备注");
headList.add(index);
headList.add(patentName);
headList.add(inventionType);
headList.add(departmentName);
headList.add(inventor);
headList.add(mainInventorName);
headList.add(mainInventorTel);
headList.add(mainInventorPhone);
headList.add(mainInventorEmail);
headList.add(technicalField);
headList.add(standardType);
headList.add(expeditedFlag);
headList.add(description);
headList.add(remark);
return headList;
}
提示的异常或者没有达到的效果