oracle数据库,数据类型data_type,格式为2023/01/01 24:00:00,现在要做时间查询,sql改怎么写,${if(len(开始日期)==0,"","and to_char(to_DATE(B.time,'YYYY/MM/DD HH24:MI:SS'),'yyyy/mm/dd') >= '"+开始日期+"'")}${if(len(结束日期)==0,"","and to_char(to_DATE(B.time,'YYYY/MM/DD HH24:MI:SS'),'yyyy/mm/dd') <= '"+结束日期+"'")},我是这样写的,查询不出来