DELETE FROM t_bas_billtype WHERE FID = 1228835943272797184;
INSERT INTO t_bas_billtype(FID,FISSYSPRESET,FDOCUMENTSTATUS,FDEFWNREPORTTEMPLATE,FISDEFAULT,FDEFPRINTTEMPLATE,FCONTROLPRINTCOUNT,FMASTERID,FSTATUS,FBILLFORMID,FMAXPRINTCOUNT,FBILLCODERULEID,FBILLINITSETTING,FNUMBER,FCREATETIME,FLAYOUTSOLUTION,FPARASETTINGXML,FMODIFIERID,FENABLE,FMODIFYTIME,FPRINTAFTERAUDIT,FCREATORID) VALUES (1228835943272797184,'0','0',NULL,'1',' ','0',1228835943272797184,'C','im_mdc_omcmplinbill',1,' ',' ','im_mdc_omcmplinbill_BT_S',{ts'2021-08-23  00:00:00'},'1UE2HDSO5/P7',NULL,1159363507540525056,'1',{ts'2021-09-08  00:00:00'},'1',1159363507540525056); 

DELETE FROM T_BAS_BILLTYPE_l WHERE fpkid = '1UY7PH0LZ0UA';
INSERT INTO t_bas_billtype_l
(fpkid, fid, flocaleid, fname, fdescription)
VALUES('1UY7PH0LZ0UA', 1228835943272797184, 'zh_CN', '委外完工入库单', ' ');

DELETE FROM T_BAS_BILLTYPE_l WHERE fpkid = '1UY7PH0LZ0UB';
INSERT INTO t_bas_billtype_l
(fpkid, fid, flocaleid, fname, fdescription)
VALUES('1UY7PH0LZ0UB', 1228835943272797184, 'zh_TW', '委外完工入庫單', ' ');

IF NOT EXISTS (SELECT 1 FROM t_sbd_biztypebillentity WHERE FENTRYID = '1002795213976314883') 
insert into t_sbd_biztypebillentity (FID, FENTRYID, FSEQ, FBILLFORM)
values ('1002795213917594624', '1002795213976314883', '4', 'im_mdc_omcmplinbill');
