SELECT * FROM BX_REPORT_FORM twhere 1=1${if(len(WORK)=0,"","and t.ACCOUNT_YEAR_MONTH = '"+WORK+"'")}AND ITEM_CODE = 'BX005'
and trunc((to_char(to_date(t.ACCOUNT_YEAR_MONTH,'yyyy-mm'),'mm')+2)/3)=trunc((to_char(sysdate,'mm')+2)/3)