日期格式如果只要年月日,没有时分秒,就不要format转换了,如果有时分秒,就转换一下
建议转换为:yyyymmdd即可
----------------------------------------
WHERE 1=1
${if(len(startime)==0,""," and checked_time >= '"+ startime +"'")}
${if(len(endtime)==0,""," and checked_time <= '"+ endtime +"'")}
----------------------------------------
format修改日期格式
${if(len(startime)==0,""," and FORMAT(checked_time, "YYYY-MM-DD") >= '"+ startime +"'")}