SQL函数-https://help.fanruan.com/finereport/doc-view-846.html
单元格里面用sql函数就好了。
用参数注入巧用参数注入-https://help.fanruan.com/finereport/doc-view-1000.html