Browse Source

修改合并异常

developing
Jiaju Zhuang 5 years ago
parent
commit
b3a30d0993
  1. 18
      src/test/java/com/alibaba/easyexcel/test/core/fill/FillDataTest.java

18
src/test/java/com/alibaba/easyexcel/test/core/fill/FillDataTest.java

@ -113,23 +113,23 @@ public class FillDataTest {
byNameFill(byName03, byNameTemplate03);
}
private void byNameFill(File file, File template) {
FillData fillData = new FillData();
fillData.setName("张三");
fillData.setNumber(5.2);
EasyExcel.write(file, FillData.class).withTemplate(template).sheet("Sheet2").doFill(fillData);
}
@Test
public void t07CompositeFill07() {
public void t09CompositeFill07() {
compositeFill(fileComposite07, compositeFillTemplate07);
}
@Test
public void t08CompositeFill03() {
public void t10CompositeFill03() {
compositeFill(fileComposite03, compositeFillTemplate03);
}
private void byNameFill(File file, File template) {
FillData fillData = new FillData();
fillData.setName("张三");
fillData.setNumber(5.2);
EasyExcel.write(file, FillData.class).withTemplate(template).sheet("Sheet2").doFill(fillData);
}
private void compositeFill(File file, File template) {
ExcelWriter excelWriter = EasyExcel.write(file).withTemplate(template).build();
WriteSheet writeSheet = EasyExcel.writerSheet().build();

Loading…
Cancel
Save