你的sql拼接问题,拷贝语句出来,帮你改下
==========
${if(type>1,
"select * from DD_ PROCESSION_ OPERATION
where STAT_ DATE='"+DATEDELTA(FORMAT(times, "yyy-1M-dd"),-1)+"'
order by ID",
"select * from DD_ PROCESSION_ OPERATION
where STAT_ DATE='"+ times+"'
order by ID"
)}