这是sql语法有错误,把sql拿出来才知道。。
-缺了and
effect_time>=date'${begtime}' and effect_time<date'${enftime}'+1
参数设置为日期型
都用(帆软和数据库)字符串来试试,为什么要用日期类型