no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@215 bb69d46d-e84e-40c8-a05a-06db0d633741
Frederico Palma 20 years ago
parent 9e0233bdc1
commit ef53a9be10

@ -532,7 +532,7 @@ public class FichaDataProvider extends MetaProvider implements SearchExecuter {
new Select( new String[]{ "marcacoes_trabalhador" },
new String[]{ "MAX( data )" },
new Field( "trabalhador_id" ).isEqual( trabalhadorID ).and(
new Field( "tipo" ).isEqual( Marcacao.TIPO_MARCACAO_TRABALHADOR_CONSULTA ) ).and(
new Field( "tipo" ).isEqual( new Integer( Marcacao.TIPO_MARCACAO_TRABALHADOR_CONSULTA ) ) ).and(
new Field( "realizada" ).isEqual( "y" ).or(
new Field( "estado" ).isEqual( new Integer( 2 ) ) ) ) );
Virtual2DArray array = executer.executeQuery( select );
@ -546,7 +546,7 @@ public class FichaDataProvider extends MetaProvider implements SearchExecuter {
new String[]{ "motivo", "id" },
new Field( "data" ).isEqual( data ).and(
new Field( "trabalhador_id" ).isEqual( trabalhadorID ) ).and(
new Field( "tipo" ).isEqual( Marcacao.TIPO_MARCACAO_TRABALHADOR_CONSULTA ) ).and(
new Field( "tipo" ).isEqual( new Integer( Marcacao.TIPO_MARCACAO_TRABALHADOR_CONSULTA ) ) ).and(
new Field( "realizada" ).isEqual( "y" ).or(
new Field( "estado" ).isEqual( new Integer( 2 ) ) ) ),
new String[]{ "id" }, null );

Loading…
Cancel
Save