update Container set departCode = (select handlerDepartCode from TousseDefinition td where td.id = (select tousseDefinitionID from IDCardDefinition where id = Container.idCardDefinitionId)) where idCardDefinitionId is not null and departCode <> (select handlerDepartCode from TousseDefinition td where td.id = (select tousseDefinitionID from IDCardDefinition where id = Container.idCardDefinitionId));
update Container set departName = (select handlerDepartName from TousseDefinition td where td.id = (select tousseDefinitionID from IDCardDefinition where id = Container.idCardDefinitionId)) where idCardDefinitionId is not null and departName <> (select handlerDepartName from TousseDefinition td where td.id = (select tousseDefinitionID from IDCardDefinition where id = Container.idCardDefinitionId));