where 1=1
${if(len(参数名称)=0,"","and LOT in('"+ 参数名称 + "')")}
${if(len(参数名称2)=0,"","and ADVICE in('"+ 参数名称2 + "')")}
${if(len(start_date)=0,"","and 表中时间>=to_date('"+start_date+"','yyyy-mm-dd')")}
${if(len(end_date)=0,"","and 表中时间<to_date('"+end_date+"','yyyy-mm-dd')+1")}
复选框记得设置这个分隔符号