${if(len(DATE)=0,"","and PRO_DATE in ('"+CONCATENATE(DATE,"','",left(DATE,4)-1,right(DATE,3),"','",left(DATE,4)-2,right(DATE,3))+"')")}
SQLSERVER?MYSQL?oracle?
多选么?
${if(len(DATE)>0,"and PRO_DATE in ('"+ DATE +"')")}
datediff(year,a.kprq,getdate())<=1
去年到现在的。