Skip to content

support fill 模板填充

Compare
Choose a tag to compare
@lltx lltx released this 27 May 08:58
· 139 commits to master since this release
    @ResponseExcel(name = "模板测试excel", fill = true,sheets = {@Sheet(sheetName = "测试模板")}, template = "fill.xlsx")
    @GetMapping("/")
    public List<FillData> get() {

        ArrayList<FillData> list = new ArrayList<>();
        FillData fillData = new FillData("a", 12.1, new Date());
        FillData fillDataq = new FillData("qa", 12.1, new Date());
        FillData fillDataa = new FillData("ac", 12.1, new Date());
        FillData fillDatac = new FillData("aa", 12.1, new Date());

        list.add(fillDatac);
        list.add(fillDataq);
        list.add(fillDataa);
        list.add(fillData);
        return null;
    }