no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@292 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 19 years ago
parent 1611b9ffe4
commit 1544c7ff0c

@ -194,4 +194,17 @@ public class ClientesDataProvider extends MetaProvider
}
return etiquetaID;
}
public Integer getEmpresaIDByTrabalhadorID( Integer trabalhadorID )
throws Exception
{
Select select =
new Select( new String[]{ "trabalhadores", "estabelecimentos" },
new String[]{ "estabelecimentos.empresa_id" },
new Field( "trabalhadores.id" ).isEqual( trabalhadorID ).and(
new Field( "trabalhadores.estabelecimento_id" ).isEqual(
new Field( "estabelecimentos.id" ) ) ) );
Virtual2DArray array = executer.executeQuery( select );
return ( Integer ) array.get( 0, 0 );
}
}

Loading…
Cancel
Save