比如金额输入1000-1500 就会显示出收入和支出在这个范围的数据
参考文本框实现范围查询-https://help.fanruan.com/finereport/doc-view-3262.html
意思就2个参数呗:如你所说,就想下面这个写法就可以满足:where条件,2个参数。收入一个范围。支出一个范围
where 1=1
${if(金额1 = "","","and 收入>= '" + 金额1+ "'")}
${if(金额1= "","","and 支出<= '" + 金额1+ "'")}
${if(金额2= "","","and 收入>= '" + 金额2+ "'")}
${if(金额2= "","","and 支出<= '" + 金额2+ "'")}