-- 删除内部交易明细查询旧打印模板
DELETE FROM T_META_BIZUNITRELFORM WHERE FFORMID IN (SELECT FID FROM T_META_FORMDESIGN WHERE FNUMBER = 'ifm_transdetail_prt_s');
DELETE FROM T_META_FORMDESIGN WHERE FNUMBER = 'ifm_transdetail_prt_s';
DELETE FROM T_META_ENTITYDESIGN WHERE FNUMBER = 'ifm_transdetail_prt_s';
DELETE FROM T_META_FORMDESIGN_L WHERE FNUMBER = 'ifm_transdetail_prt_s';
DELETE FROM T_META_ENTITYDESIGN_L WHERE FNUMBER = 'ifm_transdetail_prt_s';
DELETE FROM T_META_FORM WHERE FNUMBER = 'ifm_transdetail_prt_s';
DELETE FROM T_META_ENTITY WHERE FNUMBER = 'ifm_transdetail_prt_s';
DELETE FROM T_META_ENTITYINFO WHERE FID = 'ifm_transdetail_prt_s';
DELETE FROM T_META_MAINENTITYINFO WHERE FID = 'ifm_transdetail_prt_s';
DELETE FROM T_META_MAINENTITYINFO_L WHERE FID = 'ifm_transdetail_prt_s';