=${YEARDELTA(f_time,-1)}
把你的语句复制出来。。
把你的sql中加上类似这样的。。。'${YEARDELTA(p_time,-1)}'
修改后的语句:
and to_char(d.createtime,'yyyy-mm-dd')>='${YEARDELTA(p_time,-1)}'
and to_char(d.createtime,'yyyy-mm-dd')<='${YEARDELTA(f_time,-1)}'