youseries / ureport

UReport2 is a high-performance pure Java report engine based on Spring architecture, where complex Chinese-style statements and reports can be prepared by iterating over cells.
Apache License 2.0
2.05k stars 836 forks source link

SQL数据集配置中表名可以通过传参数怎么拼接呢 #519

Closed cf19890919 closed 4 years ago

cf19890919 commented 4 years ago

为了您的问题能得到及时准确解答,请认真填写下面各个选项,感谢您的配合。

SQL数据集配置中表名可以通过传参数怎么拼接呢 SELECT d.* FROM tb_stock_inlayin_bound_order_detail:tenant_id d WHERE d.order_id = :id

tenant_id值:016904 id 值:123 U4 TXFI0 0MYBY{HEZQ@Y8

cf19890919 commented 4 years ago

已解决 使用 ${ "select * from "+param("tableName") } 即可