-- 删除法人机构相关元数据及引用
-- 法人机构
DELETE FROM T_META_BIZUNITRELFORM WHERE FFORMID = '1O9B2IVR68A9';
DELETE FROM T_META_FORMDESIGN WHERE FID = '1O9B2IVR68A9';
DELETE FROM T_META_FORMDESIGN_L WHERE FID = '1O9B2IVR68A9';
DELETE FROM T_META_ENTITYDESIGN WHERE FID = '1O9B2IVR68A9';
DELETE FROM T_META_ENTITYDESIGN_L WHERE FID = '1O9B2IVR68A9';
DELETE FROM T_META_FORM WHERE FID = '1O9B2IVR68A9';
DELETE FROM T_META_ENTITY WHERE FID = '1O9B2IVR68A9';
DELETE FROM T_META_ENTITYINFO WHERE FID = 'hbss_corporateorg';
DELETE FROM T_META_MAINENTITYINFO WHERE FID = 'hbss_corporateorg';
DELETE FROM T_META_MAINENTITYINFO_L WHERE FID = 'hbss_corporateorg';

-- 法人机构变更
DELETE FROM T_META_BIZUNITRELFORM WHERE FFORMID = '23Q11ZY++I5Q';
DELETE FROM T_META_FORMDESIGN WHERE FID = '23Q11ZY++I5Q';
DELETE FROM T_META_FORMDESIGN_L WHERE FID = '23Q11ZY++I5Q';
DELETE FROM T_META_ENTITYDESIGN WHERE FID = '23Q11ZY++I5Q';
DELETE FROM T_META_ENTITYDESIGN_L WHERE FID = '23Q11ZY++I5Q';
DELETE FROM T_META_FORM WHERE FID = '23Q11ZY++I5Q';
DELETE FROM T_META_ENTITY WHERE FID = '23Q11ZY++I5Q';
DELETE FROM T_META_ENTITYINFO WHERE FID = 'hbss_corporateorgchg';
DELETE FROM T_META_MAINENTITYINFO WHERE FID = 'hbss_corporateorgchg';
DELETE FROM T_META_MAINENTITYINFO_L WHERE FID = 'hbss_corporateorgchg';

-- 法人机构使用情况
DELETE FROM T_META_BIZUNITRELFORM WHERE FFORMID = '2=D9P+CN3N1H';
DELETE FROM T_META_FORMDESIGN WHERE FID = '2=D9P+CN3N1H';
DELETE FROM T_META_FORMDESIGN_L WHERE FID = '2=D9P+CN3N1H';
DELETE FROM T_META_ENTITYDESIGN WHERE FID = '2=D9P+CN3N1H';
DELETE FROM T_META_ENTITYDESIGN_L WHERE FID = '2=D9P+CN3N1H';
DELETE FROM T_META_FORM WHERE FID = '2=D9P+CN3N1H';
DELETE FROM T_META_ENTITY WHERE FID = '2=D9P+CN3N1H';
DELETE FROM T_META_ENTITYINFO WHERE FID = 'hbss_corporateorguse';
DELETE FROM T_META_MAINENTITYINFO WHERE FID = 'hbss_corporateorguse';
DELETE FROM T_META_MAINENTITYINFO_L WHERE FID = 'hbss_corporateorguse';

-- 法人机构版本详情
DELETE FROM T_META_BIZUNITRELFORM WHERE FFORMID = '23W01O6/H5K9';
DELETE FROM T_META_FORMDESIGN WHERE FID = '23W01O6/H5K9';
DELETE FROM T_META_FORMDESIGN_L WHERE FID = '23W01O6/H5K9';
DELETE FROM T_META_ENTITYDESIGN WHERE FID = '23W01O6/H5K9';
DELETE FROM T_META_ENTITYDESIGN_L WHERE FID = '23W01O6/H5K9';
DELETE FROM T_META_FORM WHERE FID = '23W01O6/H5K9';
DELETE FROM T_META_ENTITY WHERE FID = '23W01O6/H5K9';
DELETE FROM T_META_ENTITYINFO WHERE FID = 'hbss_corporateorgvrinf';
DELETE FROM T_META_MAINENTITYINFO WHERE FID = 'hbss_corporateorgvrinf';
DELETE FROM T_META_MAINENTITYINFO_L WHERE FID = 'hbss_corporateorgvrinf';



