${if(and(type="月视图",len(month)>0),"AND a.effectiveDate> ='"+FORMAT(MONTHDELTA(month,-1),"yyyy-MM-26")+"' and a.effectiveDate< ='"+FORMAT(month,"yyyy-MM-25")+"'","")}
--------------
${if(and(type="月视图",len(month)>0),if(format(today(),"yyyy-MM")=format(month,"yyyy-MM")," AND left(a.effectiveDate,7) ='"+format(month,"yyyy-MM")+"' ","AND a.effectiveDate> ='"+FORMAT(MONTHDELTA(month,-1),"yyyy-MM-26")+"' and a.effectiveDate< ='"+FORMAT(month,"yyyy-MM-25")+"'"),"")}