DELETE FROM t_tpo_rule_fetch WHERE FID = 1556539896196367360;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1556539896196367360,1532683517396254720,'number',' ',1556539896196367360,'A','CN-BBXGZ-000000007','{Q[累计结转以后年度扣除额#金额]}',{ts'2023-03-09  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[isfirstperiod]}==true,if({P[preyearendsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preyearendsbbid'' and cellnumber=''ggxcfjs_ljjzyhndkce#je'']}'')),if({P[preperiodsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preperiodsbbid'' and cellnumber=''ggxcfjs_jyqndljjzkce#je'']}'')))',1625975782134637568); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1550094743491646464;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1550094743491646464,1532683517396254720,'number',' ',1550094743491646464,'A','CN-BBXGZ-000000392','继承本年上期的调整数',{ts'2022-11-09  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[isfirstperiod]}==true,0,if({P[preperiodsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preperiodsbbid'' and cellnumber=''dqsds_sqlr_bd#dqsds_bndb_tz'']}'')))',1267221609945529344); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1550096209048572928;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1550096209048572928,1532683517396254720,'number',' ',1550096209048572928,'A','CN-BBXGZ-000000393','继承本年上期的调整数',{ts'2022-11-09  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[isfirstperiod]}==true,0,if({P[preperiodsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preperiodsbbid'' and cellnumber=''dqsds_yqndknbks#dqsds_bndb_tz'']}'')))',1267221609945529344); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1550088941452030976;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1550088941452030976,1532683517396254720,'number',' ',1550088941452030976,'A','CN-BBXGZ-000000391','非跨年时，取上一期历史数据',{ts'2022-11-09  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[isfirstperiod]}==true,0,if({P[preperiodsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preperiodsbbid'' and cellnumber=''dqsds_sqlr_jt#dqsds_bndb_tz'']}'')))',1267221609945529344); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1539201703872958464;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1539201703872958464,1532683517396254720,'number',' ',1539201703872958464,'A','CN-BBXGZ-000000052','{Q[dqsds_bnmbks#dqsds_snqnjts]}',{ts'2022-11-13  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[preyearendsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preyearendsbbid'' and cellnumber=''zcycgl_kmbss#zcycgl_bnbd_hj'']}''))',13466739); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1556540903450084352;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1556540903450084352,1532683517396254720,'number',' ',1556540903450084352,'A','CN-BBXGZ-000000008','{Q[结转以后年度扣除额合计#金额]}',{ts'2023-03-09  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[isfirstperiod]}==true,if({P[preyearendsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preyearendsbbid'' and cellnumber=''gyxjzzcxekcjs_jzyhndkcehj#gyxjzzcxekcjs_je'']}'')),if({P[preperiodsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preperiodsbbid'' and cellnumber=''gyxjzzcxekcjs_yqndjzkkcdjze#gyxjzzcxekcjs_je'']}''))) ',1625975782134637568); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1556541612228740096;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1556541612228740096,1532683517396254720,'number',' ',1556541612228740096,'A','CN-BBXGZ-000000009','{Q[累计结转以后年度扣除额（第3行+第9行）#金额]}',{ts'2023-03-09  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[isfirstperiod]}==true,if({P[preyearendsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preyearendsbbid'' and cellnumber=''zgjyjfjs_ljjzyhndkce#zgjyjfjs_je'']}'')),if({P[preperiodsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preperiodsbbid'' and cellnumber=''zgjyjfjs_yqndjzkce#zgjyjfjs_je'']}''))) ',1625975782134637568); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1539202263049179136;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1539202263049179136,1532683517396254720,'number',' ',1539202263049179136,'A','CN-BBXGZ-000000053','{P[可弥补亏损#年初余额_上年末余额]}',{ts'2022-11-09  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[preyearendsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preyearendsbbid'' and cellnumber=''zcycgl_kmbss#zcycgl_qmye'']}''))',1267221609945529344); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1539202729766162432;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1539202729766162432,1532683517396254720,'number',' ',1539202729766162432,'A','CN-BBXGZ-000000054','非跨年时，取上一期历史数据',{ts'2022-11-14  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[isfirstperiod]}==true,0,if({P[preperiodsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preperiodsbbid'' and cellnumber=''zcycgl_kmbss#zcycgl_ncye_tz'']}'')))',13466739); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1566691043179864064;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1566691043179864064,1532683517396254720,'number',' ',1566691043179864064,'A','CN-BBXGZ-000000467','上年12月计提底稿/当期所得税费用/本年变动合计',{ts'2022-12-02  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[preyearendsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preyearendsbbid'' and cellnumber=''dqsds_sqlr_bd#dqsds_hj'']}''))',1262334309272971264); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1566731702770876416;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1566731702770876416,1532683517396254720,'number',' ',1566731702770876416,'A','CN-BBXGZ-000000493','计算公式=上年12月计提底稿/当期所得税费用/本年变动合计',{ts'2022-12-09  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[preyearendsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preyearendsbbid'' and cellnumber=''dqsds_yqndknbks#dqsds_hj'']}''))',1262334309272971264); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1539203572569608192;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1539203572569608192,1532683517396254720,'number',' ',1539203572569608192,'A','CN-BBXGZ-000000056','非跨年时，取上一期历史数据',{ts'2022-11-14  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[isfirstperiod]}==true,0,if({P[preperiodsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preperiodsbbid'' and cellnumber=''zcycgl_kmbss#zcycgl_bnbd_tz'']}'')))',13466739); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1541918937355232256;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1541918937355232256,1532683517396254720,'number',' ',1541918937355232256,'A','CN-BBXGZ-000000193','{P[税前利润（集团）#上年全年计提数]}',{ts'2022-11-09  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[preyearendsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preyearendsbbid'' and cellnumber=''dqsds_sqlr_jt#dqsds_hj'']}''))',1267221609945529344); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1541919828888101888;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1541919828888101888,1532683517396254720,'number',' ',1541919828888101888,'A','CN-BBXGZ-000000195','{P[税前利润（本地）#上年全年计提数]}',{ts'2022-11-09  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[preyearendsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preyearendsbbid'' and cellnumber=''dqsds_sqlr_bd#dqsds_hj'']}''))',1267221609945529344); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1541921513085707264;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1541921513085707264,1532683517396254720,'number',' ',1541921513085707264,'A','CN-BBXGZ-000000197','IF（应纳税所得>0,MIN（应纳税所得，以前年度可弥补亏损），0）',{ts'2022-11-13  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[preyearendsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preyearendsbbid'' and cellnumber=''dqsds_bnmbks#dqsds_hj'']}''))',13466739); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1541923304179344384;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1541923304179344384,1532683517396254720,'number',' ',1541923304179344384,'A','CN-BBXGZ-000000199','{Q[应纳税所得#上年全年计提数]} - {Q[本年弥补亏损#上年全年计提数]}',{ts'2022-11-13  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[preyearendsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preyearendsbbid'' and cellnumber=''dqsds_mbyqndkshsd#dqsds_hj'']}''))',13466739); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1541925106304001024;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1541925106304001024,1532683517396254720,'number',' ',1541925106304001024,'A','CN-BBXGZ-000000202','{P[以前年度可弥补亏损#上年全年计提数]}',{ts'2022-11-09  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[preyearendsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preyearendsbbid'' and cellnumber=''dqsds_yqndknbks#dqsds_hj'']}''))',1267221609945529344); 
DELETE FROM t_tpo_rule_fetch WHERE FID = 1567261303326643200;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1567261303326643200,1532683517396254720,'number',' ',1567261303326643200,'A','CN-BBXGZ-000000541','计算公式=上年12月计提底稿/当期所得税费用/本年变动合计',{ts'2022-12-03  00:00:00'},1625975782134637568,'1',{ts'2023-07-20  00:00:00'},'BBXGZ','if({P[preyearendsbbid]}==-1,0,StringUtil.toNumber(''{M[select value from tpo_declare_detail_tsd where entryid=''#preyearendsbbid'' and cellnumber=''dqsds_sqlr_jt#dqsds_hj'']}''))',1262334309272971264); 
