${IF(LEN(startDate)=0,"and 表字段>=trunc(to_date('"+endDate+"','yyyy-mm-dd'),'yyyy')"," AND 表字段>=to_date('"+startDate+"','yyyy-mm-dd')")}
${IF(LEN(startDate)=0,"between trunc(to_date('"+endDate+"','yyyy-mm-dd'),'yyyy')","between to_date('"+startDate+"','yyyy-mm-dd')")}
${IF(LEN(endDate)=0,"","and to_date('"+endDate+"','yyyy-mm-dd')")}
BETWEEN ${IF(LEN(startDate)=0,"trunc(to_date('"+endDate+"','yyyy-mm-dd'),'yyyy')","to_date('"+startDate+"','yyyy-mm-dd')")}
AND TO_DATE('${结束日期}', 'YYYY-MM-DD')