Skip to content

使用ReportingEngine生成报告时,如果传入的数据源是List,那么模板中的变量应该怎么填写 #107

@jeremyliu17

Description

@jeremyliu17
List<TestItem> testItems = testitemMapper.selectList(null);
ReportingEngine engine = new ReportingEngine();
engine.buildReport(doc, testItems, "ts");

如上采用mybatis方法获取的list数据,传入报告中,在报告模板中该怎么获取表中的数据,表列字段如图
企业微信截图_1713418470193
模板中的字段如图,mapper获取的是list,如何在模板中表示呢,这样写存在报错
企业微信截图_17134186347063

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions