update DepartmentStock set tousseDefinition_id=(select ancestorID from TousseDefinition td where ( tousseType = '器械包' or tousseType = '敷料包' or tousseType = '自制物品') and forDisplay <> 0 and name=DepartmentStock.tousseName and isDisable='否') where tousseDefinition_id is null;