-- 汇总申报总览表公式
DELETE FROM t_tctb_formula WHERE FID = 1122453353990043648;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1122453353990043648,{ts'2021-03-29  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_01','tcvat_dg_ybnsr_ybhz#1#mainid',' ','底稿单据表#1#底稿主数据ID','4','1','1119375361449286656','draft_zzsybnsr_ybhz','tcvat_dg_ybnsr_ybhz','mainid','4',' ','{S[select fid from t_tctb_draft_main where forgid=''#orgid'' and fstartdate=''#startDate'' and fenddate=''#endDate'' and ftemplatetype=''#templatetype'']}');
