${if(len(a.sign_date) =0 ,"","and to_char(a.sign_date,'yyyy-MM-dd') >= "+ starttime)}
${if(len(a.sign_date) =0 ,"","and to_char(a.sign_date,'yyyy-MM-dd') <= "+ endtime)}
这段sql写了就报错,也不知道错在哪里。
${if(len(starttime) =0 ,"","and to_char(a.sign_date,'yyyy-MM-dd') >= '"+ starttime+"'")} ${if(len(starttime) =0 ,"","and to_char(a.sign_date,'yyyy-MM-dd') <= '"+ endtime+"'")}
${if(len(a.sign_date) =0 ,""," and to_char(a.sign_date,'yyyy-MM-dd') >= "+ starttime)}
${if(len(a.sign_date) =0 ,""," and to_char(a.sign_date,'yyyy-MM-dd') <= "+ endtime)}
返回是字符串可以这样写,返回格式是否和 yyyy-MM-dd 一致