monthdelta()函数
MONTHDELTA(date,delta):返回指定日期date后delta个月的日期。
示例:
MONTHDELTA("2008-08-08",4)等于2008-12-08。
==============================
${IF(LEN(djsj_s) = 0, "", " AND lasj >= '" + monthdelta(djsj_s,-1) + "' ")}
${IF(LEN(djsj_e) = 0, "", " AND lasj <= '" + monthdelta(djsj_e,-1) + "' ")}
==================
${if(A==1,"lasj between "+djsj_s+" and +"djsj_e,"lasj between "+monthdelta(djsj_s,-1)+" and "+monthdelta(djsj_e,-1))}