-- 升级物料采购信息，物料销售信息，物料库存信息
UPDATE T_BD_MATERIALINVINFO SET FMBDMASTERID=FID WHERE FMBDMASTERID=0;
UPDATE T_BD_MATERIALSALINFO SET FMBDMASTERID=FID WHERE FMBDMASTERID=0;
UPDATE T_BD_MATERIALPURINFO SET FMBDMASTERID=FID WHERE FMBDMASTERID=0;


UPDATE T_BD_DEFAULTCTRLSTRATEGY SET FMASTERIDFIELDNAME='fmbdmasterid',FMASTERIDPROPNAME='mbdmasterid' WHERE FBASEDATAID IN('bd_materialinventoryinfo','bd_materialpurchaseinfo','bd_materialsalinfo');
