${if(leixing =1, " and 开始日期 between to_date('${beginrq}','yyyy-mm-dd hh24:mi:ss') and to_date('${endrq}','yyyy-mm-dd hh24:mi:ss')", if(leixing= '2',"and 结束日期 between to_date('${beginrq}','yyyy-mm-dd hh24:mi:ss') and to_date('${endrq}','yyyy-mm-dd hh24:mi:ss')",if(leixing = '3',"","")))}