where 1=1
${if(WEEKDAY(data_dt)=1,"","and 字段名称='"+DATEDELTA(data_dt,-1)+"'")}
----------转换格式------------------
where 1=1
${if(WEEKDAY(data_dt)=1,"","and 字段名称='"+format(DATEDELTA(data_dt,-1),"yyyyMMdd")+"'")}
------------判断月初1号-------------
where 1=1
${if(DAY(data_dt)=1,"","and 字段名称='"+format(DATEDELTA(data_dt,-1),"yyyyMMdd")+"'")}