Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有人知道在 JasperReport 中查询 mongodb 时完成多选查询的方法。在 SQL 中有 $X 参数,但我没有设法在 JasperReports MongoDB 查询语言中找到任何类似的东西。
我通过使用报告中的过滤器表达式过滤掉未选择的项目来解决这个问题,方法是检查字段变量中的每个元组与集合参数,如下所示:
<filterExpression><![CDATA[$P{date_id}.contains($F{date_id})]]></filterExpression>