${if(${year}>(select max(year) from xxxx),"year=(select max(year) from xxxx)","and year ='"+year+"'")}
主要是想要在判断的时候把参数引用进来 主要是红框这个步骤的
${if(year>sql("数据库连接名称","select max(year) from xxxx",1,1)," and year=(select max(year) from xxxx)"," and year ='"+year+"'")}
${if(year>SQL('数据连接','select max(year) from xxxx)',1,1)," AND year='"+SQL('数据连接','select max(year) from xxxx)',1,1)+"'","and year ='"+year+"'")}