SELECT sum(MAIN_OUTPUT*1000) as TCBBCKFROM ZL_REPORT_FORM twhere 1=1${if(len(WORK)=0,"","and substr(t.ACCOUNT_YEAR_MONTH,1,4) = '"+left(WORK,4)+"'")}${if(len(WORK)=0,"","and substr(t.ACCOUNT_YEAR_MONTH,6,2) <= '"+right(WORK,2)+"'")}AND ITEM_CODE = 'ZL006'