where 1=1
${if(len(received_Notice_date)>0 && len(received_Notice_date1)>0,"and received_Notice_date >= '"+received_Notice_date+"' and received_Notice_date1 <= '"+received_Notice_date1+"'"
,"")}
第二框处字段后面多了个1
语法上没问题,你的需求是什么?两个控件分开判断?
改成
${if(len(received_Notice_date)>0,"and 字段名>= '"+received_Notice_date+"'","")}
${if(len(received_Notice_date1)>0,"and 字段名 <= '"+received_Notice_date1+"'","")}