${if(checkBox="true",
"and a.sign_date is null",
if(len(starttime) =0 ,"","and to_char(a.sign_date,'yyyy-MM-dd') >= '"+ starttime+"'")
if(len(endtime) =0 ,"","and to_char(a.sign_date,'yyyy-MM-dd') <= '"+ endtime+"'"))}
${if(checkBox="true","and a.sign_date is null",if(len(endtime) =0 ,"","and to_char(a.sign_date,'yyyy-MM-dd') <= '"+ endtime+"'")}
${if(checkBox="true","and a.sign_date is null",if(len(starttime) =0 ,"","and to_char(a.sign_date,'yyyy-MM-dd') >= '"+ starttime+"'") }
" and a.sign_date is null",
if(len(starttime) =0 || len(endtime) =0,
if(len(endtime) =0 ,
" and to_char(a.sign_date,'yyyy-MM-dd') >= '"+ starttime+"'"
," and to_char(a.sign_date,'yyyy-MM-dd') <= '"+ endtime+"'")
," and to_char(a.sign_date,'yyyy-MM-dd') >= '"+ starttime+"' and to_char(a.sign_date,'yyyy-MM-dd') <= '"+ endtime+"'")
)}
${if(checkBox="true","and a.sign_date is null",if(len(endtime) =0 ,"","and to_char(a.sign_date,'yyyy-MM-dd') <= '"+ endtime+"'"))} ${if(checkBox="true","and a.sign_date is null",if(len(starttime) =0 ,"","and to_char(a.sign_date,'yyyy-MM-dd') >= '"+ starttime+"'")) }