DELETE FROM t_tctb_formula WHERE FID = 1107052779463092224;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1107052779463092224,{ts'2022-05-27  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#4#hj',' ','增值税小规模纳税人总览表#4#合计','1','4','1105045617790692352','draft_zzsxgmnsr','tcvat_zlb_xgmnsr','hj',' ',' ','if({C[#type]} = 0, {S[select fqmye from t_tcvat_ybnsr_jsxm  where FEWBLXH = ''1'' and FSBBID in (select CONCAT(fid , '''')  from t_tctb_declare_main where FNSRTYPE = ''zzsxgmnsr'' and FSKSSQQ  = ''#prestartDate'' and FSKSSQZ  = ''#preendDate'' and FTAXLIMIT = ''month'' and  FORGID = ''#orgid'' )]}, {S[select fqmye from t_tcvat_ybnsr_jsxm  where FEWBLXH = ''1'' and FSBBID in (select CONCAT(fid , '''')  from t_tctb_declare_main where FNSRTYPE = ''zzsxgmnsr'' and FSKSSQQ  = ''#prestartDate'' and FSKSSQZ  = ''#preendDate'' and FTAXLIMIT = ''season'' and  FORGID = ''#orgid'' )]})'); 
