DELETE FROM t_tctb_datasource WHERE FID = 886815693662609408;
INSERT INTO t_tctb_datasource(FID,FBIZNAME,FTYPE,FISCHILD,FCONDITION,FORGTAKERELATION,FCREATEORGID,FSUBENTITYNAME,FMASTERID,FORGID,FUSERORG,FSTATUS,FCTRLSTRATEGY,FENTITYNAME,FNUMBER,FGROUPID,FCREATETIME,FMODIFIERID,FENABLE,FTAXTYPE,FMODIFYTIME,FCREATORID,FISSYSTEM) VALUES (886815693662609408,'资产负债表','0','0',' ','0',100000,'tdm_finance_zcfzb',886815693662609408,100000,100000,'C','5','tdm_finance_main',' ',978216567512983552,{ts'2020-11-10  00:00:00'},1267221609945529344,'1',' ',{ts'2022-01-20  00:00:00'},1,'1'); 

DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 886815693662631938;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','税款所属期止','0','0',' ',886815693662631938,'0','tdm_finance_main','0','0','0',5,'skssqz','0',' ','1'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 886815693662631939;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','编制单位','0','0',' ',886815693662631939,'0','tdm_finance_main','0','0','0',6,'bzorg','0',' ','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 886815693662631940;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','报表模板ID','0','0',' ',886815693662631940,'0','tdm_finance_main','0','0','0',7,'templateid','0',' ','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 886815693662631941;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','二维表序号','0','0',' ',886815693662631941,'0','tdm_finance_main','0','0','0',8,'ewblxh','0',' ','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 886815693662631942;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','税期','0','0',' ',886815693662631942,'0','tdm_finance_main','0','0','0',9,'peirod','0',' ','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 886815693662631943;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','财务报表类型ID','0','0',' ',886815693662631943,'0','tdm_finance_main','0','0','0',10,'type','0',' ','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 886815693662631944;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','申报表id','0','0',' ',886815693662631944,'0','tdm_finance_zcfzb','0','0','0',11,'sbbid','0',' ','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 886815693662631945;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','资产负债表行项目','0','0',' ',886815693662631945,'0','tdm_finance_zcfzb','0','0','0',12,'ewblxh','0',' ','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1310690327824317440;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','数据来源','0','0',' ',1310690327824317440,'1','tdm_finance_main','0','0','0',13,'datasource','0','数据来源','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1310690327824317441;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','来源系统','0','0',' ',1310690327824317441,'1','tdm_finance_main','0','0','0',14,'sourcesystem','0','来源系统','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1310690327824317442;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','账簿类型','0','0',' ',1310690327824317442,'1','tdm_finance_main','0','0','0',15,'accountbookstype','0','账簿类型','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1310690327824317443;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','报表类型','0','0',' ',1310690327824317443,'1','tdm_finance_main','0','0','0',16,'templatetype','0','报表类型','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1310690327824317444;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','模板','0','0',' ',1310690327824317444,'1','tdm_finance_main','0','0','0',17,'template','0','模板','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1310690327824317445;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','行次','0','0',' ',1310690327824317445,'1','tdm_finance_zcfzb','0','0','0',18,'rownumber','0','行次','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1310690327824317446;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','报表项目','0','0',' ',1310690327824317446,'1','tdm_finance_zcfzb','0','1','0',19,'reportitem','0','报表项目','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 886815693662631946;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','年初余额','0','0',',jzqms,sqqms,',886815693662631946,'1','tdm_finance_zcfzb','0','0','1',1,'ncye','0',' ','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 886815693662631947;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','期末余额','0','0',',jzqms,sqqms,',886815693662631947,'1','tdm_finance_zcfzb','0','0','1',2,'qmye','0',' ','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 886815693662631936;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'1','组织','0','0',' ',886815693662631936,'0','tdm_finance_main','0','0','0',3,'org','0',' ','0'); 
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 886815693662631937;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (886815693662609408,'0','税款所属期起','0','0',' ',886815693662631937,'0','tdm_finance_main','0','0','0',4,'skssqq','0',' ','1'); 

DELETE FROM t_tctb_datasource_pekrule WHERE FID = 1265751855435202560;
INSERT INTO t_tctb_datasource_pekrule(FID,FGROUPFIELD,FENABLE,FMASTERID,FSTATUS,FCREATORID,FNUMBER) VALUES (1265751855435202560,1265751323027027968,'1',1265751855435202560,'C',13466739,'RULE-PROFITS-0001'); 

DELETE FROM t_tctb_datasource_pekrule_l WHERE FPKID = '1ZG2=38OCU2P';
INSERT INTO t_tctb_datasource_pekrule_l(FID,FPKID,FLOCALEID,FDESC,FNAME) VALUES (1265751855435202560,'1ZG2=38OCU2P','zh_CN',' ','预缴-会计利润'); 
DELETE FROM t_tctb_datasource_pekrule_l WHERE FPKID = '1ZG2=38OCU2Q';
INSERT INTO t_tctb_datasource_pekrule_l(FID,FPKID,FLOCALEID,FDESC,FNAME) VALUES (1265751855435202560,'1ZG2=38OCU2Q','zh_TW',' ','預繳-會計利潤'); 


DELETE FROM t_tctb_datasource_pkrules WHERE FPKID = 1308716706281310208;
INSERT INTO t_tctb_datasource_pkrules(FID,FBASEDATAID,FPKID) VALUES (886815693662609408,1265751855435202560,1308716706281310208); 
DELETE FROM t_tctb_datasource_pkrules WHERE FPKID = 1308716706281314444;
INSERT INTO t_tctb_datasource_pkrules(FID,FBASEDATAID,FPKID) VALUES (886815693662609408,1320882389831934976,1308716706281314444); 
