Where 1=1 AND to_date(A.time,'yyyy/mm/dd HH24:MI:SS') > add_months(sysdate, -12) and ${if(len(开始时间)=0,"1=1","to_char(A.time,'yyyy/mm/dd hh:mm:ss')>='" +开始时间+ "'")} and ${if(len(结束时间)=0,"1=1","to_char(A.time,'yyyy/mm/dd hh:mm:ss')<='" +结束时间+ "'")} 我的sql这样写,显示参数无效,oracle数据库,应该怎么更改,做时间参数查询 时间格式2021/02/02 01:01:01 |