传递参数时用sql公式查出对应表的最新日期传递
${if( len(tradedate)=0, "and tradedate= (select max(tradedate) from table )", "and tradedate in ('"+ tradedate +"')")}